diff --git a/.gitattributes b/.gitattributes index bed0738c7eeb449bca98b5d2f33c89a1ee56349a..add461bbc3413d059c81ebb34c6b5836f20ebab0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -58,3 +58,40 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text # Video files - compressed *.mp4 filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text +arcwise/databases/thrombosis_prediction.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/toxicology.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/talkingdata.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/european_football_2.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/world_development_indicators.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/codebase_community.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/financial.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/formula_1.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/student_club.sqlite filter=lfs diff=lfs merge=lfs -text +arcwise/databases/superhero.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/donor.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/movie_platform.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/bike_share_1.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/beer_factory.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/address.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/book_publishing_company.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/app_store.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/books.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/car_retails.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/airline.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/cars.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/citeseer.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/chicago_crime.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/college_completion.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/cookbook.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/craftbeer.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/disney.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/european_football_1.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/food_inspection.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/genes.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/hockey.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/ice_hockey_draft.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/food_inspection_2.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/image_and_language.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/authors.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/law_episode.sqlite filter=lfs diff=lfs merge=lfs -text +revisql-verified/databases/legislator.sqlite filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 685f5c834ca1952996b767b34b758e8be1c15726..28a62d3785a93d4f369d2e66860ea1b7e50cbfbf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,63 @@ --- license: cc-by-sa-4.0 +pretty_name: Text-to-SQL Recipe Data +language: +- en +task_categories: +- table-question-answering +- text-generation +tags: +- text-to-sql +- sql +- bird +- reinforcement-learning +size_categories: +- 1K 46.73, T1.CustomerID, NULL)) AS REAL) * 100 / COUNT(DISTINCT T1.CustomerID) FROM customers AS T1 LEFT JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM'", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(T2.Consumption > 46.73, T1.CustomerID, NULL)) AS REAL) * 100 / COUNT(DISTINCT T1.CustomerID) FROM customers AS T1 LEFT JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM'", + "source_gold_sql_sha256": "d66e14fee56ca4abcfaea70ed37bd33a86e6d7a8623d58ce0494e3b958248932", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1493", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nFebruary 2012 refers to '201202' in yearmonth.date; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.\n\nQuestion:\nIn February 2012, what percentage of customers consumed more than 528.3?", + "question": "In February 2012, what percentage of customers consumed more than 528.3?", + "evidence": "February 2012 refers to '201202' in yearmonth.date; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(Consumption > 528.3, 1, 0)) AS FLOAT) * 100 / COUNT(CustomerID) FROM yearmonth WHERE Date = '201202'", + "source_gold_sql": "SELECT CAST(SUM(IIF(Consumption > 528.3, 1, 0)) AS FLOAT) * 100 / COUNT(CustomerID) FROM yearmonth WHERE Date = '201202'", + "source_gold_sql_sha256": "79a0a617c5c55e83dd06266f16c43786c76671d15777364de131719a81257005", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1498", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nThe first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.\n\nQuestion:\nWhat is the highest monthly consumption in the year 2012?", + "question": "What is the highest monthly consumption in the year 2012?", + "evidence": "The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT SUM(Consumption) FROM yearmonth WHERE SUBSTR(Date, 1, 4) = '2012' GROUP BY SUBSTR(Date, 5, 2) ORDER BY SUM(Consumption) DESC LIMIT 1", + "source_gold_sql": "SELECT SUM(Consumption) FROM yearmonth WHERE SUBSTR(Date, 1, 4) = '2012' GROUP BY SUBSTR(Date, 5, 2) ORDER BY SUM(Consumption) DESC LIMIT 1", + "source_gold_sql_sha256": "42a720a1cc66da887aeac74cc787cc4cebf03bdc906ba1b35b923a9437f9803b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1500", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nAugust 2012 refers to Date like '2012-08-%'\n\nQuestion:\nPlease list the product descriptions of the products purchased in August, 2012.", + "question": "Please list the product descriptions of the products purchased in August, 2012.", + "evidence": "August 2012 refers to Date like '2012-08-%'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T1.Date LIKE '2012-08-%'", + "source_gold_sql": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T1.Date LIKE '2012-08-%'", + "source_gold_sql_sha256": "2fee97fa4d76097f94934c50bcc33118e01c7022a0fd764f83406ea1636dc67e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1501", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nAugust 2012 refers to Date like '2012-08-%'\n\nQuestion:\nPlease list the countries of the gas stations with transactions taken place in August, 2012.", + "question": "Please list the countries of the gas stations with transactions taken place in August, 2012.", + "evidence": "August 2012 refers to Date like '2012-08-%'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT DISTINCT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date LIKE '2012-08-%'", + "source_gold_sql": "SELECT DISTINCT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date LIKE '2012-08-%'", + "source_gold_sql_sha256": "6de1f7b46df26dc5e1e05e9a31d7a503534913da3c5ccf1e348ef71b5f47a79a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1505", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nPays in euro = Currency = 'EUR'.\n\nQuestion:\nAmong the customers who paid in euro, how many of them have a monthly consumption of over 1000?", + "question": "Among the customers who paid in euro, how many of them have a monthly consumption of over 1000?", + "evidence": "Pays in euro = Currency = 'EUR'.", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.CustomerID) FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Currency = 'EUR' AND T1.Consumption > 1000.00", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.CustomerID) FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Currency = 'EUR' AND T1.Consumption > 1000.00", + "source_gold_sql_sha256": "5b29e3237c0fd1b602af4f0e805f70c6c1aca9eb4ab42ba416f5b6f559bde13c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1506", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nCzech Republic can be represented as the Country value in the gasstations table is 'CZE';\n\nQuestion:\nPlease list the product descriptions of the transactions taken place in the gas stations in the Czech Republic.", + "question": "Please list the product descriptions of the transactions taken place in the gas stations in the Czech Republic.", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE';", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Country = 'CZE'", + "source_gold_sql": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Country = 'CZE'", + "source_gold_sql_sha256": "1026d3fc3b7f9303e94f2c897261dd9d97b03aa9c68c76e6f85666aeae6b497c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1507", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nPlease list the disparate time of the transactions taken place in the gas stations from chain no. 11.", + "question": "Please list the disparate time of the transactions taken place in the gas stations from chain no. 11.", + "evidence": "", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT DISTINCT T1.Time FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.ChainID = 11", + "source_gold_sql": "SELECT DISTINCT T1.Time FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.ChainID = 11", + "source_gold_sql_sha256": "fe36ec1bb3c4b5bd26f3eb77af6af0cfb8919d81f490d9953aa8f3909a033c8f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1509", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nCzech Republic can be represented as the Country value in the gasstations table is 'CZE'\n\nQuestion:\nAmong the transactions made in the gas stations in the Czech Republic, how many of them are taken place after 2012/1/1?", + "question": "Among the transactions made in the gas stations in the Czech Republic, how many of them are taken place after 2012/1/1?", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT COUNT(t.`TransactionID`)\nFROM `transactions_1k` AS t\nJOIN `gasstations` AS g\n ON t.`GasStationID` = g.`GasStationID`\nWHERE g.`Country` = 'CZE'\n AND DATE(t.`Date`) > '2012-01-01';", + "source_gold_sql": "SELECT COUNT(t.`TransactionID`)\nFROM `transactions_1k` AS t\nJOIN `gasstations` AS g\n ON t.`GasStationID` = g.`GasStationID`\nWHERE g.`Country` = 'CZE'\n AND DATE(t.`Date`) > '2012-01-01';", + "source_gold_sql_sha256": "a6cfefa7d002eeaa53f4b6a7afba491b4fff0ad80317d1bbcf75e3afd357bbe4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1514", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n2012/8/24' can be represented by '2012-08-24';\n\nQuestion:\nWhat kind of currency did the customer paid at 16:25:00 in 2012/8/24?", + "question": "What kind of currency did the customer paid at 16:25:00 in 2012/8/24?", + "evidence": "2012/8/24' can be represented by '2012-08-24';", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT DISTINCT T3.Currency FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T1.Date = '2012-08-24' AND T1.Time = '16:25:00'", + "source_gold_sql": "SELECT DISTINCT T3.Currency FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T1.Date = '2012-08-24' AND T1.Time = '16:25:00'", + "source_gold_sql_sha256": "bba705d34a4986b4163015ee7e8257c91a9710639bbc2ac2069407baf3bb470c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1515", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n2012/8/23' can be represented by '2012-08-23'\n\nQuestion:\nWhat segment did the customer have at 2012/8/23 21:20:00?", + "question": "What segment did the customer have at 2012/8/23 21:20:00?", + "evidence": "2012/8/23' can be represented by '2012-08-23'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT T2.Segment FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.date = '2012-08-23' AND T1.time = '21:20:00'", + "source_gold_sql": "SELECT T2.Segment FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.date = '2012-08-23' AND T1.time = '21:20:00'", + "source_gold_sql_sha256": "b8614842e4aaf727b1f06906d3cb136425445e3e981ae7ca3ba7fd0d6f8cd798", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1521", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nCzech Republic can be represented as the Country value in the gasstations table is 'CZE'; '2012/8/26' can be represented by '2012-08-26'; during 8:00-9:00 can be represented as Time BETWEEN '08:00:00' AND '09:00:00'\n\nQuestion:\nFor all the transactions happened during 8:00-9:00 in 2012/8/26, how many happened in CZE?", + "question": "For all the transactions happened during 8:00-9:00 in 2012/8/26, how many happened in CZE?", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; '2012/8/26' can be represented by '2012-08-26'; during 8:00-9:00 can be represented as Time BETWEEN '08:00:00' AND '09:00:00'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-26' AND T1.Time BETWEEN '08:00:00' AND '09:00:00' AND T2.Country = 'CZE'", + "source_gold_sql": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-26' AND T1.Time BETWEEN '08:00:00' AND '09:00:00' AND T2.Country = 'CZE'", + "source_gold_sql_sha256": "aa596b337a004a209643a9ad56a361a3f29a4d0253ee43ecaedc67fbfa5ed57b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1524", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n2012/8/24' can be represented by '2012-08-24'\n\nQuestion:\nWhat's the nationality of the customer who spent 548.4 in 2012/8/24?", + "question": "What's the nationality of the customer who spent 548.4 in 2012/8/24?", + "evidence": "2012/8/24' can be represented by '2012-08-24'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-24' AND T1.Price = 548.4", + "source_gold_sql": "SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-24' AND T1.Price = 548.4", + "source_gold_sql_sha256": "c4563f2e813784a2ea43d3999e599c175b63fb3c757fbb6467df99ac14054ffa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1525", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n2012/8/25' can be represented by '2012-08-25'\n\nQuestion:\nWhat is the percentage of the customers who used EUR in 2012/8/25?", + "question": "What is the percentage of the customers who used EUR in 2012/8/25?", + "evidence": "2012/8/25' can be represented by '2012-08-25'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(T2.Currency = 'EUR', T1.CustomerID, NULL)) AS FLOAT) * 100 / COUNT(DISTINCT T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-25'", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(T2.Currency = 'EUR', T1.CustomerID, NULL)) AS FLOAT) * 100 / COUNT(DISTINCT T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-25'", + "source_gold_sql_sha256": "15ce2e842cf1eda539c4774f804b28f2bf1a80371ee1baa46bfe07e0f0dc3675", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1526", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n2012/8/24' can be represented by '2012-08-24'; Consumption decrease rate = (consumption_2012 - consumption_2013) / consumption_2012\n\nQuestion:\nFor the customer who paid 634.8 in 2012/8/25, what was the consumption decrease rate from Year 2012 to 2013?", + "question": "For the customer who paid 634.8 in 2012/8/25, what was the consumption decrease rate from Year 2012 to 2013?", + "evidence": "2012/8/24' can be represented by '2012-08-24'; Consumption decrease rate = (consumption_2012 - consumption_2013) / consumption_2012", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(SUBSTRING(Date, 1, 4) = '2012', Consumption, 0)) - SUM(IIF(SUBSTRING(Date, 1, 4) = '2013', Consumption, 0)) AS FLOAT) / SUM(IIF(SUBSTRING(Date, 1, 4) = '2012', Consumption, 0)) FROM yearmonth WHERE CustomerID = ( SELECT T1.CustomerID FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-25' AND T1.Price = 634.8 )", + "source_gold_sql": "SELECT CAST(SUM(IIF(SUBSTRING(Date, 1, 4) = '2012', Consumption, 0)) - SUM(IIF(SUBSTRING(Date, 1, 4) = '2013', Consumption, 0)) AS FLOAT) / SUM(IIF(SUBSTRING(Date, 1, 4) = '2012', Consumption, 0)) FROM yearmonth WHERE CustomerID = ( SELECT T1.CustomerID FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-25' AND T1.Price = 634.8 )", + "source_gold_sql_sha256": "038911a6a1ee46b3237fbbe2948ef77d814760ccf34de34921f2aa520956d28d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1528", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat is the percentage of \"premium\" against the overall segment in Country = \"SVK\"?", + "question": "What is the percentage of \"premium\" against the overall segment in Country = \"SVK\"?", + "evidence": "", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(Country = 'SVK' AND Segment = 'Premium', 1, 0)) AS FLOAT) * 100 / SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations", + "source_gold_sql": "SELECT CAST(SUM(IIF(Country = 'SVK' AND Segment = 'Premium', 1, 0)) AS FLOAT) * 100 / SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations", + "source_gold_sql_sha256": "b8e4f073408ac2bbd000965e54631388dd5e1eea5270d076613f26eedda64e84", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1529", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nAugust 2012 refers to the Date value = '201208'\n\nQuestion:\nWhat is the amount spent by customer \"38508\" at the gas stations? How much had the customer spent in August 2012?", + "question": "What is the amount spent by customer \"38508\" at the gas stations? How much had the customer spent in August 2012?", + "evidence": "August 2012 refers to the Date value = '201208'", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT SUM(Amount * Price) AS total_spent, SUM(CASE WHEN Date LIKE '2012-08%' THEN Amount * Price ELSE 0 END) AS august_2012_spent FROM transactions_1k WHERE CustomerID = 38508", + "source_gold_sql": "SELECT SUM(Amount * Price) AS total_spent, SUM(CASE WHEN Date LIKE '2012-08%' THEN Amount * Price ELSE 0 END) AS august_2012_spent FROM transactions_1k WHERE CustomerID = 38508", + "source_gold_sql_sha256": "5cc3f14df68ec0957033ec97d9739b87548985821a9521dbb24e79e8afee11c0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1531", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\naverage price per single item = Total(price) / Total(amount)\n\nQuestion:\nWho is the top spending customer and how much is the average price per single item purchased by this customer? What currency was being used?", + "question": "Who is the top spending customer and how much is the average price per single item purchased by this customer? What currency was being used?", + "evidence": "average price per single item = Total(price) / Total(amount)", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT c.CustomerID, SUM(t.Price * t.Amount) / SUM(t.Amount) AS average_price_per_item, c.Currency FROM transactions_1k AS t JOIN customers AS c ON t.CustomerID = c.CustomerID WHERE t.CustomerID = ( SELECT CustomerID FROM transactions_1k GROUP BY CustomerID ORDER BY SUM(Amount * Price) DESC LIMIT 1 ) GROUP BY c.CustomerID, c.Currency;", + "source_gold_sql": "SELECT c.CustomerID, SUM(t.Price * t.Amount) / SUM(t.Amount) AS average_price_per_item, c.Currency FROM transactions_1k AS t JOIN customers AS c ON t.CustomerID = c.CustomerID WHERE t.CustomerID = ( SELECT CustomerID FROM transactions_1k GROUP BY CustomerID ORDER BY SUM(Amount * Price) DESC LIMIT 1 ) GROUP BY c.CustomerID, c.Currency;", + "source_gold_sql_sha256": "7f680678d9cfdaf1cd5a7c84f3b6860441feefdf40c6f07ee0e0125bcdc5a322", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1533", + "domain": "debit_card_specializing", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customers (\n `CustomerID` integer, -- identification of the customer.\n `Segment` text, -- client segment.\n `Currency` text, -- Currency.\n primary key (CustomerID)\n);\n\nCREATE TABLE gasstations (\n `GasStationID` integer, -- Gas Station ID.\n `ChainID` integer, -- Chain ID.\n `Country` text, -- No description.\n `Segment` text, -- chain segment.\n primary key (GasStationID)\n);\n\nCREATE TABLE products (\n `ProductID` integer, -- Product ID.\n `Description` text, -- Description.\n primary key (ProductID)\n);\n\nCREATE TABLE yearmonth (\n `CustomerID` integer, -- Customer ID.\n `Date` text, -- Date.\n `Consumption` real, -- consumption.\n primary key (Date, CustomerID)\n);\n\nCREATE TABLE transactions_1k (\n `TransactionID` integer, -- Transaction ID.\n `Date` date, -- Date.\n `Time` text, -- Time.\n `CustomerID` integer, -- Customer ID.\n `CardID` integer, -- Card ID.\n `GasStationID` integer, -- Gas Station ID.\n `ProductID` integer, -- Product ID.\n `Amount` integer, -- Amount.\n `Price` real, -- Price. total price = Amount x Price.\n primary key (TransactionID)\n);\n\nExternal Knowledge:\nAugust of 2012 refers to the Date value = '201208' ; Price per unit of product = Price / Amount;\n\nQuestion:\nFor all the people who paid more than 29.00 per unit of product id No.5. Give their consumption status in the August of 2012.", + "question": "For all the people who paid more than 29.00 per unit of product id No.5. Give their consumption status in the August of 2012.", + "evidence": "August of 2012 refers to the Date value = '201208' ; Price per unit of product = Price / Amount;", + "db_id": "debit_card_specializing", + "database_path": "databases/debit_card_specializing.sqlite", + "gold_sql": "SELECT T2.Consumption FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Price / T1.Amount > 29.00 AND T1.ProductID = 5 AND T2.Date = '201208'", + "source_gold_sql": "SELECT T2.Consumption FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Price / T1.Amount > 29.00 AND T1.ProductID = 5 AND T2.Date = '201208'", + "source_gold_sql_sha256": "11a30d6388bb8ba8d0c0a2de78e0d9d6484563200843d7f0a683115fbd65a941", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1312", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nAngela Sanders is the full name; full name refers to first_name, last_name; major refers to major_name.\n\nQuestion:\nWhat's Angela Sanders's major?", + "question": "What's Angela Sanders's major?", + "evidence": "Angela Sanders is the full name; full name refers to first_name, last_name; major refers to major_name.", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Angela' AND T1.last_name = 'Sanders'", + "source_gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Angela' AND T1.last_name = 'Sanders'", + "source_gold_sql_sha256": "1b4bdc85d23e839f20a8088b14236d77da08e7bfa89680d968541102f090b74f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1317", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nWomen's Soccer is an event name; T-shirt that is in medium size refers to t_shirt_size = 'Medium'\n\nQuestion:\nAmong the students from the Student_Club who attended the event \"Women's Soccer\", how many of them want a T-shirt that's in medium size?", + "question": "Among the students from the Student_Club who attended the event \"Women's Soccer\", how many of them want a T-shirt that's in medium size?", + "evidence": "Women's Soccer is an event name; T-shirt that is in medium size refers to t_shirt_size = 'Medium'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size = 'Medium'", + "source_gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size = 'Medium'", + "source_gold_sql_sha256": "ed149553df8de2cf44e749f334fbcbf4a9dba4b9f6674b02e6e0d9e26f50a18a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1322", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nmeetings events refers to type = 'Meeting'; attended by more than 10 members refers to COUNT(event_id) > 10\n\nQuestion:\nAmong the events attended by more than 10 members of the Student_Club, how many of them are meetings?", + "question": "Among the events attended by more than 10 members of the Student_Club, how many of them are meetings?", + "evidence": "meetings events refers to type = 'Meeting'; attended by more than 10 members refers to COUNT(event_id) > 10", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(*) FROM (SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type = 'Meeting' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 10)", + "source_gold_sql": "SELECT COUNT(*) FROM (SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type = 'Meeting' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 10)", + "source_gold_sql_sha256": "9e766f2061069e0bf3d82fb371519d90158908d9ebfe053ab8728a4f74901627", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1323", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nname of events refers to event_name; attendance of over 20 students COUNT(event_id) > 20.\n\nQuestion:\nList all the names of events that had an attendance of over 20 students but were not fundraisers.", + "question": "List all the names of events that had an attendance of over 20 students but were not fundraisers.", + "evidence": "name of events refers to event_name; attendance of over 20 students COUNT(event_id) > 20.", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT DISTINCT E.`event_name`\nFROM `Event` AS E\nJOIN `Attendance` AS A ON E.`event_id` = A.`link_to_event`\nWHERE E.`type` <> 'Fundraiser'\nGROUP BY E.`event_id`\nHAVING COUNT(*) > 20;", + "source_gold_sql": "SELECT DISTINCT E.`event_name`\nFROM `Event` AS E\nJOIN `Attendance` AS A ON E.`event_id` = A.`link_to_event`\nWHERE E.`type` <> 'Fundraiser'\nGROUP BY E.`event_id`\nHAVING COUNT(*) > 20;", + "source_gold_sql_sha256": "99c6a74b12e28be6dc431929ddea9ee550d3bed6c7c997f2e8b701c0e9ed62ce", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1331", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nVice President' is a position of Student Club; funds received refers to amount.\n\nQuestion:\nWhat is the amount of the funds that the Vice President received?", + "question": "What is the amount of the funds that the Vice President received?", + "evidence": "Vice President' is a position of Student Club; funds received refers to amount.", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'", + "source_gold_sql": "SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'", + "source_gold_sql_sha256": "da7813c2b751de7e9ba7f2da26a9aef3ab993fa31fe752e9c3cc34da52caab58", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1334", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfull name of member refers to first_name, last_name\n\nQuestion:\nList the full name of the Student_Club members that grew up in Illinois state.", + "question": "List the full name of the Student_Club members that grew up in Illinois state.", + "evidence": "full name of member refers to first_name, last_name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'", + "source_gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'", + "source_gold_sql_sha256": "589ef97b6446d461bd9164779592a0766ad744efd160df869f9202b584487f43", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1338", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nevent_name = 'October Meeting' where event_date = '2019-10-08'; approved = True means expenses was approved; approved = False means expenses was not approved\n\nQuestion:\nWas each expense in October Meeting on October 8, 2019 approved? 'true' or 'false'", + "question": "Was each expense in October Meeting on October 8, 2019 approved? 'true' or 'false'", + "evidence": "event_name = 'October Meeting' where event_date = '2019-10-08'; approved = True means expenses was approved; approved = False means expenses was not approved", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'", + "source_gold_sql": "SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'", + "source_gold_sql_sha256": "25e95293c9d858af392dcad3366a617aad1ac8dcd7add6bdc5cb1510bda0fa73", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1339", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nElijah Allen is the full name; full name refers to first_name, last_name; The 5th and 6th string of the expense_date in the expense table can refer to month; events in September and October refers to month(expense_date) = 9 OR month(expense_date) = 10\n\nQuestion:\nCalculate the total average cost that Elijah Allen spent in the events on September and October.", + "question": "Calculate the total average cost that Elijah Allen spent in the events on September and October.", + "evidence": "Elijah Allen is the full name; full name refers to first_name, last_name; The 5th and 6th string of the expense_date in the expense table can refer to month; events in September and October refers to month(expense_date) = 9 OR month(expense_date) = 10", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')", + "source_gold_sql": "SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')", + "source_gold_sql_sha256": "9efa80b73dcfb32509e4d34f849239a7344388702ccba5f3f9d2b66e88c0c742", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1340", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nThe first 4 strings of the event_date values in the event table can represent year; The difference of the total amount spent = SUBTRACT(spent where YEAR(event_date) = 2019, spent where YEAR(event_date) = 2020)\n\nQuestion:\nCalculate the difference of the total amount spent in all events by the Student_Club in year 2019 and 2020.", + "question": "Calculate the difference of the total amount spent in all events by the Student_Club in year 2019 and 2020.", + "evidence": "The first 4 strings of the event_date values in the event table can represent year; The difference of the total amount spent = SUBTRACT(spent where YEAR(event_date) = 2019, spent where YEAR(event_date) = 2020)", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2019' THEN T2.spent ELSE 0 END) - SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2020' THEN T2.spent ELSE 0 END) AS num FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event", + "source_gold_sql": "SELECT SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2019' THEN T2.spent ELSE 0 END) - SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2020' THEN T2.spent ELSE 0 END) AS num FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event", + "source_gold_sql_sha256": "3046e6ce322030b1be35e5ebc041f93db6d74207388af7922b0932872caa64ff", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1344", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfundraising on 2019/9/14 refers to source = 'Fundraising' where date_received = '2019-09-14'\n\nQuestion:\nWhat was the notes of the fundraising on 2019/9/14?", + "question": "What was the notes of the fundraising on 2019/9/14?", + "evidence": "fundraising on 2019/9/14 refers to source = 'Fundraising' where date_received = '2019-09-14'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'", + "source_gold_sql": "SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'", + "source_gold_sql_sha256": "59c2cbcb6032c635bc696dfb6c08dae8f8442a2ce388bdea858620ee6a2a6d57", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1346", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nCarlo Jacobs is the full name; full name refers to first_name, last_name;\n\nQuestion:\nTell the phone number of \"Carlo Jacobs\".", + "question": "Tell the phone number of \"Carlo Jacobs\".", + "evidence": "Carlo Jacobs is the full name; full name refers to first_name, last_name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'", + "source_gold_sql": "SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'", + "source_gold_sql_sha256": "1625486330555e7d239e3d1dd55ef4ee75b7b5a40ada09d80966c930100b3b31", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1350", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nPost Cards, Posters' is an expense description; on 2019/8/20 refers to expense_date = '2019-8-20'; status of event refers to event_status\n\nQuestion:\nWhat is the status of the event which bought \"Post Cards, Posters\" on 2019/8/20?", + "question": "What is the status of the event which bought \"Post Cards, Posters\" on 2019/8/20?", + "evidence": "Post Cards, Posters' is an expense description; on 2019/8/20 refers to expense_date = '2019-8-20'; status of event refers to event_status", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'", + "source_gold_sql": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'", + "source_gold_sql_sha256": "0ec7ade8e7995ccbb974f68ddb58b6ebeaf103c6072ef06c5cd677a03ca4a206", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1351", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nBrent Thomason is the full name; full name refers to first_name, last_name; major refers to major_name\n\nQuestion:\nWhat was Brent Thomason's major?", + "question": "What was Brent Thomason's major?", + "evidence": "Brent Thomason is the full name; full name refers to first_name, last_name; major refers to major_name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Brent' AND T1.last_name = 'Thomason'", + "source_gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Brent' AND T1.last_name = 'Thomason'", + "source_gold_sql_sha256": "7b71448a70ddbb6be09c14c22ba19921288699c616612c59522ca3617bc748b5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1352", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nBusiness' is a major name; wear medium size t-shirt refers to t_shirt_size = 'Medium'\n\nQuestion:\nFor all the club members from \"Business\" major, how many of them wear medium size t-shirt?", + "question": "For all the club members from \"Business\" major, how many of them wear medium size t-shirt?", + "evidence": "Business' is a major name; wear medium size t-shirt refers to t_shirt_size = 'Medium'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", + "source_gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", + "source_gold_sql_sha256": "bc5425863a56d04c9cab079f33be4e12464c7bc0b6bbcd6a60746bd98c7447be", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1356", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nPresident' is a position of Student Club\n\nQuestion:\nWhich department was the President of the club in?", + "question": "Which department was the President of the club in?", + "evidence": "President' is a position of Student Club", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'", + "source_gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'", + "source_gold_sql_sha256": "7deee45553383e36d83667c5b6690400c014e7af668db46a7de483d4e59d1212", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1357", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nConnor Hilton is the full name; full name refers to first_name, last_name; date the dues was paid refers to date_received where source = 'Dues';\n\nQuestion:\nState the date Connor Hilton paid his/her dues.", + "question": "State the date Connor Hilton paid his/her dues.", + "evidence": "Connor Hilton is the full name; full name refers to first_name, last_name; date the dues was paid refers to date_received where source = 'Dues';", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source = 'Dues'", + "source_gold_sql": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source = 'Dues'", + "source_gold_sql_sha256": "49ddcdce007e2334110a11f69b8281c0cf14bc0d76f583393ccf9a053bbf3618", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1359", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nbudget in Advertisement refer to category = 'Advertisement' in the budget table; DIVIDE(SUM(amount when event_name = 'Yearly Kickoff'), SUM(amount when event_name = 'October Meeting'))\n\nQuestion:\nHow many times was the budget in Advertisement for \"Yearly Kickoff\" meeting more than \"October Meeting\"?", + "question": "How many times was the budget in Advertisement for \"Yearly Kickoff\" meeting more than \"October Meeting\"?", + "evidence": "budget in Advertisement refer to category = 'Advertisement' in the budget table; DIVIDE(SUM(amount when event_name = 'Yearly Kickoff'), SUM(amount when event_name = 'October Meeting'))", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' AND T2.type = 'Meeting'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' AND T2.type = 'Meeting'", + "source_gold_sql_sha256": "fbe058687305af60b02bbf39023c79dc555c72d9cfc55bb12894fc933dfb86b1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1361", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\ntotal cost of the pizzas refers to SUM(cost) where expense_description = 'Pizza'\n\nQuestion:\nWhat is the total cost of the pizzas for all the events?", + "question": "What is the total cost of the pizzas for all the events?", + "evidence": "total cost of the pizzas refers to SUM(cost) where expense_description = 'Pizza'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", + "source_gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", + "source_gold_sql_sha256": "4374e3fd53d9887a22725b1c8e86465b5e060195e2024ba2df6c62588c6e11eb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1362", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nOrange County is the county name, Virginia is the state name\n\nQuestion:\nHow many cities are there in Orange County, Virginia?", + "question": "How many cities are there in Orange County, Virginia?", + "evidence": "Orange County is the county name, Virginia is the state name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(distinct city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", + "source_gold_sql": "SELECT COUNT(distinct city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", + "source_gold_sql_sha256": "7d7187c1070465166c4758022ac015fe0b3b4f3c120d2f7b3975a6d848a0abdd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1368", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nmajor in refers to major_name\n\nQuestion:\nWhat does the person with the phone number \"809-555-3360\" major in?", + "question": "What does the person with the phone number \"809-555-3360\" major in?", + "evidence": "major in refers to major_name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'", + "source_gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'", + "source_gold_sql_sha256": "31e61916b3ca6a78f01b815e455f1e9d8dad30a6c1b4546952a15b51c6f18ba3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1371", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nWomen's Soccer' is the event name;\n\nQuestion:\nHow many members attended the \"Women's Soccer\" event?", + "question": "How many members attended the \"Women's Soccer\" event?", + "evidence": "Women's Soccer' is the event name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", + "source_gold_sql": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", + "source_gold_sql_sha256": "95e9dab4c74ce592908824fd6685686c7d10024d821ceb9e83568e1e3922f740", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1375", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nlist all members means to list all the full name; full name refers to first_name, last_name;\n\nQuestion:\nList all the members of the \"School of Applied Sciences, Technology and Education\" department.", + "question": "List all the members of the \"School of Applied Sciences, Technology and Education\" department.", + "evidence": "list all members means to list all the full name; full name refers to first_name, last_name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'", + "source_gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'", + "source_gold_sql_sha256": "b457898fc92f4adb9e46812b72ef4dd2e6db64498edad6ccfc4794e882f04a17", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1376", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nclosed events refers to event_name where status = 'Closed'; highest spend-to budget ratio refers to MAX(DIVIDE(spent, amount))\n\nQuestion:\nAmong all the closed events, which event has the highest spend-to-budget ratio?", + "question": "Among all the closed events, which event has the highest spend-to-budget ratio?", + "evidence": "closed events refers to event_name where status = 'Closed'; highest spend-to budget ratio refers to MAX(DIVIDE(spent, amount))", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT e.event_name FROM event AS e JOIN budget AS b ON e.event_id = b.link_to_event WHERE e.status = 'Closed' GROUP BY e.event_id, e.event_name HAVING SUM(b.amount) > 0 AND SUM(b.spent) / SUM(b.amount) = ( SELECT MAX(ratio) FROM ( SELECT SUM(b2.spent) * 1.0 / SUM(b2.amount) AS ratio FROM budget AS b2 JOIN event AS e2 ON b2.link_to_event = e2.event_id WHERE e2.status = 'Closed' GROUP BY e2.event_id HAVING SUM(b2.amount) > 0 ) )", + "source_gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status = 'Closed' ORDER BY T1.spent / T1.amount DESC LIMIT 1", + "source_gold_sql_sha256": "1e8f7a6c75ac7eacb596b05bb5071369da94d3b2af5fe6a31db2b9427a85794d", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1378", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nhighest amount of budget spend refers to MAX(spent)\n\nQuestion:\nWhat is the highest amount of budget spend for an event?", + "question": "What is the highest amount of budget spend for an event?", + "evidence": "highest amount of budget spend refers to MAX(spent)", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT MAX(spent) FROM budget", + "source_gold_sql": "SELECT MAX(spent) FROM budget", + "source_gold_sql_sha256": "3a768be97b2a74398f7903e48cfb05687dfbb0fa0cfdf11e7b16f788c117f7ea", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1380", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\ntotal amount of money spent refers to SUM(spent); spent for food refers to category = 'Food'\n\nQuestion:\nWhat is the total amount of money spent for food?", + "question": "What is the total amount of money spent for food?", + "evidence": "total amount of money spent refers to SUM(spent); spent for food refers to category = 'Food'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT SUM(spent) FROM budget WHERE category = 'Food'", + "source_gold_sql": "SELECT SUM(spent) FROM budget WHERE category = 'Food'", + "source_gold_sql_sha256": "0b4fdcdc4ff652c256279c39304cbf4ed30bf91895670a701cf0dbce0f614190", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1381", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nname of students means the full name; full name refers to first_name, last_name; attended more than 7 events refers to COUNT(link_to_event) > 7\n\nQuestion:\nList the name of students that have attended more than 7 events.", + "question": "List the name of students that have attended more than 7 events.", + "evidence": "name of students means the full name; full name refers to first_name, last_name; attended more than 7 events refers to COUNT(link_to_event) > 7", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7", + "source_gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7", + "source_gold_sql_sha256": "867eb1a8019e1d5d81a3af41802cd986c04ca360bba378ed5caab9cac88b8c90", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1387", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nname of students means the full name; full name refers to first_name, last_name;'Yearly Kickoff' is an event name;\n\nQuestion:\nWhich student has been entrusted to manage the budget for the Yearly Kickoff?", + "question": "Which student has been entrusted to manage the budget for the Yearly Kickoff?", + "evidence": "name of students means the full name; full name refers to first_name, last_name;'Yearly Kickoff' is an event name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T4.first_name, T4.last_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff' AND T4.position = 'Treasurer';", + "source_gold_sql": "SELECT T4.first_name, T4.last_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff'", + "source_gold_sql_sha256": "f9b3c47d5637b923c16cc7b7b601a906c1d908aca9a6e0e366f8bdfcb02de3d6", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1389", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nevent refers to event_name; lowest cost means MIN(cost)\n\nQuestion:\nWhich event has the lowest cost? Break ties by name in alphabetical order.", + "question": "Which event has the lowest cost? Break ties by name in alphabetical order.", + "evidence": "event refers to event_name; lowest cost means MIN(cost)", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget ORDER BY T3.cost, T1.event_name LIMIT 1", + "source_gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget ORDER BY T3.cost, T1.event_name LIMIT 1", + "source_gold_sql_sha256": "140edfa4d20c35e61da3ed112a4a35af55d4bc267a33a1232fe937f3387d7e81", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1390", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\npercentage = DIVIDE(SUM(cost where event_name = 'Yearly Kickoff'), SUM(cost)) * 100\n\nQuestion:\nBased on the total cost for all event, what is the percentage of cost for Yearly Kickoff event?", + "question": "Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event?", + "evidence": "percentage = DIVIDE(SUM(cost where event_name = 'Yearly Kickoff'), SUM(cost)) * 100", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget", + "source_gold_sql_sha256": "8b040f1bdfbb4d2f32d8e3201b41d79951867aef3152fd2ac79e45aaf9f76be3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1392", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\ntop source funds refers to MAX(source); September 2019 means date_received BETWEEN '2019-09-01' and '2019-09-30'\n\nQuestion:\nIndicate the top source of funds received in September 2019 based on their amount.", + "question": "Indicate the top source of funds received in September 2019 based on their amount.", + "evidence": "top source funds refers to MAX(source); September 2019 means date_received BETWEEN '2019-09-01' and '2019-09-30'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1", + "source_gold_sql": "SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1", + "source_gold_sql_sha256": "31fa17b55c06786250e0e02c2bc864aa1205b23699a43f93e127e802defce5c4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1394", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nPhysics Teaching' is the major_name;\n\nQuestion:\nHow many members of the Student_Club have major in 'Physics Teaching'?", + "question": "How many members of the Student_Club have major in 'Physics Teaching'?", + "evidence": "Physics Teaching' is the major_name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'", + "source_gold_sql": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'", + "source_gold_sql_sha256": "5ce884481dce118934ae95329f690492692fb91a212bf6b3f1a3f70558405612", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1398", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nName of event refers to event_name; highest amount spent on advertisement refers to MAX(spent) where category = 'Advertisement'\n\nQuestion:\nName the event with the highest amount spent on advertisement.", + "question": "Name the event with the highest amount spent on advertisement.", + "evidence": "Name of event refers to event_name; highest amount spent on advertisement refers to MAX(spent) where category = 'Advertisement'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC LIMIT 1", + "source_gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC LIMIT 1", + "source_gold_sql_sha256": "2a4ff0fcf2ac7b13ab2bf0b9fc6cf6550d5c0cf57f0f60f64a4af7e92285cec2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1399", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nMaya Mclean is the full name; full name refers to first_name, last_name; 'Women's Soccer' is an event_name\n\nQuestion:\nDid Maya Mclean attend the 'Women's Soccer' event? YES or NO.", + "question": "Did Maya Mclean attend the 'Women's Soccer' event? YES or NO.", + "evidence": "Maya Mclean is the full name; full name refers to first_name, last_name; 'Women's Soccer' is an event_name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT CASE WHEN COUNT(*) > 0 THEN 'YES' ELSE 'NO' END FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T1.first_name = 'Maya' AND T1.last_name = 'Mclean' AND T3.event_name = 'Women''s Soccer'", + "source_gold_sql": "SELECT CASE WHEN COUNT(*) > 0 THEN 'YES' ELSE 'NO' END FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T1.first_name = 'Maya' AND T1.last_name = 'Mclean' AND T3.event_name = 'Women''s Soccer'", + "source_gold_sql_sha256": "4192ae04f5e7b0d564168efc90bed107dd6e9cefb3bb31f48c782f94e5e72564", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1401", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nPosters' is the expense description; 'September Speaker' is an event name\n\nQuestion:\nIndicate the cost of posters for 'September Speaker' event.", + "question": "Indicate the cost of posters for 'September Speaker' event.", + "evidence": "Posters' is the expense description; 'September Speaker' is an event name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'", + "source_gold_sql": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'", + "source_gold_sql_sha256": "76445ab32ad9a1f9a57010aab0db6607d69b5dee36cda0665c1ca7eef3623279", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1403", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nclosed events refers to event_name where status = 'Closed'; exceed the budget the most refers to MIN(remaining) where remaining < 0\n\nQuestion:\nIndicate the name of the closed event whose cost has exceeded the budget the most.", + "question": "Indicate the name of the closed event whose cost has exceeded the budget the most.", + "evidence": "closed events refers to event_name where status = 'Closed'; exceed the budget the most refers to MIN(remaining) where remaining < 0", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1", + "source_gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1", + "source_gold_sql_sha256": "555e2cce73ce17ba0120d2b6cc3c9553e2482a15ea33c220742718aa4229e3c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1404", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\ntotal value refers to SUM(cost); 'October Meeting' is an event name;\n\nQuestion:\nIdentify the category of expenses and their total value approved for 'October Meeting' event.", + "question": "Identify the category of expenses and their total value approved for 'October Meeting' event.", + "evidence": "total value refers to SUM(cost); 'October Meeting' is an event name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT\n T2.`category`,\n SUM(T3.`cost`) AS total_approved_value\nFROM `event` AS T1\nJOIN `budget` AS T2 ON T1.`event_id` = T2.`link_to_event`\nJOIN `expense` AS T3 ON T2.`budget_id` = T3.`link_to_budget`\nWHERE T1.`event_name` = 'October Meeting'\n AND T3.`approved` = 'true' \nGROUP BY T2.`category`;", + "source_gold_sql": "SELECT\n T2.`category`,\n SUM(T3.`cost`) AS total_approved_value\nFROM `event` AS T1\nJOIN `budget` AS T2 ON T1.`event_id` = T2.`link_to_event`\nJOIN `expense` AS T3 ON T2.`budget_id` = T3.`link_to_budget`\nWHERE T1.`event_name` = 'October Meeting'\n AND T3.`approved` = 'true' \nGROUP BY T2.`category`;", + "source_gold_sql_sha256": "e78932b58c17059419ff5319c04eda2346f26f788e53449047e1fa0ee646db21", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1405", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nApril Speaker' is an event name; amount budgeted refers to SUM(amount); budget categories refers to category\n\nQuestion:\nList all the budgeted categories for the 'April Speaker' event in an ascending order, along with their amount budgeted.", + "question": "List all the budgeted categories for the 'April Speaker' event in an ascending order, along with their amount budgeted.", + "evidence": "April Speaker' is an event name; amount budgeted refers to SUM(amount); budget categories refers to category", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC", + "source_gold_sql": "SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC", + "source_gold_sql_sha256": "55d3e6f25d66590dbad5f736ab163e86c802c543f34a2f90135653aa87e28e15", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1409", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\ntotal expense refers SUM(cost) where expense_date = '2019-08-20'\n\nQuestion:\nMention the total expense used on 8/20/2019.", + "question": "Mention the total expense used on 8/20/2019.", + "evidence": "total expense refers SUM(cost) where expense_date = '2019-08-20'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'", + "source_gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'", + "source_gold_sql_sha256": "42094969fb1d07e2cd38ef5a936bfc79e125bd82788602f4f1b05d5f622bbcba", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1410", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last name\n\nQuestion:\nList out the full name and total cost that member id \"rec4BLdZHS2Blfp4v\" incurred?", + "question": "List out the full name and total cost that member id \"rec4BLdZHS2Blfp4v\" incurred?", + "evidence": "full name refers to first_name, last name", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.member_id = 'rec4BLdZHS2Blfp4v'", + "source_gold_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.member_id = 'rec4BLdZHS2Blfp4v'", + "source_gold_sql_sha256": "7bb00906c6249b70754161657943f873a57de120ce27ad4b9b5c9a357de2cbc3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1411", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nkind of expenses refers to expense_description; Sacha Harrison is the full name; full name refers to first_name, last_name;\n\nQuestion:\nState what kind of expenses that Sacha Harrison incurred?", + "question": "State what kind of expenses that Sacha Harrison incurred?", + "evidence": "kind of expenses refers to expense_description; Sacha Harrison is the full name; full name refers to first_name, last_name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'", + "source_gold_sql": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'", + "source_gold_sql_sha256": "60f5c100faa8d5c83dc0e3b5bbfe967f80e0d9d74ad767e77234178ee7f4b6d5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1422", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nMU 215' is the location of event;\n\nQuestion:\nState the category of events were held at MU 215.", + "question": "State the category of events were held at MU 215.", + "evidence": "MU 215' is the location of event;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT `type`\nFROM `event`\nWHERE `location` = 'MU 215';", + "source_gold_sql": "SELECT `type`\nFROM `event`\nWHERE `location` = 'MU 215';", + "source_gold_sql_sha256": "bf1bb0426154a8f00db133aae153c8a2e3d61139ae1280cc4ac1e685a8f1ba9e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1426", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nEnvironmental Engineering' is the major_name;\n\nQuestion:\nList the last name of members with a major in environmental engineering and include its department and college name.", + "question": "List the last name of members with a major in environmental engineering and include its department and college name.", + "evidence": "Environmental Engineering' is the major_name;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'", + "source_gold_sql": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'", + "source_gold_sql_sha256": "d64d034eaa11a9079839b1ae661de8bd09f7a8b60f369b1fdf81570719c0ffa1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1427", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nbudget category refers to category; events located at refers to location; type = 'Guest Speaker'; 0 budget spent refers to spent = 0;\n\nQuestion:\nWhat are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?", + "question": "What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?", + "evidence": "budget category refers to category; events located at refers to location; type = 'Guest Speaker'; 0 budget spent refers to spent = 0;", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'", + "source_gold_sql": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'", + "source_gold_sql_sha256": "768c6e73c83ad2f6420ee1bd2c5417a7e582922fa5cfcf0d821865b0f5c11849", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1432", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nt_shirt_size = 'Medium' where position = 'Member'; percentage = DIVIDE(COUNT(amount = 50), COUNT(member_id)) * 100\n\nQuestion:\nAmong the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club?", + "question": "Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club?", + "evidence": "t_shirt_size = 'Medium' where position = 'Member'; percentage = DIVIDE(COUNT(amount = 50), COUNT(member_id)) * 100", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'", + "source_gold_sql_sha256": "c131e1f1e41c89cb8add1e168b9dacddae3c5b0564c2291e77c3ce6f611ce546", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1435", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nname of events refers event_name; game event that was closed refers to type = 'Game' where status = 'Closed'; event_date BETWEEN '2019-03-15' and '2020-03-20';\n\nQuestion:\nList the names of closed event as \"game\" that was closed from 3/15/2019 to 3/20/2020.", + "question": "List the names of closed event as \"game\" that was closed from 3/15/2019 to 3/20/2020.", + "evidence": "name of events refers event_name; game event that was closed refers to type = 'Game' where status = 'Closed'; event_date BETWEEN '2019-03-15' and '2020-03-20';", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'", + "source_gold_sql": "SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'", + "source_gold_sql_sha256": "5e02a5a52423b9af81c5fb6f199eac68c76243331e41764b925a737617ff1503", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1457", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; contact number refers to phone; had spent more than average on each expense refers to cost > AVG(cost)\n\nQuestion:\nGive the full name and contact number of members who had to spend more than average on each expense.", + "question": "Give the full name and contact number of members who had to spend more than average on each expense.", + "evidence": "full name refers to first_name, last_name; contact number refers to phone; had spent more than average on each expense refers to cost > AVG(cost)", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT DISTINCT T3.first_name, T3.last_name, T3.phone FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member WHERE T1.cost > ( SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member )", + "source_gold_sql": "SELECT DISTINCT T3.first_name, T3.last_name, T3.phone FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member WHERE T1.cost > ( SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member )", + "source_gold_sql_sha256": "c3f8adb0af21ee9274c31fca148b281e72d7b8b4812acc8ae017918e952a2397", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1460", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last name; spent money for refers expense description; expense_description = 'Water, Veggie tray, supplies'\n\nQuestion:\nWrite the full name of the member who spent money for water, veggie tray and supplies and include the cost of it.", + "question": "Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it.", + "evidence": "full name refers to first_name, last name; spent money for refers expense description; expense_description = 'Water, Veggie tray, supplies'", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description = 'Water, Veggie tray, supplies'", + "source_gold_sql": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description = 'Water, Veggie tray, supplies'", + "source_gold_sql_sha256": "ed9357714418706f2ba95b0281b1e2b7b7bb8b0b5af6f025329cb9a7b147f45a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1464", + "domain": "student_club", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE income (\n `income_id` text, -- income id. A unique identifier for each record of income.\n `date_received` text, -- date received. the date that the fund received.\n `amount` integer, -- amount of funds. the unit is dollar.\n `source` text, -- A value indicating where the funds come from such as dues, or the annual university allocation.\n `notes` text, -- A free-text value giving any needed details about the receipt of funds.\n `link_to_member` text, -- link to member.\n primary key (income_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE budget (\n `budget_id` text, -- budget id. A unique identifier for the budget entry.\n `category` text, -- The area for which the amount is budgeted, such as, advertisement, food, parking.\n `spent` real, -- The total amount spent in the budgeted category for an event. the unit is dollar. This is summarized from the Expense table.\n `remaining` real, -- A value calculated as the amount budgeted minus the amount spent. the unit is dollar. If the remaining < 0, it means that the cost has exceeded the budget.\n `amount` integer, -- The amount budgeted for the specified category and event. the unit is dollar. some computation like: amount = spent + remaining.\n `event_status` text, -- event status. the status of the event. Closed / Open/ Planning. • Closed: It means that the event is closed. The spent and the remaining won't change anymore. • Open: It means that the event is already opened. The spent and the remaining will change with new expenses. • Planning: The event is not started yet but is planning. The spent and the remaining won't change at this stage.\n `link_to_event` text, -- link to event. The unique identifier of the event to which the budget line applies. References the Event table.\n primary key (budget_id),\n foreign key (link_to_event) references event(event_id)\n);\n\nCREATE TABLE zip_code (\n `zip_code` integer, -- zip code. The ZIP code itself. A five-digit number identifying a US post office.\n `type` text, -- The kind of ZIP code. � Standard: the normal codes with which most people are familiar. � PO Box: zip codes have post office boxes. � Unique: zip codes that are assigned to individual organizations.\n `city` text, -- The city to which the ZIP pertains.\n `county` text, -- The county to which the ZIP pertains.\n `state` text, -- The name of the state to which the ZIP pertains.\n `short_state` text, -- short state. The abbreviation of the state to which the ZIP pertains.\n primary key (zip_code)\n);\n\nCREATE TABLE expense (\n `expense_id` text, -- expense id. unique id of income.\n `expense_description` text, -- expense description. A textual description of what the money was spend for.\n `expense_date` text, -- expense date. The date the expense was incurred. e.g. YYYY-MM-DD.\n `cost` real, -- The dollar amount of the expense. the unit is dollar.\n `approved` text, -- A true or false value indicating if the expense was approved. true/ false.\n `link_to_member` text, -- link to member. The member who incurred the expense.\n `link_to_budget` text, -- link to budget. The unique identifier of the record in the Budget table that indicates the expected total expenditure for a given category and event. References the Budget table.\n primary key (expense_id),\n foreign key (link_to_budget) references budget(budget_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE member (\n `member_id` text, -- member id. unique id of member.\n `first_name` text, -- first name. member's first name.\n `last_name` text, -- last name. member's last name. full name is first_name + last_name. e.g. A member's first name is Angela and last name is Sanders. Thus, his/her full name is Angela Sanders.\n `email` text, -- member's email.\n `position` text, -- The position the member holds in the club.\n `t_shirt_size` text, -- The size of tee shirt that member wants when shirts are ordered. usually the student ordered t-shirt with lager size has bigger body shape.\n `phone` text, -- The best telephone at which to contact the member.\n `zip` integer, -- the zip code of the member's hometown.\n `link_to_major` text, -- link to major. The unique identifier of the major of the member. References the Major table.\n primary key (member_id),\n foreign key (link_to_major) references major(major_id),\n foreign key (zip) references zip_code(zip_code)\n);\n\nCREATE TABLE attendance (\n `link_to_event` text, -- link to event. The unique identifier of the event which was attended. References the Event table.\n `link_to_member` text, -- link to member. The unique identifier of the member who attended the event. References the Member table.\n primary key (link_to_event, link_to_member),\n foreign key (link_to_event) references event(event_id),\n foreign key (link_to_member) references member(member_id)\n);\n\nCREATE TABLE event (\n `event_id` text, -- event id. A unique identifier for the event.\n `event_name` text, -- event name.\n `event_date` text, -- event date. The date the event took place or is scheduled to take place. e.g. 2020-03-10T12:00:00.\n `type` text, -- The kind of event, such as game, social, election.\n `notes` text, -- A free text field for any notes about the event.\n `location` text, -- Address where the event was held or is to be held or the name of such a location.\n `status` text, -- One of three values indicating if the event is in planning, is opened, or is closed. Open/ Closed/ Planning.\n primary key (event_id)\n);\n\nCREATE TABLE major (\n `major_id` text, -- major id. A unique identifier for each major.\n `major_name` text, -- major name.\n `department` text, -- The name of the department that offers the major.\n `college` text, -- The name college that houses the department that offers the major.\n primary key (major_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name, amount of funds received refers to amount, received funds on date refers to date_received\n\nQuestion:\nWrite the full names of students who received funds on the date of 9/9/2019 and include the amount received.", + "question": "Write the full names of students who received funds on the date of 9/9/2019 and include the amount received.", + "evidence": "full name refers to first_name, last_name, amount of funds received refers to amount, received funds on date refers to date_received", + "db_id": "student_club", + "database_path": "databases/student_club.sqlite", + "gold_sql": "SELECT M.`first_name`, M.`last_name`, I.`amount`\nFROM `Income` I\nJOIN `Member` M ON M.`member_id` = I.`link_to_member`\nWHERE I.`date_received` = '2019-09-09';", + "source_gold_sql": "SELECT M.`first_name`, M.`last_name`, I.`amount`\nFROM `Income` I\nJOIN `Member` M ON M.`member_id` = I.`link_to_member`\nWHERE I.`date_received` = '2019-09-09';", + "source_gold_sql_sha256": "8d8cb8c450d07d9e9ec41a5bf8cb118e22347c56f89d6fce2eb7a57cad5d2722", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1149", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nmale refers to SEX = 'M'; in-patient refers to Admission = '+'; outpatient refers to Admission = '-'; percentage = DIVIDE(COUNT(ID) where SEX = 'M' and Admission = '+', COUNT(ID) where SEX  = 'M' and Admission = '-')\n\nQuestion:\nAre there more in-patient or outpatient who were male? What is the deviation in percentage?", + "question": "Are there more in-patient or outpatient who were male? What is the deviation in percentage?", + "evidence": "male refers to SEX = 'M'; in-patient refers to Admission = '+'; outpatient refers to Admission = '-'; percentage = DIVIDE(COUNT(ID) where SEX = 'M' and Admission = '+', COUNT(ID) where SEX  = 'M' and Admission = '-')", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "WITH male_counts AS ( SELECT SUM(CASE WHEN p.SEX = 'M' AND p.Admission = '+' THEN 1 ELSE 0 END) AS in_count, SUM(CASE WHEN p.SEX = 'M' AND p.Admission = '-' THEN 1 ELSE 0 END) AS out_count FROM Patient p ) SELECT CASE WHEN in_count > out_count THEN 'in-patient' ELSE 'outpatient' END, CAST(in_count AS FLOAT) * 100 / out_count AS percentage FROM male_counts;", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE SEX = 'M'", + "source_gold_sql_sha256": "0d4204bc03330e4fad9c5679309e19d1b2ae321d2f1e3d66a7eb9b7fa25c0d39", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1150", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nfemale refers to Sex = 'F'; patient who were born after 1930 refers to year(Birthday) > '1930'; calculation = DIVIDE(COUNT(ID) where year(Birthday) > '1930' and SEX = 'F'), (COUNT(ID) where SEX = 'F')\n\nQuestion:\nWhat is the percentage of female patient were born after 1930?", + "question": "What is the percentage of female patient were born after 1930?", + "evidence": "female refers to Sex = 'F'; patient who were born after 1930 refers to year(Birthday) > '1930'; calculation = DIVIDE(COUNT(ID) where year(Birthday) > '1930' and SEX = 'F'), (COUNT(ID) where SEX = 'F')", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Birthday) > '1930' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE SEX = 'F'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Birthday) > '1930' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE SEX = 'F'", + "source_gold_sql_sha256": "e741008b5f86bf95c8d30389ab877543c6aae3bf4848e3067ba5f6d2fe9436e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1152", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nSLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')\n\nQuestion:\nWhat is the ratio of inpatient to outpatient followed up treatment among all the 'SLE' diagnosed patient?", + "question": "What is the ratio of inpatient to outpatient followed up treatment among all the 'SLE' diagnosed patient?", + "evidence": "SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'SLE'", + "source_gold_sql": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'SLE'", + "source_gold_sql_sha256": "581c56bcc8e8400df6516c3a5b4b5945cdc2fc78e315dbdce165580aae72c900", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1153", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\n30609' is the Patient ID; disease means Diagnosis\n\nQuestion:\nWhat is the disease patient '30609' diagnosed with. List all the date of laboratory tests done for this patient.", + "question": "What is the disease patient '30609' diagnosed with. List all the date of laboratory tests done for this patient.", + "evidence": "30609' is the Patient ID; disease means Diagnosis", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT T1.Diagnosis, T2.Date FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 30609", + "source_gold_sql": "SELECT T1.Diagnosis, T2.Date FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 30609", + "source_gold_sql_sha256": "c3e6bc2cdb79bfc3bef68b05201f9f359209c33fddb9562a4d09bd078faec165", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1155", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nLDH beyond normal range refers to LDH > '500';\n\nQuestion:\nList the patient ID, sex and birthday of patient with LDH beyond normal range.", + "question": "List the patient ID, sex and birthday of patient with LDH beyond normal range.", + "evidence": "LDH beyond normal range refers to LDH > '500';", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH > 500", + "source_gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH > 500", + "source_gold_sql_sha256": "ef67c08dafe0dd83967259d8c896bccf7d5cd7fa29cd465da5f9e2678011a30d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1156", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nage refers to SUBTRACT(year(current_timestamp), year(Birthday)); positive degree of coagulation refers to RVVT = '+';\n\nQuestion:\nState the ID and age of patient with positive degree of coagulation.", + "question": "State the ID and age of patient with positive degree of coagulation.", + "evidence": "age refers to SUBTRACT(year(current_timestamp), year(Birthday)); positive degree of coagulation refers to RVVT = '+';", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.RVVT = '+'", + "source_gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.RVVT = '+'", + "source_gold_sql_sha256": "9b8fa6206d8e16ceb1ef09c76c112b35889c772479bf1080d89eb567cb0ca525", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1157", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nsevere degree of thrombosis refers to thrombosis = 2; disease refers to diagnosis;\n\nQuestion:\nFor patients with severe degree of thrombosis, list their ID, sex and disease the patient is diagnosed with.", + "question": "For patients with severe degree of thrombosis, list their ID, sex and disease the patient is diagnosed with.", + "evidence": "severe degree of thrombosis refers to thrombosis = 2; disease refers to diagnosis;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Thrombosis = 2", + "source_gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Thrombosis = 2", + "source_gold_sql_sha256": "13e005392397231ec87c5f2eec01a2c0ca9255e690d6852d0e3f38c2d369ecc1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1162", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nfemale refers to sex = 'F'; came at the hospital in 1997 refers to year(Description) = '1997'; immediately followed at the outpatient clinic refers to Admission = '-'\n\nQuestion:\nHow many female patients who came at the hospital in 1997 was immediately followed at the outpatient clinic?", + "question": "How many female patients who came at the hospital in 1997 was immediately followed at the outpatient clinic?", + "evidence": "female refers to sex = 'F'; came at the hospital in 1997 refers to year(Description) = '1997'; immediately followed at the outpatient clinic refers to Admission = '-'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(*) FROM Patient WHERE STRFTIME('%Y', Description) = '1997' AND SEX = 'F' AND Admission = '-'", + "source_gold_sql": "SELECT COUNT(*) FROM Patient WHERE STRFTIME('%Y', Description) = '1997' AND SEX = 'F' AND Admission = '-'", + "source_gold_sql_sha256": "a7a4275bdd54e6c3e56a27a85ed8790f748909bf1a61a447973d5de1701bcdf9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1164", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nthe most serious thrombosis refers to Thrombosis = '1' (the most severe one); women refers to sex = 'F'\n\nQuestion:\nHow many of the patients with the most serious thrombosis cases examined in 1997 are women?", + "question": "How many of the patients with the most serious thrombosis cases examined in 1997 are women?", + "evidence": "the most serious thrombosis refers to Thrombosis = '1' (the most severe one); women refers to sex = 'F'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID)\nFROM `Patient` AS T1\nJOIN `Examination` AS T2 ON T1.ID = T2.ID\nWHERE T1.`SEX` = 'F'\n AND STRFTIME('%Y', T2.`Examination Date`) = '1997'\n AND T2.`Thrombosis` = 1;", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID)\nFROM `Patient` AS T1\nJOIN `Examination` AS T2 ON T1.ID = T2.ID\nWHERE T1.`SEX` = 'F'\n AND STRFTIME('%Y', T2.`Examination Date`) = '1997'\n AND T2.`Thrombosis` = 1;", + "source_gold_sql_sha256": "5556df31cd23f0626bb70e5e1f00341ae92421e1ba963c6708130a8377732011", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1166", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nThe larger the birthday value, the younger the person is, and vice versa; symptoms observed refers to the symptoms is not NULL\n\nQuestion:\nWhat are the symptoms observed by the youngest patient to ever did a medical examination? Identify the patient diagnosis.", + "question": "What are the symptoms observed by the youngest patient to ever did a medical examination? Identify the patient diagnosis.", + "evidence": "The larger the birthday value, the younger the person is, and vice versa; symptoms observed refers to the symptoms is not NULL", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT e.Symptoms, p.Diagnosis FROM Patient AS p INNER JOIN Examination AS e ON p.ID = e.ID WHERE p.Birthday = ( SELECT MAX(p2.Birthday) FROM Patient AS p2 INNER JOIN Examination AS e2 ON p2.ID = e2.ID ) AND NOT e.Symptoms IS NULL UNION SELECT NULL AS Symptoms, p.Diagnosis FROM Patient AS p WHERE p.ID = (SELECT p2.ID FROM Patient AS p2 INNER JOIN Examination AS e2 ON p2.ID = e2.ID WHERE p2.Birthday = (SELECT MAX(p3.Birthday) FROM Patient AS p3 INNER JOIN Examination AS e3 ON p3.ID = e3.ID ) ) AND NOT EXISTS( SELECT 1 FROM Examination AS e WHERE e.ID = p.ID AND NOT e.Symptoms IS NULL )", + "source_gold_sql": "SELECT T2.Symptoms, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Symptoms IS NOT NULL ORDER BY T1.Birthday DESC LIMIT 1", + "source_gold_sql_sha256": "10512e7246f229ce59533b59a453732f0f07920a2a07aa88030687f1e468c91e", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1168", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nThe larger the birthday value, the younger the person is, and vice versa; 'SJS' refers to Patient.Diagnosis; (SUBTRACT(year(`First Date`)), year(Birthday)); age of the patients when they initially arrived at the hospital refers to year(Birthday)\n\nQuestion:\nFor the oldest SJS patient, on what date was their medical laboratory work last completed, and what age was the patient when they initially arrived at the hospital?", + "question": "For the oldest SJS patient, on what date was their medical laboratory work last completed, and what age was the patient when they initially arrived at the hospital?", + "evidence": "The larger the birthday value, the younger the person is, and vice versa; 'SJS' refers to Patient.Diagnosis; (SUBTRACT(year(`First Date`)), year(Birthday)); age of the patients when they initially arrived at the hospital refers to year(Birthday)", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT T1.Date, STRFTIME('%Y', T2.\"First Date\") - STRFTIME('%Y', T2.Birthday) FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T2.Diagnosis = 'SJS' AND T2.Birthday IS NOT NULL ORDER BY T2.Birthday ASC, T1.Date DESC LIMIT 1", + "source_gold_sql": "SELECT T1.Date, STRFTIME('%Y', T2.\"First Date\") - STRFTIME('%Y', T2.Birthday) FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T2.Diagnosis = 'SJS' AND T2.Birthday IS NOT NULL ORDER BY T2.Birthday ASC, T1.Date DESC LIMIT 1", + "source_gold_sql_sha256": "8990a1a1148e90bba72d3c1dda248863735722efcb35263200d1447454ee01a6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1169", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nmale refers to SEX = 'M'; female refers to SEX = 'F'; abnormal uric acid refers to UA < = '8.0' where SEX = 'M', UA < = '6.5' where SEX = 'F'; calculation = DIVIDE(SUM(UA <= '8.0' and SEX = 'M'), SUM(UA <= '6.5 and SEX = 'F'))\n\nQuestion:\nWhat is the ratio of male to female patients among all those with abnormal uric acid counts?", + "question": "What is the ratio of male to female patients among all those with abnormal uric acid counts?", + "evidence": "male refers to SEX = 'M'; female refers to SEX = 'F'; abnormal uric acid refers to UA < = '8.0' where SEX = 'M', UA < = '6.5' where SEX = 'F'; calculation = DIVIDE(SUM(UA <= '8.0' and SEX = 'M'), SUM(UA <= '6.5 and SEX = 'F'))", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.UA <= 8.0 AND T1.SEX = 'M' THEN T1.ID ELSE NULL END) AS REAL) / COUNT(DISTINCT CASE WHEN T2.UA <= 6.5 AND T1.SEX = 'F' THEN T1.ID ELSE NULL END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.UA <= 8.0 AND T1.SEX = 'M' THEN T1.ID ELSE NULL END) AS REAL) / COUNT(DISTINCT CASE WHEN T2.UA <= 6.5 AND T1.SEX = 'F' THEN T1.ID ELSE NULL END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", + "source_gold_sql_sha256": "77e282ea507f56e57ebf9e58344c9e4c303234ccb808391c585bdb2bc3a3eb64", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1171", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nunderage patients refers to year(\"Examination Date\") - year(Birthday) < 18; three-year period from 1990 to 1993 refers to year(\"Examination Date\") between '1990' and '1993'\n\nQuestion:\nHow many patients were under age when examined during the course of the three-year period from 1990 to 1993?", + "question": "How many patients were under age when examined during the course of the three-year period from 1990 to 1993?", + "evidence": "underage patients refers to year(\"Examination Date\") - year(Birthday) < 18; three-year period from 1990 to 1993 refers to year(\"Examination Date\") between '1990' and '1993'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.\"Examination Date\") BETWEEN '1990' AND '1993' AND STRFTIME('%Y', T2.\"Examination Date\") - STRFTIME('%Y', T1.Birthday) < 18", + "source_gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.\"Examination Date\") BETWEEN '1990' AND '1993' AND STRFTIME('%Y', T2.\"Examination Date\") - STRFTIME('%Y', T1.Birthday) < 18", + "source_gold_sql_sha256": "d7ce521875ad80603ec253b3583676d7920e347e380b397b3c9b00984f8b1c3a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1175", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nHow old the patient refers to SUBTRACT(year(\"Examination Date\"), year(Birthday)); the highest hemoglobin count refers to MAX(HGB)\n\nQuestion:\nHow old was the patient who had the highest hemoglobin count at the time of the examination, and what is the doctor's diagnosis?", + "question": "How old was the patient who had the highest hemoglobin count at the time of the examination, and what is the doctor's diagnosis?", + "evidence": "How old the patient refers to SUBTRACT(year(\"Examination Date\"), year(Birthday)); the highest hemoglobin count refers to MAX(HGB)", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT STRFTIME('%Y', T2.Date) - STRFTIME('%Y', T1.Birthday), T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID ORDER BY T2.HGB DESC LIMIT 1", + "source_gold_sql": "SELECT STRFTIME('%Y', T2.Date) - STRFTIME('%Y', T1.Birthday), T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID ORDER BY T2.HGB DESC LIMIT 1", + "source_gold_sql_sha256": "b56ad57a21a940945b4f9ecbb1c9dd3ddbde4170e67b9383396f4ca222b103e1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1179", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\ndiagnosed with SLE refers to Diagnosis = 'SLE'; 1994/2/19 refers to Description = '1994-02-19'; anti-Cardiolipin refers to aCL IgM; 1993/11/12 refers to Examination Date = '1993/11/12'\n\nQuestion:\nFor the patient who was diagnosed with SLE on 1994/2/19, what was his/her anti-Cardiolipin antibody concentration status on 1993/11/12?", + "question": "For the patient who was diagnosed with SLE on 1994/2/19, what was his/her anti-Cardiolipin antibody concentration status on 1993/11/12?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; 1994/2/19 refers to Description = '1994-02-19'; anti-Cardiolipin refers to aCL IgM; 1993/11/12 refers to Examination Date = '1993/11/12'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT \"aCL IgM\" FROM Examination WHERE ID IN (SELECT ID FROM Patient WHERE Diagnosis = 'SLE' AND Description = '1994-02-19') AND \"Examination Date\" = '1993-11-12'", + "source_gold_sql": "SELECT \"aCL IgM\" FROM Examination WHERE ID IN (SELECT ID FROM Patient WHERE Diagnosis = 'SLE' AND Description = '1994-02-19') AND \"Examination Date\" = '1993-11-12'", + "source_gold_sql_sha256": "5725b318973993886e37d202b092ea3fbf8e21fc8bc00117171649fee57f6638", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1185", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nborn on 1959/2/18 refers to Birthday = '1959-02-18'; calculation = DIVISION(SUBTRACT(SUM(Birthday = '1959-02-18' and Date like '1981-11-%' THEN `T-CHO`), SUM(Birthday = '1959-02-18' and Date like '1981-12-%' THEN `T-CHO`)), SUM(Birthday = '1959-02-18' and Date like '1981-11-%' THEN `T-CHO`))\n\nQuestion:\nFor the patient who was born on 1959/2/18, what is the decrease rate for his/her total cholesterol from November to December in 1981?", + "question": "For the patient who was born on 1959/2/18, what is the decrease rate for his/her total cholesterol from November to December in 1981?", + "evidence": "born on 1959/2/18 refers to Birthday = '1959-02-18'; calculation = DIVISION(SUBTRACT(SUM(Birthday = '1959-02-18' and Date like '1981-11-%' THEN `T-CHO`), SUM(Birthday = '1959-02-18' and Date like '1981-12-%' THEN `T-CHO`)), SUM(Birthday = '1959-02-18' and Date like '1981-11-%' THEN `T-CHO`))", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CAST((SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.\"T-CHO\" ELSE 0 END) - SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.\"T-CHO\" ELSE 0 END)) AS REAL) / SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.\"T-CHO\" ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Birthday = '1959-02-18'", + "source_gold_sql": "SELECT CAST((SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.\"T-CHO\" ELSE 0 END) - SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.\"T-CHO\" ELSE 0 END)) AS REAL) / SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.\"T-CHO\" ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Birthday = '1959-02-18'", + "source_gold_sql_sha256": "9c294bf8f403b25687c8798aedf91c0b8d203bbd219ff200cb5351423876e1fa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1187", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nexamined between 1987/7/6 and 1996/1/31 refers to Date BETWEEN '1987-07-06' AND '1996-01-31'; GPT level greater than 30 refers to GPT > 30; ALB level less than 4 ALB < 4\n\nQuestion:\nHow many patients who were examined between 1987/7/6 and 1996/1/31 had a GPT level greater than 30 and an ALB level less than 4? List them by their ID.", + "question": "How many patients who were examined between 1987/7/6 and 1996/1/31 had a GPT level greater than 30 and an ALB level less than 4? List them by their ID.", + "evidence": "examined between 1987/7/6 and 1996/1/31 refers to Date BETWEEN '1987-07-06' AND '1996-01-31'; GPT level greater than 30 refers to GPT > 30; ALB level less than 4 ALB < 4", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT ID FROM Laboratory WHERE Date BETWEEN '1987-07-06' AND '1996-01-31' AND GPT > 30 AND ALB < 4", + "source_gold_sql": "SELECT DISTINCT ID FROM Laboratory WHERE Date BETWEEN '1987-07-06' AND '1996-01-31' AND GPT > 30 AND ALB < 4", + "source_gold_sql_sha256": "48b5d325a13836d95defc98d6b862789c1c0b6c373d444895c93de476878c8b2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1189", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nthrombosis level 2 refers to Thrombosis = 2; ANA pattern of only S refers to ANA = 'S'; average anti-Cardiolip in antibody (IgM) refers to AVG(\"aCL IgM\"); calculation = MULTIPLY(AVG + AVG, 0.2)\n\nQuestion:\nWhat number of patients with a degree of thrombosis level 2 and ANA pattern of only S, have a level of anti-Cardiolip in antibody (IgM) 20% higher than average?", + "question": "What number of patients with a degree of thrombosis level 2 and ANA pattern of only S, have a level of anti-Cardiolip in antibody (IgM) 20% higher than average?", + "evidence": "thrombosis level 2 refers to Thrombosis = 2; ANA pattern of only S refers to ANA = 'S'; average anti-Cardiolip in antibody (IgM) refers to AVG(\"aCL IgM\"); calculation = MULTIPLY(AVG + AVG, 0.2)", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(*) FROM Examination WHERE Thrombosis = 2 AND \"ANA Pattern\" = 'S' AND \"aCL IgM\" > (SELECT AVG(\"aCL IgM\") * 1.2 FROM Examination WHERE Thrombosis = 2 AND \"ANA Pattern\" = 'S')", + "source_gold_sql": "SELECT COUNT(*) FROM Examination WHERE Thrombosis = 2 AND \"ANA Pattern\" = 'S' AND \"aCL IgM\" > (SELECT AVG(\"aCL IgM\") * 1.2 FROM Examination WHERE Thrombosis = 2 AND \"ANA Pattern\" = 'S')", + "source_gold_sql_sha256": "bf5e1310d82302fa808d34e55b5ceb5d8e02087e37cdb9c0d06ec9609adc533a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1192", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nfollowed up at the outpatient clinic refers to Admission = '-'; laboratory test in April 1981 refers to Date like '1991-10%'; blood bilirubin level within the normal range refers to T-BIL < 2.0;\n\nQuestion:\nList all patients who were followed up at the outpatient clinic who underwent a laboratory test in October 1991 and had a total blood bilirubin level within the normal range.", + "question": "List all patients who were followed up at the outpatient clinic who underwent a laboratory test in October 1991 and had a total blood bilirubin level within the normal range.", + "evidence": "followed up at the outpatient clinic refers to Admission = '-'; laboratory test in April 1981 refers to Date like '1991-10%'; blood bilirubin level within the normal range refers to T-BIL < 2.0;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Admission = '-' AND T2.\"T-BIL\" < 2.0 AND T2.Date LIKE '1991-10-%'", + "source_gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Admission = '-' AND T2.\"T-BIL\" < 2.0 AND T2.Date LIKE '1991-10-%'", + "source_gold_sql_sha256": "06934c66bf8d7307095b25fc16ede07f6ce7a119f8ef7328c96531f7df0a4d5d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1195", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\naverage blood albumin level refers to AVG(ALB); female refers to SEX = 'F'; PLT greater than 400 refers to PLT > 400; diagnosed with SLE refers to Diagnosis= 'SLE'\n\nQuestion:\nWhat is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE?", + "question": "What is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE?", + "evidence": "average blood albumin level refers to AVG(ALB); female refers to SEX = 'F'; PLT greater than 400 refers to PLT > 400; diagnosed with SLE refers to Diagnosis= 'SLE'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis = 'SLE' AND T1.SEX = 'F'", + "source_gold_sql": "SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis = 'SLE' AND T1.SEX = 'F'", + "source_gold_sql_sha256": "a693eddfaf778fb79e3e06b2e6b6f6394e33ca4e8789921f61a1399db0f34e9b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1198", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nfemale refers to SEX = 'F'; APS diagnosis refers to Patient.Diagnosis='APS'\n\nQuestion:\nHow many female patients were given an APS diagnosis?", + "question": "How many female patients were given an APS diagnosis?", + "evidence": "female refers to SEX = 'F'; APS diagnosis refers to Patient.Diagnosis='APS'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(ID) FROM Patient WHERE SEX = 'F' AND Diagnosis = 'APS'", + "source_gold_sql": "SELECT COUNT(ID) FROM Patient WHERE SEX = 'F' AND Diagnosis = 'APS'", + "source_gold_sql_sha256": "ab6d648a2c07d2d8ff2b74aeed954a84a6af5a0abbc33c0f7cd0bb754cb25b2b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1201", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nborn in 1980 refers to YEAR(BIRTHDAY) = '1980'; 'RA' refers to Patient.Diagnosis='RA' ; women refers to SEX = 'F'; calculation = DIVIDE(SUM(SEX = 'F'), COUNT(SEX)) * 100\n\nQuestion:\nWhat percentage of patients who were born in 1980 and were diagnosed with RA are women?", + "question": "What percentage of patients who were born in 1980 and were diagnosed with RA are women?", + "evidence": "born in 1980 refers to YEAR(BIRTHDAY) = '1980'; 'RA' refers to Patient.Diagnosis='RA' ; women refers to SEX = 'F'; calculation = DIVIDE(SUM(SEX = 'F'), COUNT(SEX)) * 100", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis = 'RA' AND STRFTIME('%Y', Birthday) = '1980'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis = 'RA' AND STRFTIME('%Y', Birthday) = '1980'", + "source_gold_sql_sha256": "3a38a8aa626a6caf9195030f4875efdd48f1003cc95a8e79b735f37f1a8c3fb7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1205", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nuric acid within a normal range refers to UA > 8.0 and SEX = 'M'OR UA > 6.5 and SEX = 'F'\n\nQuestion:\nWas the patient with the number 57266's uric acid within a normal range? List 'true' or 'false' for each of their lab results.", + "question": "Was the patient with the number 57266's uric acid within a normal range? List 'true' or 'false' for each of their lab results.", + "evidence": "uric acid within a normal range refers to UA > 8.0 and SEX = 'M'OR UA > 6.5 and SEX = 'F'", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CASE WHEN (T1.SEX = 'F' AND T2.UA > 6.5) OR (T1.SEX = 'M' AND T2.UA > 8.0) THEN 'true' ELSE 'false' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 57266", + "source_gold_sql": "SELECT CASE WHEN (T1.SEX = 'F' AND T2.UA > 6.5) OR (T1.SEX = 'M' AND T2.UA > 8.0) THEN 'true' ELSE 'false' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 57266", + "source_gold_sql_sha256": "f58e29372a8dc305cfb4aa8fc9f9658aef6e5390eaa4a3f76ed278d29bdd9124", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1208", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nmale refers to SEX = 'M'; ALT glutamic pylvic transaminase (GPT) exceed the normal range refers to GPT > = 60\n\nQuestion:\nProvide IDs for male patients with ALT glutamic pylvic transaminase (GPT) that have history of ALT glutamic pylvic transaminase (GPT) exceed the normal range.", + "question": "Provide IDs for male patients with ALT glutamic pylvic transaminase (GPT) that have history of ALT glutamic pylvic transaminase (GPT) exceed the normal range.", + "evidence": "male refers to SEX = 'M'; ALT glutamic pylvic transaminase (GPT) exceed the normal range refers to GPT > = 60", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'M' AND T2.GPT >= 60", + "source_gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'M' AND T2.GPT >= 60", + "source_gold_sql_sha256": "4b10e4d3af8e95bb2b9a23b8929a7f6af92b9bfe5e16076f45f91c39c3862a20", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1209", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nALT glutamic pylvic transaminase beyond the normal range refers to GPT > 60; The larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nPlease provide the diagnosis of patients with ALT glutamic pylvic transaminase beyond the normal range by ascending order of their date of birth.", + "question": "Please provide the diagnosis of patients with ALT glutamic pylvic transaminase beyond the normal range by ascending order of their date of birth.", + "evidence": "ALT glutamic pylvic transaminase beyond the normal range refers to GPT > 60; The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT > 60 ORDER BY T1.Birthday ASC", + "source_gold_sql": "SELECT DISTINCT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT > 60 ORDER BY T1.Birthday ASC", + "source_gold_sql_sha256": "303f3e702ec3893341f101e9740d1cfbe231560cd572c06a1742d17f8c361f8f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1220", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nurea nitrogen (UN) just within the borderline of passing refers to UN = 29;\n\nQuestion:\nProvide all ID, sex and birthday of patients whose urea nitrogen (UN) just within the borderline of passing?", + "question": "Provide all ID, sex and birthday of patients whose urea nitrogen (UN) just within the borderline of passing?", + "evidence": "urea nitrogen (UN) just within the borderline of passing refers to UN = 29;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN = 29", + "source_gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN = 29", + "source_gold_sql_sha256": "4ce56d5a2620a6a46c98e937fc69ca902994ae7b19302be1a37034ec9b9a14ed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1225", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nList refers to GROUP_CONCAT(DISTINCT ID); total bilirubin (T-BIL) not within normal range refers to T-BIL > = 2.0\n\nQuestion:\nList and group all patients by sex for total bilirubin (T-BIL) level not within the normal range.", + "question": "List and group all patients by sex for total bilirubin (T-BIL) level not within the normal range.", + "evidence": "List refers to GROUP_CONCAT(DISTINCT ID); total bilirubin (T-BIL) not within normal range refers to T-BIL > = 2.0", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT GROUP_CONCAT(DISTINCT T1.ID),T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-BIL` >= 2.0 GROUP BY T1.SEX", + "source_gold_sql": "SELECT GROUP_CONCAT(DISTINCT T1.ID),T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-BIL` >= 2.0 GROUP BY T1.SEX", + "source_gold_sql_sha256": "7000f898e99cec281cbcfc2a664acc96a5602aa645d5a07d7457674ad14bb737", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1227", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\naverage age = DIVIDE(SUM(SUBTRACT(YEAR(NOW()), YEAR(birthday))), COUNT(ID)); male patient refers to sex = 'M'; high cholesterol refers to \"T-CHO\" > = 250;\n\nQuestion:\nWhat is the average age of the male patient with high cholesterol?", + "question": "What is the average age of the male patient with high cholesterol?", + "evidence": "average age = DIVIDE(SUM(SUBTRACT(YEAR(NOW()), YEAR(birthday))), COUNT(ID)); male patient refers to sex = 'M'; high cholesterol refers to \"T-CHO\" > = 250;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT AVG(age) FROM (SELECT DISTINCT T1.ID, STRFTIME('%Y', date('NOW')) - STRFTIME('%Y', T1.Birthday) as age FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.\"T-CHO\" >= 250 AND T1.SEX = 'M')", + "source_gold_sql": "SELECT AVG(age) FROM (SELECT DISTINCT T1.ID, STRFTIME('%Y', date('NOW')) - STRFTIME('%Y', T1.Birthday) as age FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.\"T-CHO\" >= 250 AND T1.SEX = 'M')", + "source_gold_sql_sha256": "ff5cebc4624ad526916b10e32398fddd7c8f6511f21881f62351a9df41f746ad", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1229", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\ntriglyceride (TG) level beyond the normal range refers to TG > = 200; more than 50 years of age = SUBTRACT(year(current_timestamp), year(Birthday)) > 50; Should consider DISTINCT in the final result;\n\nQuestion:\nFor all patients with triglyceride (TG) level beyond the normal range, how many are age more than 50 years?", + "question": "For all patients with triglyceride (TG) level beyond the normal range, how many are age more than 50 years?", + "evidence": "triglyceride (TG) level beyond the normal range refers to TG > = 200; more than 50 years of age = SUBTRACT(year(current_timestamp), year(Birthday)) > 50; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG >= 200 AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 50", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG >= 200 AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 50", + "source_gold_sql_sha256": "c0ddd2b0a1854a75843c5cd54ecfd0ff0378deb24cd019d01dd5a538cc886783", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1231", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nborn between 1936-1956 refers to year(Birthday) BETWEEN '1936' AND '1956'; male patients refers to sex = 'M'; creatinine phosphokinase beyond the normal range refers to CPK > = 250; Should consider DISTINCT in the final result;\n\nQuestion:\nFor patient born between 1936-1956, how many male patients have creatinine phosphokinase beyond the normal range?", + "question": "For patient born between 1936-1956, how many male patients have creatinine phosphokinase beyond the normal range?", + "evidence": "born between 1936-1956 refers to year(Birthday) BETWEEN '1936' AND '1956'; male patients refers to sex = 'M'; creatinine phosphokinase beyond the normal range refers to CPK > = 250; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.Birthday) BETWEEN '1936' AND '1956' AND T1.SEX = 'M' AND T2.CPK >= 250", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.Birthday) BETWEEN '1936' AND '1956' AND T1.SEX = 'M' AND T2.CPK >= 250", + "source_gold_sql_sha256": "73a2cfa04d407224b107eb5275ebaae5c7698e5e131243e09fa6881c761dd6c7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1232", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nage = SUBTRACT(year(current_timestamp), year(Birthday)); blood glucose (GLU) not within normal range refers to GLU > = 180; total cholesterol(T-CHO) within normal range refers to \"T-CHO\" < 250;\n\nQuestion:\nProvide ID, sex and age of patients with a lab result having blood glucose (GLU) not within normal range but with total cholesterol(T-CHO) within normal range.", + "question": "Provide ID, sex and age of patients with a lab result having blood glucose (GLU) not within normal range but with total cholesterol(T-CHO) within normal range.", + "evidence": "age = SUBTRACT(year(current_timestamp), year(Birthday)); blood glucose (GLU) not within normal range refers to GLU > = 180; total cholesterol(T-CHO) within normal range refers to \"T-CHO\" < 250;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GLU >= 180 AND T2.\"T-CHO\" < 250", + "source_gold_sql": "SELECT DISTINCT T1.ID, T1.SEX , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GLU >= 180 AND T2.\"T-CHO\" < 250", + "source_gold_sql_sha256": "9bc565220a6a94402825647c5ebed3cf934a5cf43d7bfc492aea94247e5909d8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1235", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\npatient's diagnosis refers to Diagnosis; lower red blood cell refers to RBC < 3.5; age = SUBTRACT(year(current_timestamp), year(Birthday));\n\nQuestion:\nWhat are the patient's diagnosis for those who has lower red blood blood cell? State their ID and age.", + "question": "What are the patient's diagnosis for those who has lower red blood blood cell? State their ID and age.", + "evidence": "patient's diagnosis refers to Diagnosis; lower red blood cell refers to RBC < 3.5; age = SUBTRACT(year(current_timestamp), year(Birthday));", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.Diagnosis, T1.ID , STRFTIME('%Y', CURRENT_TIMESTAMP) -STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RBC < 3.5", + "source_gold_sql": "SELECT DISTINCT T1.Diagnosis, T1.ID , STRFTIME('%Y', CURRENT_TIMESTAMP) -STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RBC < 3.5", + "source_gold_sql_sha256": "3feacb4a8a4347b1f280ab878a373756471b0db970ddd6cdc0cecca7e54092c9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1238", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\ndiagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;\n\nQuestion:\nAmong the patients who were diagnosed with SLE, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "question": "Among the patients who were diagnosed with SLE, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "source_gold_sql": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "source_gold_sql_sha256": "13d0ce7c2f41ba11d231de9432fe502db39cc39ac3fba8393608605b8e18a301", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1239", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nage = SUBTRACT(year(current_timestamp), year(Birthday)); patient with two or more laboratory examinations refers to COUNT(ID) >= 2; hematoclit level exceeded the normal range refers to HCT > = 52;\n\nQuestion:\nName the ID and age of patient with two or more laboratory examinations which show their hematoclit level exceeded the normal range.", + "question": "Name the ID and age of patient with two or more laboratory examinations which show their hematoclit level exceeded the normal range.", + "evidence": "age = SUBTRACT(year(current_timestamp), year(Birthday)); patient with two or more laboratory examinations refers to COUNT(ID) >= 2; hematoclit level exceeded the normal range refers to HCT > = 52;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID IN ( SELECT ID FROM Laboratory WHERE HCT >= 52 GROUP BY ID HAVING COUNT(ID) >= 2 )", + "source_gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID IN ( SELECT ID FROM Laboratory WHERE HCT >= 52 GROUP BY ID HAVING COUNT(ID) >= 2 )", + "source_gold_sql_sha256": "9f57fc0729cea98f37e49e3c859a659c86bb7f40db87a5a2fca0d3345757b19b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1241", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nplatelet level lower than normal range refers to PLT < 100; calculation = SUBTRACT(SUM(PLT < 100), SUM(PLT > 400)); platelet level higher than normal range refers to PLT > 400;\n\nQuestion:\nFor patients with abnormal platelet level, state the number of patients with lower than normal range. How is it compare to the number of patients with higher than normal range?", + "question": "For patients with abnormal platelet level, state the number of patients with lower than normal range. How is it compare to the number of patients with higher than normal range?", + "evidence": "platelet level lower than normal range refers to PLT < 100; calculation = SUBTRACT(SUM(PLT < 100), SUM(PLT > 400)); platelet level higher than normal range refers to PLT > 400;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT (SELECT COUNT(DISTINCT ID) FROM Laboratory WHERE PLT < 100) AS low_count, (SELECT COUNT(DISTINCT ID) FROM Laboratory WHERE PLT > 400) AS high_count;", + "source_gold_sql": "SELECT COUNT(DISTINCT CASE WHEN T2.PLT < 100 THEN T1.id END) - COUNT(DISTINCT CASE WHEN T2.PLT > 400 THEN T1.id END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", + "source_gold_sql_sha256": "6f98241a35debe9f39e097674c999fb20fabdfa5f2d366d81e0f6c839986dac9", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1242", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nlaboratory examinations take in 1984 refers to YEAR(Date) = '1984'; below 50 years old = SUBTRACT(year(current_timestamp), year(Birthday)) < 50; normal platelet level refers to PLT between 100 and 400;\n\nQuestion:\nFor laboratory examinations take in 1984, list all patients below 50 years old with normal platelet level.", + "question": "For laboratory examinations take in 1984, list all patients below 50 years old with normal platelet level.", + "evidence": "laboratory examinations take in 1984 refers to YEAR(Date) = '1984'; below 50 years old = SUBTRACT(year(current_timestamp), year(Birthday)) < 50; normal platelet level refers to PLT between 100 and 400;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT BETWEEN 100 AND 400 AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) < 50 AND STRFTIME('%Y', T2.Date) = '1984'", + "source_gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT BETWEEN 100 AND 400 AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) < 50 AND STRFTIME('%Y', T2.Date) = '1984'", + "source_gold_sql_sha256": "efa6528a0f90f03c4bb2cf928f35e42efaea781a87363b9bcf9b9ea45d84a699", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1243", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nolder than 55 years old = SUBTRACT(year(current_timestamp), year(Birthday)) > 55; abnormal prothrombin time (PT) refers to PT > = 14; percentage = DIVIDE(SUM(PT > = 14 AND SEX = 'F'), SUM(PT > = 14)) * 100; female refers to sex = 'F';\n\nQuestion:\nFor all patients who are older than 55 years old, what is the percentage of those with abnormal prothrombin time (PT) that are female?", + "question": "For all patients who are older than 55 years old, what is the percentage of those with abnormal prothrombin time (PT) that are female?", + "evidence": "older than 55 years old = SUBTRACT(year(current_timestamp), year(Birthday)) > 55; abnormal prothrombin time (PT) refers to PT > = 14; percentage = DIVIDE(SUM(PT > = 14 AND SEX = 'F'), SUM(PT > = 14)) * 100; female refers to sex = 'F';", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.PT >= 14 AND T1.SEX = 'F' THEN T1.ID END) AS REAL) * 100 / COUNT(DISTINCT CASE WHEN T2.PT >= 14 THEN T1.ID END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 55", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.PT >= 14 AND T1.SEX = 'F' THEN T1.ID END) AS REAL) * 100 / COUNT(DISTINCT CASE WHEN T2.PT >= 14 THEN T1.ID END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 55", + "source_gold_sql_sha256": "92af31bd8854e22d024d7de9d3121d70f9547c0cf1012fdb0c7a7f5e96bba792", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1247", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nmale patients refers to Sex = 'M'; normal level of white blood cells refers to WBC > 3.5 and WBC <9.0; abnormal fibrinogen level refers to FG < = 150 or FG > = 450; Don't compute repetitive ones.\n\nQuestion:\nHow many male patients had a lab result with a normal level of white blood cells, but abnormal fibrinogen level?", + "question": "How many male patients had a lab result with a normal level of white blood cells, but abnormal fibrinogen level?", + "evidence": "male patients refers to Sex = 'M'; normal level of white blood cells refers to WBC > 3.5 and WBC <9.0; abnormal fibrinogen level refers to FG < = 150 or FG > = 450; Don't compute repetitive ones.", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.FG <= 150 OR T2.FG >= 450) AND T2.WBC > 3.5 AND T2.WBC < 9.0 AND T1.SEX = 'M'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.FG <= 150 OR T2.FG >= 450) AND T2.WBC > 3.5 AND T2.WBC < 9.0 AND T1.SEX = 'M'", + "source_gold_sql_sha256": "11d9c053e7ea5d721f7c231bad6c55c6ebc992c604ea3380adaccf5db7ef27ff", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1251", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nIg G higher than normal refers to IGG >= 2000; Should consider DISTINCT in the final result;\n\nQuestion:\nHow many patients with an Ig G higher than normal?", + "question": "How many patients with an Ig G higher than normal?", + "evidence": "Ig G higher than normal refers to IGG >= 2000; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGG >= 2000", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGG >= 2000", + "source_gold_sql_sha256": "12af641269ec486d5f870eabc2abb364e596338315c62aff965e58dbf7c0b8d0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1252", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal Ig G level refers to IGG > 900 and IGG < 2000; have symptoms refers to Symptoms IS NOT NULL;\n\nQuestion:\nAmong the patients with a normal Ig G level, how many of them have symptoms?", + "question": "Among the patients with a normal Ig G level, how many of them have symptoms?", + "evidence": "normal Ig G level refers to IGG > 900 and IGG < 2000; have symptoms refers to Symptoms IS NOT NULL;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T2.IGG BETWEEN 900 AND 2000 AND T3.Symptoms IS NOT NULL", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T2.IGG BETWEEN 900 AND 2000 AND T3.Symptoms IS NOT NULL", + "source_gold_sql_sha256": "d763522ee293be247fd2de027aaf4df0f95690bb76ed444429d77d5d26ba0844", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1254", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal Ig A level refers to IGA > 80 AND IGA < 500; came to the hospital after 1990/1/1 refers to YEAR(\"First Date\") > = 1990;\n\nQuestion:\nHow many patients with a normal Ig A level came to the hospital after 1990/1/1?", + "question": "How many patients with a normal Ig A level came to the hospital after 1990/1/1?", + "evidence": "normal Ig A level refers to IGA > 80 AND IGA < 500; came to the hospital after 1990/1/1 refers to YEAR(\"First Date\") > = 1990;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGA BETWEEN 80 AND 500 AND strftime('%Y', T1.\"First Date\") >= '1990'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGA BETWEEN 80 AND 500 AND strftime('%Y', T1.\"First Date\") >= '1990'", + "source_gold_sql_sha256": "88239b2cfe5c938088e2fa2e6927d03239e478341d59cab406d8be1c892df869", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1255", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nabnormal Ig M level refers to IGM <=40 OR IGM >= 400; most common disease refers to MAX(COUNT(Diagnosis));\n\nQuestion:\nFor the patients with an abnormal Ig M level, what is the most common disease they are diagnosed with?", + "question": "For the patients with an abnormal Ig M level, what is the most common disease they are diagnosed with?", + "evidence": "abnormal Ig M level refers to IGM <=40 OR IGM >= 400; most common disease refers to MAX(COUNT(Diagnosis));", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT Diagnosis FROM (SELECT DISTINCT T1.ID, T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGM <= 40 OR T2.IGM >= 400) GROUP BY Diagnosis ORDER BY COUNT(*) DESC LIMIT 1", + "source_gold_sql": "SELECT Diagnosis FROM (SELECT DISTINCT T1.ID, T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGM <= 40 OR T2.IGM >= 400) GROUP BY Diagnosis ORDER BY COUNT(*) DESC LIMIT 1", + "source_gold_sql_sha256": "ca94e22e83b4af9efbd81b2a76f593878f7151cf1d50bfa5a0f5de803b17da02", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1256", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nabnormal C-reactive protein refers to CRP ='+'; don't have data recorded refers to Description IS NULL;\n\nQuestion:\nHow many patients with a abnormal C-reactive protein don't have their data recorded?", + "question": "How many patients with a abnormal C-reactive protein don't have their data recorded?", + "evidence": "abnormal C-reactive protein refers to CRP ='+'; don't have data recorded refers to Description IS NULL;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.CRP = '+') AND T1.Description IS NULL", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.CRP = '+') AND T1.Description IS NULL", + "source_gold_sql_sha256": "4758d88362ea8520d488152a2b5f2bc03201b44b627df8b554d8cdd9a9b0b64a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1257", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\ncreatinine level is abnormal refers to CRE >= 1.5; aren't 70 yet refers to SUBTRACT((YEAR(CURDATE()), YEAR(Birthday))) < 70;\n\nQuestion:\nAmong the patients whose creatinine level is abnormal, how many of them aren't 70 yet?", + "question": "Among the patients whose creatinine level is abnormal, how many of them aren't 70 yet?", + "evidence": "creatinine level is abnormal refers to CRE >= 1.5; aren't 70 yet refers to SUBTRACT((YEAR(CURDATE()), YEAR(Birthday))) < 70;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5 AND STRFTIME('%Y', Date('now')) - STRFTIME('%Y', T1.Birthday) < 70", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5 AND STRFTIME('%Y', Date('now')) - STRFTIME('%Y', T1.Birthday) < 70", + "source_gold_sql_sha256": "5faba7c895fb9e5de4fca9cafbe264eb6b9f6c402be108d2487dd9d2a994ce14", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1265", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal level of anti-ribonuclear protein refers to RNP = '-', '+-'; And'-' means 'negative'; '+-' refers to '0'; admitted to the hospital refers to Admission = '+'; Should consider DISTINCT in the final result;\n\nQuestion:\nHow many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital?", + "question": "How many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital?", + "evidence": "normal level of anti-ribonuclear protein refers to RNP = '-', '+-'; And'-' means 'negative'; '+-' refers to '0'; admitted to the hospital refers to Admission = '+'; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.RNP = 'negative' OR T2.RNP = '0') AND T1.Admission = '+'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.RNP = 'negative' OR T2.RNP = '0') AND T1.Admission = '+'", + "source_gold_sql_sha256": "7cbbcf8c9450e1f9281c67513d95446013eb45e77506f82f913aba189cb463d1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1267", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal anti-SM refers to SM IN('-', '+-'); SM = 'negative' means '-'; SM = '0' means '+-'; SM = '1' means '+'; does not have thrombosis refers to Thrombosis = 0;\n\nQuestion:\nAmong the patients with normal anti-SM, how many of them does not have thrombosis?", + "question": "Among the patients with normal anti-SM, how many of them does not have thrombosis?", + "evidence": "normal anti-SM refers to SM IN('-', '+-'); SM = 'negative' means '-'; SM = '0' means '+-'; SM = '1' means '+'; does not have thrombosis refers to Thrombosis = 0;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "WITH normal_sm AS (\n SELECT DISTINCT `ID`\n FROM `Laboratory`\n WHERE `SM` IN ('negative','0')\n), no_thrombosis AS (\n SELECT n.`ID`\n FROM normal_sm n\n JOIN `Examination` e ON e.`ID` = n.`ID`\n GROUP BY n.`ID`\n HAVING MAX(COALESCE(e.`Thrombosis`,0)) = 0\n)\nSELECT COUNT(*)\nFROM no_thrombosis;", + "source_gold_sql": "WITH normal_sm AS (\n SELECT DISTINCT `ID`\n FROM `Laboratory`\n WHERE `SM` IN ('negative','0')\n), no_thrombosis AS (\n SELECT n.`ID`\n FROM normal_sm n\n JOIN `Examination` e ON e.`ID` = n.`ID`\n GROUP BY n.`ID`\n HAVING MAX(COALESCE(e.`Thrombosis`,0)) = 0\n)\nSELECT COUNT(*)\nFROM no_thrombosis;", + "source_gold_sql_sha256": "1e8fd1ad631971d0380152298e17f1bca61fc12e4f7f4ec6d2e872cbedcfa6f8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1270", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal anti-scl70 refers to SC170 IN('negative', '0'); female refers to Sex = 'F'; does not have any symptom refers to symptoms IS NULL; Should consider DISTINCT in the final result;\n\nQuestion:\nAmong the patients who has a normal anti-scl70, how many of them are female and does not have any symptom?", + "question": "Among the patients who has a normal anti-scl70, how many of them are female and does not have any symptom?", + "evidence": "normal anti-scl70 refers to SC170 IN('negative', '0'); female refers to Sex = 'F'; does not have any symptom refers to symptoms IS NULL; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT p.ID)\nFROM `Patient` p\nJOIN `Laboratory` l ON p.ID = l.ID\nWHERE p.SEX = 'F'\n AND l.SC170 IN ('negative','0')\n AND NOT EXISTS ( \n SELECT 1\n FROM `Examination` e\n WHERE e.ID = p.ID\n AND e.Symptoms IS NOT NULL\n );", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.SC170 = 'negative' OR T2.SC170 = '0') AND T1.SEX = 'F' AND T3.Symptoms IS NULL", + "source_gold_sql_sha256": "f71740eabf1883ea55497e1c684b18decc50aa7eb0c1724cf0711bafa2f3ecdd", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1275", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal level of anti-centromere refers to CENTROMEA IN('negative', '0'); normal level of anti-SSB refers to SSB IN('negative', '0'); male refers to Sex = 'M'; Should consider DISTINCT in the final result;\n\nQuestion:\nAmong the patients who has a normal level of anti-centromere and a normal level of anti-SSB, how many of them are male?", + "question": "Among the patients who has a normal level of anti-centromere and a normal level of anti-SSB, how many of them are male?", + "evidence": "normal level of anti-centromere refers to CENTROMEA IN('negative', '0'); normal level of anti-SSB refers to SSB IN('negative', '0'); male refers to Sex = 'M'; Should consider DISTINCT in the final result;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CENTROMEA IN ('negative', '0') AND T2.SSB IN ('negative', '0') AND T1.SEX = 'M'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CENTROMEA IN ('negative', '0') AND T2.SSB IN ('negative', '0') AND T1.SEX = 'M'", + "source_gold_sql_sha256": "71e5058521e99daae483f65741dda95a44ff7c52811cdc622061caf80e168beb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1281", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nabnormal level of glutamic oxaloacetic transaminase refers to GOT > = 60; The larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nAmong the patients who have an abnormal level of glutamic oxaloacetic transaminase, when was the youngest of them born?", + "question": "Among the patients who have an abnormal level of glutamic oxaloacetic transaminase, when was the youngest of them born?", + "evidence": "abnormal level of glutamic oxaloacetic transaminase refers to GOT > = 60; The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GOT >= 60 ORDER BY T1.Birthday DESC LIMIT 1", + "source_gold_sql": "SELECT T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GOT >= 60 ORDER BY T1.Birthday DESC LIMIT 1", + "source_gold_sql_sha256": "ee6c779b14b5695acb7676c3e829d3ca014dc4e461bb0822eb551a4c79bf63a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1302", + "domain": "thrombosis_prediction", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Laboratory (\n `ID` integer, -- identification of the patient.\n `Date` date, -- Date of the laboratory tests (YYMMDD).\n `GOT` integer, -- AST glutamic oxaloacetic transaminase. Commonsense evidence:. Normal range: N < 60.\n `GPT` integer, -- ALT glutamic pyruvic transaminase. Commonsense evidence:. Normal range: N < 60.\n `LDH` integer, -- lactate dehydrogenase. Commonsense evidence:. Normal range: N < 500.\n `ALP` integer, -- alkaliphophatase. Commonsense evidence:. Normal range: N < 300.\n `TP` real, -- total protein. Commonsense evidence:. Normal range: 6.0 < N < 8.5.\n `ALB` real, -- albumin. Commonsense evidence:. Normal range: 3.5 < N < 5.5.\n `UA` real, -- uric acid. Commonsense evidence:. Normal range: N > 8.0 (Male)N > 6.5 (Female).\n `UN` integer, -- urea nitrogen. Commonsense evidence:. Normal range: N < 30.\n `CRE` real, -- creatinine. Commonsense evidence:. Normal range: N < 1.5.\n `T-BIL` real, -- total bilirubin. Commonsense evidence:. Normal range: N < 2.0.\n `T-CHO` integer, -- total cholesterol. Commonsense evidence:. Normal range: N < 250.\n `TG` integer, -- triglyceride. Commonsense evidence:. Normal range: N < 200.\n `CPK` integer, -- creatinine phosphokinase. Commonsense evidence:. Normal range: N < 250.\n `GLU` integer, -- blood glucose. Commonsense evidence:. Normal range: N < 180.\n `WBC` real, -- White blood cell. Commonsense evidence:. Normal range: 3.5 < N < 9.0.\n `RBC` real, -- Red blood cell. Commonsense evidence:. Normal range: 3.5 < N < 6.0.\n `HGB` real, -- Hemoglobin. Commonsense evidence:. Normal range: 10 < N < 17.\n `HCT` real, -- Hematoclit. Commonsense evidence:. Normal range: 29 < N < 52.\n `PLT` integer, -- platelet. Commonsense evidence:. Normal range: 100 < N < 400.\n `PT` real, -- prothrombin time. Commonsense evidence:. Normal range: N < 14.\n `APTT` integer, -- activated partial prothrombin time. Commonsense evidence:. Normal range: N < 45.\n `FG` real, -- fibrinogen. Commonsense evidence:. Normal range: 150 < N < 450.\n `PIC` integer, -- No description.\n `TAT` integer, -- No description.\n `TAT2` integer, -- No description.\n `U-PRO` text, -- proteinuria. Commonsense evidence:. Normal range: 0 < N < 30.\n `IGG` integer, -- Ig G. Commonsense evidence:. Normal range: 900 < N < 2000.\n `IGA` integer, -- Ig A. Commonsense evidence:. Normal range: 80 < N < 500.\n `IGM` integer, -- Ig M. Commonsense evidence:. Normal range: 40 < N < 400.\n `CRP` text, -- C-reactive protein. Commonsense evidence:. Normal range: N= -, +-, or N < 1.0.\n `RA` text, -- Rhuematoid Factor. Commonsense evidence:. Normal range: N= -, +-.\n `RF` text, -- RAHA. Commonsense evidence:. Normal range: N < 20.\n `C3` integer, -- complement 3. Commonsense evidence:. Normal range: N > 35.\n `C4` integer, -- complement 4. Commonsense evidence:. Normal range: N > 10.\n `RNP` text, -- anti-ribonuclear protein. Commonsense evidence:. Normal range: N= -, +-.\n `SM` text, -- anti-SM. Commonsense evidence:. Normal range: N= -, +-.\n `SC170` text, -- anti-scl70. Commonsense evidence:. Normal range: N= -, +-.\n `SSA` text, -- anti-SSA. Commonsense evidence:. Normal range: N= -, +-.\n `SSB` text, -- anti-SSB. Commonsense evidence:. Normal range: N= -, +-.\n `CENTROMEA` text, -- anti-centromere. Commonsense evidence:. Normal range: N= -, +-.\n `DNA` text, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n `DNA-II` integer, -- anti-DNA. Commonsense evidence:. Normal range: N < 8.\n primary key (ID, Date),\n foreign key (ID) references Patient (ID)\n);\n\nCREATE TABLE Patient (\n `ID` integer, -- identification of the patient.\n `SEX` text, -- Sex. F: female; M: male.\n `Birthday` date, -- Birthday.\n `Description` date, -- the first date when a patient data was recorded. null or empty: not recorded.\n `First Date` date, -- the date when a patient came to the hospital.\n `Admission` text, -- patient was admitted to the hospital (+) or followed at the outpatient clinic (-).\n `Diagnosis` text, -- disease names.\n primary key (ID)\n);\n\nCREATE TABLE Examination (\n `ID` integer, -- identification of the patient.\n `Examination Date` date , -- Examination Date.\n `aCL IgG` real, -- anti-Cardiolipin antibody (IgG). anti-Cardiolipin antibody (IgG) concentration.\n `aCL IgM` real, -- anti-Cardiolipin antibody (IgM). anti-Cardiolipin antibody (IgM) concentration.\n `ANA` integer, -- anti-nucleus antibody. anti-nucleus antibody concentration.\n `ANA Pattern` text, -- pattern observed in the sheet of ANA examination.\n `aCL IgA` integer, -- anti-Cardiolipin antibody (IgA) concentration.\n `Diagnosis` text, -- disease names.\n `KCT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `RVVT` text, -- measure of degree of coagulation. +: positive. -: negative.\n `LAC` text, -- measure of degree of coagulation. +: positive. -: negative.\n `Symptoms` text, -- other symptoms observed.\n `Thrombosis` integer, -- degree of thrombosis. 0: negative (no thrombosis). 1: positive (the most serious). 2: positive (severe)3: positive (mild).\n foreign key (ID) references Patient (ID)\n);\n\nExternal Knowledge:\nnormal range of creatinine phosphokinase refers to CPK < 250; positive measure of degree of coagulation refers to KCT = '+' or RVVT = '+' or LAC = '+' ;\n\nQuestion:\nFor the patients with a normal range of creatinine phosphokinase, how many of them have a positive measure of degree of coagulation?", + "question": "For the patients with a normal range of creatinine phosphokinase, how many of them have a positive measure of degree of coagulation?", + "evidence": "normal range of creatinine phosphokinase refers to CPK < 250; positive measure of degree of coagulation refers to KCT = '+' or RVVT = '+' or LAC = '+' ;", + "db_id": "thrombosis_prediction", + "database_path": "databases/thrombosis_prediction.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T2.CPK < 250 AND (T3.KCT = '+' OR T3.RVVT = '+' OR T3.LAC = '+')", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T2.CPK < 250 AND (T3.KCT = '+' OR T3.RVVT = '+' OR T3.LAC = '+')", + "source_gold_sql_sha256": "196199648e1b491fea260cc01712cb3621c9c9264ae6632dd6de3f2c4d766ee8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1025", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nleague that had the most goals refers to MAX(SUM(home_team_goal, away_team_goal)); 2016 season refers to season = '2015/2016';\n\nQuestion:\nGive the name of the league had the most goals in the 2016 season?", + "question": "Give the name of the league had the most goals in the 2016 season?", + "evidence": "league that had the most goals refers to MAX(SUM(home_team_goal, away_team_goal)); 2016 season refers to season = '2015/2016';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' GROUP BY t2.name ORDER BY SUM(t1.home_team_goal + t1.away_team_goal) DESC LIMIT 1", + "source_gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' GROUP BY t2.name ORDER BY SUM(t1.home_team_goal + t1.away_team_goal) DESC LIMIT 1", + "source_gold_sql_sha256": "70b61750577ef377948705dbff48eb8f8731e5d659d1487ce6b324289f7e3c51", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1028", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nFinal result should return the Team.team_long_name; Scotland Premier League refers to League.name = 'Scotland Premier League'; away team refers to away_team_api_id; away team that won the most refers to MAX(SUBTRACT(away_team_goal, home_team_goal) > 0); 2010 season refers to season = '2009/2010'; won the most refers to MAX(COUNT(*));\n\nQuestion:\nIn Scotland Premier League, which away team won the most during the 2010 season?", + "question": "In Scotland Premier League, which away team won the most during the 2010 season?", + "evidence": "Final result should return the Team.team_long_name; Scotland Premier League refers to League.name = 'Scotland Premier League'; away team refers to away_team_api_id; away team that won the most refers to MAX(SUBTRACT(away_team_goal, home_team_goal) > 0); 2010 season refers to season = '2009/2010'; won the most refers to MAX(COUNT(*));", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t.team_long_name FROM Team t JOIN Match m ON t.team_api_id = m.away_team_api_id JOIN League l ON m.league_id = l.id WHERE l.name = 'Scotland Premier League' AND m.season = '2009/2010' AND m.away_team_goal > m.home_team_goal GROUP BY t.team_api_id, t.team_long_name HAVING COUNT(*) = ( SELECT MAX(win_count) FROM ( SELECT COUNT(*) AS win_count FROM Match m2 JOIN League l2 ON m2.league_id = l2.id WHERE l2.name = 'Scotland Premier League' AND m2.season = '2009/2010' AND m2.away_team_goal > m2.home_team_goal GROUP BY m2.away_team_api_id ) );", + "source_gold_sql": "SELECT DISTINCT t.team_long_name FROM Team t JOIN Match m ON t.team_api_id = m.away_team_api_id JOIN League l ON m.league_id = l.id WHERE l.name = 'Scotland Premier League' AND m.season = '2009/2010' AND m.away_team_goal > m.home_team_goal GROUP BY t.team_api_id, t.team_long_name HAVING COUNT(*) = ( SELECT MAX(win_count) FROM ( SELECT COUNT(*) AS win_count FROM Match m2 JOIN League l2 ON m2.league_id = l2.id WHERE l2.name = 'Scotland Premier League' AND m2.season = '2009/2010' AND m2.away_team_goal > m2.home_team_goal GROUP BY m2.away_team_api_id ) );", + "source_gold_sql_sha256": "5efa804fdea2fb9ea986d069e010ea7d237458696b7347dff78f5a1afe21e805", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1029", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nspeed in which attacks are put together refers to buildUpPlaySpeed;highest build up play speed refers to MAX(buildUpPlaySpeed)\n\nQuestion:\nWhat are the speed in which attacks are put together of the top 4 teams with the highest build Up Play Speed?", + "question": "What are the speed in which attacks are put together of the top 4 teams with the highest build Up Play Speed?", + "evidence": "speed in which attacks are put together refers to buildUpPlaySpeed;highest build up play speed refers to MAX(buildUpPlaySpeed)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t1.buildUpPlaySpeed FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id ORDER BY t1.buildUpPlaySpeed DESC LIMIT 4", + "source_gold_sql": "SELECT t1.buildUpPlaySpeed FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id ORDER BY t1.buildUpPlaySpeed DESC LIMIT 4", + "source_gold_sql_sha256": "6968bc2e2322d1eb517d4e310cf8ee1fcd0c8c00d30d79b2c7f6831537b0c4ee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1030", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nmost matches end as draw refers to MAX(SUM(home_team_goal = away_team_goal)); 2016 season refers to season = '2015/2016';\n\nQuestion:\nGive the name of the league had the most matches end as draw in the 2016 season?", + "question": "Give the name of the league had the most matches end as draw in the 2016 season?", + "evidence": "most matches end as draw refers to MAX(SUM(home_team_goal = away_team_goal)); 2016 season refers to season = '2015/2016';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1", + "source_gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1", + "source_gold_sql_sha256": "6dfa479b1627328a2fd355f4b8d0e9610323b6054a26398bcc83af9be62f4eea", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1031", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nplayers age at present = SUBTRACT((DATETIME(), birthday)); sprint speed of no less than 97 refers to sprint_speed > = 97; between 2013 to 2015 refers to YEAR(date) > = '2013' AND YEAR(date) < = '2015';\n\nQuestion:\nAt present, calculate for the player's age who have a sprint speed of no less than 97 between 2013 to 2015.", + "question": "At present, calculate for the player's age who have a sprint speed of no less than 97 between 2013 to 2015.", + "evidence": "players age at present = SUBTRACT((DATETIME(), birthday)); sprint speed of no less than 97 refers to sprint_speed > = 97; between 2013 to 2015 refers to YEAR(date) > = '2013' AND YEAR(date) < = '2015';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T2.Birthday) - CASE\n WHEN strftime('%m-%d','now') < strftime('%m-%d', Birthday) THEN 1\n ELSE 0\n END AS age FROM Player_Attributes AS t1 INNER JOIN Player AS t2 ON t1.player_api_id = t2.player_api_id \nWHERE STRFTIME('%Y',t1.\"date\") >= '2013' AND STRFTIME('%Y',t1.\"date\") <= '2015' AND t1.sprint_speed >= 97", + "source_gold_sql": "SELECT DISTINCT DATETIME() - T2.birthday age FROM Player_Attributes AS t1 INNER JOIN Player AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.\"date\") >= '2013' AND STRFTIME('%Y',t1.\"date\") <= '2015' AND t1.sprint_speed >= 97", + "source_gold_sql_sha256": "c97d10f1218c8289a990bdd6c200eaa51eaf8f8bf4b8658615ae1c570ad3551e", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1032", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nleague with highest matches of all time refers to MAX(COUNT(league_id));\n\nQuestion:\nGive the name of the league with the highest matches of all time and how many matches were played in the said league.", + "question": "Give the name of the league with the highest matches of all time and how many matches were played in the said league.", + "evidence": "league with highest matches of all time refers to MAX(COUNT(league_id));", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT l.name, COUNT(m.id) AS match_count FROM League AS l JOIN Match AS m ON l.id = m.league_id GROUP BY l.id, l.name HAVING COUNT(m.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(id) AS match_count FROM Match GROUP BY league_id ) )", + "source_gold_sql": "SELECT l.name, COUNT(m.id) AS match_count FROM League AS l JOIN Match AS m ON l.id = m.league_id GROUP BY l.id, l.name HAVING COUNT(m.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(id) AS match_count FROM Match GROUP BY league_id ) )", + "source_gold_sql_sha256": "6d6c3cb9dbda63550a3aa7b7fcba9e61efe7c9b24e80c7998b8f8a02a1ce67e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1035", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nteams with more than 50 but less than 60 build-up play speed refers to buildUpPlaySpeed >50 AND buildUpPlaySpeed <60;\n\nQuestion:\nGive the team_fifa_api_id of teams with more than 50 but less than 60 build-up play speed.", + "question": "Give the team_fifa_api_id of teams with more than 50 but less than 60 build-up play speed.", + "evidence": "teams with more than 50 but less than 60 build-up play speed refers to buildUpPlaySpeed >50 AND buildUpPlaySpeed <60;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT team_fifa_api_id FROM Team_Attributes WHERE buildUpPlaySpeed > 50 AND buildUpPlaySpeed < 60", + "source_gold_sql": "SELECT DISTINCT team_fifa_api_id FROM Team_Attributes WHERE buildUpPlaySpeed > 50 AND buildUpPlaySpeed < 60", + "source_gold_sql_sha256": "b1e849578b10d5e3f346f30e22082c3ca3efb4ee54b16be25165b369bd0c7457", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1036", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nlong name of teams refers to team_long_name; build-up play passing refers to buildUpPlayPassing; above-average build-up play passing = buildUpPlayPassing > DIVIDE(SUM(buildUpPlayPassing), COUNT(team_long_name) WHERE buildUpPlayPassing IS NOT NULL); in 2012 refers to strftime('%Y', date) = '2012';\n\nQuestion:\nList the long name of teams with above-average build-up play passing in 2012.", + "question": "List the long name of teams with above-average build-up play passing in 2012.", + "evidence": "long name of teams refers to team_long_name; build-up play passing refers to buildUpPlayPassing; above-average build-up play passing = buildUpPlayPassing > DIVIDE(SUM(buildUpPlayPassing), COUNT(team_long_name) WHERE buildUpPlayPassing IS NOT NULL); in 2012 refers to strftime('%Y', date) = '2012';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t4.team_long_name FROM Team_Attributes AS t3 INNER JOIN Team AS t4 ON t3.team_api_id = t4.team_api_id WHERE SUBSTR(t3.\"date\", 1, 4) = '2012' AND t3.buildUpPlayPassing > ( SELECT CAST(SUM(t2.buildUpPlayPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE STRFTIME('%Y',t2.\"date\") = '2012')", + "source_gold_sql": "SELECT DISTINCT t4.team_long_name FROM Team_Attributes AS t3 INNER JOIN Team AS t4 ON t3.team_api_id = t4.team_api_id WHERE SUBSTR(t3.\"date\", 1, 4) = '2012' AND t3.buildUpPlayPassing > ( SELECT CAST(SUM(t2.buildUpPlayPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE STRFTIME('%Y',t2.\"date\") = '2012')", + "source_gold_sql_sha256": "866e12b4945ec9446c3586f38f17b5b42bf40d2e10ba172544093ecada4da93a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1037", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nplayers who prefer left foot refers to preferred_foot = 'left'; percentage of players who prefer left foot = DIVIDE(MULTIPLY((SUM(preferred_foot = 'left'), 100)), COUNT(player_fifa_api_id)); born between 1987 and 1992 refers to YEAR(birthday) BETWEEN '1987' AND '1992';\n\nQuestion:\nCalculate the percentage of players who prefer left foot, who were born between 1987 and 1992.", + "question": "Calculate the percentage of players who prefer left foot, who were born between 1987 and 1992.", + "evidence": "players who prefer left foot refers to preferred_foot = 'left'; percentage of players who prefer left foot = DIVIDE(MULTIPLY((SUM(preferred_foot = 'left'), 100)), COUNT(player_fifa_api_id)); born between 1987 and 1992 refers to YEAR(birthday) BETWEEN '1987' AND '1992';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN t2.preferred_foot = 'left' THEN t1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) BETWEEN '1987' AND '1992'", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN t2.preferred_foot = 'left' THEN t1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) BETWEEN '1987' AND '1992'", + "source_gold_sql_sha256": "fc46eb22c9df53776d135f58fecb0d40228a00ebecff9fc4cdc28c40a228cc52", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1039", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\naverage number of long shot = DIVIDE(SUM(long_shots), COUNT(player_fifa_api_id));\n\nQuestion:\nFind the average number of long-shot done by Ahmed Samir Farag.", + "question": "Find the average number of long-shot done by Ahmed Samir Farag.", + "evidence": "average number of long shot = DIVIDE(SUM(long_shots), COUNT(player_fifa_api_id));", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT AVG(pa.`long_shots`) AS avg_long_shots\nFROM `Player` AS p\nJOIN `Player_Attributes` AS pa ON p.`player_api_id` = pa.`player_api_id`\nWHERE p.`player_name` = 'Ahmed Samir Farag';", + "source_gold_sql": "SELECT AVG(pa.`long_shots`) AS avg_long_shots\nFROM `Player` AS p\nJOIN `Player_Attributes` AS pa ON p.`player_api_id` = pa.`player_api_id`\nWHERE p.`player_name` = 'Ahmed Samir Farag';", + "source_gold_sql_sha256": "67f1ddf990a992f6f73ab7fb064fd1c74ca48ccc480253d5f2a78b63fab0a894", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1040", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nheights are above 180 refers to Player.height > 180; average heading accuracy = DIVIDE(SUM(heading_accuracy), COUNT(player_fifa_api_id));\n\nQuestion:\nList the top 10 players' names whose heights are above 180 in descending order of average heading accuracy.", + "question": "List the top 10 players' names whose heights are above 180 in descending order of average heading accuracy.", + "evidence": "heights are above 180 refers to Player.height > 180; average heading accuracy = DIVIDE(SUM(heading_accuracy), COUNT(player_fifa_api_id));", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT p.player_name\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON p.player_api_id = pa.player_api_id\nWHERE p.height > 180\nGROUP BY p.player_api_id, p.player_name\nORDER BY AVG(pa.heading_accuracy) DESC\nLIMIT 10;", + "source_gold_sql": "SELECT p.player_name\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON p.player_api_id = pa.player_api_id\nWHERE p.height > 180\nGROUP BY p.player_api_id, p.player_name\nORDER BY AVG(pa.heading_accuracy) DESC\nLIMIT 10;", + "source_gold_sql_sha256": "45cb810ded1e889905c079549d14d40bdc651d5aaa4b6f6595d498ac4c46c6a2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1042", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nname of league refers to League.name; average goals by the home team is higher than the away team = AVG(home_team_goal) > AVG(away_team_goal); AVG(xx_goal) = SUM(xx_goal) / COUNT(DISTINCT Match.id); 2009/2010 season refers to season = '2009/2010'\n\nQuestion:\nList the name of leagues in which the average goals by the home team is higher than the away team in the 2009/2010 season.", + "question": "List the name of leagues in which the average goals by the home team is higher than the away team in the 2009/2010 season.", + "evidence": "name of league refers to League.name; average goals by the home team is higher than the away team = AVG(home_team_goal) > AVG(away_team_goal); AVG(xx_goal) = SUM(xx_goal) / COUNT(DISTINCT Match.id); 2009/2010 season refers to season = '2009/2010'", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) > 0", + "source_gold_sql": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) > 0", + "source_gold_sql_sha256": "954ccf3b23d951516e2f3527d2be3194de58bc8bf5158e97d6f0aa5024395248", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1044", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nplayers with a birthyear of 1970 and a birthmonth of October refers to substr(birthday,1,7) AS 'year-month',WHERE year = '1970' AND month = '10';\n\nQuestion:\nList the football players with a birthyear of 1970 and a birthmonth of October.", + "question": "List the football players with a birthyear of 1970 and a birthmonth of October.", + "evidence": "players with a birthyear of 1970 and a birthmonth of October refers to substr(birthday,1,7) AS 'year-month',WHERE year = '1970' AND month = '10';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10'", + "source_gold_sql": "SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10'", + "source_gold_sql_sha256": "b1a5cec916c1ffe6a59d38a7e33e538ac4456a548aed2d1997d6544668a7ece4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1048", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nin year 2011 refers to strftime('%Y', date) = '2011';\n\nQuestion:\nWhat is the overall rating of the football player Gabriel Tamas in year 2011?", + "question": "What is the overall rating of the football player Gabriel Tamas in year 2011?", + "evidence": "in year 2011 refers to strftime('%Y', date) = '2011';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND strftime('%Y', t2.date) = '2011'", + "source_gold_sql": "SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND strftime('%Y', t2.date) = '2011'", + "source_gold_sql_sha256": "8ba07d9ba14958d2f8e5a1884ad37631c6aabc64743f4f45e1f8b796d4bc9725", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1057", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\naverage home team goal = AVG(home_team_goal)= SUM(home_team_goal) / COUNT(DISTINCT Match.id) WHERE name = 'Poland' and season = '2010/2011';\n\nQuestion:\nCalculate the average home team goal in the 2010/2011 season in the country of Poland.", + "question": "Calculate the average home team goal in the 2010/2011 season in the country of Poland.", + "evidence": "average home team goal = AVG(home_team_goal)= SUM(home_team_goal) / COUNT(DISTINCT Match.id) WHERE name = 'Poland' and season = '2010/2011';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011'", + "source_gold_sql": "SELECT CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011'", + "source_gold_sql_sha256": "fd42df849cd922378e9ddd9596be9aac0bcf34b21ea8282b1cec6cb634250157", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1058", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nfinishing rate refers to finishing; highest average finishing rate = MAX(AVG(finishing)); highest football player refers to MAX(height); shortest football player refers to MIN(height);\n\nQuestion:\nWho has the highest average finishing rate between the highest and shortest football player? Output either 'highest' or 'shortest' as the answer.", + "question": "Who has the highest average finishing rate between the highest and shortest football player? Output either 'highest' or 'shortest' as the answer.", + "evidence": "finishing rate refers to finishing; highest average finishing rate = MAX(AVG(finishing)); highest football player refers to MAX(height); shortest football player refers to MIN(height);", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT A FROM (SELECT AVG(finishing) result, 'highest' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = (SELECT MAX(height) FROM Player) UNION SELECT AVG(finishing) result, 'shortest' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = (SELECT MIN(height) FROM Player)) tmp ORDER BY result DESC LIMIT 1", + "source_gold_sql": "SELECT A FROM (SELECT AVG(finishing) result, 'highest' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = (SELECT MAX(height) FROM Player) UNION SELECT AVG(finishing) result, 'shortest' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = (SELECT MIN(height) FROM Player)) tmp ORDER BY result DESC LIMIT 1", + "source_gold_sql_sha256": "a1f2e041ee5d5d331e3477e5b86ad9627f043eafb7e5608583865a3bfd9762f4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1068", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nfrom 2010 to 2015 refers to strftime('%Y', date) >= '2010' AND <= '2015'; average overall rating = SUM(t2.overall_rating)/ COUNT(t2.id); higher than 170 refers to Player.height > 170;\n\nQuestion:\nFrom 2010 to 2015, what was the average overall rating of players who are higher than 170?", + "question": "From 2010 to 2015, what was the average overall rating of players who are higher than 170?", + "evidence": "from 2010 to 2015 refers to strftime('%Y', date) >= '2010' AND <= '2015'; average overall rating = SUM(t2.overall_rating)/ COUNT(t2.id); higher than 170 refers to Player.height > 170;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT AVG(t2.overall_rating) AS avg_rating\nFROM `Player` AS t1\nJOIN `Player_Attributes` AS t2 ON t1.player_api_id = t2.player_api_id\nWHERE t1.height > 170\n AND strftime('%Y', t2.`date`) BETWEEN '2010' AND '2015';", + "source_gold_sql": "SELECT AVG(t2.overall_rating) AS avg_rating\nFROM `Player` AS t1\nJOIN `Player_Attributes` AS t2 ON t1.player_api_id = t2.player_api_id\nWHERE t1.height > 170\n AND strftime('%Y', t2.`date`) BETWEEN '2010' AND '2015';", + "source_gold_sql_sha256": "16d1a5912b7443c8aa954396dd3efc2d7a54d9d180cbbd1244c36c0ddd935e39", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1076", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\ndifference of the average ball control = SUBTRACT(AVG(ball_control WHERE player_name = 'Abdou Diallo'), AVG(ball_control WHERE player_name = 'Aaron Appindangoye')); AVG(ball_control WHERE player_name = 'XX XX') = SUM(CASE WHEN player_name = 'XX XX' THEN ball_control ELSE 0 END) / COUNT(CASE WHEN player_name = 'XX XX' THEN id ELSE NULL END)\n\nQuestion:\nWhat is the difference of the average ball control score between Abdou Diallo and Aaron Appindangoye?", + "question": "What is the difference of the average ball control score between Abdou Diallo and Aaron Appindangoye?", + "evidence": "difference of the average ball control = SUBTRACT(AVG(ball_control WHERE player_name = 'Abdou Diallo'), AVG(ball_control WHERE player_name = 'Aaron Appindangoye')); AVG(ball_control WHERE player_name = 'XX XX') = SUM(CASE WHEN player_name = 'XX XX' THEN ball_control ELSE 0 END) / COUNT(CASE WHEN player_name = 'XX XX' THEN id ELSE NULL END)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.id ELSE NULL END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.id ELSE NULL END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id", + "source_gold_sql_sha256": "93ecd3764a1527b123056130e0b5176ebf2336adf011cf6d77ad11c6562e4889", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1078", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nThe larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nWhich player is older, Aaron Lennon or Abdelaziz Barrada?", + "question": "Which player is older, Aaron Lennon or Abdelaziz Barrada?", + "evidence": "The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC LIMIT 1", + "source_gold_sql": "SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC LIMIT 1", + "source_gold_sql_sha256": "2c37fc0ebba8d1eb66c8600ee8f6f7ff52b9fab10485e099c342cc20b8b8340d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1079", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\ntallest player refers to MAX(height);\n\nQuestion:\nWhich player is the tallest?", + "question": "Which player is the tallest?", + "evidence": "tallest player refers to MAX(height);", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT player_name FROM Player ORDER BY height DESC LIMIT 1", + "source_gold_sql": "SELECT player_name FROM Player ORDER BY height DESC LIMIT 1", + "source_gold_sql_sha256": "6c40e69a670198d4d7bfd9d4481f3537fd52fbd7ed15f0bb8a35c6bdf30ead75", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1080", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\npreferred foot when attacking was the left refers to preferred_foot = 'left'; players who would remain in his position when the team attacked refers to attacking_work_rate = 'low';\n\nQuestion:\nAmong the players whose preferred foot was the left foot when attacking, how many of them would remain in his position when the team attacked?", + "question": "Among the players whose preferred foot was the left foot when attacking, how many of them would remain in his position when the team attacked?", + "evidence": "preferred foot when attacking was the left refers to preferred_foot = 'left'; players who would remain in his position when the team attacked refers to attacking_work_rate = 'low';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'", + "source_gold_sql": "SELECT COUNT(DISTINCT player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'", + "source_gold_sql_sha256": "ca834f30e11d94ad653aef65e924109a8e258c35353769a345f978fa4e5362c4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1084", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nplayers born before the year 1986 refers to strftime('%Y', birthday)<'1986'; players who would remain in his position and defense while the team attacked refers to defensive_work_rate = 'high'; Should consider DISTINCT in the final result;\n\nQuestion:\nAmong the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?", + "question": "Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?", + "evidence": "players born before the year 1986 refers to strftime('%Y', birthday)<'1986'; players who would remain in his position and defense while the team attacked refers to defensive_work_rate = 'high'; Should consider DISTINCT in the final result;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'", + "source_gold_sql": "SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'", + "source_gold_sql_sha256": "a953383fe776c19141fdccac3c791ed08e900615e2b4f8c9baf7cc8536b5db13", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1088", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nvolley score are over 70 refers to volleys > 70; dribbling score refers to dribbling are over 70 refers to dribbling > 70;\n\nQuestion:\nPlease list the names of the players whose volley score and dribbling score are over 70.", + "question": "Please list the names of the players whose volley score and dribbling score are over 70.", + "evidence": "volley score are over 70 refers to volleys > 70; dribbling score refers to dribbling are over 70 refers to dribbling > 70;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70", + "source_gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70", + "source_gold_sql_sha256": "6b7d2a0548377c1f78d709b4e652a61b473f7dab4bf44d3597f8d3bdd3d3df3d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1091", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nBelgium Jupiler League refers to League.name = 'Belgium Jupiler League'; in April, 2009 refers to SUBSTR(\"date\", 1, 7);\n\nQuestion:\nHow many matches were held in the Belgium Jupiler League in April, 2009?", + "question": "How many matches were held in the Belgium Jupiler League in April, 2009?", + "evidence": "Belgium Jupiler League refers to League.name = 'Belgium Jupiler League'; in April, 2009 refers to SUBSTR(\"date\", 1, 7);", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTR(t2.\"date\", 1, 7) = '2009-04'", + "source_gold_sql": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTR(t2.\"date\", 1, 7) = '2009-04'", + "source_gold_sql_sha256": "db67e25e5c44217e8968a73ede9fe45179744d5aa70a9d41bf484c9cf81a5dbe", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1092", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nleague that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');\n\nQuestion:\nGive the names of the leagues with the most matches in the 2008/2009 season?", + "question": "Give the names of the leagues with the most matches in the 2008/2009 season?", + "evidence": "league that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))", + "source_gold_sql": "SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))", + "source_gold_sql_sha256": "fde0a6b3a50ddcf0b36569f93cc950e455ee597ea570721790ad92509c1fa9a2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1094", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nhow much higher in percentage = MULTIPLY(DIVIDE(SUBTRACT(overall_rating WHERE player_name = 'Ariel Borysiuk', overall_rating WHERE player_name = 'Paulin Puel'), overall_rating WHERE player_name = 'Paulin Puel'), 100); overall_rating = SUM(overall_rating)\n\nQuestion:\nHow much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel?", + "question": "How much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel?", + "evidence": "how much higher in percentage = MULTIPLY(DIVIDE(SUBTRACT(overall_rating WHERE player_name = 'Ariel Borysiuk', overall_rating WHERE player_name = 'Paulin Puel'), overall_rating WHERE player_name = 'Paulin Puel'), 100); overall_rating = SUM(overall_rating)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "with ab as (select t2.overall_rating as rating from Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id where t1.player_name = 'Ariel Borysiuk' order by date desc limit 1),\npp as (select t2.overall_rating as rating from Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id where t1.player_name = 'Paulin Puel' order by date desc limit 1)\nselect (t3.rating - t4.rating) * 100.0 / t4.rating from ab t3 cross join pp t4", + "source_gold_sql": "SELECT (SUM(CASE WHEN t1.player_name = 'Ariel Borysiuk' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id", + "source_gold_sql_sha256": "74d035f439d4702907973eed2eec96d84314988c2b84ae3b916cae943c846a8d", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1096", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nPietro Marino refers to player_name = 'Pietro Marino'; average overall rating AVG(T1.overall_rating)\n\nQuestion:\nCalculate the average overall rating of Pietro Marino.", + "question": "Calculate the average overall rating of Pietro Marino.", + "evidence": "Pietro Marino refers to player_name = 'Pietro Marino'; average overall rating AVG(T1.overall_rating)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'", + "source_gold_sql": "SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'", + "source_gold_sql_sha256": "8b2396113f21c00b58aa280cbc741eb4fbfdd25be50c89335819a55807f71e30", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1098", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nAjax's refers to team_long_name = 'Ajax'; chance creation passing score refers to MAX(chanceCreationPassing); classified refer to chanceCreationPassingClass\n\nQuestion:\nWhat is Ajax's highest chance creation passing score and what is it classified as?", + "question": "What is Ajax's highest chance creation passing score and what is it classified as?", + "evidence": "Ajax's refers to team_long_name = 'Ajax'; chance creation passing score refers to MAX(chanceCreationPassing); classified refer to chanceCreationPassingClass", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.chanceCreationPassing, t2.chanceCreationPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Ajax' ORDER BY t2.chanceCreationPassing DESC LIMIT 1", + "source_gold_sql": "SELECT t2.chanceCreationPassing, t2.chanceCreationPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Ajax' ORDER BY t2.chanceCreationPassing DESC LIMIT 1", + "source_gold_sql_sha256": "b2baf391cccdfe0f86f043d03a402136cf8d9660f967f2da7902c64499932db3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1102", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\n77 points overall rating refers to overall_rating = 77; on 2016/6/23 refers to date LIKE '2016-06-23%'; The larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nFor the players who had a 77 points overall rating on 2016/6/23, who was the oldest? Give the name of the player.", + "question": "For the players who had a 77 points overall rating on 2016/6/23, who was the oldest? Give the name of the player.", + "evidence": "77 points overall rating refers to overall_rating = 77; on 2016/6/23 refers to date LIKE '2016-06-23%'; The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t2.\"date\", 1, 10) = '2016-06-23' AND t2.overall_rating = 77 ORDER BY t1.birthday ASC LIMIT 1", + "source_gold_sql": "SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t2.\"date\", 1, 10) = '2016-06-23' AND t2.overall_rating = 77 ORDER BY t1.birthday ASC LIMIT 1", + "source_gold_sql_sha256": "d69c79afd68101903164ea6f71b0466943fc3cf41a111069f523c877b7451b26", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1103", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nAaron Mooy refers to player_name = 'Aaron Mooy'; on 2016/2/4 refers to date LIKE '2016-02-04%';\n\nQuestion:\nWhat was the overall rating for Aaron Mooy on 2016/2/4?", + "question": "What was the overall rating for Aaron Mooy on 2016/2/4?", + "evidence": "Aaron Mooy refers to player_name = 'Aaron Mooy'; on 2016/2/4 refers to date LIKE '2016-02-04%';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t2.\"date\", 1, 10) = '2016-02-04' AND t1.player_name = 'Aaron Mooy'", + "source_gold_sql": "SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t2.\"date\", 1, 10) = '2016-02-04' AND t1.player_name = 'Aaron Mooy'", + "source_gold_sql_sha256": "2c07be013037387f8f40e517f6232ab4d6b6b3c2224c3bb7ade6da70e7c4259c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1105", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nFrancesco Migliore refers to player_name = 'Francesco Migliore'; on 2015/5/1 refers to date LIKE '2015-05-01%';\n\nQuestion:\nHow was Francesco Migliore's attacking work rate on 2015/5/1?", + "question": "How was Francesco Migliore's attacking work rate on 2015/5/1?", + "evidence": "Francesco Migliore refers to player_name = 'Francesco Migliore'; on 2015/5/1 refers to date LIKE '2015-05-01%';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.attacking_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.\"date\" LIKE '2015-05-01%' AND t1.player_name = 'Francesco Migliore'", + "source_gold_sql": "SELECT t2.attacking_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.\"date\" LIKE '2015-05-01%' AND t1.player_name = 'Francesco Migliore'", + "source_gold_sql_sha256": "d93a0e247c71b791bca3930146c9d36a2a570f025b0e1ab9b5313c3e6eebec18", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1107", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nKevin Constant refers to player_name = 'Kevin Constant'; highest crossing score refers to MAX(crossing)\n\nQuestion:\nWhen was the first time did Kevin Constant have his highest crossing score? Give the date.", + "question": "When was the first time did Kevin Constant have his highest crossing score? Give the date.", + "evidence": "Kevin Constant refers to player_name = 'Kevin Constant'; highest crossing score refers to MAX(crossing)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.`date` FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Kevin Constant' ORDER BY t2.crossing DESC, t2.`date` ASC LIMIT 1", + "source_gold_sql": "SELECT t2.`date` FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Kevin Constant' ORDER BY t2.crossing DESC, t2.`date` ASC LIMIT 1", + "source_gold_sql_sha256": "1870185582406d6ef171ab4981cb65935d827fe4f4c6abe98a33e414388cc517", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1110", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nFC Lorient refers to team_long_name = 'FC Lorient'; on 2010/2/22 refers to date LIKE '2010-02-22%';\n\nQuestion:\nTell the build Up play passing class for \"FC Lorient\" on 2010/2/22.", + "question": "Tell the build Up play passing class for \"FC Lorient\" on 2010/2/22.", + "evidence": "FC Lorient refers to team_long_name = 'FC Lorient'; on 2010/2/22 refers to date LIKE '2010-02-22%';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.buildUpPlayPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'FC Lorient' AND t2.\"date\" LIKE '2010-02-22%'", + "source_gold_sql": "SELECT t2.buildUpPlayPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'FC Lorient' AND t2.\"date\" LIKE '2010-02-22%'", + "source_gold_sql_sha256": "04848afd944484a1e7a2f86a3b6f101eea533b639f6cb6b70241a57800dba6f1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1113", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nHannover 96 refers to team_long_name = 'Hannover 96'; on 2015/9/10 refers to date LIKE '2015-09-10%';\n\nQuestion:\nFor the team \"Hannover 96\", what was its defence aggression class on 2015/9/10?", + "question": "For the team \"Hannover 96\", what was its defence aggression class on 2015/9/10?", + "evidence": "Hannover 96 refers to team_long_name = 'Hannover 96'; on 2015/9/10 refers to date LIKE '2015-09-10%';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.defenceAggressionClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2.\"date\" LIKE '2015-09-10%'", + "source_gold_sql": "SELECT t2.defenceAggressionClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2.\"date\" LIKE '2015-09-10%'", + "source_gold_sql_sha256": "cb3c3f0a0a8028d1b65a88e822206441da4e6e57b11395872881bad9b1ea4133", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1114", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\naverage overall rating refers to avg(overall_rating); Marko Arnautovic refers to player_name = 'Marko Arnautovic'; from 2007/2/22 to 2016/4/21 refers to the first 10 characters of date BETWEEN '2007-02-22' and '2016-04-21'\n\nQuestion:\nWhat was the average overall rating for Marko Arnautovic from 2007/2/22 to 2016/4/21?", + "question": "What was the average overall rating for Marko Arnautovic from 2007/2/22 to 2016/4/21?", + "evidence": "average overall rating refers to avg(overall_rating); Marko Arnautovic refers to player_name = 'Marko Arnautovic'; from 2007/2/22 to 2016/4/21 refers to the first 10 characters of date BETWEEN '2007-02-22' and '2016-04-21'", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTR(t2.\"date\", 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'", + "source_gold_sql": "SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTR(t2.\"date\", 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'", + "source_gold_sql_sha256": "69c2003cf74273644840354244094910d1c6c524f533e8efee62c0720e1bbcbe", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1115", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nLandon Donovan's refers to player_name = 'Landon Donovan'; Jordan Bowery refers to player_name = 'Jordan Bowery'; percentage refers to DIVIDE(SUBTRACT(player_name = 'Landon Donovan' overall_rating; player_name = 'Jordan Bowery' overall_rating), player_name = 'Landon Donovan' overall_rating)*100\n\nQuestion:\nWhat percentage is Landon Donovan's overall rating higher than Jordan Bowery on 2013/7/12?", + "question": "What percentage is Landon Donovan's overall rating higher than Jordan Bowery on 2013/7/12?", + "evidence": "Landon Donovan's refers to player_name = 'Landon Donovan'; Jordan Bowery refers to player_name = 'Jordan Bowery'; percentage refers to DIVIDE(SUBTRACT(player_name = 'Landon Donovan' overall_rating; player_name = 'Jordan Bowery' overall_rating), player_name = 'Landon Donovan' overall_rating)*100", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT (SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) * 1.0 - \nSUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN t2.overall_rating ELSE 0 END)) * 100 / \nSUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN t2.overall_rating ELSE 0 END) LvsJ_percent \nFROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTR(t2.date, 1, 10) = '2013-07-12'", + "source_gold_sql": "SELECT (SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) LvsJ_percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTR(t2.\"date\", 1, 10) = '2013-07-12'", + "source_gold_sql_sha256": "ebdcee093ab71befff2fe25770cac8b5124337d3c6e514fc201456526f4536b6", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1116", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\ntallest refers to rank based on the height in descending order; Most tallest players refers to rank = 1\n\nQuestion:\nList down most tallest players' name.", + "question": "List down most tallest players' name.", + "evidence": "tallest refers to rank based on the height in descending order; Most tallest players refers to rank = 1", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT player_name FROM (SELECT player_name, height, DENSE_RANK() OVER (ORDER BY height DESC) as rank FROM Player) WHERE rank = 1", + "source_gold_sql": "SELECT player_name FROM (SELECT player_name, height, DENSE_RANK() OVER (ORDER BY height DESC) as rank FROM Player) WHERE rank = 1", + "source_gold_sql_sha256": "f2e63e210b1d71a7078cafc5cc562157d5567c79fad1f0a8ad579c6e51df8dd5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1122", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nstrongest players refers to player has MAX(overall_rating)\n\nQuestion:\nState the name of the most strongest player.", + "question": "State the name of the most strongest player.", + "evidence": "strongest players refers to player has MAX(overall_rating)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) FROM Player_Attributes)", + "source_gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) FROM Player_Attributes)", + "source_gold_sql_sha256": "4a9ef28464fe26b633b5863fe731ce8444dc21663faaad9e1c5e1907280d8d77", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1124", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\ntend to be attacking when their mates were doing attack moves refers to attacking_work_rate = 'high';\n\nQuestion:\nWho are the players that tend to be attacking when their mates were doing attack moves? List down their name.", + "question": "Who are the players that tend to be attacking when their mates were doing attack moves? List down their name.", + "evidence": "tend to be attacking when their mates were doing attack moves refers to attacking_work_rate = 'high';", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'", + "source_gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'", + "source_gold_sql_sha256": "162369e2707945610dfec1b2c1b1e821d490e68108eb8c706ad0942838a1f9b8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1130", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nplayed safe while creating chance of passing refers to chanceCreationPassingClass = 'Safe'; short name of team refers to team_short_name\n\nQuestion:\nWhat are the short name of team who played safe while creating chance of passing?", + "question": "What are the short name of team who played safe while creating chance of passing?", + "evidence": "played safe while creating chance of passing refers to chanceCreationPassingClass = 'Safe'; short name of team refers to team_short_name", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'", + "source_gold_sql": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'", + "source_gold_sql_sha256": "e6b5afaa94dab7332321af715e8ce901b3264437c02553f27b32d4f1cd5e21fd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1133", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nfirst name \"Aaron\" refers to player_name LIKE 'Aaron%'; born after the 1990s refers to STRFTIME('%Y', birthday) > '1990'\n\nQuestion:\nHow many football players born after the 1990s have the first name \"Aaron\"?", + "question": "How many football players born after the 1990s have the first name \"Aaron\"?", + "evidence": "first name \"Aaron\" refers to player_name LIKE 'Aaron%'; born after the 1990s refers to STRFTIME('%Y', birthday) > '1990'", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT COUNT(id) FROM Player WHERE STRFTIME('%Y', birthday) > '1990' AND player_name LIKE 'Aaron%'", + "source_gold_sql": "SELECT COUNT(id) FROM Player WHERE STRFTIME('%Y', birthday) > '1990' AND player_name LIKE 'Aaron%'", + "source_gold_sql_sha256": "41d9be489944bd1bf4ea2f59054fede5431019460872cc1f9018c33428f5ab36", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1134", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\ndifference between attribute 6 and 23's jumping scores refers to SUBTRACT(jumping WHEN id = 6,jumping WHEN id = 23)\n\nQuestion:\nWhat is the difference between attribute 6 and 23's jumping scores?", + "question": "What is the difference between attribute 6 and 23's jumping scores?", + "evidence": "difference between attribute 6 and 23's jumping scores refers to SUBTRACT(jumping WHEN id = 6,jumping WHEN id = 23)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN t1.id = 6 THEN t1.jumping ELSE 0 END) - SUM(CASE WHEN t1.id = 23 THEN t1.jumping ELSE 0 END) FROM Player_Attributes AS t1", + "source_gold_sql": "SELECT SUM(CASE WHEN t1.id = 6 THEN t1.jumping ELSE 0 END) - SUM(CASE WHEN t1.id = 23 THEN t1.jumping ELSE 0 END) FROM Player_Attributes AS t1", + "source_gold_sql_sha256": "eb5dda8c177aa365a3ab349869741fc2a47213489dea3ee66aa2179e982e18f2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1135", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nlowest potential players refers to MIN(potential); prefer to use the right foot when attacking refers to preferred_foot = 'right'\n\nQuestion:\nPlease provide the four player attribute IDs with the lowest potential who prefer to use the right foot when attacking.", + "question": "Please provide the four player attribute IDs with the lowest potential who prefer to use the right foot when attacking.", + "evidence": "lowest potential players refers to MIN(potential); prefer to use the right foot when attacking refers to preferred_foot = 'right'", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential ASC LIMIT 4", + "source_gold_sql": "SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential ASC LIMIT 4", + "source_gold_sql_sha256": "4a329fc467024369a109104933a9f26b4278c6236a1635a8c059e54e961b63e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1136", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nhighest potential score for crossing refers to MAX(crossing); preferred to use their left foots while attacking refers to preferred_foot = 'left'\n\nQuestion:\nHow many players had the highest potential score for crossing that preferred to use their left foots while attacking?", + "question": "How many players had the highest potential score for crossing that preferred to use their left foots while attacking?", + "evidence": "highest potential score for crossing refers to MAX(crossing); preferred to use their left foots while attacking refers to preferred_foot = 'left'", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT t1.player_api_id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)", + "source_gold_sql": "SELECT COUNT(DISTINCT t1.player_api_id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)", + "source_gold_sql_sha256": "d230edc789d45e4fb4f9046426cdfbca87daf4a11ce5d529725ab75cb881dc76", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1139", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nSeptember 24, 2008 refers to date like '2008-09-24%'; in the Belgian Jupiler League refers to League.name = 'Belgium Jupiler League'; final score for home team refers to home_team_goal; final score for away team refers to away_team_goal\n\nQuestion:\nWhat was the final score for the match on September 24, 2008, in the Belgian Jupiler League between the home team and the away team?", + "question": "What was the final score for the match on September 24, 2008, in the Belgian Jupiler League between the home team and the away team?", + "evidence": "September 24, 2008 refers to date like '2008-09-24%'; in the Belgian Jupiler League refers to League.name = 'Belgium Jupiler League'; final score for home team refers to home_team_goal; final score for away team refers to away_team_goal", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.home_team_goal, t2.away_team_goal FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND t2.\"date\" LIKE '2008-09-24%'", + "source_gold_sql": "SELECT t2.home_team_goal, t2.away_team_goal FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND t2.\"date\" LIKE '2008-09-24%'", + "source_gold_sql_sha256": "328ff955ed9220bf0049042c0377b996c175f985883262a35a9920d2d64108e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1141", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nKSV Cercle Brugge refers to team_long_name = 'KSV Cercle Brugge'; speed class refers to buildUpPlaySpeedClass\n\nQuestion:\nWhat are the slow, balanced or fast speed classes for the KSV Cercle Brugge team?", + "question": "What are the slow, balanced or fast speed classes for the KSV Cercle Brugge team?", + "evidence": "KSV Cercle Brugge refers to team_long_name = 'KSV Cercle Brugge'; speed class refers to buildUpPlaySpeedClass", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.buildUpPlaySpeedClass FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.team_long_name = 'KSV Cercle Brugge'", + "source_gold_sql": "SELECT DISTINCT t1.buildUpPlaySpeedClass FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.team_long_name = 'KSV Cercle Brugge'", + "source_gold_sql_sha256": "7ae954b3429b962fda98f22e34adc84434129e149020912c49c02e9b92270f3d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1144", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nfinishing rate refer to finishing; curve score refer to curve; heaviest weight refers to MAX(weight)\n\nQuestion:\nPlease state the finishing rates and curve scores of the players who have the heaviest weight.", + "question": "Please state the finishing rates and curve scores of the players who have the heaviest weight.", + "evidence": "finishing rate refer to finishing; curve score refer to curve; heaviest weight refers to MAX(weight)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT finishing, curve FROM Player_Attributes WHERE player_api_id IN (SELECT player_api_id FROM Player WHERE weight = (SELECT MAX(weight) from Player))", + "source_gold_sql": "SELECT finishing, curve FROM Player_Attributes WHERE player_api_id IN (SELECT player_api_id FROM Player WHERE weight = (SELECT MAX(weight) from Player))", + "source_gold_sql_sha256": "33065b0e197eee6a6c05930ed7a2abe07b7d765dc943ca8eab4115657bb1d98c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1145", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nin the 2015-2016 season refers to season = '2015/2016'; league with most games refers to League.name where MAX(COUNT(id))\n\nQuestion:\nWhich top 4 leagues had the most games in the 2015-2016 season?", + "question": "Which top 4 leagues had the most games in the 2015-2016 season?", + "evidence": "in the 2015-2016 season refers to season = '2015/2016'; league with most games refers to League.name where MAX(COUNT(id))", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4", + "source_gold_sql": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4", + "source_gold_sql_sha256": "bd8107adc4e7941e1c6938bb003f48e5f391b12b6d998ba6e5f48c210ffdcaac", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1146", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\nfull name refers to team_long_name; away team refers to away_team_api_id; scored the most goals refers to MAX(away_team_goal)\n\nQuestion:\nPlease provide the full name of the away team that scored the most goals.", + "question": "Please provide the full name of the away team that scored the most goals.", + "evidence": "full name refers to team_long_name; away team refers to away_team_api_id; scored the most goals refers to MAX(away_team_goal)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT t2.team_long_name FROM Match AS t1 INNER JOIN Team AS t2 ON t1.away_team_api_id = t2.team_api_id ORDER BY t1.away_team_goal DESC LIMIT 1", + "source_gold_sql": "SELECT t2.team_long_name FROM Match AS t1 INNER JOIN Team AS t2 ON t1.away_team_api_id = t2.team_api_id ORDER BY t1.away_team_goal DESC LIMIT 1", + "source_gold_sql_sha256": "a481fd97d6326d8159717d84abe902e3cafd4843e2271a7a55571deec32d56bc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1147", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\noverall strength is the greatest refers to MAX(overall_rating)\n\nQuestion:\nPlease name one player whose overall strength is the greatest.", + "question": "Please name one player whose overall strength is the greatest.", + "evidence": "overall strength is the greatest refers to MAX(overall_rating)", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = ( SELECT MAX(overall_rating) FROM Player_Attributes)", + "source_gold_sql": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = ( SELECT MAX(overall_rating) FROM Player_Attributes)", + "source_gold_sql_sha256": "025f3b6cded055507524fbffca55ceb01ec23441010bb8e127d30121af660248", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1148", + "domain": "european_football_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Team_Attributes (\n `id` integer, -- the unique id for teams.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_api_id` integer, -- team api id. the id of the team api.\n `date` text, -- Date. e.g. 2010-02-22 00:00:00.\n `buildUpPlaySpeed` integer, -- build Up Play Speed. the speed in which attacks are put together. the score which is between 1-00 to measure the team's attack speed.\n `buildUpPlaySpeedClass` text, -- build Up Play Speed Class. the speed class. commonsense reasoning:. • Slow: 1-33. • Balanced: 34-66. • Fast: 66-100.\n `buildUpPlayDribbling` integer, -- build Up Play Dribbling. the tendency/ frequency of dribbling.\n `buildUpPlayDribblingClass` text, -- build Up Play Dribbling Class. the dribbling class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `buildUpPlayPassing` integer, -- build Up Play Passing. affects passing distance and support from teammates.\n `buildUpPlayPassingClass` text, -- build Up Play Passing Class. the passing class. commonsense reasoning:. • Short: 1-33. • Mixed: 34-66. • Long: 66-100.\n `buildUpPlayPositioningClass` text, -- build Up Play Positioning Class. A team's freedom of movement in the 1st two thirds of the pitch. Organised / Free Form.\n `chanceCreationPassing` integer, -- chance Creation Passing. Amount of risk in pass decision and run support.\n `chanceCreationPassingClass` text, -- chance Creation Passing Class. the chance creation passing class. commonsense reasoning:. • Safe: 1-33. • Normal: 34-66. • Risky: 66-100.\n `chanceCreationCrossing` integer, -- chance Creation Crossing. The tendency / frequency of crosses into the box.\n `chanceCreationCrossingClass` text, -- chance Creation Crossing Class. the chance creation crossing class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationShooting` integer, -- chance Creation Shooting. The tendency / frequency of shots taken.\n `chanceCreationShootingClass` text, -- chance Creation Shooting Class. the chance creation shooting class. commonsense reasoning:. • Little: 1-33. • Normal: 34-66. • Lots: 66-100.\n `chanceCreationPositioningClass` text, -- chance Creation Positioning Class. A team’s freedom of movement in the final third of the pitch. Organised / Free Form.\n `defencePressure` integer, -- defence Pressure. Affects how high up the pitch the team will start pressuring.\n `defencePressureClass` text, -- defence Pressure Class. the defence pressure class. commonsense reasoning:. • Deep: 1-33. • Medium: 34-66. • High: 66-100.\n `defenceAggression` integer, -- defence Aggression. Affect the team’s approach to tackling the ball possessor.\n `defenceAggressionClass` text, -- defence Aggression Class. the defence aggression class. commonsense reasoning:. • Contain: 1-33. • Press: 34-66. • Double: 66-100.\n `defenceTeamWidth` integer, -- defence Team Width. Affects how much the team will shift to the ball side.\n `defenceTeamWidthClass` text, -- defence Team Width Class. the defence team width class. commonsense reasoning:. • Narrow: 1-33. • Normal: 34-66. • Wide: 66-100.\n `defenceDefenderLineClass` text, -- defence Defender Line Class. Affects the shape and strategy of the defence. Cover/ Offside Trap.\n primary key (id)\n);\n\nCREATE TABLE Player (\n `id` integer, -- the unique id for players.\n `player_api_id` integer, -- player api id. the id of the player api.\n `player_name` text, -- player name.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `birthday` text, -- the player's birthday. e.g. 1992-02-29 00:00:00. commonsense reasoning:. Player A is older than player B means that A's birthday is earlier than B's.\n `height` integer, -- the player's height.\n `weight` integer, -- the player's weight.\n primary key (id)\n);\n\nCREATE TABLE Match (\n `id` integer, -- the unique id for matches.\n `country_id` integer, -- country id.\n `league_id` integer, -- league id.\n `season` text, -- the season of the match.\n `stage` integer, -- the stage of the match.\n `date` text, -- the date of the match. e.g. 2008-08-17 00:00:00.\n `match_api_id` integer, -- match api id. the id of the match api.\n `home_team_api_id` integer, -- home team api id. the id of the home team api.\n `away_team_api_id` integer, -- away team api id. the id of the away team api.\n `home_team_goal` integer, -- home team goal. the goal of the home team.\n `away_team_goal` integer, -- away team goal. the goal of the away team.\n `home_player_X1` integer, -- No description.\n `home_player_X2` integer, -- No description.\n `home_player_X3` integer, -- No description.\n `home_player_X4` integer, -- No description.\n `home_player_X5` integer, -- No description.\n `home_player_X6` integer, -- No description.\n `home_player_X7` integer, -- No description.\n `home_player_X8` integer, -- No description.\n `home_player_X9` integer, -- No description.\n `home_player_X10` integer, -- No description.\n `home_player_X11` integer, -- No description.\n `away_player_X1` integer, -- No description.\n `away_player_X2` integer, -- No description.\n `away_player_X3` integer, -- No description.\n `away_player_X4` integer, -- No description.\n `away_player_X5` integer, -- No description.\n `away_player_X6` integer, -- No description.\n `away_player_X7` integer, -- No description.\n `away_player_X8` integer, -- No description.\n `away_player_X9` integer, -- No description.\n `away_player_X10` integer, -- No description.\n `away_player_X11` integer, -- No description.\n `home_player_Y1` integer, -- No description.\n `home_player_Y2` integer, -- No description.\n `home_player_Y3` integer, -- No description.\n `home_player_Y4` integer, -- No description.\n `home_player_Y5` integer, -- No description.\n `home_player_Y6` integer, -- No description.\n `home_player_Y7` integer, -- No description.\n `home_player_Y8` integer, -- No description.\n `home_player_Y9` integer, -- No description.\n `home_player_Y10` integer, -- No description.\n `home_player_Y11` integer, -- No description.\n `away_player_Y1` integer, -- No description.\n `away_player_Y2` integer, -- No description.\n `away_player_Y3` integer, -- No description.\n `away_player_Y4` integer, -- No description.\n `away_player_Y5` integer, -- No description.\n `away_player_Y6` integer, -- No description.\n `away_player_Y7` integer, -- No description.\n `away_player_Y8` integer, -- No description.\n `away_player_Y9` integer, -- No description.\n `away_player_Y10` integer, -- No description.\n `away_player_Y11` integer, -- No description.\n `home_player_1` integer, -- No description.\n `home_player_2` integer, -- No description.\n `home_player_3` integer, -- No description.\n `home_player_4` integer, -- No description.\n `home_player_5` integer, -- No description.\n `home_player_6` integer, -- No description.\n `home_player_7` integer, -- No description.\n `home_player_8` integer, -- No description.\n `home_player_9` integer, -- No description.\n `home_player_10` integer, -- No description.\n `home_player_11` integer, -- No description.\n `away_player_1` integer, -- No description.\n `away_player_2` integer, -- No description.\n `away_player_3` integer, -- No description.\n `away_player_4` integer, -- No description.\n `away_player_5` integer, -- No description.\n `away_player_6` integer, -- No description.\n `away_player_7` integer, -- No description.\n `away_player_8` integer, -- No description.\n `away_player_9` integer, -- No description.\n `away_player_10` integer, -- No description.\n `away_player_11` integer, -- No description.\n `goal` text, -- the goal of the match.\n `shoton` text, -- shot on. the shot on goal of the match. commonsense reasoning:. A shot on goal is a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `shotoff` text, -- shot off. the shot off goal of the match, which is the opposite of shot on.\n `foulcommit` text, -- foul commit. the fouls occurred in the match.\n `card` text, -- the cards given in the match.\n `cross` text, -- Balls sent into the opposition team's area from a wide position in the match.\n `corner` text, -- Ball goes out of play for a corner kick in the match.\n `possession` text, -- The duration from a player taking over the ball in the match.\n `B365H` real, -- No description.\n `B365D` real, -- No description.\n `B365A` real, -- No description.\n `BWH` real, -- No description.\n `BWD` real, -- No description.\n `BWA` real, -- No description.\n `IWH` real, -- No description.\n `IWD` real, -- No description.\n `IWA` real, -- No description.\n `LBH` real, -- No description.\n `LBD` real, -- No description.\n `LBA` real, -- No description.\n `PSH` real, -- No description.\n `PSD` real, -- No description.\n `PSA` real, -- No description.\n `WHH` real, -- No description.\n `WHD` real, -- No description.\n `WHA` real, -- No description.\n `SJH` real, -- No description.\n `SJD` real, -- No description.\n `SJA` real, -- No description.\n `VCH` real, -- No description.\n `VCD` real, -- No description.\n `VCA` real, -- No description.\n `GBH` real, -- No description.\n `GBD` real, -- No description.\n `GBA` real, -- No description.\n `BSH` real, -- No description.\n `BSD` real, -- No description.\n `BSA` real, -- No description.\n primary key (id)\n);\n\nCREATE TABLE League (\n `id` integer, -- the unique id for leagues.\n `country_id` integer, -- country id. the unique id for countries.\n `name` text, -- league name.\n primary key (id)\n);\n\nCREATE TABLE Country (\n `id` integer, -- the unique id for countries.\n `name` text, -- country name.\n primary key (id)\n);\n\nCREATE TABLE Player_Attributes (\n `id` integer, -- the unique id for players.\n `player_fifa_api_id` integer, -- player federation international football association api id. the id of the player fifa api.\n `player_api_id` integer, -- player api id. the id of the player api.\n `date` text, -- date. e.g. 2016-02-18 00:00:00.\n `overall_rating` integer, -- the overall rating of the player. commonsense reasoning:. The rating is between 0-100 which is calculated by FIFA. Higher overall rating means the player has a stronger overall strength.\n `potential` integer, -- potential of the player. commonsense reasoning:. The potential score is between 0-100 which is calculated by FIFA. Higher potential score means that the player has more potential.\n `preferred_foot` text, -- preferred foot. the player's preferred foot when attacking. right/ left.\n `attacking_work_rate` text, -- attacking work rate. the player's attacking work rate. commonsense reasoning:. • high: implies that the player is going to be in all of your attack moves. • medium: implies that the player will select the attack actions he will join in. • low: remain in his position while the team attacks.\n `defensive_work_rate` text, -- the player's defensive work rate. commonsense reasoning:. • high: remain in his position and defense while the team attacks. • medium: implies that the player will select the defensive actions he will join in. • low: implies that the player is going to be in all of your attack moves instead of defensing.\n `crossing` integer, -- the player's crossing score. commonsense reasoning:. Cross is a long pass into the opponent's goal towards the header of sixth-yard teammate. The crossing score is between 0-100 which measures the tendency/frequency of crosses in the box. Higher potential score means that the player performs better in crossing actions.\n `finishing` integer, -- the player's finishing rate. 0-100 which is calculated by FIFA.\n `heading_accuracy` integer, -- heading accuracy. the player's heading accuracy. 0-100 which is calculated by FIFA.\n `short_passing` integer, -- short passing. the player's short passing score. 0-100 which is calculated by FIFA.\n `volleys` integer, -- the player's volley score. 0-100 which is calculated by FIFA.\n `dribbling` integer, -- the player's dribbling score. 0-100 which is calculated by FIFA.\n `curve` integer, -- the player's curve score. 0-100 which is calculated by FIFA.\n `free_kick_accuracy` integer, -- free kick accuracy. the player's free kick accuracy. 0-100 which is calculated by FIFA.\n `long_passing` integer, -- long passing. the player's long passing score. 0-100 which is calculated by FIFA.\n `ball_control` integer, -- ball control. the player's ball control score. 0-100 which is calculated by FIFA.\n `acceleration` integer, -- the player's acceleration score. 0-100 which is calculated by FIFA.\n `sprint_speed` integer, -- sprint speed. the player's sprint speed. 0-100 which is calculated by FIFA.\n `agility` integer, -- the player's agility. 0-100 which is calculated by FIFA.\n `reactions` integer, -- the player's reactions score. 0-100 which is calculated by FIFA.\n `balance` integer, -- the player's balance score. 0-100 which is calculated by FIFA.\n `shot_power` integer, -- shot power. the player's shot power. 0-100 which is calculated by FIFA.\n `jumping` integer, -- the player's jumping score. 0-100 which is calculated by FIFA.\n `stamina` integer, -- the player's stamina score. 0-100 which is calculated by FIFA.\n `strength` integer, -- the player's strength score. 0-100 which is calculated by FIFA.\n `long_shots` integer, -- long shots. the player's long shots score. 0-100 which is calculated by FIFA.\n `aggression` integer, -- the player's aggression score. 0-100 which is calculated by FIFA.\n `interceptions` integer, -- the player's interceptions score. 0-100 which is calculated by FIFA.\n `positioning` integer, -- the player's. positioning score. 0-100 which is calculated by FIFA.\n `vision` integer, -- the player's vision score. 0-100 which is calculated by FIFA.\n `penalties` integer, -- the player's penalties score. 0-100 which is calculated by FIFA.\n `marking` integer, -- the player's markingscore. 0-100 which is calculated by FIFA.\n `standing_tackle` integer, -- standing tackle. the player's standing tackle score. 0-100 which is calculated by FIFA.\n `sliding_tackle` integer, -- sliding tackle. the player's sliding tackle score. 0-100 which is calculated by FIFA.\n `gk_diving` integer, -- goalkeep diving. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_handling` integer, -- goalkeep handling. the player's goalkeep diving score. 0-100 which is calculated by FIFA.\n `gk_kicking` integer, -- goalkeep kicking. the player's goalkeep kicking score. 0-100 which is calculated by FIFA.\n `gk_positioning` integer, -- goalkeep positioning. the player's goalkeep positioning score. 0-100 which is calculated by FIFA.\n `gk_reflexes` integer, -- goalkeep reflexes. the player's goalkeep reflexes score. 0-100 which is calculated by FIFA.\n primary key (id)\n);\n\nCREATE TABLE Team (\n `id` integer, -- the unique id for teams.\n `team_api_id` integer, -- team api id. the id of the team api.\n `team_fifa_api_id` integer, -- team federation international football association api id. the id of the team fifa api.\n `team_long_name` text, -- team long name. the team's long name.\n `team_short_name` text, -- team short name. the team's short name.\n primary key (id)\n);\n\nExternal Knowledge:\npercentage refers to DIVIDE(COUNT(height < 180 AND overall_rating > 70),COUNT(height < 180)) * 100\n\nQuestion:\nWhat is the percentage of players that are under 180 cm who have an overall strength of more than 70?", + "question": "What is the percentage of players that are under 180 cm who have an overall strength of more than 70?", + "evidence": "percentage refers to DIVIDE(COUNT(height < 180 AND overall_rating > 70),COUNT(height < 180)) * 100", + "db_id": "european_football_2", + "database_path": "databases/european_football_2.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN t2.overall_rating > 70 AND t1.height < 180 THEN t1.id END) AS REAL) * 100 / COUNT(DISTINCT t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height < 180", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN t2.overall_rating > 70 AND t1.height < 180 THEN t1.id END) AS REAL) * 100 / COUNT(DISTINCT t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height < 180", + "source_gold_sql_sha256": "4bfe09c127d293924f81754c0d183ca1849b95ec91f6268c470f4fc4020a1da8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:846", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndriver reference name refers to driverRef; first qualifying period refers to q1; drivers who are eliminated in the first qualifying period refers to 5 drivers with MAX(q1); race number refers to raceId;\n\nQuestion:\nPlease list the reference names of the drivers who are eliminated in the first period in race number 20.", + "question": "Please list the reference names of the drivers who are eliminated in the first period in race number 20.", + "evidence": "driver reference name refers to driverRef; first qualifying period refers to q1; drivers who are eliminated in the first qualifying period refers to 5 drivers with MAX(q1); race number refers to raceId;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC LIMIT 5", + "source_gold_sql": "SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC LIMIT 5", + "source_gold_sql_sha256": "781aa551745254b9c24a9f535bce94a8d859ce0570b92d470668db43be22cabc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:847", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; second qualifying period refers to q2; best lap time refers to MIN(q2);\n\nQuestion:\nWhat is the surname of the driver with the best lap time in race number 19 in the second qualifying period?", + "question": "What is the surname of the driver with the best lap time in race number 19 in the second qualifying period?", + "evidence": "race number refers to raceId; second qualifying period refers to q2; best lap time refers to MIN(q2);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC NULLS LAST LIMIT 1", + "source_gold_sql": "SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC NULLS LAST LIMIT 1", + "source_gold_sql_sha256": "e50468152141d487acdee3b508e8b78a27474d9d11add631a20b86d63a6523bd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:850", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nGermany is a name of country;\n\nQuestion:\nPlease give the name of the race held on the circuits in Germany.", + "question": "Please give the name of the race held on the circuits in Germany.", + "evidence": "Germany is a name of country;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'", + "source_gold_sql": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'", + "source_gold_sql_sha256": "4f9fc74ab7eb01497a3043cd62da6c955b0cc81e80c98b64009c040dc89e1a79", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:854", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ncoordinate position/location refers to lat, lng; circuits for Australian grand prix refers to races.name = 'Australian Grand Prix'\n\nQuestion:\nWhat is the coordinates location of the circuits for Australian grand prix?", + "question": "What is the coordinates location of the circuits for Australian grand prix?", + "evidence": "coordinate position/location refers to lat, lng; circuits for Australian grand prix refers to races.name = 'Australian Grand Prix'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'", + "source_gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'", + "source_gold_sql_sha256": "14a636011b6d4011487039e410c6a5f377932daadf5b6200c22ba279c4777515", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:857", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ncoordinate position/location refers to lat, lng; Abu Dhabi Grand Prix refers to races.name = 'Abu Dhabi Grand Prix'\n\nQuestion:\nGive the coordinate position for Abu Dhabi Grand Prix.", + "question": "Give the coordinate position for Abu Dhabi Grand Prix.", + "evidence": "coordinate position/location refers to lat, lng; Abu Dhabi Grand Prix refers to races.name = 'Abu Dhabi Grand Prix'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'", + "source_gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'", + "source_gold_sql_sha256": "8f96dad62d7c6af8f049d06803db367ba86684872a2ece35dcd32600ba18e6f0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:859", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; Bruno Senna refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;\n\nQuestion:\nWhat's Bruno Senna's Q1 result in the qualifying race No. 354?", + "question": "What's Bruno Senna's Q1 result in the qualifying race No. 354?", + "evidence": "race number refers to raceId; Bruno Senna refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'", + "source_gold_sql": "SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'", + "source_gold_sql_sha256": "d8542044ef4309982da8672097f3ec2bc7e255059b3b8c9334bc83106b4bcab0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:861", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; finished 0:0M:SS in the Q3 refers to q3 LIKE 'M:SS%'\n\nQuestion:\nWhat is his number of the driver who finished 0:01:54 in the Q3 of qualifying race No.903?", + "question": "What is his number of the driver who finished 0:01:54 in the Q3 of qualifying race No.903?", + "evidence": "race number refers to raceId; finished 0:0M:SS in the Q3 refers to q3 LIKE 'M:SS%'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'", + "source_gold_sql": "SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'", + "source_gold_sql_sha256": "397a932c0801045319132a52312b5ab691fc068197a241135cbd7ae788b6d4db", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:862", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nBahrain Grand Prix refers to races.name = 'Bahrain Grand Prix'; drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL);\n\nQuestion:\nFor the Bahrain Grand Prix in 2007, how many drivers not finished the game?", + "question": "For the Bahrain Grand Prix in 2007, how many drivers not finished the game?", + "evidence": "Bahrain Grand Prix refers to races.name = 'Bahrain Grand Prix'; drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(T3.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL", + "source_gold_sql": "SELECT COUNT(T3.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL", + "source_gold_sql_sha256": "0a7ccaabb549095d29a17d7f84b3b985346a446c443098808897f718b5689c77", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:865", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndrivers who finished the race refers to time is not empty (i.e. time IS NOT NULL); race number refers to raceId; date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nFor all the drivers who finished the game in race No. 592, who is the oldest? Select the forename and surname.", + "question": "For all the drivers who finished the game in race No. 592, who is the oldest? Select the forename and surname.", + "evidence": "drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL); race number refers to raceId; date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1", + "source_gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1", + "source_gold_sql_sha256": "0815e78fa8791fbc752468b0e77c01d4788fcb11be6961eef4c9558c46b878c5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:866", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nplayer and driver are synonyms; the lap time of 0:0M:SS refers to lapTime.time LIKE 'M:SS%';race number refers to raceId; introduction website of the drivers refers to url;\n\nQuestion:\nWho were the players that got the lap time of 0:01:27 in the race No. 161? Show their forename, surname, and introduction website.", + "question": "Who were the players that got the lap time of 0:01:27 in the race No. 161? Show their forename, surname, and introduction website.", + "evidence": "player and driver are synonyms; the lap time of 0:0M:SS refers to lapTime.time LIKE 'M:SS%';race number refers to raceId; introduction website of the drivers refers to url;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'", + "source_gold_sql": "SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'", + "source_gold_sql_sha256": "dd27dc062d1f38889d9058644a9055e41695cc5ac16968ddeae4c561a6df6607", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:868", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nlocation coordinates refers to (lat, lng); Malaysian Grand Prix refers to races.name = 'Malaysian Grand Prix'\n\nQuestion:\nWhere is Malaysian Grand Prix held? Give the location coordinates.", + "question": "Where is Malaysian Grand Prix held? Give the location coordinates.", + "evidence": "location coordinates refers to (lat, lng); Malaysian Grand Prix refers to races.name = 'Malaysian Grand Prix'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'", + "source_gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'", + "source_gold_sql_sha256": "206d318260230fbe618b30716d729421f3d3a48dc19b3840d7b59c818eda79f9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:869", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; constructor which got the highest point refers to MAX(constructorResults.points); introduction website of the constructor refers to url;\n\nQuestion:\nFor the constructor which got the highest point in the race No. 9 , what is its introduction website?", + "question": "For the constructor which got the highest point in the race No. 9 , what is its introduction website?", + "evidence": "race number refers to raceId; constructor which got the highest point refers to MAX(constructorResults.points); introduction website of the constructor refers to url;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.url FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 9 ORDER BY T1.points DESC LIMIT 1", + "source_gold_sql": "SELECT T2.url FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 9 ORDER BY T1.points DESC LIMIT 1", + "source_gold_sql_sha256": "6c50d7e26d7475d42c6615d158108cad9c338351bb204bd96c43bcce9919c1dc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:872", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; had the Q3 time as 0:0M:SS refers to q3 LIKE 'M:SS%'\n\nQuestion:\nIn the race No. 45, for the driver who had the Q3 time as 0:01:33, what is his abbreviated code?", + "question": "In the race No. 45, for the driver who had the Q3 time as 0:01:33, what is his abbreviated code?", + "evidence": "race number refers to raceId; had the Q3 time as 0:0M:SS refers to q3 LIKE 'M:SS%'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'", + "source_gold_sql": "SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'", + "source_gold_sql_sha256": "f9358d176e6dcf628900de46112296367e85861973186c5b204d736ab6ec97f1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:875", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe season page refers to url; race number refers to raceId;\n\nQuestion:\nShow me the season page of year when the race No. 901 took place.", + "question": "Show me the season page of year when the race No. 901 took place.", + "evidence": "the season page refers to url; race number refers to raceId;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901", + "source_gold_sql": "SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901", + "source_gold_sql_sha256": "bf652cad45ad6769e48da30a2ba6856ec8c85f533b26d557794fb4e9c701e9e9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:877", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace number refers to raceId; drivers who finished the race refers to time has value; the youngest is a driver where MAX(dob);\n\nQuestion:\nFor all the drivers who finished the game in race No. 872, who is the youngest?", + "question": "For all the drivers who finished the game in race No. 872, who is the youngest?", + "evidence": "race number refers to raceId; drivers who finished the race refers to time has value; the youngest is a driver where MAX(dob);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1", + "source_gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1", + "source_gold_sql_sha256": "cc1164690aae85a3748e61c94420d7940835b522beae4c2470356171ba0c7b29", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:879", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe fastest lap speed refers to (MAX) fastestLapSpeed;\n\nQuestion:\nFor the driver who set the fastest lap speed, what is his nationality?", + "question": "For the driver who set the fastest lap speed, what is his nationality?", + "evidence": "the fastest lap speed refers to (MAX) fastestLapSpeed;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY CAST(T2.fastestLapSpeed AS REAL) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY CAST(T2.fastestLapSpeed AS REAL) DESC LIMIT 1", + "source_gold_sql_sha256": "f45f6014d31712082ac9c47258926fcd95c1f72420b695a57274c5a0e3cf2520", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:880", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nPaul di Resta refers to the full name of the driver; Full name of the driver refers to drivers.forename ='Paul' and drivers.surname = 'di Resta'; race number refers to raceId; percentage = DIVIDE(SUBTRACT(fastestLapSpeed(raceId = 853), (fastestLapSpeed (raceId = 854)) * 100 , (fastestLapSpeed(raceId = 853))\n\nQuestion:\nPaul di Resta was in the No. 853 race, what percent faster did he finish in the 853rd race than the next race for the fastest lap speed?", + "question": "Paul di Resta was in the No. 853 race, what percent faster did he finish in the 853rd race than the next race for the fastest lap speed?", + "evidence": "Paul di Resta refers to the full name of the driver; Full name of the driver refers to drivers.forename ='Paul' and drivers.surname = 'di Resta'; race number refers to raceId; percentage = DIVIDE(SUBTRACT(fastestLapSpeed(raceId = 853), (fastestLapSpeed (raceId = 854)) * 100 , (fastestLapSpeed(raceId = 853))", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT ((MAX(CASE WHEN r.`raceId` = 853 THEN CAST(r.`fastestLapSpeed` AS REAL) END) -\n MAX(CASE WHEN r.`raceId` = 854 THEN CAST(r.`fastestLapSpeed` AS REAL) END)) * 100.0) /\n MAX(CASE WHEN r.`raceId` = 854 THEN CAST(r.`fastestLapSpeed` AS REAL) END) AS percent_faster\nFROM `drivers` d\nJOIN `results` r ON d.`driverId` = r.`driverId`\nWHERE d.`forename` = 'Paul'\n AND d.`surname` = 'di Resta';\n ", + "source_gold_sql": "SELECT (SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) - SUM(IIF(T2.raceId = 854, T2.fastestLapSpeed, 0))) * 100 / SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T1.forename = 'Paul' AND T1.surname = 'di Resta'", + "source_gold_sql_sha256": "c237eb1e049efa4c48988345148e4a67353a25634e29660b62e0004f338b1559", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:881", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nDIVIDE(COUNT(driverid when time has value ), (COUNT(driverid )) * 100 as percentage; in 1983/7/16 refers to when date = '1983-07-16'\n\nQuestion:\nFor the drivers who took part in the race in 1983/7/16, what's their race completion rate?", + "question": "For the drivers who took part in the race in 1983/7/16, what's their race completion rate?", + "evidence": "DIVIDE(COUNT(driverid when time has value ), (COUNT(driverid )) * 100 as percentage; in 1983/7/16 refers to when date = '1983-07-16'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'", + "source_gold_sql_sha256": "b3361f3bf8927590fc990749c0197686f8178fbfd46974104dd13ffb4c3c2fbc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:884", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nearliest recorded year and month refers to year = year(min(date)) and month = month(min(date));\n\nQuestion:\nList the names of all races that occurred in the earliest recorded year and month.", + "question": "List the names of all races that occurred in the earliest recorded year and month.", + "evidence": "earliest recorded year and month refers to year = year(min(date)) and month = month(min(date));", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )", + "source_gold_sql": "SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )", + "source_gold_sql_sha256": "a34fb145bb2284f8d291e7985e13591d21aeaa54484970ff47aa1d0465adf9d6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:892", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe most points scored refers to max(points); Full name of the driver refers to drivers.forename and drivers.surname;\n\nQuestion:\nState the driver with the most points scored. Find his full name and the number of points.", + "question": "State the driver with the most points scored. Find his full name and the number of points.", + "evidence": "the most points scored refers to max(points); Full name of the driver refers to drivers.forename and drivers.surname;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT d.`forename`, d.`surname`, SUM(r.`points`) AS total_points\nFROM `results` r\nJOIN `drivers` d ON d.`driverId` = r.`driverId`\nGROUP BY r.`driverId`\nORDER BY total_points DESC\nLIMIT 1;", + "source_gold_sql": "SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId ORDER BY T2.points DESC LIMIT 1", + "source_gold_sql_sha256": "b5f187accfc29d384ecd7a1d403a44310508174d58fb8f9beec4e5c042194684", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:894", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe best lap time refers to min(milliseconds); List the driver refers to drivers.forename and drivers.surname; List the race refers to races.name\n\nQuestion:\nWhat is the best lap time recorded? List the recorded lap time, driver, and race.", + "question": "What is the best lap time recorded? List the recorded lap time, driver, and race.", + "evidence": "the best lap time refers to min(milliseconds); List the driver refers to drivers.forename and drivers.surname; List the race refers to races.name", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.milliseconds, T1.forename, T1.surname, T3.name FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId ORDER BY T2.milliseconds ASC LIMIT 1", + "source_gold_sql": "SELECT T2.milliseconds, T1.forename, T1.surname, T3.name FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId ORDER BY T2.milliseconds ASC LIMIT 1", + "source_gold_sql_sha256": "4a904ee57e41888e648b5900382c3a65679eac10542bff3b328285bace48bba5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:895", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\naverage lap time = AVG(milliseconds); 'Lewis Hamilton' refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; 'Malaysian Grand Prix' refers to races.name = 'Malaysian Grand Prix'\n\nQuestion:\nWhat is the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix?", + "question": "What is the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix?", + "evidence": "average lap time = AVG(milliseconds); 'Lewis Hamilton' refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; 'Malaysian Grand Prix' refers to races.name = 'Malaysian Grand Prix'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.year = 2009 AND T1.name = 'Malaysian Grand Prix'", + "source_gold_sql": "SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.year = 2009 AND T1.name = 'Malaysian Grand Prix'", + "source_gold_sql_sha256": "c4eb7a8e13baea41c752f6fb3e99f89d6191fa3dbe6082faf3c5020dcb341d03", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:896", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\npercentage = DIVIDE(COUNT(raceId) where surname = 'Hamilton' and position>1), (COUNT(raceId) where surname = 'Hamilton'); since 2010 refers to year >= 2010. position refers to driverStandings.position\n\nQuestion:\nCalculate the percentage whereby Hamilton was not at the 1st track of the the f1 circuit since 2010.", + "question": "Calculate the percentage whereby Hamilton was not at the 1st track of the the f1 circuit since 2010.", + "evidence": "percentage = DIVIDE(COUNT(raceId) where surname = 'Hamilton' and position>1), (COUNT(raceId) where surname = 'Hamilton'); since 2010 refers to year >= 2010. position refers to driverStandings.position", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010", + "source_gold_sql_sha256": "3c6638b2c024bf61692e96c15943f66fbf2a310cf0e82686f4d6344d7ace98e1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:897", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nFull name of the driver refers to drivers.forename and drivers.surname; the most winning refers to MAX(COUNT(wins)); average point scores refers to MAX(points);\n\nQuestion:\nName the driver with the most winning. Mention his nationality and what is his maximum point scores.", + "question": "Name the driver with the most winning. Mention his nationality and what is his maximum point scores.", + "evidence": "Full name of the driver refers to drivers.forename and drivers.surname; the most winning refers to MAX(COUNT(wins)); average point scores refers to MAX(points);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, MAX(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins >= 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, MAX(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins >= 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1", + "source_gold_sql_sha256": "cce92f4ef6c3455d3f649134943bb7e00a0cb99753e72ac8e512dec5ae650516", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:898", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndate of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);\n\nQuestion:\nHow old is the youngest Japanese driver? What is his name?", + "question": "How old is the youngest Japanese driver? What is his name?", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1", + "source_gold_sql": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1", + "source_gold_sql_sha256": "68b6a7b24c86d5213cb64b9c04cfd75eee06f5b71f2a214734401d2d347cea16", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:901", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nin September 2005 refers to MONTH(date) = 9 and YEAR(date) = 2005\n\nQuestion:\nName the races along with its circuit name and location for f1 races hosted in September 2005.", + "question": "Name the races along with its circuit name and location for f1 races hosted in September 2005.", + "evidence": "in September 2005 refers to MONTH(date) = 9 and YEAR(date) = 2005", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T2.name, T1.name, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2005 AND STRFTIME('%m', T2.date) = '09'", + "source_gold_sql": "SELECT DISTINCT T2.name, T1.name, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2005 AND STRFTIME('%m', T2.date) = '09'", + "source_gold_sql_sha256": "c6bf6cd078489759b9495ac81bfcc918af9f5ac49157a56d63406ac618fdb069", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:902", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nAlex Yoong refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;track number less than 10 refers to driverStandings.position < 20\n\nQuestion:\nWhich race was Alex Yoong in when he was in track number less than 20?", + "question": "Which race was Alex Yoong in when he was in track number less than 20?", + "evidence": "Alex Yoong refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;track number less than 10 refers to driverStandings.position < 20", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.name FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Alex' AND T3.surname = 'Yoong' AND T2.position < 20", + "source_gold_sql": "SELECT T1.name FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Alex' AND T3.surname = 'Yoong' AND T2.position < 20", + "source_gold_sql_sha256": "3d51ac9aa293c2a41d0492ec739c0a6eb2bcca74cba0229d4c8fbc4097180fd2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:904", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nfastest lap refers to min(milliseconds); Michael Schumacher refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;\n\nQuestion:\nState the race and year of race in which Michael Schumacher had his fastest lap.", + "question": "State the race and year of race in which Michael Schumacher had his fastest lap.", + "evidence": "fastest lap refers to min(milliseconds); Michael Schumacher refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.name, T1.year FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Michael' AND T3.surname = 'Schumacher' ORDER BY T2.milliseconds ASC LIMIT 1", + "source_gold_sql": "SELECT T1.name, T1.year FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Michael' AND T3.surname = 'Schumacher' ORDER BY T2.milliseconds ASC LIMIT 1", + "source_gold_sql_sha256": "9acfee7d85997919374b731faf632351c08276a772ac3f9cf3caaa2c886c432a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:906", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nfirst race refers to min(Date); Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; points refers to driverStandings.points\n\nQuestion:\nWhat was the name of Lewis Hamilton's first race? What was his points recorded for his first race event?", + "question": "What was the name of Lewis Hamilton's first race? What was his points recorded for his first race event?", + "evidence": "first race refers to min(Date); Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; points refers to driverStandings.points", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.name, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' ORDER BY T1.year ASC LIMIT 1", + "source_gold_sql": "SELECT T1.name, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' ORDER BY T1.year ASC LIMIT 1", + "source_gold_sql_sha256": "4c36f022bfb539694c3caced749b01553220e309af4a632d87cf1058a82bd0b7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:909", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nEuropean Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100\n\nQuestion:\nAmong all European Grand Prix races, what is the percentage of the races were hosted in Germany?", + "question": "Among all European Grand Prix races, what is the percentage of the races were hosted in Germany?", + "evidence": "European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T1.country = 'Germany' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T1.country = 'Germany' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'", + "source_gold_sql_sha256": "f62d843d07335ffbdc75461150a771a4cc88577616a5bbbd2a1a40450ce4b47d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:910", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nlocation coordinates refers to (lat, lng); Silverstone Circuit refers to circuits.name = 'Silverstone Circuit'\n\nQuestion:\nWhat's the location coordinates of Silverstone Circuit?", + "question": "What's the location coordinates of Silverstone Circuit?", + "evidence": "location coordinates refers to (lat, lng); Silverstone Circuit refers to circuits.name = 'Silverstone Circuit'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit'", + "source_gold_sql": "SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit'", + "source_gold_sql_sha256": "91cdd90951eeb9677746addae73c88988b86c59ba44b27dead7e75c510ea57f0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:912", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nreference name refers to circuitRef; Marina Bay Street Circuit refers to circuits.name = 'Marina Bay Street Circuit'\n\nQuestion:\nWhat's the reference name of Marina Bay Street Circuit?", + "question": "What's the reference name of Marina Bay Street Circuit?", + "evidence": "reference name refers to circuitRef; Marina Bay Street Circuit refers to circuits.name = 'Marina Bay Street Circuit'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'", + "source_gold_sql": "SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'", + "source_gold_sql_sha256": "aaae167098d47814224040747eb33f77e05d344771bd30f4dc559c35da2a585c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:915", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndate of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;\n\nQuestion:\nWhich country is the oldest driver from?", + "question": "Which country is the oldest driver from?", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT nationality FROM drivers WHERE dob IS NOT NULL ORDER BY dob ASC LIMIT 1", + "source_gold_sql": "SELECT nationality FROM drivers WHERE dob IS NOT NULL ORDER BY dob ASC LIMIT 1", + "source_gold_sql_sha256": "4e3b0bf7f8f9937e10792a31e9fc13b460608f1b7eb3c9baef30aea242847639", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:928", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nreference name refers to driverRef; Canadian Grand Prix refers to races.name = 'Canadian Grand Prix';\n\nQuestion:\nWhich driver ranked the first in the Canadian Grand Prix in 2007? Please give his forename, surname, and reference name.", + "question": "Which driver ranked the first in the Canadian Grand Prix in 2007? Please give his forename, surname, and reference name.", + "evidence": "reference name refers to driverRef; Canadian Grand Prix refers to races.name = 'Canadian Grand Prix';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT d.forename, d.surname, d.driverRef FROM drivers AS d JOIN results AS r ON d.driverId = r.driverId JOIN races AS ra ON r.raceId = ra.raceId WHERE ra.name = 'Canadian Grand Prix' AND ra.year = 2007 AND r.position = 1", + "source_gold_sql": "SELECT d.forename, d.surname, d.driverRef FROM drivers AS d JOIN results AS r ON d.driverId = r.driverId JOIN races AS ra ON r.raceId = ra.raceId WHERE ra.name = 'Canadian Grand Prix' AND ra.year = 2007 AND r.position = 1", + "source_gold_sql_sha256": "31f2b8519bf13666f45324daf69719b071ec6c98a056a91045a004822cfc6c7c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:930", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrank the highest refers to min(rank); Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;\n\nQuestion:\nIn which Formula_1 races did Lewis Hamilton rank the highest?", + "question": "In which Formula_1 races did Lewis Hamilton rank the highest?", + "evidence": "rank the highest refers to min(rank); Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT name FROM races WHERE raceId IN ( SELECT raceId FROM results WHERE rank = 0 AND driverId = ( SELECT driverId FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton' ) )", + "source_gold_sql": "SELECT name FROM races WHERE raceId IN ( SELECT raceId FROM results WHERE rank = 0 AND driverId = ( SELECT driverId FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton' ) )", + "source_gold_sql_sha256": "e312b97e384788300d7c4d4402298c0d3196134cb9454764ce92a46dc6b94eb1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:931", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe fastest lap speed among all refers to max(fastestLapSpeed); Spanish Grand Prix refers to races.name = 'Spanish Grand Prix';\n\nQuestion:\nWhat was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?", + "question": "What was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?", + "evidence": "the fastest lap speed among all refers to max(fastestLapSpeed); Spanish Grand Prix refers to races.name = 'Spanish Grand Prix';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.fastestLapSpeed FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Spanish Grand Prix' AND T1.year = 2009 AND T2.fastestLapSpeed IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", + "source_gold_sql": "SELECT T2.fastestLapSpeed FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Spanish Grand Prix' AND T1.year = 2009 AND T2.fastestLapSpeed IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", + "source_gold_sql_sha256": "01a3d236a95cfad41a41fee18a6c5c2d9ccf73e9305720a163fbee755d65e360", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:933", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nLewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; final rank refers to positionOrder; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';\n\nQuestion:\nWhat was Lewis Hamilton's final rank in the 2008 Chinese Grand Prix?", + "question": "What was Lewis Hamilton's final rank in the 2008 Chinese Grand Prix?", + "evidence": "Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; final rank refers to positionOrder; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.positionOrder FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.name = 'Chinese Grand Prix' AND T1.year = 2008", + "source_gold_sql": "SELECT T2.positionOrder FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.name = 'Chinese Grand Prix' AND T1.year = 2008", + "source_gold_sql_sha256": "7da66591c861b0f25ff0ace0a96d8eb4c02c1bd6e93bd05c64acd3c25794289f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:937", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nfinish time refers to time; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';\n\nQuestion:\nWhat's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix?", + "question": "What's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix?", + "evidence": "finish time refers to time; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT r.time FROM results r JOIN races ra ON r.raceId = ra.raceId WHERE ra.year = 2008 AND ra.name = 'Chinese Grand Prix' AND r.position = 2", + "source_gold_sql": "SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.rank = 2 AND T2.name = 'Chinese Grand Prix' AND T2.year = 2008", + "source_gold_sql_sha256": "6b793f936ba0c702db13fce4ad2a8cf7aa30f3e4cdb9c2f4f6b638e442231d5c", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:940", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nCOUNT(raceID) > 0 reveals that this driver participated in races; drivers who finished the race refers to time has value.\n\nQuestion:\nAmong the drivers that finished the race in the 2008 Chinese Grand Prix, how many of them have participated in Formula_1 races?", + "question": "Among the drivers that finished the race in the 2008 Chinese Grand Prix, how many of them have participated in Formula_1 races?", + "evidence": "COUNT(raceID) > 0 reveals that this driver participated in races; drivers who finished the race refers to time has value.", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.driverId FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.name = 'Chinese Grand Prix' AND T2.year = 2008 AND T1.time IS NOT NULL GROUP BY T1.driverId HAVING COUNT(T2.raceId) > 0 )", + "source_gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.driverId FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.name = 'Chinese Grand Prix' AND T2.year = 2008 AND T1.time IS NOT NULL GROUP BY T1.driverId HAVING COUNT(T2.raceId) > 0 )", + "source_gold_sql_sha256": "c94cec035cd5763ff2e8a5192bc2fcd3adf097f6e650454decf4f429192527f5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:944", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nhow much faster in percentage = divide(incremental time, last_driver finished time) * 100; last driver finished time = incremental time + champion time; only champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null\n\nQuestion:\nHow much faster in percentage is the champion than the driver who finished the race last in the 1988 Australian Grand Prix?", + "question": "How much faster in percentage is the champion than the driver who finished the race last in the 1988 Australian Grand Prix?", + "evidence": "how much faster in percentage = divide(incremental time, last_driver finished time) * 100; last driver finished time = incremental time + champion time; only champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "WITH time_in_seconds AS (SELECT T1.positionOrder, T1.milliseconds FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Australian Grand Prix' AND T1.time IS NOT NULL AND T2.year = 1988), champion_time AS (SELECT milliseconds FROM time_in_seconds WHERE positionOrder = 1), last_driver_incremental AS (SELECT milliseconds FROM time_in_seconds WHERE positionOrder = (SELECT MAX(positionOrder) FROM time_in_seconds)) SELECT CAST((SELECT milliseconds FROM last_driver_incremental) - (SELECT milliseconds FROM champion_time) AS REAL) * 100 / (SELECT milliseconds FROM last_driver_incremental)", + "source_gold_sql": "WITH time_in_seconds AS (SELECT T1.positionOrder, T1.milliseconds FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Australian Grand Prix' AND T1.time IS NOT NULL AND T2.year = 1988), champion_time AS (SELECT milliseconds FROM time_in_seconds WHERE positionOrder = 1), last_driver_incremental AS (SELECT milliseconds FROM time_in_seconds WHERE positionOrder = (SELECT MAX(positionOrder) FROM time_in_seconds)) SELECT CAST((SELECT milliseconds FROM last_driver_incremental) - (SELECT milliseconds FROM champion_time) AS REAL) * 100 / (SELECT milliseconds FROM last_driver_incremental)", + "source_gold_sql_sha256": "6cee15bd98c97bb7a742215e69f427039c19a6c7d10f87540b29574c9947e925", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:945", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nAustralia is the country; Melbourne is the location of circuit;\n\nQuestion:\nHow many circuits are there in Adelaide, Australia?", + "question": "How many circuits are there in Adelaide, Australia?", + "evidence": "Australia is the country; Melbourne is the location of circuit;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'", + "source_gold_sql": "SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'", + "source_gold_sql_sha256": "422c72161b870f7f6084ff9383bebc29b19b55c663926e7cb831d6b62f747610", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:948", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nmaximum points = MAX(points); British is a nationality\n\nQuestion:\nWhat are the maximum points of British constructors?", + "question": "What are the maximum points of British constructors?", + "evidence": "maximum points = MAX(points); British is a nationality", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T2.nationality = 'British'", + "source_gold_sql": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T2.nationality = 'British'", + "source_gold_sql_sha256": "b54341425cd902fb185c9cf73d1dbcc0f1f1b4fa6e88291a0754988a13a5bb2e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:950", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nrace at 291 refers to raceID = 291; constructor refers to constructorStandings\n\nQuestion:\nPlease list the constructor names with 0 points at race 291.", + "question": "Please list the constructor names with 0 points at race 291.", + "evidence": "race at 291 refers to raceID = 291; constructor refers to constructorStandings", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.name FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T1.raceId = 291", + "source_gold_sql": "SELECT T2.name FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T1.raceId = 291", + "source_gold_sql_sha256": "7db590357e6a0076dad294b50a66872aed25cedef4e087e36c87f2d1d78a1649", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:951", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\n2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';\n\nQuestion:\nHow many Japanese constructors have 0 points in 2 races?", + "question": "How many Japanese constructors have 0 points in 2 races?", + "evidence": "2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.constructorId) \nFROM constructorResults AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'Japanese' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.constructorId) \nFROM constructorResults AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'Japanese' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", + "source_gold_sql_sha256": "3fd60e9721785aa5151f2fe98350d608b975ba3bc28c8cbdeca83332641c1e59", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:954", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nfrom 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100;\n\nQuestion:\nPlease calculate the race completion percentage of Japanese drivers from 2007 to 2009.", + "question": "Please calculate the race completion percentage of Japanese drivers from 2007 to 2009.", + "evidence": "from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Japanese' AND T2.year BETWEEN 2007 AND 2009", + "source_gold_sql": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Japanese' AND T2.year BETWEEN 2007 AND 2009", + "source_gold_sql_sha256": "c61dec8182c88dbe4fce67f6bc6279861b1da8c5a6aff58728e7c14e61fdff84", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:955", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nonly champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null; before year 1975 refers to year < 1975;\n\nQuestion:\nFor each year before year 1975, what was the average time in seconds of the champion?", + "question": "For each year before year 1975, what was the average time in seconds of the champion?", + "evidence": "only champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null; before year 1975 refers to year < 1975;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT r.year, AVG(res.milliseconds / 1000.0) AS avg_time_seconds FROM results res JOIN races r ON res.raceId = r.raceId WHERE r.year < 1975 AND res.position = 1 AND res.milliseconds IS NOT NULL GROUP BY r.year", + "source_gold_sql": "WITH time_in_seconds AS ( SELECT T2.year, T2.raceId, T1.positionOrder, CASE WHEN T1.positionOrder = 1 THEN (CAST(SUBSTR(T1.time, 1, 1) AS REAL) * 3600) + (CAST(SUBSTR(T1.time, 3, 2) AS REAL) * 60) + CAST(SUBSTR(T1.time, 6,2) AS REAL ) + CAST(SUBSTR(T1.time, 9) AS REAL)/1000 ELSE 0 END AS time_seconds FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T1.time IS NOT NULL ), champion_time AS ( SELECT year, raceId, time_seconds FROM time_in_seconds WHERE positionOrder = 1 ) SELECT year, AVG(time_seconds) FROM champion_time WHERE year < 1975 GROUP BY year HAVING AVG(time_seconds) IS NOT NULL", + "source_gold_sql_sha256": "2c3c411d079dfc43a3c797c8e4fe37a76104d47a455607d624395324c8e1015c", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:959", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nin 2009 refers to year = 2009; Only the time of the champion shows in the format of \"hour: minutes: seconds.millionsecond\"\n\nQuestion:\nWhat were the fastest lap numbers of the champions in 2009?", + "question": "What were the fastest lap numbers of the champions in 2009?", + "evidence": "in 2009 refers to year = 2009; Only the time of the champion shows in the format of \"hour: minutes: seconds.millionsecond\"", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.fastestLap FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql": "SELECT T1.fastestLap FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql_sha256": "bd393f3d68ff476a8890244f964aa7d988a35b47f35e39283a152753340190d9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:960", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nSpanish Grand Prix is the name of race refers to name = 'Spanish Grand Prix'; average fastest lap speed refers to avg(fastestLapSpeed);\n\nQuestion:\nWhat is the average of fastest lap speed in the 2009 Spanish Grand Prix race?", + "question": "What is the average of fastest lap speed in the 2009 Spanish Grand Prix race?", + "evidence": "Spanish Grand Prix is the name of race refers to name = 'Spanish Grand Prix'; average fastest lap speed refers to avg(fastestLapSpeed);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'", + "source_gold_sql": "SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'", + "source_gold_sql_sha256": "962e4a0f2fdca412365bca66f8aa0250cebf566cb3c192ab4af1ebf2fc408fd6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:962", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nborn before 1985 refers to year(dob)<1985; in 2000 to 2005 refers to year between 2000 and 2005; percentage = Divide(COUNT(driverId where year (dob) <1985 and laps >50),COUNT(DriverID where year between 2000 and 2005) *100;\n\nQuestion:\nIn the races from 2000 to 2005, what percentage of drivers were born before 1985 and completed 50 laps?", + "question": "In the races from 2000 to 2005, what percentage of drivers were born before 1985 and completed 50 laps?", + "evidence": "born before 1985 refers to year(dob)<1985; in 2000 to 2005 refers to year between 2000 and 2005; percentage = Divide(COUNT(driverId where year (dob) <1985 and laps >50),COUNT(DriverID where year between 2000 and 2005) *100;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(STRFTIME('%Y', T3.dob) < '1985' AND T1.laps > 50, T1.driverId, NULL)) AS REAL) * 100 / COUNT(DISTINCT T1.driverId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T2.year BETWEEN 2000 AND 2005", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(STRFTIME('%Y', T3.dob) < '1985' AND T1.laps > 50, T1.driverId, NULL)) AS REAL) * 100 / COUNT(DISTINCT T1.driverId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T2.year BETWEEN 2000 AND 2005", + "source_gold_sql_sha256": "bb46b15fb411a1612a215c462228a31146100187942c0d9eec217ab0137652e4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:963", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nlap time less than 02:00.00 refers to seconds < 120;\n\nQuestion:\nHow many French drivers who obtain the laptime less than 02:00.00?", + "question": "How many French drivers who obtain the laptime less than 02:00.00?", + "evidence": "lap time less than 02:00.00 refers to seconds < 120;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.driverId) FROM drivers AS T1 INNER JOIN lapTimes AS T2 on T1.driverId = T2.driverId WHERE T1.nationality = 'French' AND (CAST(SUBSTR(T2.time, 1, 1) AS INTEGER) * 60 + CAST(SUBSTR(T2.time, 3, 2) AS INTEGER) + CAST(SUBSTR(T2.time, 6, 3) AS REAL) / 1000) < 120", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.driverId) FROM drivers AS T1 INNER JOIN lapTimes AS T2 on T1.driverId = T2.driverId WHERE T1.nationality = 'French' AND (CAST(SUBSTR(T2.time, 1, 1) AS INTEGER) * 60 + CAST(SUBSTR(T2.time, 3, 2) AS INTEGER) + CAST(SUBSTR(T2.time, 6, 3) AS REAL) / 1000) < 120", + "source_gold_sql_sha256": "ca0e8cd0fccb720e1cc0d02a43282657db2b06cf36d946aa0cd53017f256b71f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:964", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nnationality = 'American'\n\nQuestion:\nList out the code for drivers who have nationality in American.", + "question": "List out the code for drivers who have nationality in American.", + "evidence": "nationality = 'American'", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT code FROM drivers WHERE Nationality = 'American'", + "source_gold_sql": "SELECT code FROM drivers WHERE Nationality = 'American'", + "source_gold_sql_sha256": "a296867f731ab75e520419ea758638c55be87e19f73d0c7d8ff54a70b0f59c13", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:967", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nyoungest driver refers to Max (year(dob)); Netherlandic and Dutch refer to the same country\n\nQuestion:\nHow many Netherlandic drivers are among the 3 youngest drivers?", + "question": "How many Netherlandic drivers are among the 3 youngest drivers?", + "evidence": "youngest driver refers to Max (year(dob)); Netherlandic and Dutch refer to the same country", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.nationality FROM drivers AS T1 ORDER BY JULIANDAY(T1.dob) DESC LIMIT 3) AS T3 WHERE T3.nationality = 'Dutch'", + "source_gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.nationality FROM drivers AS T1 ORDER BY JULIANDAY(T1.dob) DESC LIMIT 3) AS T3 WHERE T3.nationality = 'Dutch'", + "source_gold_sql_sha256": "0dc55c321d2ab4fdb2cdd68771ab6301af577282b62b14a63c5276146be5e971", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:971", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\noldest refers to MIN(year(dob)); reference names appear in drverRef.\n\nQuestion:\nPlease state the reference name of the oldest German driver.", + "question": "Please state the reference name of the oldest German driver.", + "evidence": "oldest refers to MIN(year(dob)); reference names appear in drverRef.", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY JULIANDAY(dob) ASC LIMIT 1", + "source_gold_sql": "SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY JULIANDAY(dob) ASC LIMIT 1", + "source_gold_sql_sha256": "3b717e74278c15cbddd39b10122317d6c17a06e3c32b090a0ed42b9bede255f3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:972", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nborn in 1971 refers to year(dob) = 1971; has the fastest lap time refers to fastestLapTime has values\n\nQuestion:\nWhich drivers who were born in 1971 and has the fastest lap time on the race? Give id and code of these drivers.", + "question": "Which drivers who were born in 1971 and has the fastest lap time on the race? Give id and code of these drivers.", + "evidence": "born in 1971 refers to year(dob) = 1971; has the fastest lap time refers to fastestLapTime has values", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT T2.driverId, T2.code \nFROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId \nWHERE STRFTIME('%Y', T2.dob) = '1971' AND T1.fastestLapTime IS NOT NULL", + "source_gold_sql": "SELECT DISTINCT T2.driverId, T2.code \nFROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId \nWHERE STRFTIME('%Y', T2.dob) = '1971' AND T1.fastestLapTime IS NOT NULL", + "source_gold_sql_sha256": "84b6e690812c996e51e5b74708527da9074598b3966663f4128f214c2924b92d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:977", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndisqualified refers to statusID = 2, finisher refers to time! = null; race no. refers to raceId; raceId > 50 and raceId < 100;\n\nQuestion:\nFrom race no. 50 to 100, how many finishers have been disqualified?", + "question": "From race no. 50 to 100, how many finishers have been disqualified?", + "evidence": "disqualified refers to statusID = 2, finisher refers to time! = null; race no. refers to raceId; raceId > 50 and raceId < 100;", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50", + "source_gold_sql": "SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50", + "source_gold_sql_sha256": "91d6fb048685c15017cd3b271a747f4324f0a6d0c7c8463cc4ab306ed08f8aa4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:978", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nlocation coordinates refers to (lat,lng); Austria refers to country = 'Austria';\n\nQuestion:\nWhat were the locations and coordinates of the circuits that were held in Austria?", + "question": "What were the locations and coordinates of the circuits that were held in Austria?", + "evidence": "location coordinates refers to (lat,lng); Austria refers to country = 'Austria';", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT DISTINCT location, lat, lng FROM circuits WHERE country = 'Austria'", + "source_gold_sql": "SELECT DISTINCT location, lat, lng FROM circuits WHERE country = 'Austria'", + "source_gold_sql_sha256": "f20e877f290e1938650b93e6a7d589ed6f6a6b8c4074b86edf903c659b333123", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:981", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\ndate of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; first qualifying race refers to MIN(races.date);\n\nQuestion:\nOn what year did the youngest driver had his first qualifying race? Also state the name, date and time of the race.", + "question": "On what year did the youngest driver had his first qualifying race? Also state the name, date and time of the race.", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; first qualifying race refers to MIN(races.date);", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T3.year, T3.name, T3.date, T3.time FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T1.raceId = T3.raceId WHERE T1.driverId = ( SELECT driverId FROM drivers ORDER BY dob DESC LIMIT 1 ) ORDER BY T3.date ASC LIMIT 1", + "source_gold_sql": "SELECT T3.year, T3.name, T3.date, T3.time FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T1.raceId = T3.raceId WHERE T1.driverId = ( SELECT driverId FROM drivers ORDER BY dob DESC LIMIT 1 ) ORDER BY T3.date ASC LIMIT 1", + "source_gold_sql_sha256": "705975bf7a1544616d11993f9aeaeadae5edacb78fe75646ff6fcfe99e599c50", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:988", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nFull name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980<= year(dob) <=1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));\n\nQuestion:\nList down top 3 German drivers who has the shortest average pit stop duration and were born between 1980-1985.", + "question": "List down top 3 German drivers who has the shortest average pit stop duration and were born between 1980-1985.", + "evidence": "Full name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980<= year(dob) <=1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3", + "source_gold_sql": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3", + "source_gold_sql_sha256": "afbf2fa56ac3003006d29d388ebfff69ca2e000a6b69eecb2ae56cfb47cbf01f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:989", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nOnly the time of the champion shows in the format of \"hour: minutes: seconds.millionsecond\";\n\nQuestion:\nWhat was the finish time of the champion of the Canadian Grand Prix in 2008?", + "question": "What was the finish time of the champion of the Canadian Grand Prix in 2008?", + "evidence": "Only the time of the champion shows in the format of \"hour: minutes: seconds.millionsecond\";", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Canadian Grand Prix' AND T2.year = 2008 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql": "SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Canadian Grand Prix' AND T2.year = 2008 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql_sha256": "20aa0f7906b7e8225d740887f5961a459f658141f871f940bb495c9826c93f17", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:990", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nthe time of the champion shows in the format of \"minutes: seconds.millionsecond\" in which Max(time); constructor reference name refers to constructorRef; website refers to url\n\nQuestion:\nWhat is the constructor reference name of the champion in the 2009 Singapore Grand Prix? Please give its website.", + "question": "What is the constructor reference name of the champion in the 2009 Singapore Grand Prix? Please give its website.", + "evidence": "the time of the champion shows in the format of \"minutes: seconds.millionsecond\" in which Max(time); constructor reference name refers to constructorRef; website refers to url", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T3.constructorRef, T3.url FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN constructors AS T3 on T1.constructorId = T3.constructorId WHERE T2.name = 'Singapore Grand Prix' AND T2.year = 2009 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql": "SELECT T3.constructorRef, T3.url FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN constructors AS T3 on T1.constructorId = T3.constructorId WHERE T2.name = 'Singapore Grand Prix' AND T2.year = 2009 AND T1.time LIKE '_:%:__.___'", + "source_gold_sql_sha256": "854a22505b0575480991986d1365f4434b7250de5e7bb059c3408d2a6ac419bd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:717", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\n3-D Man refers to superhero_name = '3-D Man'; superpowers refers to power_name\n\nQuestion:\nPlease list all the superpowers of 3-D Man.", + "question": "Please list all the superpowers of 3-D Man.", + "evidence": "3-D Man refers to superhero_name = '3-D Man'; superpowers refers to power_name", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = '3-D Man'", + "source_gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = '3-D Man'", + "source_gold_sql_sha256": "e3a655ed963d25aea9abd4bbfc45862aaf2f12bf3f09f0d365e0a74e90794d96", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:994", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nMonaco Grand Priz refers to the race; race in year between 1980 and 2010; points refers to constructorResults.points\n\nQuestion:\nWhich constructor scored most points from Monaco Grand Prix between 1980 and 2010? List the score, name and nationality of this team.", + "question": "Which constructor scored most points from Monaco Grand Prix between 1980 and 2010? List the score, name and nationality of this team.", + "evidence": "Monaco Grand Priz refers to the race; race in year between 1980 and 2010; points refers to constructorResults.points", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT SUM(T1.points), T2.name, T2.nationality FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId INNER JOIN races AS T3 ON T3.raceid = T1.raceid WHERE T3.name = 'Monaco Grand Prix' AND T3.year BETWEEN 1980 AND 2010 GROUP BY T2.name ORDER BY SUM(T1.points) DESC LIMIT 1", + "source_gold_sql": "SELECT SUM(T1.points), T2.name, T2.nationality FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId INNER JOIN races AS T3 ON T3.raceid = T1.raceid WHERE T3.name = 'Monaco Grand Prix' AND T3.year BETWEEN 1980 AND 2010 GROUP BY T2.name ORDER BY SUM(T1.points) DESC LIMIT 1", + "source_gold_sql_sha256": "f39377406b01081c59facc9e210cd9d43955ec84364e6d3b3332e635cdca87c7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1001", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nRanked 1st in the 3rd qualifying race refer to MIN(q3); 2008 is the year of race; full name of racer = forename, surname\n\nQuestion:\nWhat is full name of the racer who ranked 1st in the 3rd qualifying race held in the Marina Bay Street Circuit in 2008?", + "question": "What is full name of the racer who ranked 1st in the 3rd qualifying race held in the Marina Bay Street Circuit in 2008?", + "evidence": "Ranked 1st in the 3rd qualifying race refer to MIN(q3); 2008 is the year of race; full name of racer = forename, surname", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T2.forename, T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 ON T1.raceid = T3.raceid WHERE q3 IS NOT NULL AND T3.year = 2008 AND T3.circuitId IN ( SELECT circuitId FROM circuits WHERE name = 'Marina Bay Street Circuit' ) ORDER BY CAST(SUBSTR(q3, 1, INSTR(q3, ':') - 1) AS INTEGER) * 60 + CAST(SUBSTR(q3, INSTR(q3, ':') + 1, INSTR(q3, '.') - INSTR(q3, ':') - 1) AS REAL) + CAST(SUBSTR(q3, INSTR(q3, '.') + 1) AS REAL) / 1000 ASC LIMIT 1", + "source_gold_sql": "SELECT T2.forename, T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 ON T1.raceid = T3.raceid WHERE q3 IS NOT NULL AND T3.year = 2008 AND T3.circuitId IN ( SELECT circuitId FROM circuits WHERE name = 'Marina Bay Street Circuit' ) ORDER BY CAST(SUBSTR(q3, 1, INSTR(q3, ':') - 1) AS INTEGER) * 60 + CAST(SUBSTR(q3, INSTR(q3, ':') + 1, INSTR(q3, '.') - INSTR(q3, ':') - 1) AS REAL) + CAST(SUBSTR(q3, INSTR(q3, '.') + 1) AS REAL) / 1000 ASC LIMIT 1", + "source_gold_sql_sha256": "6354bd6cd5d0bc71015c3463a09058d4131357086020ebf4f8976bbd92e0f52d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1002", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nfull name refers to forename+surname; Youngest racer = MAX(dob)\n\nQuestion:\nAs of the present, what is the full name of the youngest racer? Indicate her nationality and the name of the race to which he/she first joined.", + "question": "As of the present, what is the full name of the youngest racer? Indicate her nationality and the name of the race to which he/she first joined.", + "evidence": "full name refers to forename+surname; Youngest racer = MAX(dob)", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, T3.name FROM drivers AS T1 INNER JOIN driverStandings AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T2.raceId = T3.raceId ORDER BY JULIANDAY(T1.dob) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, T3.name FROM drivers AS T1 INNER JOIN driverStandings AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T2.raceId = T3.raceId ORDER BY JULIANDAY(T1.dob) DESC LIMIT 1", + "source_gold_sql_sha256": "c95e8d2d2e0e688bc9da699345aa9104b7e864c95e207910615f763ad0ef58ae", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1003", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nnumber of accidents refers to the number where statusid = 3; Canadian Grand Prix refers to the race of name\n\nQuestion:\nHow many accidents did the driver who had the highest number accidents in the Canadian Grand Prix have?", + "question": "How many accidents did the driver who had the highest number accidents in the Canadian Grand Prix have?", + "evidence": "number of accidents refers to the number where statusid = 3; Canadian Grand Prix refers to the race of name", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT COUNT(T1.driverId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN status AS T3 on T1.statusId = T3.statusId WHERE T3.statusId = 3 AND T2.name = 'Canadian Grand Prix' GROUP BY T1.driverId ORDER BY COUNT(T1.driverId) DESC LIMIT 1", + "source_gold_sql": "SELECT COUNT(T1.driverId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN status AS T3 on T1.statusId = T3.statusId WHERE T3.statusId = 3 AND T2.name = 'Canadian Grand Prix' GROUP BY T1.driverId ORDER BY COUNT(T1.driverId) DESC LIMIT 1", + "source_gold_sql_sha256": "b3b5aaeda43567dd9fe2d8cfffcf3e4bdac3abaf0061383f12fb916fc4c17cf5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1011", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nshortest lap time refers to MIN(time); the time format for the shortest lap time is 'MM:SS.mmm' or 'M:SS.mmm'; full name of the driver refers to forename, surname\n\nQuestion:\nList the full names of the top 20 drivers, ranked by their shortest lap time ever record in a Formula_1 race.", + "question": "List the full names of the top 20 drivers, ranked by their shortest lap time ever record in a Formula_1 race.", + "evidence": "shortest lap time refers to MIN(time); the time format for the shortest lap time is 'MM:SS.mmm' or 'M:SS.mmm'; full name of the driver refers to forename, surname", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "SELECT d.forename, d.surname FROM drivers d INNER JOIN (SELECT driverId, MIN(milliseconds) as min_ms FROM lapTimes WHERE milliseconds IS NOT NULL GROUP BY driverId) lt ON d.driverId = lt.driverId ORDER BY lt.min_ms ASC LIMIT 20;", + "source_gold_sql": "SELECT d.forename, d.surname FROM drivers d INNER JOIN (SELECT driverId, MIN(milliseconds) as min_ms FROM lapTimes WHERE milliseconds IS NOT NULL GROUP BY driverId) lt ON d.driverId = lt.driverId ORDER BY lt.min_ms ASC LIMIT 20;", + "source_gold_sql_sha256": "af8a77a2437bda75459f286f1c3b764511bfa8b2f42c935b95ebcd1c6e8837b4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:1014", + "domain": "formula_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE circuits (\n `circuitId` integer , -- circuit Id. unique identification number of the circuit.\n `circuitRef` text, -- circuit reference name.\n `name` text, -- full name of circuit.\n `location` text, -- location of circuit.\n `country` text, -- country of circuit.\n `lat` real, -- latitude. latitude of location of circuit.\n `lng` real, -- longitude. longitude of location of circuit. Location coordinates: (lat, lng).\n `alt` integer , -- not useful.\n `url` text, -- url.\n primary key (circuitId)\n);\n\nCREATE TABLE status (\n `statusId` integer, -- status ID. the unique identification number identifying status.\n `status` text, -- full name of status.\n primary key (statusId)\n);\n\nCREATE TABLE drivers (\n `driverId` integer, -- driver ID. the unique identification number identifying each driver.\n `driverRef` text, -- driver reference name.\n `number` integer, -- number.\n `code` text, -- abbreviated code for drivers. if \"null\" or empty, it means it doesn't have code.\n `forename` text, -- forename.\n `surname` text, -- surname.\n `dob` date, -- date of birth.\n `nationality` text, -- nationality of drivers.\n `url` text, -- the introduction website of the drivers.\n primary key (driverId)\n);\n\nCREATE TABLE driverStandings (\n `driverStandingsId` integer, -- driver Standings Id. the unique identification number identifying driver standing records.\n `raceId` integer, -- constructor Reference name. id number identifying which races.\n `driverId` integer, -- id number identifying which drivers.\n `points` real, -- how many points acquired in each race.\n `position` integer, -- position or track of circuits.\n `wins` integer, -- wins.\n `positionText` text, -- position text. same with position, not quite useful.\n primary key (driverStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE races (\n `raceId` integer , -- race ID. the unique identification number identifying the race.\n `year` integer , -- year.\n `round` integer , -- round.\n `circuitId` integer , -- Circuit Id. circuit Id.\n `name` text, -- name of the race.\n `date` date, -- duration time.\n `time` text, -- time of the location.\n `url` text, -- introduction of races.\n primary key (raceId),\n foreign key (year) references seasons(year),\n foreign key (circuitId) references circuits(circuitId)\n);\n\nCREATE TABLE constructors (\n `constructorId` integer , -- constructor Id. the unique identification number identifying constructors.\n `constructorRef` text, -- Constructor Reference name.\n `name` text, -- full name of the constructor.\n `nationality` text, -- nationality of the constructor.\n `url` text, -- the introduction website of the constructor. How to find out the detailed introduction of the constructor: through its url.\n primary key (constructorId)\n);\n\nCREATE TABLE constructorResults (\n `constructorResultsId` integer, -- constructor Results Id.\n `raceId` integer, -- race Id. race id.\n `constructorId` integer, -- constructor Id. constructor id.\n `points` real, -- points.\n `status` text, -- status.\n primary key (constructorResultsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE lapTimes (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `lap` integer , -- lap number.\n `position` integer , -- position or track of circuits.\n `time` text, -- lap time. in minutes / seconds / ...\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, lap),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE qualifying (\n `qualifyId` integer , -- qualify Id. the unique identification number identifying qualifying. How does F1 Sprint qualifying work? Sprint qualifying is essentially a short-form Grand Prix � a race that is one-third the number of laps of the main event on Sunday. However, the drivers are battling for positions on the grid for the start of Sunday's race.\n `raceId` integer , -- race Id. the identification number identifying each race.\n `driverId` integer , -- driver Id. the identification number identifying each driver.\n `constructorId` integer , -- constructor id. constructor Id.\n `number` integer , -- number.\n `position` integer , -- position or track of circuit.\n `q1` text, -- qualifying 1. time in qualifying 1. in minutes / seconds / ... Q1 lap times determine pole position and the order of the front 10 positions on the grid. The slowest driver in Q1 starts 10th, the next starts ninth and so on. All 20 F1 drivers participate in the first period, called Q1, with each trying to set the fastest time possible. Those in the top 15 move on to the next period of qualifying, called Q2. The five slowest drivers are eliminated and will start the race in the last five positions on the grid.\n `q2` text, -- qualifying 2. time in qualifying 2. in minutes / seconds / ... only top 15 in the q1 has the record of q2. Q2 is slightly shorter but follows the same format. Drivers try to put down their best times to move on to Q1 as one of the 10 fastest cars. The five outside of the top 10 are eliminated and start the race from 11th to 15th based on their best lap time.\n `q3` text, -- qualifying 3. time in qualifying 3. in minutes / seconds / ... only top 10 in the q2 has the record of q3.\n primary key (qualifyId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE pitStops (\n `raceId` integer , -- race ID. the identification number identifying race.\n `driverId` integer , -- driver ID. the identification number identifying each driver.\n `stop` integer , -- stop number.\n `lap` integer , -- lap number.\n `time` text, -- time. exact time.\n `duration` text, -- duration time. seconds/.\n `milliseconds` integer , -- milliseconds.\n primary key (raceId, driverId, stop),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId)\n);\n\nCREATE TABLE seasons (\n `year` integer, -- race ID. the unique identification number identifying the race.\n `url` text, -- website link of season race introduction.\n primary key (year)\n);\n\nCREATE TABLE constructorStandings (\n `constructorStandingsId` integer , -- constructor Standings Id. unique identification of the constructor standing records.\n `raceId` integer , -- race id. id number identifying which races.\n `constructorId` integer , -- constructor id. id number identifying which id.\n `points` real, -- how many points acquired in each race.\n `position` integer , -- position or track of circuits.\n `positionText` text, -- position text. same with position, not quite useful.\n `wins` integer , -- wins.\n primary key (constructorStandingsId),\n foreign key (raceId) references races(raceId),\n foreign key (constructorId) references constructors(constructorId)\n);\n\nCREATE TABLE results (\n `resultId` integer, -- Result ID. the unique identification number identifying race result.\n `raceId` integer , -- race ID. the identification number identifying the race.\n `driverId` integer , -- driver ID. the identification number identifying the driver.\n `constructorId` integer , -- constructor Id. the identification number identifying which constructors.\n `number` integer , -- number.\n `grid` integer , -- the number identifying the area where cars are set into a grid formation in order to start the race.\n `position` integer , -- The finishing position or track of circuits.\n `positionText` text, -- position text. not quite useful.\n `positionOrder` integer , -- position order. the finishing order of positions.\n `points` real, -- points.\n `laps` integer , -- lap number.\n `time` text, -- finish time. 1. if the value exists, it means the driver finished the race. 2. Only the time of the champion shows in the format of \"minutes: seconds.millionsecond\", the time of the other drivers shows as \"seconds.millionsecond\" , which means their actual time is the time of the champion adding the value in this cell.\n `milliseconds` integer , -- the actual finishing time of drivers in milliseconds. the actual finishing time of drivers.\n `fastestLap` integer , -- fastest lap. fastest lap number.\n `rank` integer , -- starting rank positioned by fastest lap speed.\n `fastestLapTime` text, -- fastest Lap Time. faster (smaller in the value) \"fastestLapTime\" leads to higher rank (smaller is higher rank).\n `fastestLapSpeed` text, -- fastest Lap Speed. (km / h).\n `statusId` integer, -- status Id. status ID. its category description appear in the table status.\n primary key (resultId),\n foreign key (raceId) references races(raceId),\n foreign key (driverId) references drivers(driverId),\n foreign key (constructorId) references constructors(constructorId),\n foreign key (statusId) references status(statusId)\n);\n\nExternal Knowledge:\nlap record means the fastest time recorded which refers to the fastest FastestLapTime\n\nQuestion:\nWhat is the lap record over all circuits in Italy?", + "question": "What is the lap record over all circuits in Italy?", + "evidence": "lap record means the fastest time recorded which refers to the fastest FastestLapTime", + "db_id": "formula_1", + "database_path": "databases/formula_1.sqlite", + "gold_sql": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) as time_in_seconds FROM results AS T1 WHERE T1.FastestLapTime IS NOT NULL ) SELECT T1.FastestLapTime as lap_record FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) as min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 on fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId WHERE T3.country = 'Italy' ) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) = T4.min_time_in_seconds LIMIT 1", + "source_gold_sql": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) as time_in_seconds FROM results AS T1 WHERE T1.FastestLapTime IS NOT NULL ) SELECT T1.FastestLapTime as lap_record FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) as min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 on fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId WHERE T3.country = 'Italy' ) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) = T4.min_time_in_seconds LIMIT 1", + "source_gold_sql_sha256": "140ad38982797e94829d31ee1181d1f767670fa8b68b72faa29cbaacb1f959ed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:719", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nsuper power of \"Super Strength\" refers to power_name = 'Super Strength'; a height of over 200cm refers to height_cm > 200\n\nQuestion:\nAmong the superheroes with the super power of \"Super Strength\", how many of them have a height of over 200cm?", + "question": "Among the superheroes with the super power of \"Super Strength\", how many of them have a height of over 200cm?", + "evidence": "super power of \"Super Strength\" refers to power_name = 'Super Strength'; a height of over 200cm refers to height_cm > 200", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.height_cm > 200", + "source_gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.height_cm > 200", + "source_gold_sql_sha256": "43c114ae5441364edee94e9dd3c0d40490e2783d298f300c8baf94182c8588df", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:723", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nblue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'\n\nQuestion:\nAmong the superheroes with blue eyes, how many of them have the super power of \"Agility\"?", + "question": "Among the superheroes with blue eyes, how many of them have the super power of \"Agility\"?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue'", + "source_gold_sql_sha256": "ee85dfd32345460bead8536a66d7f8b5bd09ff702445617554f55b98710cab30", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:724", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nblue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'\n\nQuestion:\nPlease list the superhero names of all the superheroes that have blue eyes and blond hair.", + "question": "Please list the superhero names of all the superheroes that have blue eyes and blond hair.", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond'", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond'", + "source_gold_sql_sha256": "87c4880a4aff47ddc56eaaedce1495411d66289abf626ca2d774954955ca0907", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:726", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nname refers to superhero_name; the tallest hero refers to MAX(height_cm); published by Marvel Comics refers to publisher_name = 'Marvel Comics'\n\nQuestion:\nRank heroes published by Marvel Comics by their height in descending order.", + "question": "Rank heroes published by Marvel Comics by their height in descending order.", + "evidence": "name refers to superhero_name; the tallest hero refers to MAX(height_cm); published by Marvel Comics refers to publisher_name = 'Marvel Comics'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT superhero_name FROM superhero AS s JOIN publisher AS p ON s.publisher_id = p.id WHERE p.publisher_name = 'Marvel Comics' AND s.height_cm IS NOT NULL AND s.height_cm != 0 ORDER BY s.height_cm DESC", + "source_gold_sql": "SELECT superhero_name, height_cm, RANK() OVER (ORDER BY height_cm DESC) AS HeightRank FROM superhero INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics'", + "source_gold_sql_sha256": "a4f51c645b8a57b475cf943eca0cb40687e2dc7c1bcd4444f774780b396b370a", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:728", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nthe superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; most common color refers to COUNT(superhero.id) DESC;\n\nQuestion:\nList the most common eye colors among superheroes from Marvel Comics, along with the count and rank of each eye color.", + "question": "List the most common eye colors among superheroes from Marvel Comics, along with the count and rank of each eye color.", + "evidence": "the superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; most common color refers to COUNT(superhero.id) DESC;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT colour.colour AS EyeColor, COUNT(superhero.id) AS Count, RANK() OVER (ORDER BY COUNT(superhero.id) DESC) AS PopularityRank FROM superhero INNER JOIN colour ON superhero.eye_colour_id = colour.id INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics' GROUP BY colour.colour", + "source_gold_sql": "SELECT colour.colour AS EyeColor, COUNT(superhero.id) AS Count, RANK() OVER (ORDER BY COUNT(superhero.id) DESC) AS PopularityRank FROM superhero INNER JOIN colour ON superhero.eye_colour_id = colour.id INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics' GROUP BY colour.colour", + "source_gold_sql_sha256": "2ecbc25b5751f5efb208793888b3cda7c8e12a309ff73df55d260127c983ad3d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:730", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nthe superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; super power of \"Super Strength\" refers to power_name = 'Super Strength';\n\nQuestion:\nList the superheroes from Marvel Comics who have the super power of 'Super Strength'.", + "question": "List the superheroes from Marvel Comics who have the super power of 'Super Strength'.", + "evidence": "the superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; super power of \"Super Strength\" refers to power_name = 'Super Strength';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_power AS T2 INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.id = T2.hero_id)AND EXISTS (SELECT 1 FROM publisher AS T4 WHERE T4.publisher_name = 'Marvel Comics' AND T1.publisher_id = T4.id)", + "source_gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_power AS T2 INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.id = T2.hero_id)AND EXISTS (SELECT 1 FROM publisher AS T4 WHERE T4.publisher_name = 'Marvel Comics' AND T1.publisher_id = T4.id)", + "source_gold_sql_sha256": "589c4b5df0402dd4cc132b0884e909210f018ed17d0866ddb0266b3eb3fce01e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:732", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nthe slowest superhero refers to attribute_name = 'Speed' where MIN(attribute_value); publisher refers to publisher_name\n\nQuestion:\nWhich publisher published the slowest superhero?", + "question": "Which publisher published the slowest superhero?", + "evidence": "the slowest superhero refers to attribute_name = 'Speed' where MIN(attribute_value); publisher refers to publisher_name", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id INNER JOIN attribute AS T4 ON T3.attribute_id = T4.id WHERE T4.attribute_name = 'Speed' ORDER BY T3.attribute_value LIMIT 1", + "source_gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id INNER JOIN attribute AS T4 ON T3.attribute_id = T4.id WHERE T4.attribute_name = 'Speed' ORDER BY T3.attribute_value LIMIT 1", + "source_gold_sql_sha256": "294d4b58ebc92d2bc1bd09c9c57ed41ae2b7b3fb4d45fd59735b5e202d6011d7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:733", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\ngold-eyed refers to colour = 'Gold' where eye_colour_id = colour.id; superheroes that Marvel Comics published refers to publisher_name = 'Marvel Comics'\n\nQuestion:\nHow many gold-eyed superheroes did Marvel Comics publish?", + "question": "How many gold-eyed superheroes did Marvel Comics publish?", + "evidence": "gold-eyed refers to colour = 'Gold' where eye_colour_id = colour.id; superheroes that Marvel Comics published refers to publisher_name = 'Marvel Comics'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold'", + "source_gold_sql_sha256": "f2a63fdec4df73c915a20f2fdf0731da89f421009c295dc8f2d9d8eb06dd7177", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:736", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nthe dumbest superhero refers to MIN(attribute_value) where attribute_name = 'Intelligence'\n\nQuestion:\nWho is the dumbest superhero?", + "question": "Who is the dumbest superhero?", + "evidence": "the dumbest superhero refers to MIN(attribute_value) where attribute_name = 'Intelligence'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT s.superhero_name FROM superhero AS s JOIN hero_attribute AS ha ON s.id = ha.hero_id JOIN attribute AS a ON ha.attribute_id = a.id WHERE a.attribute_name = 'Intelligence' AND ha.attribute_value = ( SELECT MIN(attribute_value) FROM hero_attribute WHERE attribute_id = ( SELECT id FROM attribute WHERE attribute_name = 'Intelligence' ) )", + "source_gold_sql": "SELECT s.superhero_name FROM superhero AS s JOIN hero_attribute AS ha ON s.id = ha.hero_id JOIN attribute AS a ON ha.attribute_id = a.id WHERE a.attribute_name = 'Intelligence' AND ha.attribute_value = ( SELECT MIN(attribute_value) FROM hero_attribute WHERE attribute_id = ( SELECT id FROM attribute WHERE attribute_name = 'Intelligence' ) )", + "source_gold_sql_sha256": "2ee77f9bff784fc9153606b3abdebd749561bca6497a7d014946834471ba1653", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:737", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nCopycat is the superhero_name;\n\nQuestion:\nWhat is Copycat's race?", + "question": "What is Copycat's race?", + "evidence": "Copycat is the superhero_name;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat'", + "source_gold_sql": "SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat'", + "source_gold_sql_sha256": "af0f3f1e079e384a1b2a361f9bbfd18bd665b5caea716298ceffaf3b6bb9e8a9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:738", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\ndurability of less than 50 refers to attribute_name = 'Durability' AND attribute_value < 50\n\nQuestion:\nWhich superheroes have a durability attribute value of less than 50?", + "question": "Which superheroes have a durability attribute value of less than 50?", + "evidence": "durability of less than 50 refers to attribute_name = 'Durability' AND attribute_value < 50", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_attribute AS T2 INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Durability' AND T2.attribute_value < 50 AND T1.id = T2.hero_id)", + "source_gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_attribute AS T2 INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Durability' AND T2.attribute_value < 50 AND T1.id = T2.hero_id)", + "source_gold_sql_sha256": "f2af96407eec566cb47f7e0734bd9cc72827b4fe80e2861836cf3f9883cc8239", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:739", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nname of superheroes refers to refers to superhero_name; the power of death touch refers to power_name = 'Death Touch'\n\nQuestion:\nWhat are the names of the superheroes with the power of death touch?", + "question": "What are the names of the superheroes with the power of death touch?", + "evidence": "name of superheroes refers to refers to superhero_name; the power of death touch refers to power_name = 'Death Touch'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Death Touch'", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Death Touch'", + "source_gold_sql_sha256": "fb785cf1606787ec0c671107cd0e441462009f505be5fd4b2bc4a86530853f51", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:740", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nfemale refers to gender = 'Female'; strength value of 100 refers to attribute_name = 'Strength' AND attribute_value = 100\n\nQuestion:\nHow many female superheroes have a strength value of 100?", + "question": "How many female superheroes have a strength value of 100?", + "evidence": "female refers to gender = 'Female'; strength value of 100 refers to attribute_name = 'Strength' AND attribute_value = 100", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female'", + "source_gold_sql_sha256": "b8672e5686f7a74ed19c12680fddb4dfa7ec279db4655f28b5c5071f319ab6c1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:743", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\npublished by Marvel Comics refers to publisher_name = 'Marvel Comics'; superheroes who act in their own self-interest or make decisions based on their own moral code refers to alignment = 'Bad'; calculation = MULTIPLY(DIVIDE(SUM(alignment = 'Bad); count(id)), 100)\n\nQuestion:\nWhat is the percentage of superheroes who act in their own self-interest or make decisions based on their own moral code? Indicate how many of the said superheroes were published by Marvel Comics.", + "question": "What is the percentage of superheroes who act in their own self-interest or make decisions based on their own moral code? Indicate how many of the said superheroes were published by Marvel Comics.", + "evidence": "published by Marvel Comics refers to publisher_name = 'Marvel Comics'; superheroes who act in their own self-interest or make decisions based on their own moral code refers to alignment = 'Bad'; calculation = MULTIPLY(DIVIDE(SUM(alignment = 'Bad); count(id)), 100)", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT (CAST(COUNT(*) AS REAL) * 100 / (SELECT COUNT(*) FROM superhero)), SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T3.id = T1.alignment_id WHERE T3.alignment = 'Bad'", + "source_gold_sql": "SELECT (CAST(COUNT(*) AS REAL) * 100 / (SELECT COUNT(*) FROM superhero)), SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T3.id = T1.alignment_id WHERE T3.alignment = 'Bad'", + "source_gold_sql_sha256": "bb79925e8f90c2e0b159d6ca381f078442e6ed4eae2f19004ddb6639ec51617d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:744", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nDC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = SUBTRACT(SUM(publisher_name = 'Marvel Comics'), SUM(publisher_name = 'DC Comics'))\n\nQuestion:\nBetween DC and Marvel Comics, which publisher has published more superheroes? Find the difference in the number of superheroes they have published.", + "question": "Between DC and Marvel Comics, which publisher has published more superheroes? Find the difference in the number of superheroes they have published.", + "evidence": "DC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = SUBTRACT(SUM(publisher_name = 'Marvel Comics'), SUM(publisher_name = 'DC Comics'))", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CASE WHEN marvel_cnt > dc_cnt THEN 'Marvel Comics' ELSE 'DC Comics' END AS publisher_with_more_superheroes,\n marvel_cnt - dc_cnt AS difference\nFROM (\n SELECT SUM(CASE WHEN p.`publisher_name`='Marvel Comics' THEN 1 END) AS marvel_cnt,\n SUM(CASE WHEN p.`publisher_name`='DC Comics' THEN 1 END) AS dc_cnt\n FROM `superhero` s\n JOIN `publisher` p ON s.`publisher_id` = p.`id`\n) t;", + "source_gold_sql": "SELECT CASE WHEN marvel_cnt > dc_cnt THEN 'Marvel Comics' ELSE 'DC Comics' END AS publisher_with_more_superheroes,\n marvel_cnt - dc_cnt AS difference\nFROM (\n SELECT SUM(CASE WHEN p.`publisher_name`='Marvel Comics' THEN 1 END) AS marvel_cnt,\n SUM(CASE WHEN p.`publisher_name`='DC Comics' THEN 1 END) AS dc_cnt\n FROM `superhero` s\n JOIN `publisher` p ON s.`publisher_id` = p.`id`\n) t;", + "source_gold_sql_sha256": "8bb0575395b5c2d71212ba5b7a072763b6b57a5bd8db378ff46303483ece4ee5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:745", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nStar Trek is the publisher_name;\n\nQuestion:\nGive the publisher ID of Star Trek.", + "question": "Give the publisher ID of Star Trek.", + "evidence": "Star Trek is the publisher_name;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT id FROM publisher WHERE publisher_name = 'Star Trek'", + "source_gold_sql": "SELECT id FROM publisher WHERE publisher_name = 'Star Trek'", + "source_gold_sql_sha256": "a30914cba3ad9f2f0667a0850e57490d88400116c7e03f868bc4a80d7177884e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:747", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nsuperheroes without full name refers to full_name IS NULL\n\nQuestion:\nWhat is the total number of superheroes without full name?", + "question": "What is the total number of superheroes without full name?", + "evidence": "superheroes without full name refers to full_name IS NULL", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(id) FROM superhero WHERE full_name IS NULL", + "source_gold_sql": "SELECT COUNT(id) FROM superhero WHERE full_name IS NULL", + "source_gold_sql_sha256": "a1285e00eafdf25571bf5d4ff37761006e16b7e05942c387fcd0519afa8b3cf3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:750", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nfemale refers to gender = 'Female'; average weight refers to AVG(weight_kg)\n\nQuestion:\nWhat is the average weight of all female superheroes?", + "question": "What is the average weight of all female superheroes?", + "evidence": "female refers to gender = 'Female'; average weight refers to AVG(weight_kg)", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT AVG(weight_kg) FROM superhero s JOIN gender g ON s.gender_id = g.id WHERE g.gender = 'Female' AND weight_kg > 0;", + "source_gold_sql": "SELECT AVG(weight_kg) FROM superhero s JOIN gender g ON s.gender_id = g.id WHERE g.gender = 'Female' AND weight_kg > 0;", + "source_gold_sql_sha256": "e4e95382b6ce63b0c725bf96835ff77c4339dd313f87ecfb3319a30756f8c3a5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:751", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nmale refers to gender = 'Male'; superpowers refers to power_name;\n\nQuestion:\nList down the superpowers of male superheroes.", + "question": "List down the superpowers of male superheroes.", + "evidence": "male refers to gender = 'Male'; superpowers refers to power_name;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender = 'Male'", + "source_gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender = 'Male'", + "source_gold_sql_sha256": "38bf532da00ee47759558ea015f2c25ba1358118b24692ef10f80e27848f3a51", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:753", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nheight from 170 to 190 refers to height_cm BETWEEN 170 AND 190; no eye color refers to colour = 'No Colour'\n\nQuestion:\nAmong the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.", + "question": "Among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.", + "evidence": "height from 170 to 190 refers to height_cm BETWEEN 170 AND 190; no eye color refers to colour = 'No Colour'", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT DISTINCT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.height_cm BETWEEN 170 AND 190 AND T2.colour = 'No Colour'", + "source_gold_sql": "SELECT DISTINCT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.height_cm BETWEEN 170 AND 190 AND T2.colour = 'No Colour'", + "source_gold_sql_sha256": "d9e7c868e21893b4f3a4e8679c2d8ed19ba59ab5b8cb38f76be1f64ee25bb718", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:758", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\n185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;\n\nQuestion:\nProvide the hair colour of the human superhero who is 185 cm tall.", + "question": "Provide the hair colour of the human superhero who is 185 cm tall.", + "evidence": "185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human'", + "source_gold_sql": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human'", + "source_gold_sql_sha256": "9ecab1707ccc083a98d83fc8d142e72de6596eb3417e5b41a0adc04974743848", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:760", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nheight between 150 to 180 refers to height_cm BETWEEN 150 AND 180; heroes published by Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = MULTIPLY(DIVIDE(SUM(publisher.id = 13)), COUNT(publisher.id), 100)\n\nQuestion:\nIn superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?", + "question": "In superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?", + "evidence": "height between 150 to 180 refers to height_cm BETWEEN 150 AND 180; heroes published by Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = MULTIPLY(DIVIDE(SUM(publisher.id = 13)), COUNT(publisher.id), 100)", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.height_cm BETWEEN 150 AND 180", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.height_cm BETWEEN 150 AND 180", + "source_gold_sql_sha256": "5a7354771c5edcb99009975fb59397d921cb3e2fd1a9b2e66648ce57affe1cd2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:761", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nsuper hero names refers to superhero_name;male superheros refers to gender = 'Male';Calculation = weight_kg > MULTIPLY(AVG(weight_kg), 0.79)\n\nQuestion:\nAmong the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.", + "question": "Among the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.", + "evidence": "super hero names refers to superhero_name;male superheros refers to gender = 'Male';Calculation = weight_kg > MULTIPLY(AVG(weight_kg), 0.79)", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Male' AND T1.weight_kg * 100 > ( SELECT AVG(weight_kg) FROM superhero WHERE weight_kg > 0) * 79", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Male' AND T1.weight_kg * 100 > ( SELECT AVG(weight_kg) FROM superhero WHERE weight_kg > 0) * 79", + "source_gold_sql_sha256": "565c82df467371c6e4adf9c25b48f6bf23dca2bb456b06b997caf5c3f54a020b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:764", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nsuperpowers refers to power_name; heroes with ID 1 refers to hero_id = 1;\n\nQuestion:\nWhat are the superpowers of heroes with ID 1?", + "question": "What are the superpowers of heroes with ID 1?", + "evidence": "superpowers refers to power_name; heroes with ID 1 refers to hero_id = 1;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT DISTINCT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T1.hero_id = 1", + "source_gold_sql": "SELECT DISTINCT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T1.hero_id = 1", + "source_gold_sql_sha256": "a5477a44cc01239cf306819775788f3f287bd607b3887edc345dad008843314a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:765", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nstealth power refers to power_name = 'Stealth';\n\nQuestion:\nHow many heroes have stealth power?", + "question": "How many heroes have stealth power?", + "evidence": "stealth power refers to power_name = 'Stealth';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Stealth'", + "source_gold_sql": "SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Stealth'", + "source_gold_sql_sha256": "232f35701fc424e3ed290e855b8cb67d3f2e2c92c0f661bca92e39641d371beb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:766", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nhighest attribute in strength refers to MAX(attribute_value) WHERE attribute_name = 'strength';\n\nQuestion:\nWhat are the full names of all heroes with the highest attribute in strength?", + "question": "What are the full names of all heroes with the highest attribute in strength?", + "evidence": "highest attribute in strength refers to MAX(attribute_value) WHERE attribute_name = 'strength';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "WITH max_strength AS (SELECT attribute_id, MAX(attribute_value) attribute_value FROM hero_attribute INNER JOIN attribute ON attribute_id = attribute.id WHERE attribute.attribute_name = 'Strength' GROUP BY 1) SELECT distinct T1.full_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN max_strength AS T3 ON T2.attribute_id = T3.attribute_id AND T2.attribute_value = T3.attribute_value", + "source_gold_sql": "WITH max_strength AS (SELECT attribute_id, MAX(attribute_value) attribute_value FROM hero_attribute INNER JOIN attribute ON attribute_id = attribute.id WHERE attribute.attribute_name = 'Strength' GROUP BY 1) SELECT distinct T1.full_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN max_strength AS T3 ON T2.attribute_id = T3.attribute_id AND T2.attribute_value = T3.attribute_value", + "source_gold_sql_sha256": "76425d3a3d6faa618ba0ac6d69332c10e67c3b07428bb3603290671947de333a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:769", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nwhich superhero refers to superhero_name; most durability refers to MAX(attribute_value) WHERE attribute_name = 'durability'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';\n\nQuestion:\nWhich superhero has the most durability published by Dark Horse Comics?", + "question": "Which superhero has the most durability published by Dark Horse Comics?", + "evidence": "which superhero refers to superhero_name; most durability refers to MAX(attribute_value) WHERE attribute_name = 'durability'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T3.id = T2.attribute_id INNER JOIN publisher AS T4 ON T4.id = T1.publisher_id WHERE T4.publisher_name = 'Dark Horse Comics' AND T3.attribute_name = 'Durability' ORDER BY T2.attribute_value DESC LIMIT 1", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T3.id = T2.attribute_id INNER JOIN publisher AS T4 ON T4.id = T1.publisher_id WHERE T4.publisher_name = 'Dark Horse Comics' AND T3.attribute_name = 'Durability' ORDER BY T2.attribute_value DESC LIMIT 1", + "source_gold_sql_sha256": "1b9e49c5d30acdc11514bf38404d32dec9cba410e35d7c94f7d4a31a76549d25", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:772", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\neyes refers to eye_colour_id; hair refers to hair_colour_id; skin colour refers to skin_colour_id; female superheroes refers to gender = 'Female'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';\n\nQuestion:\nList the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.", + "question": "List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.", + "evidence": "eyes refers to eye_colour_id; hair refers to hair_colour_id; skin colour refers to skin_colour_id; female superheroes refers to gender = 'Female'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender = 'Female'", + "source_gold_sql": "SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender = 'Female'", + "source_gold_sql_sha256": "0b1a8bddf91821d04a2296110ca0bb8cfa4dff7d1cdfcaa469f1bb90152c229d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:773", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nwhich superhero refers to superhero_name; the same eyes, hair and skin colour refers to hair_colour_id = skin_colour_id AND hair_colour_id = eye_colour_id; publisher refers to publisher_name;\n\nQuestion:\nWhich superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.", + "question": "Which superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.", + "evidence": "which superhero refers to superhero_name; the same eyes, hair and skin colour refers to hair_colour_id = skin_colour_id AND hair_colour_id = eye_colour_id; publisher refers to publisher_name;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name, T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.eye_colour_id = T1.hair_colour_id AND T1.eye_colour_id = T1.skin_colour_id", + "source_gold_sql": "SELECT T1.superhero_name, T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.eye_colour_id = T1.hair_colour_id AND T1.eye_colour_id = T1.skin_colour_id", + "source_gold_sql_sha256": "ff40eb2901fc2d08adef314c80975504d3d89aa18436a0429dac123e833ad102", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:775", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\npercentage = MULTIPLY(DIVIDE(SUM(colour = 'Blue' WHERE gender = 'Female'), COUNT(gender = 'Female')), 100); blue refers to the color = 'Blue' WHERE skin_colour_id = colour.id; female refers to gender = 'Female';\n\nQuestion:\nWhat is the percentage of blue female superheroes among all female superheroes?", + "question": "What is the percentage of blue female superheroes among all female superheroes?", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(colour = 'Blue' WHERE gender = 'Female'), COUNT(gender = 'Female')), 100); blue refers to the color = 'Blue' WHERE skin_colour_id = colour.id; female refers to gender = 'Female';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T3.colour = 'Blue' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.gender = 'Female'", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T3.colour = 'Blue' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.gender = 'Female'", + "source_gold_sql_sha256": "fff4b4e03bef52811507e8627fc22a8b014ff9d0e814f5c093988bf8a08c3ef8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:779", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nAmazo hero refers to superhero_name = 'Amazo';\n\nQuestion:\nHow many powers does Amazo hero have?", + "question": "How many powers does Amazo hero have?", + "evidence": "Amazo hero refers to superhero_name = 'Amazo';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.power_id) FROM hero_power AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id WHERE T2.superhero_name = 'Amazo'", + "source_gold_sql": "SELECT COUNT(T1.power_id) FROM hero_power AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id WHERE T2.superhero_name = 'Amazo'", + "source_gold_sql_sha256": "e6c0f179eb2056bd8ec1227b12cc6e3382e1190f38f05d86527adec60f263437", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:781", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nheights of the heroes refers to height_cm; eye colours are amber refers to colour.colour = 'Amber' WHERE eye_colour_id = colour.id;\n\nQuestion:\nProvide the heights of the heroes whose eye colours are amber.", + "question": "Provide the heights of the heroes whose eye colours are amber.", + "evidence": "heights of the heroes refers to height_cm; eye colours are amber refers to colour.colour = 'Amber' WHERE eye_colour_id = colour.id;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'", + "source_gold_sql": "SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'", + "source_gold_sql_sha256": "d05885212e804d7a5703273683525a5a7230992ff3ff4efae35f42cdb3366d6f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:782", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nheroes' names refers to superhero_name; eyes and hair colours are both black refers to eye_colour_id AND hair_colour_id WHERE colour.colour = 'Black';\n\nQuestion:\nList the heroes' names whose eyes and hair colours are both black.", + "question": "List the heroes' names whose eyes and hair colours are both black.", + "evidence": "heroes' names refers to superhero_name; eyes and hair colours are both black refers to eye_colour_id AND hair_colour_id WHERE colour.colour = 'Black';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id AND T1.hair_colour_id = T2.id WHERE T2.colour = 'Black'", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id AND T1.hair_colour_id = T2.id WHERE T2.colour = 'Black'", + "source_gold_sql_sha256": "1f62a7696e7ae16ab3245bf7af4556eea3569247fdc3668ec558b46731fbc4a1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:785", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nnames of superheroes refers to superhero_name; neutral alignment refers to alignment = 'Neutral';\n\nQuestion:\nDescribe the names of neutral alignment superheroes.", + "question": "Describe the names of neutral alignment superheroes.", + "evidence": "names of superheroes refers to superhero_name; neutral alignment refers to alignment = 'Neutral';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'", + "source_gold_sql_sha256": "a1be9f9df7a32e49b33756bfeef406f148e4e56cae4e62374e659fe061b4f574", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:786", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nhighest attribute value in strength refers to MAX(attribute_value) WHERE attribute_name = 'Strength';\n\nQuestion:\nHow many heroes have the highest attribute value in strength?", + "question": "How many heroes have the highest attribute value in strength?", + "evidence": "highest attribute value in strength refers to MAX(attribute_value) WHERE attribute_name = 'Strength';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT ha.`hero_id`)\nFROM `hero_attribute` AS ha\nJOIN `attribute` AS a ON ha.`attribute_id` = a.`id`\nWHERE a.`attribute_name` = 'Strength'\n AND ha.`attribute_value` = (\n SELECT MAX(ha2.`attribute_value`)\n FROM `hero_attribute` ha2\n JOIN `attribute` a2 ON ha2.`attribute_id` = a2.`id`\n WHERE a2.`attribute_name` = 'Strength'\n );", + "source_gold_sql": "SELECT COUNT(DISTINCT ha.`hero_id`)\nFROM `hero_attribute` AS ha\nJOIN `attribute` AS a ON ha.`attribute_id` = a.`id`\nWHERE a.`attribute_name` = 'Strength'\n AND ha.`attribute_value` = (\n SELECT MAX(ha2.`attribute_value`)\n FROM `hero_attribute` ha2\n JOIN `attribute` a2 ON ha2.`attribute_id` = a2.`id`\n WHERE a2.`attribute_name` = 'Strength'\n );", + "source_gold_sql_sha256": "afabed9c4e3bd943f864b6ae645a7726fa254042fbacd71dff178da9d3261439", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:788", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\npercent = MULTIPLY(DIVIDE(COUNT(gender = 'Female' AND publisher_name = 'Marvel Comics'), COUNT(gender = 'Female')), 100); female heroes refers to gender = 'Female'; Marvel Comics refers to publisher_name = 'Marvel Comics';\n\nQuestion:\nHow many percent of female heroes were published by Marvel Comics?", + "question": "How many percent of female heroes were published by Marvel Comics?", + "evidence": "percent = MULTIPLY(DIVIDE(COUNT(gender = 'Female' AND publisher_name = 'Marvel Comics'), COUNT(gender = 'Female')), 100); female heroes refers to gender = 'Female'; Marvel Comics refers to publisher_name = 'Marvel Comics';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' AND T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) * 100 FROM superhero AS T1 LEFT JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' AND T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) * 100 FROM superhero AS T1 LEFT JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id", + "source_gold_sql_sha256": "9e3d213a2a24a755501f44a3cc8febee90088157db1392b7857333ce3ae25e60", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:790", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\ndifference = SUBTRACT(SUM(weight_kg WHERE full_name = 'Emil Blonsky'), SUM(weight_kg WHERE full_name = 'Charles Chandler')); Emil Blonsky is the full name of superhero; Charles Chandler is the full name of superhero;\n\nQuestion:\nCalculate the difference between Emil Blonsky's weight and Charles Chandler's weight.", + "question": "Calculate the difference between Emil Blonsky's weight and Charles Chandler's weight.", + "evidence": "difference = SUBTRACT(SUM(weight_kg WHERE full_name = 'Emil Blonsky'), SUM(weight_kg WHERE full_name = 'Charles Chandler')); Emil Blonsky is the full name of superhero; Charles Chandler is the full name of superhero;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Emil Blonsky' ) - ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Charles Chandler' ) AS CALCULATE", + "source_gold_sql": "SELECT ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Emil Blonsky' ) - ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Charles Chandler' ) AS CALCULATE", + "source_gold_sql_sha256": "c1c4ba6ca21944df9fa2127fa2ec07306cf305d797c2b7e6c25f258e6ec2726f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:791", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\naverage = DIVIDE(SUM(height_cm), COUNT(all heros));\n\nQuestion:\nCalculate the average height for all superhero.", + "question": "Calculate the average height for all superhero.", + "evidence": "average = DIVIDE(SUM(height_cm), COUNT(all heros));", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT AVG(height_cm) FROM superhero WHERE height_cm > 0;", + "source_gold_sql": "SELECT AVG(height_cm) FROM superhero WHERE height_cm > 0;", + "source_gold_sql_sha256": "90193ba3cd5d5730573ce392ecc2d24afa0d3dc0bbfa7f6d07319fe9771fe60f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:792", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nAbomination refers to superhero_name = 'Abomination'; superpower refers to power_name;\n\nQuestion:\nWhat is Abomination's superpower?", + "question": "What is Abomination's superpower?", + "evidence": "Abomination refers to superhero_name = 'Abomination'; superpower refers to power_name;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = 'Abomination'", + "source_gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = 'Abomination'", + "source_gold_sql_sha256": "506275249b3fb30e5cab2b89d8bff7e42b0181297efb8cb5761503ea350dff94", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:794", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nwhich hero refers to superhero_name; fastest refers to MAX(attribute_value) WHERE attribute_name = 'Speed';\n\nQuestion:\nWhich hero was the fastest?", + "question": "Which hero was the fastest?", + "evidence": "which hero refers to superhero_name; fastest refers to MAX(attribute_value) WHERE attribute_name = 'Speed';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT s.superhero_name FROM superhero AS s JOIN hero_attribute AS ha ON s.id = ha.hero_id JOIN attribute AS a ON ha.attribute_id = a.id WHERE a.attribute_name = 'Speed' AND ha.attribute_value = ( SELECT MAX(ha2.attribute_value) FROM hero_attribute AS ha2 JOIN attribute AS a2 ON ha2.attribute_id = a2.id WHERE a2.attribute_name = 'Speed' )", + "source_gold_sql": "SELECT s.superhero_name FROM superhero AS s JOIN hero_attribute AS ha ON s.id = ha.hero_id JOIN attribute AS a ON ha.attribute_id = a.id WHERE a.attribute_name = 'Speed' AND ha.attribute_value = ( SELECT MAX(ha2.attribute_value) FROM hero_attribute AS ha2 JOIN attribute AS a2 ON ha2.attribute_id = a2.id WHERE a2.attribute_name = 'Speed' )", + "source_gold_sql_sha256": "b94ded15c855a9b75d9c2fbe531599647fd02061f13c9e214bf9f6a8695a877f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:796", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\n3-D Man is the superhero_name. attributes refers to attribute_name; values refers to attribute_value;\n\nQuestion:\nState all of 3-D Man's attributes along with their values.", + "question": "State all of 3-D Man's attributes along with their values.", + "evidence": "3-D Man is the superhero_name. attributes refers to attribute_name; values refers to attribute_value;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T3.attribute_name, T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = '3-D Man'", + "source_gold_sql": "SELECT T3.attribute_name, T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = '3-D Man'", + "source_gold_sql_sha256": "0aa0c67329fb88fcba5028f73dc9b8aba6aad5a0f1f6196af8568fc1e2a33324", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:797", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nwhich superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;\n\nQuestion:\nWhich superheroes have blue eyes with brown hair?", + "question": "Which superheroes have blue eyes with brown hair?", + "evidence": "which superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'", + "source_gold_sql_sha256": "31b774567252519f923449f99fb0ce03141c604ed12261e5657884a804130935", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:798", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\npublisher refers to publisher_name; Hawkman refers to superhero_name = 'Hawkman'; Karate Kid refers to superhero_name = 'Karate Kid'; Speedy refers to superhero_name = 'Speedy';\n\nQuestion:\nWhat is the publisher for Hawkman, Karate Kid and Speedy?", + "question": "What is the publisher for Hawkman, Karate Kid and Speedy?", + "evidence": "publisher refers to publisher_name; Hawkman refers to superhero_name = 'Hawkman'; Karate Kid refers to superhero_name = 'Karate Kid'; Speedy refers to superhero_name = 'Speedy';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name IN ('Hawkman', 'Karate Kid', 'Speedy')", + "source_gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name IN ('Hawkman', 'Karate Kid', 'Speedy')", + "source_gold_sql_sha256": "ff5428f394b161a2f45afd7f466697e265e9e6a029cb8a543e1f2752f60b39b7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:800", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\npercentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id = eye_colour_id = 7;\n\nQuestion:\nCalculate the percentage of superheroes with blue eyes.", + "question": "Calculate the percentage of superheroes with blue eyes.", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id = eye_colour_id = 7;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id", + "source_gold_sql_sha256": "fab58e1dbfc1f7df0d4a930af16fde7b80cefc7ea60b0f619c8ebe600e6e171d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:801", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2))\n\nQuestion:\nFind the ratio between male superheroes and female superheroes.", + "question": "Find the ratio between male superheroes and female superheroes.", + "evidence": "ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2))", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id", + "source_gold_sql_sha256": "88effaf68a9ef64b10e396837e45ae606bf07ea9e6de2a1f30e9893ba4fc7d56", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:806", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\neye colour refers to colour.colour where eye_colour_id = colour.id; Karen Beecher-Duncan is the full name of superhero;\n\nQuestion:\nProvide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.", + "question": "Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.", + "evidence": "eye colour refers to colour.colour where eye_colour_id = colour.id; Karen Beecher-Duncan is the full name of superhero;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'", + "source_gold_sql": "SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'", + "source_gold_sql_sha256": "a091c10e44df763adfc1fd1e3132d726c58a535c81aa39cf4514d382eee812e8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:819", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nmissing weight data refers to weight_kg = 0 OR T1.weight_kg = NULL; difference = SUBTRACT(SUM(colour.id = 7), SUM(colour.id = 1)); blue eyes refers to eye_colour_id WHERE colour.id = 7; no eye color refers to eye_colour_id WHERE colour.id = 1;\n\nQuestion:\nIn superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color.", + "question": "In superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color.", + "evidence": "missing weight data refers to weight_kg = 0 OR T1.weight_kg = NULL; difference = SUBTRACT(SUM(colour.id = 7), SUM(colour.id = 1)); blue eyes refers to eye_colour_id WHERE colour.id = 7; no eye color refers to eye_colour_id WHERE colour.id = 1;", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T2.id = 7 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg = 0 OR T1.weight_kg is NULL", + "source_gold_sql": "SELECT SUM(CASE WHEN T2.id = 7 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg = 0 OR T1.weight_kg is NULL", + "source_gold_sql_sha256": "f180c5146e52439e402f4376652717546b30af8904480a3609335b9790e9a469", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:822", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\ngreen-skinned refers to colour.colour = 'Green' WHERE skin_colour_id = colour.id; villains refers to alignment = 'Bad';\n\nQuestion:\nHow many green-skinned villains are there in the superhero universe?", + "question": "How many green-skinned villains are there in the superhero universe?", + "evidence": "green-skinned refers to colour.colour = 'Green' WHERE skin_colour_id = colour.id; villains refers to alignment = 'Bad';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'", + "source_gold_sql_sha256": "0903dbcc47e043ac7997ba81611f8b68424d32d0e15f04c2aebcb31bdcc4f161", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:824", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nsuperheroes refers to superhero_name; can control wind refers to power_name = 'Wind Control';\n\nQuestion:\nIdentify superheroes who can control wind and list their names in alphabetical order.", + "question": "Identify superheroes who can control wind and list their names in alphabetical order.", + "evidence": "superheroes refers to superhero_name; can control wind refers to power_name = 'Wind Control';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Wind Control' ORDER BY T1.superhero_name", + "source_gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Wind Control' ORDER BY T1.superhero_name", + "source_gold_sql_sha256": "420d4d652077dae1a814adf76fb4d7dd54086f7d142011da491869d29160b1b8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:825", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nability of Phoenix Force refers to power_name = 'Phoenix Force';\n\nQuestion:\nIdentify the gender of the superhero who has the ability of Phoenix Force.", + "question": "Identify the gender of the superhero who has the ability of Phoenix Force.", + "evidence": "ability of Phoenix Force refers to power_name = 'Phoenix Force';", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT T4.gender FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.power_name = 'Phoenix Force'", + "source_gold_sql": "SELECT T4.gender FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.power_name = 'Phoenix Force'", + "source_gold_sql_sha256": "98d9c8f81348e959bde66faa35a690d8745521ffcb501c6b8aeddfa60d25ea43", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:829", + "domain": "superhero", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE gender (\n `id` integer, -- the unique identifier of the gender.\n `gender` text, -- the gender of the superhero.\n primary key (id)\n);\n\nCREATE TABLE superpower (\n `id` integer, -- the unique identifier of the superpower.\n `power_name` text, -- power name. the superpower name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the publisher.\n `publisher_name` text, -- the name of the publisher.\n primary key (id)\n);\n\nCREATE TABLE superhero (\n `id` integer, -- the unique identifier of the superhero.\n `superhero_name` text, -- superhero name. the name of the superhero.\n `full_name` text, -- full name. the full name of the superhero. The full name of a person typically consists of their given name, also known as their first name or personal name, and their surname, also known as their last name or family name. For example, if someone's given name is \"John\" and their surname is \"Smith,\" their full name would be \"John Smith.\".\n `gender_id` integer, -- gender id. the id of the superhero's gender.\n `eye_colour_id` integer, -- eye colour id. the id of the superhero's eye color.\n `hair_colour_id` integer, -- hair colour id. the id of the superhero's hair color.\n `skin_colour_id` integer, -- skin colour id. the id of the superhero's skin color.\n `race_id` integer, -- race id. the id of the superhero's race.\n `publisher_id` integer, -- publisher id. the id of the publisher.\n `alignment_id` integer, -- alignment id. the id of the superhero's alignment.\n `height_cm` integer, -- height cm. the height of the superhero. The unit of height is centimeter. If the height_cm is NULL or 0, it means the height of the superhero is missing.\n `weight_kg` integer, -- weight kg. the weight of the superhero. The unit of weight is kilogram. If the weight_kg is NULL or 0, it means the weight of the superhero is missing.\n primary key (id),\n foreign key (alignment_id) references alignment(id),\n foreign key (eye_colour_id) references colour(id),\n foreign key (gender_id) references gender(id),\n foreign key (hair_colour_id) references colour(id),\n foreign key (publisher_id) references publisher(id),\n foreign key (race_id) references race(id),\n foreign key (skin_colour_id) references colour(id)\n);\n\nCREATE TABLE colour (\n `id` integer, -- the unique identifier of the color.\n `colour` text, -- the color of the superhero's skin/eye/hair/etc.\n primary key (id)\n);\n\nCREATE TABLE attribute (\n `id` integer, -- the unique identifier of the attribute.\n `attribute_name` text, -- attribute name. the attribute. A superhero's attribute is a characteristic or quality that defines who they are and what they are capable of. This could be a physical trait, such as superhuman strength or the ability to fly, or a personal trait, such as extraordinary intelligence or exceptional bravery.\n primary key (id)\n);\n\nCREATE TABLE hero_power (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `power_id` integer, -- power id. the id of the power. Maps to superpower(id). In general, a superhero's attributes provide the foundation for their abilities and help to define who they are, while their powers are the specific abilities that they use to fight crime and protect others.\n foreign key (hero_id) references superhero(id),\n foreign key (power_id) references superpower(id)\n);\n\nCREATE TABLE race (\n `id` integer, -- the unique identifier of the race.\n `race` text, -- the race of the superhero. In the context of superheroes, a superhero's race would refer to the particular group of people that the superhero belongs to base on these physical characteristics.\n primary key (id)\n);\n\nCREATE TABLE alignment (\n `id` integer, -- the unique identifier of the alignment.\n `alignment` text, -- the alignment of the superhero. Alignment refers to a character's moral and ethical stance and can be used to describe the overall attitude or behavior of a superhero. Some common alignments for superheroes include:. Good: These superheroes are typically kind, selfless, and dedicated to protecting others and upholding justice. Examples of good alignments include Superman, Wonder Woman, and Spider-Man. Neutral: These superheroes may not always prioritize the greater good, but they are not necessarily evil either. They may act in their own self-interest or make decisions based on their own moral code. Examples of neutral alignments include the Hulk and Deadpool. • Bad: These superheroes are typically selfish, manipulative, and willing to harm others in pursuit of their own goals. Examples of evil alignments include Lex Luthor and the Joker.\n primary key (id)\n);\n\nCREATE TABLE hero_attribute (\n `hero_id` integer, -- hero id. the id of the hero. Maps to superhero(id).\n `attribute_id` integer, -- attribute id. the id of the attribute. Maps to attribute(id).\n `attribute_value` integer, -- attribute value. the attribute value. If a superhero has a higher attribute value on a particular attribute, it means that they are more skilled or powerful in that area compared to other superheroes. For example, if a superhero has a higher attribute value for strength, they may be able to lift heavier objects or deliver more powerful punches than other superheroes.\n foreign key (attribute_id) references attribute(id),\n foreign key (hero_id) references superhero(id)\n);\n\nExternal Knowledge:\nDC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; difference = SUBTRACT(SUM(publisher_name = 'DC Comics'), SUM(publisher_name = 'Marvel Comics'));\n\nQuestion:\nWhich publisher created more superheroes: DC or Marvel Comics? Find the difference in the number of superheroes.", + "question": "Which publisher created more superheroes: DC or Marvel Comics? Find the difference in the number of superheroes.", + "evidence": "DC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; difference = SUBTRACT(SUM(publisher_name = 'DC Comics'), SUM(publisher_name = 'Marvel Comics'));", + "db_id": "superhero", + "database_path": "databases/superhero.sqlite", + "gold_sql": "SELECT CASE WHEN marvel_cnt > dc_cnt THEN 'Marvel Comics' ELSE 'DC Comics' END AS publisher_with_more_superheroes,\n dc_cnt - marvel_cnt AS difference\nFROM (\n SELECT SUM(CASE WHEN p.`publisher_name`='Marvel Comics' THEN 1 END) AS marvel_cnt,\n SUM(CASE WHEN p.`publisher_name`='DC Comics' THEN 1 END) AS dc_cnt\n FROM `superhero` s\n JOIN `publisher` p ON s.`publisher_id` = p.`id`\n) t;", + "source_gold_sql": "SELECT CASE WHEN marvel_cnt > dc_cnt THEN 'Marvel Comics' ELSE 'DC Comics' END AS publisher_with_more_superheroes,\n dc_cnt - marvel_cnt AS difference\nFROM (\n SELECT SUM(CASE WHEN p.`publisher_name`='Marvel Comics' THEN 1 END) AS marvel_cnt,\n SUM(CASE WHEN p.`publisher_name`='DC Comics' THEN 1 END) AS dc_cnt\n FROM `superhero` s\n JOIN `publisher` p ON s.`publisher_id` = p.`id`\n) t;", + "source_gold_sql_sha256": "3d14b23eabe9cabf8db4407557e943c3cdd76d0f0a27233f08c046472f738510", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:531", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nHarlan and \"Jarrod Dixon\" are both DisplayName; highest reputation refers to Max(Reputation)\n\nQuestion:\nWhich user has a higher reputation, Harlan or Jarrod Dixon?", + "question": "Which user has a higher reputation, Harlan or Jarrod Dixon?", + "evidence": "Harlan and \"Jarrod Dixon\" are both DisplayName; highest reputation refers to Max(Reputation)", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )", + "source_gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )", + "source_gold_sql_sha256": "83bae6554e90b61a3f8224ae1d4c3af476f32ea68ea650c0a93ef299a9570968", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:532", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\naccount created in the year 2011 refers to year(CreationDate) = 2011\n\nQuestion:\nPlease list the display names of all the users whose accounts were created in the year 2011.", + "question": "Please list the display names of all the users whose accounts were created in the year 2011.", + "evidence": "account created in the year 2011 refers to year(CreationDate) = 2011", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'", + "source_gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'", + "source_gold_sql_sha256": "dda657e532dc7bc6d306f2a282cec74bcda2af2c3010ffc839042bab5b5d9829", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:533", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nlast accessed after 2014/9/1 refers to date(LastAccessDate) > '2014-09-01'\n\nQuestion:\nHow many users last accessed the website after 2014/9/1?", + "question": "How many users last accessed the website after 2014/9/1?", + "evidence": "last accessed after 2014/9/1 refers to date(LastAccessDate) > '2014-09-01'", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'", + "source_gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'", + "source_gold_sql_sha256": "af562bcebf678da52e3f9c0ab792b957f0eb4250551242249d542ad801492c84", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:539", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nEliciting priors from experts is the Title of post; owner refers to DisplayName\n\nQuestion:\nWho is the owner of the post \"Eliciting priors from experts\"?", + "question": "Who is the owner of the post \"Eliciting priors from experts\"?", + "evidence": "Eliciting priors from experts is the Title of post; owner refers to DisplayName", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'", + "source_gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'", + "source_gold_sql_sha256": "f4e40a85ed19ef1fecef2deffa68b51dae0a81df780d0e1b06c564f347cf3626", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:537", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ncsgillespie is the DisplayName of user\n\nQuestion:\nHow many posts does the user csgillespie own?", + "question": "How many posts does the user csgillespie own?", + "evidence": "csgillespie is the DisplayName of user", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", + "source_gold_sql_sha256": "f97961c8f0866711c60aadfc8b5d9433356b8261a229413d87cd2555bdcccac0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:544", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nExamples for teaching: Correlation does not mean causation is the Title of post; user who last edited refers to LastEditorUserId\n\nQuestion:\nWhat is the display name of the user who last edited the post \"Examples for teaching: Correlation does not mean causation\"?", + "question": "What is the display name of the user who last edited the post \"Examples for teaching: Correlation does not mean causation\"?", + "evidence": "Examples for teaching: Correlation does not mean causation is the Title of post; user who last edited refers to LastEditorUserId", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'", + "source_gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'", + "source_gold_sql_sha256": "62346a28e0d68d685e0730fdfde6f9d0e8a482a7c4e4c5ec61bad4753663845e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:547", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nelder users refers to Age > 65; Score of over 19 refers to Score > = 20\n\nQuestion:\nAmong the posts owned by an elder user, how many of them have a score of over 19?", + "question": "Among the posts owned by an elder user, how many of them have a score of over 19?", + "evidence": "elder users refers to Age > 65; Score of over 19 refers to Score > = 20", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65", + "source_gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65", + "source_gold_sql_sha256": "cfa6d0e03fb413be177b9f143eb15af7c51d2ba2611b8152ecaca3ddafa05af7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:549", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nbayesian is the TagName; excerpt from refers to ExcerptPostId\n\nQuestion:\nFrom which post is the tag \"bayesian\" excerpted from? Please give the body of the post.", + "question": "From which post is the tag \"bayesian\" excerpted from? Please give the body of the post.", + "evidence": "bayesian is the TagName; excerpt from refers to ExcerptPostId", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'", + "source_gold_sql": "SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'", + "source_gold_sql_sha256": "93cfd18272120198ae61eb6df33087efe5f4b68b1406e400b81e38f2ffcaa5b1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:555", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ncsgillespie is the DisplayName of user; average score refers to AVG(Score)\n\nQuestion:\nWhat is the average score of the posts owned by the user csgillespie?", + "question": "What is the average score of the posts owned by the user csgillespie?", + "evidence": "csgillespie is the DisplayName of user; average score refers to AVG(Score)", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", + "source_gold_sql": "SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", + "source_gold_sql_sha256": "6f412617f080de8b3e534f845752da18325231fe73ab62445df4585894f40433", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:557", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nscore of over 5 refers to Score > 5; elder user refers to Age > 65; percentage = Divide (Count(Id where Age>65), Count(Id)) * 100\n\nQuestion:\nAmong the posts with a score of over 5, what is the percentage of them being owned by an elder user?", + "question": "Among the posts with a score of over 5, what is the percentage of them being owned by an elder user?", + "evidence": "score of over 5 refers to Score > 5; elder user refers to Age > 65; percentage = Divide (Count(Id where Age>65), Count(Id)) * 100", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5", + "source_gold_sql": "SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5", + "source_gold_sql_sha256": "ff6c8d5a7ca94c1e8ad906faac3bf6feb1caa0967354ad01d1155931c3900e80", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:563", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nuser no. 3025 refers to UserId = '3025'; comment at 20:29:39 on 2014/4/23 refers to CreationDate = '2014/4/23 20:29:39.0'\n\nQuestion:\nUser No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get?", + "question": "User No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get?", + "evidence": "user no. 3025 refers to UserId = '3025'; comment at 20:29:39 on 2014/4/23 refers to CreationDate = '2014/4/23 20:29:39.0'", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025", + "source_gold_sql": "SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025", + "source_gold_sql_sha256": "df007d79f2e41e3360c93302c76ca3eef0c159eb54295b42867b5731db678466", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:565", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nuser no. 23853 refers to UserId = '23853'; at 9:08:18 on 2013/7/12 refers to CreationDate = '2013-07-12 09:08:18.0'; not well-finished refers to ClosedDate IS NULL and vice versa\n\nQuestion:\nUser No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? YES or NO", + "question": "User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? YES or NO", + "evidence": "user no. 23853 refers to UserId = '23853'; at 9:08:18 on 2013/7/12 refers to CreationDate = '2013-07-12 09:08:18.0'; not well-finished refers to ClosedDate IS NULL and vice versa", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT IIF(T2.ClosedDate IS NULL, 'NO', 'YES') AS resylt FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0'", + "source_gold_sql": "SELECT IIF(T2.ClosedDate IS NULL, 'NO', 'YES') AS resylt FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0'", + "source_gold_sql_sha256": "b26139d05cb74420f7ab6b668291c279d22919844c8db85b6a898f740cde40a7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:567", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nTiago Pasqualini is the DisplayName;\n\nQuestion:\nFor the user with the display name of \"Tiago Pasqualini\", how many posts did he/she own?", + "question": "For the user with the display name of \"Tiago Pasqualini\", how many posts did he/she own?", + "evidence": "Tiago Pasqualini is the DisplayName;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'", + "source_gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'", + "source_gold_sql_sha256": "6736a2a797fd06f42b28a37fb7348fa6915cd1862fbe358aa9e540044b4ff990", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:568", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nvote no. 6347 refers to Id = '6347'\n\nQuestion:\nProvide the display name of the user who made the vote No.6347.", + "question": "Provide the display name of the user who made the vote No.6347.", + "evidence": "vote no. 6347 refers to Id = '6347'", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347", + "source_gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347", + "source_gold_sql_sha256": "15b5cae7d01ddaf75a17ff406f2077444c81ddc93bfcfece13fbb1c3eef5d8a7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:571", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nuser no. 24 refers to UserId = OwnerUserId = '24'; times of his/her post than votes = Divide (Count(post.Id), Count(votes.Id))\n\nQuestion:\nFor the user No.24, how many times is the number of his/her posts compared to his/her votes?", + "question": "For the user No.24, how many times is the number of his/her posts compared to his/her votes?", + "evidence": "user no. 24 refers to UserId = OwnerUserId = '24'; times of his/her post than votes = Divide (Count(post.Id), Count(votes.Id))", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "WITH count_votes AS (SELECT COUNT(*) AS vote_count FROM votes WHERE UserId = 24), count_posts AS (SELECT COUNT(*) AS post_count FROM posts WHERE OwnerUserId = 24) SELECT CAST(post_count AS REAL) / CAST(vote_count AS REAL) AS ratio FROM count_posts, count_votes", + "source_gold_sql": "WITH count_votes AS (SELECT COUNT(*) AS vote_count FROM votes WHERE UserId = 24), count_posts AS (SELECT COUNT(*) AS post_count FROM posts WHERE OwnerUserId = 24) SELECT CAST(post_count AS REAL) / CAST(vote_count AS REAL) AS ratio FROM count_posts, count_votes", + "source_gold_sql_sha256": "21b0cd722ed82de3cc4c1921e57422de06234153360387bc4c921c14e1bf3410", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:572", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nIntegration of Weka and/or RapidMiner into Informatica PowerCenter/Developer is the Title of post; views refers to ViewCount\n\nQuestion:\nHow many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get?", + "question": "How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get?", + "evidence": "Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer is the Title of post; views refers to ViewCount", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'", + "source_gold_sql": "SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'", + "source_gold_sql_sha256": "fc48952c2fe78f65653f22ad9c534b6c18cc29461ae822d60383b8d8913247fc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:573", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nscore of 17 refers to Score = 17; contents of comments refers to Text\n\nQuestion:\nWrite the contents of comments with a score of 17.", + "question": "Write the contents of comments with a score of 17.", + "evidence": "score of 17 refers to Score = 17; contents of comments refers to Text", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT Text FROM comments WHERE Score = 17", + "source_gold_sql": "SELECT Text FROM comments WHERE Score = 17", + "source_gold_sql_sha256": "ef9a5583ed1030fd56d31cda01329f31a25557f868036ec755c19e4d638a2f39", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:576", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nthank you user93 is the Text of comment; user refers to DisplayName\n\nQuestion:\nName the user that commented 'thank you user93!'", + "question": "Name the user that commented 'thank you user93!'", + "evidence": "thank you user93 is the Text of comment; user refers to DisplayName", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'", + "source_gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'", + "source_gold_sql_sha256": "82da805bcacf2fd51749d3d7566908584789f744e134ae463938830b8552f001", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:578", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nUnderstanding what Dassault iSight is doing? is the Title of post; user refers to DisplayName;\n\nQuestion:\nWhich user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?", + "question": "Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?", + "evidence": "Understanding what Dassault iSight is doing? is the Title of post; user refers to DisplayName;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'", + "source_gold_sql": "SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'", + "source_gold_sql_sha256": "6feb97b5aadc5ab8bf694cb153b2caa0863f80dd577502d365d01f6300ad0a9c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:581", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nOpen source tools for visualizing multi-dimensional data' is the Title of Post; owner refers to DisplayName;\n\nQuestion:\nWho is the owner of the post titled 'Open source tools for visualizing multi-dimensional data?'", + "question": "Who is the owner of the post titled 'Open source tools for visualizing multi-dimensional data?'", + "evidence": "Open source tools for visualizing multi-dimensional data' is the Title of Post; owner refers to DisplayName;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?'", + "source_gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?'", + "source_gold_sql_sha256": "826b53bf5a8cc56f201f8b8c8d6c9f88a8102da66a39f0282b4649693108e4a0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:584", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nWhy square the difference instead of taking the absolute value in standard deviation? is the Title of post; include blank comments\n\nQuestion:\nWrite all the edit comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?'", + "question": "Write all the edit comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?'", + "evidence": "Why square the difference instead of taking the absolute value in standard deviation? is the Title of post; include blank comments", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'", + "source_gold_sql": "SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'", + "source_gold_sql_sha256": "9c675749f3a10fcc533a990dbeb3b001782e6176a0e0d9d94096e4c9152fd56e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:586", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nbounty amount of 50 refers to BountyAmount = 50; user refers to DisplayName; title mentioning variance refers to Title include 'variance'\n\nQuestion:\nWhich user added a bounty amount of 50 to the post title mentioning variance?", + "question": "Which user added a bounty amount of 50 to the post title mentioning variance?", + "evidence": "bounty amount of 50 refers to BountyAmount = 50; user refers to DisplayName; title mentioning variance refers to Title include 'variance'", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T3.DisplayName FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'", + "source_gold_sql": "SELECT T3.DisplayName FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'", + "source_gold_sql_sha256": "401855645f7904586c6547856c75f9a65daa2cc9e08ccb028ab2c4d31f9104c4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:587", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ntagged as 'humor' refers to tag = ''; comment of the post refers to Text; average view count = AVG(ViewCount)\n\nQuestion:\nCalculate the average view count of each post tagged as 'humor' and list the title and the comment of each post.", + "question": "Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post.", + "evidence": "tagged as 'humor' refers to tag = ''; comment of the post refers to Text; average view count = AVG(ViewCount)", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.PostId WHERE T2.Tags = '' GROUP BY T2.Title, T1.Text", + "source_gold_sql": "SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.PostId WHERE T2.Tags = '' GROUP BY T2.Title, T1.Text", + "source_gold_sql_sha256": "450593394290e46e5d5ded69f93b256c8d1802614128c3dd54a7b7318be91d96", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:592", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nmore than 5 badges refers to Count (Name) > 5; user refers to UserId\n\nQuestion:\nHow many users are awarded with more than 5 badges?", + "question": "How many users are awarded with more than 5 badges?", + "evidence": "more than 5 badges refers to Count (Name) > 5; user refers to UserId", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5", + "source_gold_sql": "SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5", + "source_gold_sql_sha256": "8f32c2fadca73981096898d83bf84fc66d9c1d29f8263152051dc78dcd7536eb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:595", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nhaving at least 100 view refers to Views >= 100; user refers to UserId\n\nQuestion:\nWhich users have only one post history type and have at least 100 views?", + "question": "Which users have only one post history type and have at least 100 views?", + "evidence": "having at least 100 view refers to Views >= 100; user refers to UserId", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.UserId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T1.Views >= 100 GROUP BY T2.UserId HAVING COUNT(DISTINCT T2.PostHistoryTypeId) = 1", + "source_gold_sql": "SELECT T2.UserId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T1.Views >= 100 GROUP BY T2.UserId HAVING COUNT(DISTINCT T2.PostHistoryTypeId) = 1", + "source_gold_sql_sha256": "a80f5079a683fc538d35c20b15da506d0d954cf328ef6e9a72ea5dabe1542d1a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:598", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nstudent badges refers to badge's name = 'Student'; during 2010 refers to Year(Date) = 2010; during 2011 refers to Year(Date) = 2011; percentage difference = Subtract (Divide(Count(Name where Year(Date) = 2010), Count (Name)) *100, Divide(Count(Name where Year(Date) = 2011), Count(Name)) * 100)\n\nQuestion:\nWhat is the percentage difference of student badges given during 2010 and 2011?", + "question": "What is the percentage difference of student badges given during 2010 and 2011?", + "evidence": "student badges refers to badge's name = 'Student'; during 2010 refers to Year(Date) = 2010; during 2011 refers to Year(Date) = 2011; percentage difference = Subtract (Divide(Count(Name where Year(Date) = 2010), Count (Name)) *100, Divide(Count(Name where Year(Date) = 2011), Count(Name)) * 100)", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', Date) = '2010', 1, 0)) AS REAL) * 100 / COUNT(Id) - CAST(SUM(IIF(STRFTIME('%Y', Date) = '2011', 1, 0)) AS REAL) * 100 / COUNT(Id) FROM badges WHERE Name = 'Student'", + "source_gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', Date) = '2010', 1, 0)) AS REAL) * 100 / COUNT(Id) - CAST(SUM(IIF(STRFTIME('%Y', Date) = '2011', 1, 0)) AS REAL) * 100 / COUNT(Id) FROM badges WHERE Name = 'Student'", + "source_gold_sql_sha256": "77a2051e9e7af228c5e86d586877259460b5d6173a16a07fd0b1d78e14ac367a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:604", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ncreating more than 10 post refers to Count (UserId) > 10; average of the up votes = Divide (Sum(UpVotes), Count (UserId)); average age = Divide (Sum(Age), Count(UserId))\n\nQuestion:\nWhat is the average of the up votes and the average user age for users creating more than 10 posts?", + "question": "What is the average of the up votes and the average user age for users creating more than 10 posts?", + "evidence": "creating more than 10 post refers to Count (UserId) > 10; average of the up votes = Divide (Sum(UpVotes), Count (UserId)); average age = Divide (Sum(Age), Count(UserId))", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT AVG(T1.UpVotes), AVG(T1.Age) FROM users AS T1 INNER JOIN ( SELECT OwnerUserId, COUNT(*) AS post_count FROM posts GROUP BY OwnerUserId HAVING post_count > 10) AS T2 ON T1.Id = T2.OwnerUserId", + "source_gold_sql": "SELECT AVG(T1.UpVotes), AVG(T1.Age) FROM users AS T1 INNER JOIN ( SELECT OwnerUserId, COUNT(*) AS post_count FROM posts GROUP BY OwnerUserId HAVING post_count > 10) AS T2 ON T1.Id = T2.OwnerUserId", + "source_gold_sql_sha256": "65c5cc66ea46f1b3d590c500b0ea03adf72fc37f172465c6db3e43a324e97615", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:629", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nDIVIDE(COUNT(Id where YEAR(CreationDate) = 2010), COUNT(Id where YEAR(CreationDate) = 2011)) FROM votes;\n\nQuestion:\nCalculate the ratio of votes in 2010 and 2011.", + "question": "Calculate the ratio of votes in 2010 and 2011.", + "evidence": "DIVIDE(COUNT(Id where YEAR(CreationDate) = 2010), COUNT(Id where YEAR(CreationDate) = 2011)) FROM votes;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', CreationDate) = '2010', 1, 0)) AS REAL) / SUM(IIF(STRFTIME('%Y', CreationDate) = '2011', 1, 0)) FROM votes", + "source_gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', CreationDate) = '2010', 1, 0)) AS REAL) / SUM(IIF(STRFTIME('%Y', CreationDate) = '2011', 1, 0)) FROM votes", + "source_gold_sql_sha256": "1c81966ccc0bc458de743b97e9f735039c4463ee81c6e52c9fc3de65ee413278", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:633", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nmost answers count refers to MAX(AnswerCount); post by slashnick refers to DisplayName = 'slashnick';\n\nQuestion:\nWhich post by slashnick has the most answers count? State the post ID.", + "question": "Which post by slashnick has the most answers count? State the post ID.", + "evidence": "most answers count refers to MAX(AnswerCount); post by slashnick refers to DisplayName = 'slashnick';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT p.Id\nFROM posts AS p\nJOIN users AS u ON p.OwnerUserId = u.Id\nWHERE u.DisplayName = 'slashnick'\nORDER BY p.AnswerCount DESC\nLIMIT 1;", + "source_gold_sql": "SELECT p.Id\nFROM posts AS p\nJOIN users AS u ON p.OwnerUserId = u.Id\nWHERE u.DisplayName = 'slashnick'\nORDER BY p.AnswerCount DESC\nLIMIT 1;", + "source_gold_sql_sha256": "7f82adbfdfcec7f9b09f6f23c92d7b17ebc2588d264549a1e6a0b23c65be00cd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:634", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nHas higher popularity means the post has higher view count ; calculation = MAX(SUM(ViewCount)) where DisplayName = 'Harvey Motulsky' OR DisplayName = 'Noah Snyder';\n\nQuestion:\nAmong posts by Harvey Motulsky and Noah Snyder, whose posts have higher popularity? State the poster and their total popularity.", + "question": "Among posts by Harvey Motulsky and Noah Snyder, whose posts have higher popularity? State the poster and their total popularity.", + "evidence": "Has higher popularity means the post has higher view count ; calculation = MAX(SUM(ViewCount)) where DisplayName = 'Harvey Motulsky' OR DisplayName = 'Noah Snyder';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T1.DisplayName, SUM(T2.ViewCount) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' OR T1.DisplayName = 'Noah Snyder' GROUP BY T1.DisplayName ORDER BY SUM(T2.ViewCount) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.DisplayName, SUM(T2.ViewCount) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' OR T1.DisplayName = 'Noah Snyder' GROUP BY T1.DisplayName ORDER BY SUM(T2.ViewCount) DESC LIMIT 1", + "source_gold_sql_sha256": "a7ba29f522352785dc1f0a88ab521183de313209c8916fb342961f6292e68485", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:637", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nused by Mark Meckes refers to DisplayName = 'Mark Meckes'; Doen't have comments refers to CommentCount = 0; exclude null tags\n\nQuestion:\nState all the tags used by Mark Meckes in his posts that doesn't have comments.", + "question": "State all the tags used by Mark Meckes in his posts that doesn't have comments.", + "evidence": "used by Mark Meckes refers to DisplayName = 'Mark Meckes'; Doen't have comments refers to CommentCount = 0; exclude null tags", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT DISTINCT p.`Tags`\nFROM `posts` p\nJOIN `users` u ON u.`Id` = p.`OwnerUserId`\nWHERE u.`DisplayName` = 'Mark Meckes'\n AND p.`CommentCount` = 0\n AND p.`Tags` IS NOT NULL;", + "source_gold_sql": "SELECT DISTINCT p.`Tags`\nFROM `posts` p\nJOIN `users` u ON u.`Id` = p.`OwnerUserId`\nWHERE u.`DisplayName` = 'Mark Meckes'\n AND p.`CommentCount` = 0\n AND p.`Tags` IS NOT NULL;", + "source_gold_sql_sha256": "7eecbd136bc0f66ac5164871918dab791f13e98ab84ef1f16d7ef00111cd387d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:639", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nDIVIDE(COUNT(PostId WHERE TagName = 'r')), (COUNT(PostId WHERE DisplayName = 'Community')) as percentage; R language refers to tagname = 'r'\n\nQuestion:\nBased on posts posted by Community, calculate the percentage of posts that use the R language.", + "question": "Based on posts posted by Community, calculate the percentage of posts that use the R language.", + "evidence": "DIVIDE(COUNT(PostId WHERE TagName = 'r')), (COUNT(PostId WHERE DisplayName = 'Community')) as percentage; R language refers to tagname = 'r'", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(T3.TagName = 'r', 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN tags AS T3 ON T3.ExcerptPostId = T2.PostId WHERE T1.DisplayName = 'Community'", + "source_gold_sql": "SELECT CAST(SUM(IIF(T3.TagName = 'r', 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN tags AS T3 ON T3.ExcerptPostId = T2.PostId WHERE T1.DisplayName = 'Community'", + "source_gold_sql_sha256": "4df5c795167e95c9efcd862c9ae48da9f05f247b12ef50b443e4e302b00dda45", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:640", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ncalculation = SUBTRACT(SUM(ViewCount where DisplayName = 'Mornington'), SUM(ViewCount where DisplayName = 'Amos'));\n\nQuestion:\nCalculate the difference in view count from post posted by Mornington and view count from posts posted by Amos.", + "question": "Calculate the difference in view count from post posted by Mornington and view count from posts posted by Amos.", + "evidence": "calculation = SUBTRACT(SUM(ViewCount where DisplayName = 'Mornington'), SUM(ViewCount where DisplayName = 'Amos'));", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN u.DisplayName = 'Mornington' THEN p.ViewCount ELSE 0 END) - SUM(CASE WHEN u.DisplayName = 'Amos' THEN p.ViewCount ELSE 0 END) FROM posts p JOIN users u ON p.OwnerUserId = u.Id WHERE u.DisplayName IN ('Mornington', 'Amos') AND p.ViewCount IS NOT NULL;", + "source_gold_sql": "SELECT SUM(CASE WHEN u.DisplayName = 'Mornington' THEN p.ViewCount ELSE 0 END) - SUM(CASE WHEN u.DisplayName = 'Amos' THEN p.ViewCount ELSE 0 END) FROM posts p JOIN users u ON p.OwnerUserId = u.Id WHERE u.DisplayName IN ('Mornington', 'Amos') AND p.ViewCount IS NOT NULL;", + "source_gold_sql_sha256": "7e8854b571b1ba7a6cdbf3efc4d6630bab75639b8c5f1cca62eae299bdbcc19b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:665", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ncalculation = DIVIDE(COUNT(Id where YEAR(CreationDate) = 2010 and AnswerCount < = 2), 12)\n\nQuestion:\nWhat is the average monthly number of links created in 2010 for posts that have no more than 2 answers?", + "question": "What is the average monthly number of links created in 2010 for posts that have no more than 2 answers?", + "evidence": "calculation = DIVIDE(COUNT(Id where YEAR(CreationDate) = 2010 and AnswerCount < = 2), 12)", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'", + "source_gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'", + "source_gold_sql_sha256": "cefb798b5b54c44fd5fde30e5feb2f6a343e5b8c5d1f5791aa0ada27ca582413", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:669", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nDisplayName = 'chl'; cast its first vote refers to MIN(CreationDate);\n\nQuestion:\nWhen did 'chl' cast its first vote in a post?", + "question": "When did 'chl' cast its first vote in a post?", + "evidence": "DisplayName = 'chl'; cast its first vote refers to MIN(CreationDate);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1", + "source_gold_sql": "SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1", + "source_gold_sql_sha256": "4920fd30e1c8ed2e89764ed5123d21cda258bf4a0b11ab3bb05d07945c41c1d8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:671", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nAutobiographer is the name of the badge; acquired the first refers to MIN(Date);\n\nQuestion:\nWhat is the display name of the user who acquired the first Autobiographer badge?", + "question": "What is the display name of the user who acquired the first Autobiographer badge?", + "evidence": "Autobiographer is the name of the badge; acquired the first refers to MIN(Date);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT DISTINCT u.DisplayName FROM users AS u JOIN badges AS b ON u.Id = b.UserId WHERE b.Name = 'Autobiographer' AND b.Date = ( SELECT MIN(Date) FROM badges WHERE Name = 'Autobiographer')", + "source_gold_sql": "SELECT DISTINCT u.DisplayName FROM users AS u JOIN badges AS b ON u.Id = b.UserId WHERE b.Name = 'Autobiographer' AND b.Date = ( SELECT MIN(Date) FROM badges WHERE Name = 'Autobiographer')", + "source_gold_sql_sha256": "bb6de6bd9e3dd15e93178abfc92fe82054d08fc3e68aaf6df4f75843eb848131", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:672", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nfavorite amount of 4 or more refers to FavoriteCount > = 4; Location = 'United Kingdom';\n\nQuestion:\nAmong the users located in United Kingdom, how many users have at least one post with a favorite amount of 4 or more?", + "question": "Among the users located in United Kingdom, how many users have at least one post with a favorite amount of 4 or more?", + "evidence": "favorite amount of 4 or more refers to FavoriteCount > = 4; Location = 'United Kingdom';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4", + "source_gold_sql_sha256": "32bb5adc5882d07f7dcfc88e793b41c33040110e8a1332b272b5828ac93cb0d2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:678", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nDisplayName = 'Harvey Motulsky'; the most views refer to MAX(ViewCount);\n\nQuestion:\nWhich post by Harvey Motulsky has the most views? Please give the id and title of this post.", + "question": "Which post by Harvey Motulsky has the most views? Please give the id and title of this post.", + "evidence": "DisplayName = 'Harvey Motulsky'; the most views refer to MAX(ViewCount);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' ORDER BY T2.ViewCount DESC LIMIT 1", + "source_gold_sql": "SELECT T2.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' ORDER BY T2.ViewCount DESC LIMIT 1", + "source_gold_sql_sha256": "8534bd48766bf53a36b3f54a9926b1b80924ef8d4e661bed303011610ed9320c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:682", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nthe most valuable post in 2010 refers to MAX(FavoriteCount) where year(CreationDate) = 2010;\n\nQuestion:\nWhich is the most valuable post in 2010? Please give its id and the owner's display name.", + "question": "Which is the most valuable post in 2010? Please give its id and the owner's display name.", + "evidence": "the most valuable post in 2010 refers to MAX(FavoriteCount) where year(CreationDate) = 2010;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT p.`Id`,\n u.`DisplayName`\nFROM `posts` AS p\nJOIN `users` AS u ON u.`Id` = p.`OwnerUserId`\nWHERE STRFTIME('%Y', p.`CreaionDate`) = '2010'\nORDER BY p.`FavoriteCount` DESC\nLIMIT 1;", + "source_gold_sql": "SELECT p.`Id`,\n u.`DisplayName`\nFROM `posts` AS p\nJOIN `users` AS u ON u.`Id` = p.`OwnerUserId`\nWHERE STRFTIME('%Y', p.`CreaionDate`) = '2010'\nORDER BY p.`FavoriteCount` DESC\nLIMIT 1;", + "source_gold_sql_sha256": "1f46d6abe55521c99aaad05cc7ea451288c4352c395d9b17b52094b0c0d0e7c4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:683", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\npercentage = DIVIDE(COUNT(Id where YEAR(CreationDate) = 2011 and Reputation > 1000), COUNT(Id) ) * 100;\n\nQuestion:\nWhat is the percentage of posts that were both created in 2011 and whose owners had a reputation of over 1000?", + "question": "What is the percentage of posts that were both created in 2011 and whose owners had a reputation of over 1000?", + "evidence": "percentage = DIVIDE(COUNT(Id where YEAR(CreationDate) = 2011 and Reputation > 1000), COUNT(Id) ) * 100;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT( COUNT(p.Id) * 100.0 / ( SELECT COUNT(Id) FROM posts ) ) AS percentage FROM posts AS p JOIN users AS u ON p.OwnerUserId = u.Id WHERE STRFTIME('%Y', p.CreaionDate) = '2011' AND u.Reputation > 1000", + "source_gold_sql": "SELECT( COUNT(p.Id) * 100.0 / ( SELECT COUNT(Id) FROM posts ) ) AS percentage FROM posts AS p JOIN users AS u ON p.OwnerUserId = u.Id WHERE STRFTIME('%Y', p.CreaionDate) = '2011' AND u.Reputation > 1000", + "source_gold_sql_sha256": "bbe3b7888d066fa8ca37dcc17b3997933a2f0daf15c2544d21327cb45525ba47", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:685", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ntotal views refer to ViewCount; Name the user refers to DisplayName; post 'Computer Game Datasets' refers to Text = 'Computer Game Datasets';\n\nQuestion:\nIdentify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time.", + "question": "Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time.", + "evidence": "total views refer to ViewCount; Name the user refers to DisplayName; post 'Computer Game Datasets' refers to Text = 'Computer Game Datasets';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.ViewCount, T3.DisplayName FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN users AS T3 ON T2.LastEditorUserId = T3.Id WHERE T1.Text = 'Computer Game Datasets'", + "source_gold_sql": "SELECT T2.ViewCount, T3.DisplayName FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN users AS T3 ON T2.LastEditorUserId = T3.Id WHERE T1.Text = 'Computer Game Datasets'", + "source_gold_sql_sha256": "6e972c051a2ff2a48e4de93e8f002e2be66948002aeb46658f925befc18f50d2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:687", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nthe highest score refers to MAX(Score);\n\nQuestion:\nHow many comments were added to the post with the highest score?", + "question": "How many comments were added to the post with the highest score?", + "evidence": "the highest score refers to MAX(Score);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(T2.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId GROUP BY T1.Id ORDER BY T1.Score DESC LIMIT 1", + "source_gold_sql": "SELECT COUNT(T2.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId GROUP BY T1.Id ORDER BY T1.Score DESC LIMIT 1", + "source_gold_sql_sha256": "84f90dc86e9f2d6bbf971f0c205f42ef4238b9bc1c3f806cbd73f568189d8f23", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:694", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nthe latest comment refers to MAX(CreationDate);\n\nQuestion:\nProvide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it.", + "question": "Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it.", + "evidence": "the latest comment refers to MAX(CreationDate);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT c.Text, u.DisplayName\nFROM comments c JOIN posts p ON c.PostId = p.Id LEFT JOIN users u ON c.UserId = u.Id \nWHERE p.Title = 'Analysing wind data with R' ORDER BY c.CreationDate DESC LIMIT 10;", + "source_gold_sql": "SELECT c.Text, u.DisplayName\nFROM comments c JOIN posts p ON c.PostId = p.Id LEFT JOIN users u ON c.UserId = u.Id \nWHERE p.Title = 'Analysing wind data with R' ORDER BY c.CreationDate DESC LIMIT 10;", + "source_gold_sql_sha256": "c85be32f78a49d9e387f057dfd09539d83fca7a095414199683c92548e83a48a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:701", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nThe higher reputation the user has the more influence; percentage = DIVIDE(COUNT(stats_posts.Id where Score > 50 and MAX(Reputation))), COUNT(stats_posts.Id where MAX(Reputation));\n\nQuestion:\nAmong all the posts posted by the most influential user, identify the percentage with a score above 50.", + "question": "Among all the posts posted by the most influential user, identify the percentage with a score above 50.", + "evidence": "The higher reputation the user has the more influence; percentage = DIVIDE(COUNT(stats_posts.Id where Score > 50 and MAX(Reputation))), COUNT(stats_posts.Id where MAX(Reputation));", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.Score > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId WHERE T1.Reputation = (SELECT MAX(Reputation) FROM users)", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.Score > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId INNER JOIN ( SELECT MAX(Reputation) AS max_reputation FROM users ) T3 ON T1.Reputation = T3.max_reputation", + "source_gold_sql_sha256": "51fea273d02cd4c441cef13de0cad85b972419362caa9b1a1414dd3a787b65f3", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "result-preserving rewrite: the canonical gold exceeds the grading time limit" + }, + { + "id": "arcwise-sql:704", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\ntag named sample refers to TagName = 'sample';\n\nQuestion:\nWhat is the excerpt post ID and wiki post ID of the tag named sample?", + "question": "What is the excerpt post ID and wiki post ID of the tag named sample?", + "evidence": "tag named sample refers to TagName = 'sample';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'", + "source_gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'", + "source_gold_sql_sha256": "bf0819994fc104ff464669b4fabb15d5aa59959cf1c6ffa43d08ebc0b122cf5b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:705", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nText = 'fine, you win :)';\n\nQuestion:\nGive the user's reputation and up vote number of the user that commented \"fine, you win :)\".", + "question": "Give the user's reputation and up vote number of the user that commented \"fine, you win :)\".", + "evidence": "Text = 'fine, you win :)';", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'", + "source_gold_sql": "SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'", + "source_gold_sql_sha256": "c3e4c4817e0d992dea639d0c7b781fd91cea1cbf2c021eac557b0d7cf38b0174", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:707", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nviews ranging from 100 to 150 refers to ViewCount BETWEEN 100 and 150; comment with the highest score refers to Text where MAX(Score);\n\nQuestion:\nAmong the posts with views ranging from 100 to 150, what is the comment with the highest score?", + "question": "Among the posts with views ranging from 100 to 150, what is the comment with the highest score?", + "evidence": "views ranging from 100 to 150 refers to ViewCount BETWEEN 100 and 150; comment with the highest score refers to Text where MAX(Score);", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1", + "source_gold_sql": "SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1", + "source_gold_sql_sha256": "b750feaf015141bcfe5c9336408fb81e9899974232013e83572c367d67bb1c3a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:710", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\nin posts with 1 comment refers to CommentCount = 1;\n\nQuestion:\nIn posts with 1 comment, how many of the comments have 0 score?", + "question": "In posts with 1 comment, how many of the comments have 0 score?", + "evidence": "in posts with 1 comment refers to CommentCount = 1;", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.CommentCount = 1 AND T1.Score = 0", + "source_gold_sql": "SELECT COUNT(T1.id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.CommentCount = 1 AND T1.Score = 0", + "source_gold_sql_sha256": "6d6a422c50e7316838686f5ca762a97d2948d9e6b66eaf21923fe0a1e881f69f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:716", + "domain": "codebase_community", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE postLinks (\n `Id` integer, -- the post link id.\n `CreationDate` datetime, -- Creation Date. the creation date of the post link.\n `PostId` integer, -- Post Id. the post id.\n `RelatedPostId` integer, -- Related Post Id. the id of the related post.\n `LinkTypeId` integer, -- Link Type Id. the id of the link type.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (RelatedPostId) references posts (Id)\n);\n\nCREATE TABLE postHistory (\n `Id` integer, -- the post history id.\n `PostHistoryTypeId` integer, -- Post History Type Id. the id of the post history type.\n `PostId` integer, -- Post Id. the unique id of the post.\n `RevisionGUID` integer, -- Revision GUID. the revision globally unique id of the post.\n `CreationDate` datetime, -- Creation Date. the creation date of the post.\n `UserId` integer, -- User Id. the user who post the post.\n `Text` text, -- the detailed content of the post.\n `Comment` text, -- comments of the post.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE badges (\n `Id` integer, -- the badge id.\n `UserId` integer, -- User Id. the unique id of the user.\n `Name` text, -- the badge name the user obtained.\n `Date` datetime, -- the date that the user obtained the badge.\n primary key (Id),\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE posts (\n `Id` integer, -- the post id.\n `PostTypeId` integer, -- Post Type Id. the id of the post type.\n `AcceptedAnswerId` integer, -- Accepted Answer Id. the accepted answer id of the post.\n `CreaionDate` datetime, -- Creation Date. the creation date of the post.\n `Score` integer, -- the score of the post.\n `ViewCount` integer, -- View Count. the view count of the post. Higher view count means the post has higher popularity.\n `Body` text, -- the body of the post.\n `OwnerUserId` integer, -- Owner User Id. the id of the owner user.\n `LasActivityDate` datetime, -- Last Activity Date. the last activity date.\n `Title` text, -- the title of the post.\n `Tags` text, -- the tag of the post.\n `AnswerCount` integer, -- Answer Count. the total number of answers of the post.\n `CommentCount` integer, -- Comment Count. the total number of comments of the post.\n `FavoriteCount` integer, -- Favorite Count. the total number of favorites of the post. more favorite count refers to more valuable posts.\n `LastEditorUserId` integer, -- Last Editor User Id. the id of the last editor.\n `LastEditDate` datetime, -- Last Edit Date. the last edit date.\n `CommunityOwnedDate` datetime, -- Community Owned Date. the community owned date.\n `ParentId` integer, -- the id of the parent post. If the parent id is null, the post is the root post. Otherwise, the post is the child post of other post.\n `ClosedDate` data_format, -- Closed Date. the closed date of the post. if ClosedDate is null or empty, it means this post is not well-finished. if CloseDate is not null or empty, it means this post has well-finished.\n `OwnerDisplayName` text, -- Owner Display Name. the display name of the post owner.\n `LastEditorDisplayName` text, -- Last Editor Display Name. the display name of the last editor.\n primary key (Id),\n foreign key (LastEditorUserId) references users (Id)\n foreign key (OwnerUserId) references users (Id)\n foreign key (ParentId) references posts (Id)\n);\n\nCREATE TABLE users (\n `Id` integer, -- the user id.\n `Reputation` integer, -- the user's reputation. The user with higher reputation has more influence.\n `CreationDate` datetime, -- Creation Date. the creation date of the user account.\n `DisplayName` text, -- Display Name. the user's display name.\n `LastAccessDate` datetime, -- Last Access Date. the last access date of the user account.\n `WebsiteUrl` text, -- Website Url. the website url of the user account.\n `Location` text, -- user's location.\n `AboutMe` text, -- About Me. the self introduction of the user.\n `Views` integer, -- the number of views.\n `UpVotes` integer, -- the number of upvotes.\n `DownVotes` integer, -- the number of downvotes.\n `AccountId` integer, -- Account Id. the unique id of the account.\n `Age` integer, -- user's age. • teenager: 13-18. • adult: 19-65. • elder: > 65.\n `ProfileImageUrl` text, -- Profile Image Url. the profile image url.\n primary key (Id)\n);\n\nCREATE TABLE tags (\n `Id` integer, -- the tag id.\n `TagName` text, -- Tag Name. the name of the tag.\n `Count` integer, -- the count of posts that contain this tag. more counts --> this tag is more popular.\n `ExcerptPostId` integer, -- Excerpt Post Id. the excerpt post id of the tag.\n `WikiPostId` integer, -- Wiki Post Id. the wiki post id of the tag.\n primary key (Id),\n foreign key (ExcerptPostId) references posts (Id)\n);\n\nCREATE TABLE votes (\n `Id` integer, -- the vote id.\n `PostId` integer, -- Post Id. the id of the post that is voted.\n `VoteTypeId` integer, -- Vote Type Id. the id of the vote type.\n `CreationDate` datetime, -- Creation Date. the creation date of the vote.\n `UserId` integer, -- User Id. the id of the voter.\n `BountyAmount` integer, -- Bounty Amount. the amount of bounty.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nCREATE TABLE comments (\n `Id` integer, -- the comment Id.\n `PostId` integer, -- Post Id. the unique id of the post.\n `Score` integer, -- rating score. The score is from 0 to 100. The score more than 60 refers that the comment is a positive comment. The score less than 60 refers that the comment is a negative comment.\n `Text` text, -- the detailed content of the comment.\n `CreationDate` datetime, -- Creation Date. the creation date of the comment.\n `UserId` integer, -- User Id. the id of the user who post the comment.\n `UserDisplayName` text, -- User Display Name. user's display name.\n primary key (Id),\n foreign key (PostId) references posts (Id)\n foreign key (UserId) references users (Id)\n);\n\nExternal Knowledge:\npercentage = DIVIDE(COUNT(DISTINCT UserId where UpVotes = 0 and Score BETWEEN 5 and 10))*100, (COUNT(DISTINCT UserId where Score BETWEEN 5 and 10));\n\nQuestion:\nAmong the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?", + "question": "Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?", + "evidence": "percentage = DIVIDE(COUNT(DISTINCT UserId where UpVotes = 0 and Score BETWEEN 5 and 10))*100, (COUNT(DISTINCT UserId where Score BETWEEN 5 and 10));", + "db_id": "codebase_community", + "database_path": "databases/codebase_community.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(T1.UpVotes = 0, T1.Id, NULL)) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT IIF(T1.UpVotes = 0, T1.Id, NULL)) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10", + "source_gold_sql_sha256": "76d62abb62fb5fc24273fda5ed118ffaa7b75bccd492e182a603894bf17599f4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:340", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nincredibly poweful foils refers to cardKingdomFoilId is not null AND cardKingdomId is not null\n\nQuestion:\nWhich are the card ids that have incredibly powerful foils.", + "question": "Which are the card ids that have incredibly powerful foils.", + "evidence": "incredibly poweful foils refers to cardKingdomFoilId is not null AND cardKingdomId is not null", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL", + "source_gold_sql": "SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL", + "source_gold_sql_sha256": "793ac6b6130ba18f9422109463a37615d96445bf62b32a721e771e1adb2cd690", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:341", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nborderless' refers to borderColor; powerful foils refers to cardKingdomFoilId paired with cardKingdomId are not null\n\nQuestion:\nWhat are the borderless card ids available without powerful foils?", + "question": "What are the borderless card ids available without powerful foils?", + "evidence": "borderless' refers to borderColor; powerful foils refers to cardKingdomFoilId paired with cardKingdomId are not null", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomFoilId IS NULL OR cardKingdomId IS NULL)", + "source_gold_sql": "SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomFoilId IS NULL OR cardKingdomId IS NULL)", + "source_gold_sql_sha256": "03952b75fb8aca347b6401a71ba15e6ec12781833220ba493004c11995099dc5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:344", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nmythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';\n\nQuestion:\nList all the mythic rarity print card ids banned in gladiator format.", + "question": "List all the mythic rarity print card ids banned in gladiator format.", + "evidence": "mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'", + "source_gold_sql": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'", + "source_gold_sql_sha256": "560e10ad7d0f605587788bec4ba8251e1609396b75fe44b286596ca866208fca", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:345", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nArtifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';\n\nQuestion:\nFor artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.", + "question": "For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.", + "evidence": "Artifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL", + "source_gold_sql": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL", + "source_gold_sql_sha256": "0665259d3b33c7da390fcd173cd6a2fd1bb1aee85cf3a8ca3ec79b842cca79d7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:346", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nunknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'\n\nQuestion:\nList all the card id and artist with unknown power which are legal for commander play format.", + "question": "List all the card id and artist with unknown power which are legal for commander play format.", + "evidence": "unknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')", + "source_gold_sql": "SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')", + "source_gold_sql_sha256": "2e14e46666b2ee598172770ebbfa3ac82b1c1febe5dcf0c02d9feb2d94f6e5b6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:347", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist; Find all cards refers to return card id\n\nQuestion:\nFind all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.", + "question": "Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.", + "evidence": "cards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist; Find all cards refers to return card id", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'", + "source_gold_sql": "SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'", + "source_gold_sql_sha256": "30c7e36f8db5b589e9f77c0afb1f40d70d1ea10e73c544404de0e909edbaf7dc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:349", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nwith the most ruling information refers to Max(count(rulings.uuid)); the card is the promotional printing refers to isPromo = 1;\n\nQuestion:\nName the card with the most ruling information and its artist. Also state if the card is a promotional printing.", + "question": "Name the card with the most ruling information and its artist. Also state if the card is a promotional printing.", + "evidence": "with the most ruling information refers to Max(count(rulings.uuid)); the card is the promotional printing refers to isPromo = 1;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT c.name, c.artist, c.isPromo FROM cards c INNER JOIN (SELECT uuid FROM rulings GROUP BY uuid HAVING COUNT(id) = ( SELECT MAX(ruling_count) FROM ( SELECT COUNT(id) as ruling_count FROM rulings GROUP BY uuid ) ) ) AS max_rulings ON c.uuid = max_rulings.uuid;", + "source_gold_sql": "SELECT DISTINCT c.name, c.artist, c.isPromo FROM cards c INNER JOIN (SELECT uuid FROM rulings GROUP BY uuid HAVING COUNT(id) = ( SELECT MAX(ruling_count) FROM ( SELECT COUNT(id) as ruling_count FROM rulings GROUP BY uuid ) ) ) AS max_rulings ON c.uuid = max_rulings.uuid;", + "source_gold_sql_sha256": "62153f459ebb67a0db3327a673188530c144f510045eebea134eba47758d5b15", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:352", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nChinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100\n\nQuestion:\nCalculate the percentage of the cards availabe in Chinese Simplified.", + "question": "Calculate the percentage of the cards availabe in Chinese Simplified.", + "evidence": "Chinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'Chinese Simplified' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'Chinese Simplified' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid", + "source_gold_sql_sha256": "7d6d509898f6d679c29b1673b71fd53e8c1e043a326ff65d26baec4769a4f9ab", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:356", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ninfinite power refers to power = '*';\n\nQuestion:\nHow many cards have infinite power?", + "question": "How many cards have infinite power?", + "evidence": "infinite power refers to power = '*';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(*) FROM cards WHERE power = '*'", + "source_gold_sql": "SELECT COUNT(*) FROM cards WHERE power = '*'", + "source_gold_sql_sha256": "e98d2b955fd8894d84f068df971a985bbdb0090d52a21140651c531bf313e6fc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:358", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nname of card = 'Ancestor''s Chosen' ;\n\nQuestion:\nWhat is the border color of card \"Ancestor's Chosen\"?", + "question": "What is the border color of card \"Ancestor's Chosen\"?", + "evidence": "name of card = 'Ancestor''s Chosen' ;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'", + "source_gold_sql": "SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'", + "source_gold_sql_sha256": "59c7b13bcfc52007612d73593d0bd05f93cae876b0053de7b656fb920b8f6d38", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:366", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nBenalish Knight' is the name of card; rule of playing card refers to format;\n\nQuestion:\nWhat is the rule of playing card \"Benalish Knight\"?", + "question": "What is the rule of playing card \"Benalish Knight\"?", + "evidence": "Benalish Knight' is the name of card; rule of playing card refers to format;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'", + "source_gold_sql": "SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'", + "source_gold_sql_sha256": "a2530c4394a88b2efaf2ead51d3b328a7d3f451919bfc5f44548995f00dfb22f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:368", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nborderless card refers to borderColor = 'borderless'; percentage = Divide(Count (id) where borderColor = 'borderless', Count(id)) *100\n\nQuestion:\nWhat is the percentage of borderless cards?", + "question": "What is the percentage of borderless cards?", + "evidence": "borderless card refers to borderColor = 'borderless'; percentage = Divide(Count (id) where borderColor = 'borderless', Count(id)) *100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", + "source_gold_sql_sha256": "5f3f26a6b25f5a0f9e7853e29f37b15e9cdb99f9896c3849df8f744181651057", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:371", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nStory Spotlight card refers to isStorySpotlight = 1; French is the language; Percentage = Divide(Count(distinct id) where language = 'French' and isStorySpotlight = 1, Count(distinct id) where isStorySpotlight = 1)*100\n\nQuestion:\nWhat is the percentage of cards whose language is French among the Story Spotlight cards?", + "question": "What is the percentage of cards whose language is French among the Story Spotlight cards?", + "evidence": "Story Spotlight card refers to isStorySpotlight = 1; French is the language; Percentage = Divide(Count(distinct id) where language = 'French' and isStorySpotlight = 1, Count(distinct id) where isStorySpotlight = 1)*100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'French' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'French' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1", + "source_gold_sql_sha256": "609afd67347f16e7730502cacdb146a00106b2af8a1b60ed056c25779aad00e9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:377", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nsubtype other than Angel refers to subtypes is not 'Angel';\n\nQuestion:\nHow many cards with original type of \"Summon - Angel\" have subtype other than \"Angel\"?", + "question": "How many cards with original type of \"Summon - Angel\" have subtype other than \"Angel\"?", + "evidence": "subtype other than Angel refers to subtypes is not 'Angel';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'", + "source_gold_sql": "SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'", + "source_gold_sql_sha256": "f008179c24db9d0feb765d40ba0258ff8883bbff969a35fbc35ee2ea976ca0a1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:379", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nduel deck a refers to duelDeck = a;\n\nQuestion:\nWhat are the cards belong to duel deck a? List the ID.", + "question": "What are the cards belong to duel deck a? List the ID.", + "evidence": "duel deck a refers to duelDeck = a;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT id FROM cards WHERE duelDeck = 'a'", + "source_gold_sql": "SELECT id FROM cards WHERE duelDeck = 'a'", + "source_gold_sql_sha256": "e36ee4a4baa395c70d5d81601dab826cfb60ffdf8c4fb7a950f97977ddbe46e6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:383", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nbanned card refers to status = 'Banned'; white border refers to borderColor = 'white';\n\nQuestion:\nHow many of the banned cards are white border?", + "question": "How many of the banned cards are white border?", + "evidence": "banned card refers to status = 'Banned'; white border refers to borderColor = 'white';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'", + "source_gold_sql_sha256": "4f6ba2025e4be0eb6715da4e99b40a62a380270e529cee794fd2c6128e6d2f4d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:391", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nArtifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data\n\nQuestion:\nAmong the Artifact cards, which are black color and comes with foreign languague translation?", + "question": "Among the Artifact cards, which are black color and comes with foreign languague translation?", + "evidence": "Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'", + "source_gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'", + "source_gold_sql_sha256": "3ba10890785418c8111c84293c290ad90ec2b70e444ca75020c770e35cf7da94", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:397", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\navailable in paper and mtgo refers to availability = 'mtgo,paper'; frameVersion = 2003;borderColor = 'black'\n\nQuestion:\nWhat is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?", + "question": "What is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?", + "evidence": "available in paper and mtgo refers to availability = 'mtgo,paper'; frameVersion = 2003;borderColor = 'black'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'", + "source_gold_sql": "SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'", + "source_gold_sql_sha256": "cac35c4ca0dea63d732bcc38a8742eccf43f95b42e7ad16e60afe13bc3e9b704", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:402", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nStory Spotlight cards and do not have a text box refers to isStorylight = 1 and isTextless = 0; Percentage = DIVIDE(SUM(count(id) where isStorylight = 1 AND isTextless = 0 ), SUM(count(id))) * 100\n\nQuestion:\nWhat is the percentage of cards which are Story Spotlight cards and do not have a text box?", + "question": "What is the percentage of cards which are Story Spotlight cards and do not have a text box?", + "evidence": "Story Spotlight cards and do not have a text box refers to isStorylight = 1 and isTextless = 0; Percentage = DIVIDE(SUM(count(id) where isStorylight = 1 AND isTextless = 0 ), SUM(count(id))) * 100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND isStorySpotlight = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN isTextless = 0 AND isStorySpotlight = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", + "source_gold_sql_sha256": "98f1703816cf78fb48fbc3fe96dcf4cdc57d2629668ea622a68b60ad0802cd72", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:405", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nCommander block refer to block = 'Commander'; sets refer to code = setCode; Portuguese refer to language = 'Portuguese (Brasil)'\n\nQuestion:\nHow many Brazilian Portuguese translated sets are inside the Commander block?", + "question": "How many Brazilian Portuguese translated sets are inside the Commander block?", + "evidence": "Commander block refer to block = 'Commander'; sets refer to code = setCode; Portuguese refer to language = 'Portuguese (Brasil)'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'", + "source_gold_sql_sha256": "b2d0caa1360a939097710aaf3dbd55452b0b9ecf896b17653237bec98fc455a0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:407", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nGerman refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null\n\nQuestion:\nLists all types of cards in German.", + "question": "Lists all types of cards in German.", + "evidence": "German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL", + "source_gold_sql": "SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL", + "source_gold_sql_sha256": "548a8d520e3a86e36ee42b097f21351be3fb212ab1866f0fc185683fec646f06", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:408", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nunknown power cards refers to power is null or power = '*'; contain info about the triggered ability refers to ruling contains 'triggered ability'\n\nQuestion:\nHow many unknown power cards contain info about the triggered ability", + "question": "How many unknown power cards contain info about the triggered ability", + "evidence": "unknown power cards refers to power is null or power = '*'; contain info about the triggered ability refers to ruling contains 'triggered ability'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT Count(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'", + "source_gold_sql": "SELECT Count(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'", + "source_gold_sql_sha256": "e74f6d2fc7f943c56f9fc16050a6f7bbd8dbd3b6005a68ddc8a7c1ec3e306cf3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:409", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\npre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL\n\nQuestion:\nIndicates the number of cards with pre-modern format, ruling text \"This is a triggered mana ability.\" that do not have multiple faces.", + "question": "Indicates the number of cards with pre-modern format, ruling text \"This is a triggered mana ability.\" that do not have multiple faces.", + "evidence": "pre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL", + "source_gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL", + "source_gold_sql_sha256": "52ca64bd3c490d39c1ab0463cb7eb1141c9f3d5e794332be9a36c5cf797d31ba", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:412", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nin French refers to language = 'French'; black border color refers to borderColor = 'black'; type Creature refers to types = 'Creature'\n\nQuestion:\nWhat is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?", + "question": "What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?", + "evidence": "in French refers to language = 'French'; black border color refers to borderColor = 'black'; type Creature refers to types = 'Creature'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'", + "source_gold_sql": "SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'", + "source_gold_sql_sha256": "caef1500525d69e0233144c848df0961e6eca2268d501c656756205001f814c7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:414", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nset of 180 cards refers to baseSetSize = 180\n\nQuestion:\nWhat language is the set of 180 cards that belongs to the Ravnica block translated into?", + "question": "What language is the set of 180 cards that belongs to the Ravnica block translated into?", + "evidence": "set of 180 cards refers to baseSetSize = 180", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180", + "source_gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180", + "source_gold_sql_sha256": "2c250b8f38b03bb6419c09fbafb0874193cd25ce4c156dfd394e4f97b7471dc9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:415", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ndo not have a content warning refers to hasContentWarning = 0; percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where format = 'commander' AND Status = 'legal';\n\nQuestion:\nWhat percentage of cards with format commander and legal status do not have a content warning?", + "question": "What percentage of cards with format commander and legal status do not have a content warning?", + "evidence": "do not have a content warning refers to hasContentWarning = 0; percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where format = 'commander' AND Status = 'legal';", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'", + "source_gold_sql_sha256": "8cc6b19affb7417872696e237ab93b7fa2b7038937f3e1ce14c4c427b6656dc2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:416", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nin French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100\n\nQuestion:\nWhat percentage of cards without power are in French?", + "question": "What percentage of cards without power are in French?", + "evidence": "in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'French' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.language = 'French' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 LEFT JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'", + "source_gold_sql_sha256": "92d7d250ed78fd45ac785939e725a9b0d8d5c5aa1045d86f3a15e52a46ba9bb8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:422", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nmultiverse number 149934 refers to multiverseid = 149934;\n\nQuestion:\nWhat is the language of the card with the multiverse number 149934?", + "question": "What is the language of the card with the multiverse number 149934?", + "evidence": "multiverse number 149934 refers to multiverseid = 149934;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT language FROM foreign_data WHERE multiverseid = 149934", + "source_gold_sql": "SELECT language FROM foreign_data WHERE multiverseid = 149934", + "source_gold_sql_sha256": "c376ae28d338996f226dce1531ab094243abe06232d07ee6b24b0634fb86b02c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:424", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ndo not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(*))*100\n\nQuestion:\nWhat proportion of cards do not have a text box with a normal layout?", + "question": "What proportion of cards do not have a text box with a normal layout?", + "evidence": "do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(*))*100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards", + "source_gold_sql_sha256": "0b16a4dcb6bf5772a6e1ddc58d2377dd567c8c39bc2d450df64f49d9f8dc849f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:427", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nknown as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC'\n\nQuestion:\nWhat languages are available in the set known as Archenemy on the magic card market and having the code ARC?", + "question": "What languages are available in the set known as Archenemy on the magic card market and having the code ARC?", + "evidence": "known as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC'", + "source_gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC'", + "source_gold_sql_sha256": "180385172853a350389f70baba425a18378e5f6531fb69679e649da88ccd6d5d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:440", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nA Pedra Fellwar refers to name = 'A Pedra Fellwar'\n\nQuestion:\nWhich foreign language used by \"A Pedra Fellwar\"?", + "question": "Which foreign language used by \"A Pedra Fellwar\"?", + "evidence": "A Pedra Fellwar refers to name = 'A Pedra Fellwar'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'", + "source_gold_sql": "SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'", + "source_gold_sql_sha256": "8f37c629de82760a346503c46b717e7938ad211660db622849474a792e4d958f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:459", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nSerra Angel refers to name = 'Serra Angel'; \"Shrine Keeper\" refers to name = 'Shrine Keeper'; card costs more converted mana when the value of convertedManaCost is greater\n\nQuestion:\nWhich card costs more converted mana, \"Serra Angel\" or \"Shrine Keeper\"?", + "question": "Which card costs more converted mana, \"Serra Angel\" or \"Shrine Keeper\"?", + "evidence": "Serra Angel refers to name = 'Serra Angel'; \"Shrine Keeper\" refers to name = 'Shrine Keeper'; card costs more converted mana when the value of convertedManaCost is greater", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1", + "source_gold_sql": "SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1", + "source_gold_sql_sha256": "9076690d6a290201892ec20b3e445ffaf2c0a540032a986725c75f53845c8eeb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:462", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nItalian is a language which refers to language = 'Italian'; with \"Ancestor's Chosen\" in the card set refers to name = 'Ancestor''s Chosen'\n\nQuestion:\nWhat's the Italian name of the set of cards with \"Ancestor's Chosen\" is in?", + "question": "What's the Italian name of the set of cards with \"Ancestor's Chosen\" is in?", + "evidence": "Italian is a language which refers to language = 'Italian'; with \"Ancestor's Chosen\" in the card set refers to name = 'Ancestor''s Chosen'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT translation FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen' ) AND language = 'Italian'", + "source_gold_sql": "SELECT translation FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen' ) AND language = 'Italian'", + "source_gold_sql_sha256": "f14b260c4fe51941fc9fe7ccb6f1b790949aeddded5f2beb2355655433ba6f6f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:465", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nset of cards with \"Ancestor''s Chosen\" in it refers to name = 'Ancestor''s Chosen'; Korean version refers to language = 'Korean'\n\nQuestion:\nWhich sets of cards with \"Ancestor's Chosen\" in it have a Korean version?", + "question": "Which sets of cards with \"Ancestor's Chosen\" in it have a Korean version?", + "evidence": "set of cards with \"Ancestor''s Chosen\" in it refers to name = 'Ancestor''s Chosen'; Korean version refers to language = 'Korean'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T3.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode INNER JOIN sets AS T3 ON T3.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Korean'", + "source_gold_sql": "SELECT DISTINCT T3.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode INNER JOIN sets AS T3 ON T3.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Korean'", + "source_gold_sql_sha256": "23079f33721d0a3d306253d8a957d7fd5891c9e760858c40c2fdffcfa9bed459", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:466", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set \"Hauptset Zehnte Edition\" refers to translation = 'Hauptset Zehnte Edition'; designed by Adam refers to artist = 'Adam Rex'\n\nQuestion:\nAmong the cards in the set \"Hauptset Zehnte Edition\", how many of them are designed by Adam Rex?", + "question": "Among the cards in the set \"Hauptset Zehnte Edition\", how many of them are designed by Adam Rex?", + "evidence": "card set \"Hauptset Zehnte Edition\" refers to translation = 'Hauptset Zehnte Edition'; designed by Adam refers to artist = 'Adam Rex'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex'", + "source_gold_sql_sha256": "fed270260be2661cdf00bb3c515a9667b794169473c4e60faca11c190943784a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:468", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nEighth Edition is the name of card set which refers to name = 'Eighth Edition'; Simplified Chinese refers to language = 'Chinese Simplified'; translation of the name refers to translation\n\nQuestion:\nWhat is the Simplified Chinese translation of the name of the set \"Eighth Edition\"?", + "question": "What is the Simplified Chinese translation of the name of the set \"Eighth Edition\"?", + "evidence": "Eighth Edition is the name of card set which refers to name = 'Eighth Edition'; Simplified Chinese refers to language = 'Chinese Simplified'; translation of the name refers to translation", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified'", + "source_gold_sql": "SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified'", + "source_gold_sql_sha256": "c129bb59168be6310f98f805eea8a0eb41c4781e71c64410bb0b0d15d49d1c2f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:469", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set \"Angel of Mercy\" refers to name = 'Angel of Mercy'; appear on Magic: The Gathering Online refers to mtgoCode is NOT NULL and vice versa\n\nQuestion:\nWhich sets of cards with \"Angel of Mercy\" appear on Magic: The Gathering Online?", + "question": "Which sets of cards with \"Angel of Mercy\" appear on Magic: The Gathering Online?", + "evidence": "card set \"Angel of Mercy\" refers to name = 'Angel of Mercy'; appear on Magic: The Gathering Online refers to mtgoCode is NOT NULL and vice versa", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T2.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Angel of Mercy' AND T2.mtgoCode IS NOT NULL", + "source_gold_sql": "SELECT DISTINCT T2.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Angel of Mercy' AND T2.mtgoCode IS NOT NULL", + "source_gold_sql_sha256": "1ae66ecf39f11e65f4ba2dcf0e2d4502fb195dfd349c014431405eef33c81d83", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:472", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nsets in the block \"Ice Age\" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' and translation is not null\n\nQuestion:\nAmong the sets in the block \"Ice Age\", how many of them have an Italian translation?", + "question": "Among the sets in the block \"Ice Age\", how many of them have an Italian translation?", + "evidence": "sets in the block \"Ice Age\" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' and translation is not null", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block = 'Ice Age' AND T2.language = 'Italian' AND T2.translation IS NOT NULL", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block = 'Ice Age' AND T2.language = 'Italian' AND T2.translation IS NOT NULL", + "source_gold_sql_sha256": "bde54f18519218add23a1709ab616ec755eba1a249254c235519296e37f4ffbd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:473", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nAdarkar Valkyrie refers to card name = 'Adarkar Valkyrie'; isForeignOnly = 1 means only available outside the United States;\n\nQuestion:\nAre any sets with Adarkar Valkyrie only available outside the United States? YES or NO.", + "question": "Are any sets with Adarkar Valkyrie only available outside the United States? YES or NO.", + "evidence": "Adarkar Valkyrie refers to card name = 'Adarkar Valkyrie'; isForeignOnly = 1 means only available outside the United States;", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT IIF(SUM(isForeignOnly) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Adarkar Valkyrie'", + "source_gold_sql": "SELECT IIF(SUM(isForeignOnly) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Adarkar Valkyrie'", + "source_gold_sql_sha256": "62072232180a871396d9d82544b12819ce7e4026eb52e71edc2da7701b9aaa09", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:474", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nItalian translation refers to language = 'Italian'; have a translation means translation is not null; base set number of under 100 refers to baseSetSize < 10\n\nQuestion:\nAmong the sets of cards that have an Italian translation, how many of them have a base set number of under 100?", + "question": "Among the sets of cards that have an Italian translation, how many of them have a base set number of under 100?", + "evidence": "Italian translation refers to language = 'Italian'; have a translation means translation is not null; base set number of under 100 refers to baseSetSize < 10", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 100 AND T2.language = 'Italian'", + "source_gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 100 AND T2.language = 'Italian'", + "source_gold_sql_sha256": "ff9f47085e492ccd920a81d9c67e2898e860ae4f89646285dd75833d76608b8a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:477", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set Coldsnap refers to name = 'Coldsnap'; Jeremy Jarvis, Aaron Miller or Chippy are the name of artists which refers to artist IN ('Jeremy Jarvis', 'Aaron Miller','Chippy');\n\nQuestion:\nWhich of these artists have designed a card in the set Coldsnap, Jeremy Jarvis, Aaron Miller or Chippy?", + "question": "Which of these artists have designed a card in the set Coldsnap, Jeremy Jarvis, Aaron Miller or Chippy?", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; Jeremy Jarvis, Aaron Miller or Chippy are the name of artists which refers to artist IN ('Jeremy Jarvis', 'Aaron Miller','Chippy');", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.artist FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE (T2.name = 'Coldsnap' AND T1.artist = 'Chippy') OR (T2.name = 'Coldsnap' AND T1.artist = 'Aaron Miller') OR (T2.name = 'Coldsnap' AND T1.artist = 'Jeremy Jarvis') GROUP BY T1.artist", + "source_gold_sql": "SELECT T1.artist FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE (T2.name = 'Coldsnap' AND T1.artist = 'Chippy') OR (T2.name = 'Coldsnap' AND T1.artist = 'Aaron Miller') OR (T2.name = 'Coldsnap' AND T1.artist = 'Jeremy Jarvis') GROUP BY T1.artist", + "source_gold_sql_sha256": "da8f8bf5af9fdb6007acb343b8ed19c4e155ab6c91586edcac0d3eef550e0149", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:479", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set Coldsnap refers to name = 'Coldsnap'; converted mana cost higher than 5 refers to convertedManaCost > 5; unknown power refers to power = '*' or T1.power is null\n\nQuestion:\nAmong the cards with converted mana cost higher than 5 in the set Coldsnap, how many of them have unknown power?", + "question": "Among the cards with converted mana cost higher than 5 in the set Coldsnap, how many of them have unknown power?", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; converted mana cost higher than 5 refers to convertedManaCost > 5; unknown power refers to power = '*' or T1.power is null", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T1.power = '*' OR T1.power IS NULL THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' AND T1.convertedManaCost > 5", + "source_gold_sql": "SELECT SUM(CASE WHEN T1.power = '*' OR T1.power IS NULL THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' AND T1.convertedManaCost > 5", + "source_gold_sql_sha256": "b4efec55559b3c406ca54460b8940951cace2390219131034d78f726ae2bf6c7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:480", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nItalian refers to language = 'Italian'; flavor text refers to flavorText; \"Ancestor''s Chosen\" refers to name = 'Ancestor''s Chosen'\n\nQuestion:\nWhat is the Italian flavor text of the card \"Ancestor's Chosen\"?", + "question": "What is the Italian flavor text of the card \"Ancestor's Chosen\"?", + "evidence": "Italian refers to language = 'Italian'; flavor text refers to flavorText; \"Ancestor''s Chosen\" refers to name = 'Ancestor''s Chosen'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Italian'", + "source_gold_sql": "SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Italian'", + "source_gold_sql_sha256": "b0ca5de632938addc2f03c9eea7354d01b451ebf1551cd3b31c3a40a7a0d30c2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:483", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'\n\nQuestion:\nPlease list the Italian text ruling of all the cards in the set Coldsnap.", + "question": "Please list the Italian text ruling of all the cards in the set Coldsnap.", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T1.text FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian'", + "source_gold_sql": "SELECT DISTINCT T1.text FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian'", + "source_gold_sql_sha256": "ef021f2c6baec624cd07f17c0cfd735f4ee196a81fe1f2ac7d5cee629f8516a0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:484", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'; highest converted mana cost refers to MAX(convertedManaCost)\n\nQuestion:\nPlease list the Italian names of the cards in the set Coldsnap with the highest converted mana cost.", + "question": "Please list the Italian names of the cards in the set Coldsnap with the highest converted mana cost.", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'; highest converted mana cost refers to MAX(convertedManaCost)", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.name FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian' AND T2.convertedManaCost = (SELECT MAX(convertedManaCost) FROM cards JOIN sets ON cards.setCode = sets.code WHERE sets.name = 'Coldsnap')", + "source_gold_sql": "SELECT T1.name FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian' AND T2.convertedManaCost = (SELECT MAX(convertedManaCost) FROM cards JOIN sets ON cards.setCode = sets.code WHERE sets.name = 'Coldsnap')", + "source_gold_sql_sha256": "435f1f359292aab085100b6d2a3c8210a8d88651fad0b38c36c4f20ad0399d4c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:486", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nconverted mana cost of 7 refers to convertedManaCost = 7; card set Coldsnap refers to name = 'Coldsnap'; percentage = DIVIDE(SUM(convertedManaCost = 7), SUM(convertedManaCost))*100\n\nQuestion:\nWhat is the percentage of the cards with a converted mana cost of 7 in the set Coldsnap?", + "question": "What is the percentage of the cards with a converted mana cost of 7 in the set Coldsnap?", + "evidence": "converted mana cost of 7 refers to convertedManaCost = 7; card set Coldsnap refers to name = 'Coldsnap'; percentage = DIVIDE(SUM(convertedManaCost = 7), SUM(convertedManaCost))*100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.convertedManaCost = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.convertedManaCost = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'", + "source_gold_sql_sha256": "b63cde0769dcf40acc5c1c747eafe7f212328633506b4bfb5f8b02d150de7daa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:487", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ncard set Coldsnap refers to name = 'Coldsnap'; foil is incredibly powerful refers to cardKingdomFoilId is not null AND cardKingdomId is not null; the percentage of incredibly powerful cards in the set refers to DIVIDE(SUM(incredibly powerful), SUM(name = 'Coldsnap'))*100\n\nQuestion:\nWhat is the percentage of incredibly powerful cards in the set Coldsnap?", + "question": "What is the percentage of incredibly powerful cards in the set Coldsnap?", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; foil is incredibly powerful refers to cardKingdomFoilId is not null AND cardKingdomId is not null; the percentage of incredibly powerful cards in the set refers to DIVIDE(SUM(incredibly powerful), SUM(name = 'Coldsnap'))*100", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.cardKingdomFoilId IS NOT NULL AND T1.cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.cardKingdomFoilId IS NOT NULL AND T1.cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'", + "source_gold_sql_sha256": "39ae9d018da42ab45e2210748dd18f27966f6ff33386e7042afc588501a0f9aa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:518", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nplay format refers to format; banned status refers to status = 'Banned'; the highest number of banned status refers to MAX(COUNT(status = 'Banned'))\n\nQuestion:\nWhich of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition.", + "question": "Which of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition.", + "evidence": "play format refers to format; banned status refers to status = 'Banned'; the highest number of banned status refers to MAX(COUNT(status = 'Banned'))", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T2.status = 'Banned' AND T2.format = (SELECT format FROM legalities WHERE status = 'Banned' GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1)", + "source_gold_sql": "WITH MaxBanned AS (SELECT format, COUNT(*) AS count_banned FROM legalities WHERE status = 'Banned' GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1) SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid INNER JOIN MaxBanned MB ON MB.format = T2.format WHERE T2.status = 'Banned'", + "source_gold_sql_sha256": "fbed9fae7854499219ca3c8799db0ac0c0a2069138d99e60d0f00ebdc74c2bcd", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "result-preserving rewrite: the canonical gold exceeds the grading time limit" + }, + { + "id": "arcwise-sql:522", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nranked 1st on EDHRec refers to edhrecRank = 1; banned refers to status = 'Banned'; play format refers to format; cards name refers to name\n\nQuestion:\nWhich cards are ranked 1st on EDHRec? List all of the cards name and its banned play format.", + "question": "Which cards are ranked 1st on EDHRec? List all of the cards name and its banned play format.", + "evidence": "ranked 1st on EDHRec refers to edhrecRank = 1; banned refers to status = 'Banned'; play format refers to format; cards name refers to name", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status = 'Banned' GROUP BY T1.name, T2.format", + "source_gold_sql": "SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status = 'Banned' GROUP BY T1.name, T2.format", + "source_gold_sql_sha256": "abec03ee06dbf6266eaea62e8813bfc407378e79becb99cdbf3af79fcad0848b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:528", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nthe set Hour of Devastation refers to set.name = 'Hour of Devastation'; names of all the cards in the set refers to cards.name; legal cards refers to status = 'Legal'; the formats refers to format\n\nQuestion:\nList the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal.", + "question": "List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal.", + "evidence": "the set Hour of Devastation refers to set.name = 'Hour of Devastation'; names of all the cards in the set refers to cards.name; legal cards refers to status = 'Legal'; the formats refers to format", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )", + "source_gold_sql": "SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )", + "source_gold_sql_sha256": "eca03e2e9963d3de607337b4d1e18b05a40781b6e86262372e604abfc7db85d9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:529", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\ndoesn't have Japanese translation refers to language not like '%Japanese%'; have Korean translation refers to language = 'Korean'\n\nQuestion:\nFind and list the names of cards which doesn't have Japanese translation but have Korean translation.", + "question": "Find and list the names of cards which doesn't have Japanese translation but have Korean translation.", + "evidence": "doesn't have Japanese translation refers to language not like '%Japanese%'; have Korean translation refers to language = 'Korean'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT name FROM cards WHERE uuid IN (SELECT DISTINCT uuid FROM foreign_data WHERE language LIKE 'Korean' EXCEPT SELECT DISTINCT uuid FROM foreign_data WHERE language LIKE '%Japanese%')", + "source_gold_sql": "SELECT name FROM cards WHERE uuid IN (SELECT DISTINCT uuid FROM foreign_data WHERE language LIKE 'Korean' EXCEPT SELECT DISTINCT uuid FROM foreign_data WHERE language LIKE '%Japanese%')", + "source_gold_sql_sha256": "1b615f0690c8049a3ae3bc3c548e0b54e361c3049f5ed22d2293c6a797e75eb2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:530", + "domain": "card_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE legalities (\n `id` integer, -- unique id identifying this legality.\n `format` text, -- format of play. each value refers to different rules to play.\n `status` text, -- • legal. • banned. • restricted.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE cards (\n `id` integer, -- unique id number identifying the cards.\n `artist` text, -- The name of the artist that illustrated the card art.\n `asciiName` text, -- ascii Name. The ASCII(opens new window) (Basic/128) code formatted card name with no special unicode characters.\n `availability` text, -- A list of the card's available printing types. \"arena\", \"dreamcast\", \"mtgo\", \"paper\", \"shandalar\".\n `borderColor` text, -- border Color. The color of the card border. \"black\", \"borderless\", \"gold\", \"silver\", \"white\".\n `cardKingdomFoilId` text, -- card Kingdom Foil Id. cardKingdomFoilId, when paired with cardKingdomId that is not Null, is incredibly powerful.\n `cardKingdomId` text, -- card Kingdom Id. A list of all the colors in the color indicator.\n `colorIdentity` text, -- color Identity. A list of all the colors found in manaCost, colorIndicator, and text.\n `colorIndicator` text, -- color Indicator. A list of all the colors in the color indicator (The symbol prefixed to a card's types).\n `colors` text, -- A list of all the colors in manaCost and colorIndicator. Some cards may not have values, such as cards with \"Devoid\" in its text.\n `convertedManaCost` real, -- converted Mana Cost. The converted mana cost of the card. Use the manaValue property. if value is higher, it means that this card cost more converted mana.\n `duelDeck` text, -- duel Deck. The indicator for which duel deck the card is in.\n `edhrecRank` integer, -- rec Rank in edh. The card rank on EDHRec.\n `faceConvertedManaCost` real, -- face Converted Mana Cost. The converted mana cost or mana value for the face for either half or part of the card. if value is higher, it means that this card cost more converted mana for the face.\n `faceName` text, -- face Name. The name on the face of the card.\n `flavorName` text, -- flavor Name. The promotional card name printed above the true card name on special cards that has no game function.\n `flavorText` text, -- flavor Text. The italicized text found below the rules text that has no game function.\n `frameEffects` text, -- frame Effects. The visual frame effects. \"colorshifted\", \"companion\", \"compasslanddfc\", \"devoid\", \"draft\", \"etched\", \"extendedart\", \"fullart\", \"inverted\", \"legendary\", \"lesson\", \"miracle\", \"mooneldrazidfc\", \"nyxtouched\", \"originpwdfc\", \"showcase\", \"snow\", \"sunmoondfc\", \"textless\", \"tombstone\", \"waxingandwaningmoondfc\".\n `frameVersion` text, -- frame Version. The version of the card frame style. \"1993\", \"1997\", \"2003\", \"2015\", \"future\".\n `hand` text, -- The starting maximum hand size total modifier. A + or - character precedes an integer. positive maximum hand size: +1, +2, .... negative maximum hand size: -1, .... neural maximum hand size: 0....\n `hasAlternativeDeckLimit` integer, -- has Alternative Deck Limit. If the card allows a value other than 4 copies in a deck. 0: disallow 1: allow.\n `hasContentWarning` integer, -- has Content Warning. If the card marked by Wizards of the Coast (opens new window) for having sensitive content. See this official article (opens new window) for more information. 0: doesn't have 1: has sensitve content or Wizards of the Coast. Cards with this property may have missing or degraded properties and values.\n `hasFoil` integer, -- has Foil. If the card can be found in foil. 0: cannot be found 1: can be found.\n `hasNonFoil` integer, -- has Non Foil. If the card can be found in non-foil. 0: cannot be found 1: can be found.\n `isAlternative` integer, -- is Alternative. If the card is an alternate variation to an original printing. 0: is not 1: is.\n `isFullArt` integer, -- is Full Art. If the card has full artwork. 0: doesn't have, 1: has full artwork.\n `isOnlineOnly` integer, -- is Online Only. If the card is only available in online game variations. 0: is not 1: is.\n `isOversized` integer, -- is Oversized. If the card is oversized. 0: is not 1: is.\n `isPromo` integer, -- is Promotion. If the card is a promotional printing. 0: is not 1: is.\n `isReprint` integer, -- is Reprint. If the card has been reprinted. 0: has not 1: has not been.\n `isReserved` integer, -- is Reserved. If the card is on the Magic: The Gathering Reserved List (opens new window). If the card is on the Magic, it will appear in The Gathering Reserved List.\n `isStarter` integer, -- is Starter. If the card is found in a starter deck such as Planeswalker/Brawl decks. 0: is not 1: is.\n `isStorySpotlight` integer, -- is Story Spotlight. If the card is a Story Spotlight card. 0: is not 1: is.\n `isTextless` integer, -- is Text less. If the card does not have a text box. 0: has a text box; 1: doesn't have a text box;\n `isTimeshifted` integer, -- is Time shifted. If the card is time shifted. If the card is \"timeshifted\", a feature of certain sets where a card will have a different frameVersion.\n `keywords` text, -- A list of keywords found on the card.\n `layout` text, -- The type of card layout. For a token card, this will be \"token\".\n `leadershipSkills` text, -- leadership Skills. A list of formats the card is legal to be a commander in.\n `life` text, -- The starting life total modifier. A plus or minus character precedes an integer.\n `loyalty` text, -- The starting loyalty value of the card. Used only on cards with \"Planeswalker\" in its types. empty means unkown.\n `manaCost` text, -- mana Cost. The mana cost of the card wrapped in brackets for each value. manaCost is unconverted mana cost.\n `mcmId` text, -- NOT USEFUL.\n `mcmMetaId` text, -- NOT USEFUL.\n `mtgArenaId` text, -- NOT USEFUL.\n `mtgjsonV4Id` text, -- NOT USEFUL.\n `mtgoFoilId` text, -- NOT USEFUL.\n `mtgoId` text, -- NOT USEFUL.\n `multiverseId` text, -- NOT USEFUL.\n `name` text, -- The name of the card. Cards with multiple faces, like \"Split\" and \"Meld\" cards are given a delimiter.\n `number` text, -- The number of the card.\n `originalReleaseDate` text, -- original Release Date. The original release date in ISO 8601(opens new window) format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.\n `originalText` text, -- original Text. The text on the card as originally printed.\n `originalType` text, -- original Type. The type of the card as originally printed. Includes any supertypes and subtypes.\n `otherFaceIds` text, -- other Face Ids. A list of card UUID's to this card's counterparts, such as transformed or melded faces.\n `power` text, -- The power of the card. ∞ means infinite power. null or * refers to unknown power.\n `printings` text, -- A list of set printing codes the card was printed in, formatted in uppercase.\n `promoTypes` text, -- promo Types. A list of promotional types for a card. \"arenaleague\", \"boosterfun\", \"boxtopper\", \"brawldeck\", \"bundle\", \"buyabox\", \"convention\", \"datestamped\", \"draculaseries\", \"draftweekend\", \"duels\", \"event\", \"fnm\", \"gameday\", \"gateway\", \"giftbox\", \"gilded\", \"godzillaseries\", \"instore\", \"intropack\", \"jpwalker\", \"judgegift\", \"league\", \"mediainsert\", \"neonink\", \"openhouse\", \"planeswalkerstamped\", \"playerrewards\", \"playpromo\", \"premiereshop\", \"prerelease\", \"promopack\", \"release\", \"setpromo\", \"stamped\", \"textured\", \"themepack\", \"thick\", \"tourney\", \"wizardsplaynetwork\".\n `purchaseUrls` text, -- purchase Urls. Links that navigate to websites where the card can be purchased.\n `rarity` text, -- The card printing rarity.\n `scryfallId` text, -- NOT USEFUL.\n `scryfallIllustrationId` text, -- NOT USEFUL.\n `scryfallOracleId` text, -- NOT USEFUL.\n `setCode` text, -- Set Code. The set printing code that the card is from.\n `side` text, -- The identifier of the card side. Used on cards with multiple faces on the same card. if this value is empty, then it means this card doesn't have multiple faces on the same card.\n `subtypes` text, -- A list of card subtypes found after em-dash.\n `supertypes` text, -- super types. A list of card supertypes found before em-dash. list of all types should be the union of subtypes and supertypes.\n `tcgplayerProductId` text, -- tcg player ProductId.\n `text` text, -- The rules text of the card.\n `toughness` text, -- The toughness of the card.\n `type` text, -- The type of the card as visible, including any supertypes and subtypes. \"Artifact\", \"Card\", \"Conspiracy\", \"Creature\", \"Dragon\", \"Dungeon\", \"Eaturecray\", \"Elemental\", \"Elite\", \"Emblem\", \"Enchantment\", \"Ever\", \"Goblin\", \"Hero\", \"Instant\", \"Jaguar\", \"Knights\", \"Land\", \"Phenomenon\", \"Plane\", \"Planeswalker\", \"Scariest\", \"Scheme\", \"See\", \"Sorcery\", \"Sticker\", \"Summon\", \"Token\", \"Tribal\", \"Vanguard\", \"Wolf\", \"You’ll\", \"instant\".\n `types` text, -- A list of all card types of the card, including Un‑sets and gameplay variants.\n `uuid` text, -- The universal unique identifier (v5) generated by MTGJSON. Each entry is unique. NOT USEFUL.\n `variations` text, -- No description.\n `watermark` text, -- The name of the watermark on the card.\n primary key (id)\n);\n\nCREATE TABLE rulings (\n `id` integer, -- unique id identifying this ruling.\n `date` date, -- date.\n `text` text, -- description about this ruling.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nCREATE TABLE set_translations (\n `id` integer, -- unique id identifying this set.\n `language` text, -- language of this card set.\n `setCode` text, -- set code. the set code for this set.\n `translation` text, -- translation of this card set.\n primary key (id)\n);\n\nCREATE TABLE sets (\n `id` integer, -- unique id identifying this set.\n `baseSetSize` integer, -- base Set Size. The number of cards in the set.\n `block` text, -- The block name the set was in.\n `booster` text, -- A breakdown of possibilities and weights of cards in a booster pack.\n `code` text, -- The set code for the set.\n `isFoilOnly` integer, -- is Foil Only. If the set is only available in foil.\n `isForeignOnly` integer, -- is Foreign Only. If the set is available only outside the United States of America.\n `isNonFoilOnly` integer, -- is Non Foil Only. If the set is only available in non-foil.\n `isOnlineOnly` integer, -- is Online Only. If the set is only available in online game variations.\n `isPartialPreview` integer, -- is Partial Preview. If the set is still in preview (spoiled). Preview sets do not have complete data.\n `keyruneCode` text, -- keyrune Code. The matching Keyrune code for set image icons.\n `mcmId` integer, -- magic card market id. The Magic Card Marketset identifier.\n `mcmIdExtras` integer, -- magic card market ID Extras. The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set's identifier.\n `mcmName` text, -- magic card market name.\n `mtgoCode` text, -- magic the gathering online code. The set code for the set as it appears on Magic: The Gathering Online. if the value is null or empty, then it doesn't appear on Magic: The Gathering Online.\n `name` text, -- The name of the set.\n `parentCode` text, -- parent Code. The parent set code for set variations like promotions, guild kits, etc.\n `releaseDate` date, -- release Date. The release date in ISO 8601 format for the set.\n `tcgplayerGroupId` integer, -- tcg player Group Id. The group identifier of the set on TCGplayer.\n `totalSetSize` integer, -- total Set Size. The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.\n `type` text, -- The expansion type of the set. \"alchemy\", \"archenemy\", \"arsenal\", \"box\", \"commander\", \"core\", \"draft_innovation\", \"duel_deck\", \"expansion\", \"from_the_vault\", \"funny\", \"masterpiece\", \"masters\", \"memorabilia\", \"planechase\", \"premium_deck\", \"promo\", \"spellbook\", \"starter\", \"token\", \"treasure_chest\", \"vanguard\".\n primary key (id)\n);\n\nCREATE TABLE foreign_data (\n `id` integer, -- unique id number identifying this row of data.\n `flavorText` text, -- flavor Text. The foreign flavor text of the card.\n `language` text, -- The foreign language of card.\n `multiverseid` integer, -- The foreign multiverse identifier of the card.\n `name` text, -- The foreign name of the card.\n `text` text, -- The foreign text ruling of the card.\n `type` text, -- The foreign type of the card. Includes any supertypes and subtypes.\n `uuid` text, -- No description.\n primary key (id)\n);\n\nExternal Knowledge:\nframe styles refers to frameVersion; cards Allen Williams worked on refers to artist = 'Allen Williams'; banned cards refers to status = 'Banned'\n\nQuestion:\nList all the frame styles and cards Allen Williams worked on and add a YES/NO if the card is banned.", + "question": "List all the frame styles and cards Allen Williams worked on and add a YES/NO if the card is banned.", + "evidence": "frame styles refers to frameVersion; cards Allen Williams worked on refers to artist = 'Allen Williams'; banned cards refers to status = 'Banned'", + "db_id": "card_games", + "database_path": "databases/card_games.sqlite", + "gold_sql": "SELECT DISTINCT T1.frameVersion, T1.name, IIF(T2.status = 'Banned', 'YES', 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams'", + "source_gold_sql": "SELECT DISTINCT T1.frameVersion, T1.name, IIF(T2.status = 'Banned', 'YES', 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams'", + "source_gold_sql_sha256": "821e4d4823183dc60cb4e4425c1605ced70f0e2eddbd4186e9bb04c0b1c348a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:195", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nmost common bond type refers MAX(COUNT(bond_type))\n\nQuestion:\nWhat is the most common bond type?", + "question": "What is the most common bond type?", + "evidence": "most common bond type refers MAX(COUNT(bond_type))", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T.bond_type FROM ( SELECT bond_type, COUNT(bond_id) FROM bond GROUP BY bond_type ORDER BY COUNT(bond_id) DESC LIMIT 1 ) AS T", + "source_gold_sql": "SELECT T.bond_type FROM ( SELECT bond_type, COUNT(bond_id) FROM bond GROUP BY bond_type ORDER BY COUNT(bond_id) DESC LIMIT 1 ) AS T", + "source_gold_sql_sha256": "35b4f1fb4bb1ced0d526b39550a61624966dc96b232d0a84d55ffacea9d23b6d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:197", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nsingle-bonded molecules refers to bond_type = '-' ; average number of oxygen atom = AVG(SUM(element = 'o'))\n\nQuestion:\nCalculate the average number of oxygen atoms in single-bonded molecules.", + "question": "Calculate the average number of oxygen atoms in single-bonded molecules.", + "evidence": "single-bonded molecules refers to bond_type = '-' ; average number of oxygen atom = AVG(SUM(element = 'o'))", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "WITH oxygen_atoms_per_molecule AS (SELECT atom.molecule_id, SUM(atom.element = 'o') AS oxygen_count FROM atom GROUP BY atom.molecule_id), single_bond_molecules AS (SELECT DISTINCT bond.molecule_id FROM bond WHERE bond.bond_type = '-') SELECT AVG(oxygen_atoms_per_molecule.oxygen_count) AS average_oxygen_atoms FROM single_bond_molecules JOIN oxygen_atoms_per_molecule ON single_bond_molecules.molecule_id = oxygen_atoms_per_molecule.molecule_id", + "source_gold_sql": "WITH oxygen_atoms_per_molecule AS (SELECT atom.molecule_id, SUM(atom.element = 'o') AS oxygen_count FROM atom GROUP BY atom.molecule_id), single_bond_molecules AS (SELECT DISTINCT bond.molecule_id FROM bond WHERE bond.bond_type = '-') SELECT AVG(oxygen_atoms_per_molecule.oxygen_count) AS average_oxygen_atoms FROM single_bond_molecules JOIN oxygen_atoms_per_molecule ON single_bond_molecules.molecule_id = oxygen_atoms_per_molecule.molecule_id", + "source_gold_sql_sha256": "762fdfed70338939e84f77d6481b5f7bee7264fad2701b8beb8d2c8b9a867042", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:198", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ncarcinogenic molecules refers to label = '+'; single-bonded refers to bond_type = '-'; average = DIVIDE(SUM(bond_type = '-'), COUNT(molecule_id))\n\nQuestion:\nOn average how many single bonds does a carcinogenic molecule contain?", + "question": "On average how many single bonds does a carcinogenic molecule contain?", + "evidence": "carcinogenic molecules refers to label = '+'; single-bonded refers to bond_type = '-'; average = DIVIDE(SUM(bond_type = '-'), COUNT(molecule_id))", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(T1.bond_type = '-', 1, 0)) AS REAL) / COUNT(DISTINCT T1.molecule_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql": "SELECT CAST(SUM(IIF(T1.bond_type = '-', 1, 0)) AS REAL) / COUNT(DISTINCT T1.molecule_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql_sha256": "54bbabe06e6629f7818652b2ac6bab7fccb827864666cb73ad315798e8c52215", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:200", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ntriple-bonded molecules refers to bond_type = '#'; carcinogenic refers to label = '+'\n\nQuestion:\nFind the triple-bonded molecules which are carcinogenic.", + "question": "Find the triple-bonded molecules which are carcinogenic.", + "evidence": "triple-bonded molecules refers to bond_type = '#'; carcinogenic refers to label = '+'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#' AND T2.label = '+'", + "source_gold_sql": "SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#' AND T2.label = '+'", + "source_gold_sql_sha256": "0ac329b9702f9edba6a82c50bb815a3c89a6bf23f2180338bf656934ebb000fb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:201", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ncarbon refers to element = 'c'; double bond refers to bond_type = '='; percentage = DIVIDE(SUM(element = 'c'), COUNT(atom_id)) * 100\n\nQuestion:\nWhat is the percentage of carbon in double-bond molecules?", + "question": "What is the percentage of carbon in double-bond molecules?", + "evidence": "carbon refers to element = 'c'; double bond refers to bond_type = '='; percentage = DIVIDE(SUM(element = 'c'), COUNT(atom_id)) * 100", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element = 'c' THEN T1.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.atom_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '='", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element = 'c' THEN T1.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.atom_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '='", + "source_gold_sql_sha256": "6c1e4e4edae38f1c0671df553f3d877f1039040725dec9a4b6c570a0d6b88808", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:206", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR004_8_9 bond atoms refers to bond_id = 'TR004_8_9';\n\nQuestion:\nWhat elements are in the TR004_8_9 bond atoms?", + "question": "What elements are in the TR004_8_9 bond atoms?", + "evidence": "TR004_8_9 bond atoms refers to bond_id = 'TR004_8_9';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR004_8_9'", + "source_gold_sql": "SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR004_8_9'", + "source_gold_sql_sha256": "2f07e7116d5e71773a461549495afa04d92c7c780f74c92d278c70923e4834d3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:207", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ndouble type bond refers to bond_type = '=';\n\nQuestion:\nWhat elements are in a double type bond?", + "question": "What elements are in a double type bond?", + "evidence": "double type bond refers to bond_type = '=';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '='", + "source_gold_sql": "SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '='", + "source_gold_sql_sha256": "c17fba811d393dc2164aba21118ddb57f7dd7fed5776a360a3d572f6eca21405", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:208", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nwith hydrogen refers to element = 'h'; label most numerous in atoms refers to MAX(COUNT(label));\n\nQuestion:\nWhich type of label is the most numerous in atoms with hydrogen?", + "question": "Which type of label is the most numerous in atoms with hydrogen?", + "evidence": "with hydrogen refers to element = 'h'; label most numerous in atoms refers to MAX(COUNT(label));", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T.label FROM ( SELECT T2.label, COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'h' GROUP BY T2.label ORDER BY COUNT(T2.molecule_id) DESC LIMIT 1 ) t", + "source_gold_sql": "SELECT T.label FROM ( SELECT T2.label, COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'h' GROUP BY T2.label ORDER BY COUNT(T2.molecule_id) DESC LIMIT 1 ) t", + "source_gold_sql_sha256": "1b48e374b91615ae0ded12c596756ec30b286e2b1f0a6f1204e0d33a77fe0230", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:212", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '-' means molecules are non-carcinogenic; least numerous refers to MIN(COUNT(element));\n\nQuestion:\nWhich element is the least numerous in non-carcinogenic molecules?", + "question": "Which element is the least numerous in non-carcinogenic molecules?", + "evidence": "label = '-' means molecules are non-carcinogenic; least numerous refers to MIN(COUNT(element));", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT `a`.`element`\nFROM `atom` AS `a`\nJOIN `molecule` AS `m` ON `a`.`molecule_id` = `m`.`molecule_id`\nWHERE `m`.`label` = '-'\nGROUP BY `a`.`element`\nHAVING COUNT(*) = (\n SELECT MIN(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM `atom` AS `a2`\n JOIN `molecule` AS `m2` ON `a2`.`molecule_id` = `m2`.`molecule_id`\n WHERE `m2`.`label` = '-'\n GROUP BY `a2`.`element`\n )\n);", + "source_gold_sql": "SELECT `a`.`element`\nFROM `atom` AS `a`\nJOIN `molecule` AS `m` ON `a`.`molecule_id` = `m`.`molecule_id`\nWHERE `m`.`label` = '-'\nGROUP BY `a`.`element`\nHAVING COUNT(*) = (\n SELECT MIN(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM `atom` AS `a2`\n JOIN `molecule` AS `m2` ON `a2`.`molecule_id` = `m2`.`molecule_id`\n WHERE `m2`.`label` = '-'\n GROUP BY `a2`.`element`\n )\n);", + "source_gold_sql_sha256": "1cc1a30a3b64d7f4a557ad33b1baf09da7bcbe77e65eb4cd4e9594b18b24aaba", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:213", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ntype of bond refers to bond_type; between the atoms TR004_8 and TR004_20 refers to atom_id = 'TR004_8' AND atom_id2 = 'TR004_20' OR another way around\n\nQuestion:\nWhat type of bond is there between the atoms TR004_8 and TR004_20?", + "question": "What type of bond is there between the atoms TR004_8 and TR004_20?", + "evidence": "type of bond refers to bond_type; between the atoms TR004_8 and TR004_20 refers to atom_id = 'TR004_8' AND atom_id2 = 'TR004_20' OR another way around", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT distinct T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR004_8' AND T2.atom_id2 = 'TR004_20' OR T2.atom_id2 = 'TR004_8' AND T2.atom_id = 'TR004_20'", + "source_gold_sql": "SELECT distinct T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR004_8' AND T2.atom_id2 = 'TR004_20' OR T2.atom_id2 = 'TR004_8' AND T2.atom_id = 'TR004_20'", + "source_gold_sql_sha256": "2a9695d20164dcb9915244f422ff239c3b055576abfe0c98d6fa790ed694a42c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:215", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nwith iodine element refer to element = 'i'; with sulfur element refers to element = 's'; single type bond refers to bond_type = '-'; Should consider the distinct atoms when counting;\n\nQuestion:\nHow many atoms with iodine and with sulfur type elements, respectively, are there in single bond molecules?", + "question": "How many atoms with iodine and with sulfur type elements, respectively, are there in single bond molecules?", + "evidence": "with iodine element refer to element = 'i'; with sulfur element refers to element = 's'; single type bond refers to bond_type = '-'; Should consider the distinct atoms when counting;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT CASE WHEN atom.element = 'i' THEN atom.atom_id ELSE NULL END) AS iodine_nums, COUNT(DISTINCT CASE WHEN atom.element = 's' THEN atom.atom_id ELSE NULL END) AS sulfur_nums FROM atom WHERE atom.molecule_id IN (SELECT DISTINCT bond.molecule_id FROM bond WHERE bond.bond_type = '-')", + "source_gold_sql": "SELECT COUNT(DISTINCT CASE WHEN atom.element = 'i' THEN atom.atom_id ELSE NULL END) AS iodine_nums, COUNT(DISTINCT CASE WHEN atom.element = 's' THEN atom.atom_id ELSE NULL END) AS sulfur_nums FROM atom WHERE atom.molecule_id IN (SELECT DISTINCT bond.molecule_id FROM bond WHERE bond.bond_type = '-')", + "source_gold_sql_sha256": "fc41756fef45e77339677722b7d9581cb5f06b029519256838e1a98f80523285", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:218", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '+' mean molecules are carcinogenic; contain fluorine refers to element = 'f'; percentage = DIVIDE(SUM(element = 'f') * 100, COUNT(molecule_id)) where label = '+'; Should consider the distinct atoms when counting;\n\nQuestion:\nWhat percentage of carcinogenic-type molecules does not contain fluorine?", + "question": "What percentage of carcinogenic-type molecules does not contain fluorine?", + "evidence": "label = '+' mean molecules are carcinogenic; contain fluorine refers to element = 'f'; percentage = DIVIDE(SUM(element = 'f') * 100, COUNT(molecule_id)) where label = '+'; Should consider the distinct atoms when counting;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT 100 - CAST(COUNT(DISTINCT CASE WHEN T1.element = 'f' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql": "SELECT 100 - CAST(COUNT(DISTINCT CASE WHEN T1.element = 'f' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql_sha256": "ee5a67da04094cc049c52ad7f98943a4d4a09e52833a9e66e9b07765b089d975", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:219", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(bond_type = '#') * 100, COUNT(bond_id)) as percent where label = '+'\n\nQuestion:\nWhat is the percentage of molecules in triple type bonds are carcinogenic?", + "question": "What is the percentage of molecules in triple type bonds are carcinogenic?", + "evidence": "label = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(bond_type = '#') * 100, COUNT(bond_id)) as percent where label = '+'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.label = '+' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#'", + "source_gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T2.label = '+' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#'", + "source_gold_sql_sha256": "254c717912ff254b14a8a979309f8c5b99c9bd14280d45774cfc4c7da2e40787", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:220", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR000 is the molecule id;\n\nQuestion:\nPlease list top three elements of the toxicology of the molecule TR000 in alphabetical order.", + "question": "Please list top three elements of the toxicology of the molecule TR000 in alphabetical order.", + "evidence": "TR000 is the molecule id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR000' ORDER BY T.element LIMIT 3", + "source_gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR000' ORDER BY T.element LIMIT 3", + "source_gold_sql_sha256": "c5127227114373505cdeffd7d94ef7da2bc462621684d2697ac1c501763730a7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:226", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ndouble bond refers to bond_type = '='; TR008 is the molecule id; percentage = DIVIDE(SUM(bond_type = '='), COUNT(bond_id)) as percent where molecule_id = 'TR008'\n\nQuestion:\nWhat is the percentage of double bonds in the molecule TR008? Please provide your answer as a percentage with five decimal places.", + "question": "What is the percentage of double bonds in the molecule TR008? Please provide your answer as a percentage with five decimal places.", + "evidence": "double bond refers to bond_type = '='; TR008 is the molecule id; percentage = DIVIDE(SUM(bond_type = '='), COUNT(bond_id)) as percent where molecule_id = 'TR008'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.bond_type = '=' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id),5) FROM bond AS T WHERE T.molecule_id = 'TR008'", + "source_gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.bond_type = '=' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id),5) FROM bond AS T WHERE T.molecule_id = 'TR008'", + "source_gold_sql_sha256": "d04af9c3a328f796140aac00b7ad99c99242ae469cc6c324d6b4476359ffda2e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:227", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) as percent\n\nQuestion:\nWhat is the percentage of molecules that are carcinogenic? Please provide your answer as a percentage with three decimal places.", + "question": "What is the percentage of molecules that are carcinogenic? Please provide your answer as a percentage with three decimal places.", + "evidence": "label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) as percent", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T.molecule_id),3) FROM molecule t", + "source_gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T.molecule_id),3) FROM molecule t", + "source_gold_sql_sha256": "fd6b9b866928f51ed8a661bace26795f97898900f70ea9f9ea06b5aef84cc8c1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:228", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nhydrogen refers to element = 'h'; TR206 is the molecule id; percentage = DIVIDE(SUM(element = 'h'), COUNT(atom_id)) as percent where molecule_id = 'TR206'\n\nQuestion:\nHow much of the hydrogen in molecule TR206 is accounted for? Please provide your answer as a percentage with four decimal places.", + "question": "How much of the hydrogen in molecule TR206 is accounted for? Please provide your answer as a percentage with four decimal places.", + "evidence": "hydrogen refers to element = 'h'; TR206 is the molecule id; percentage = DIVIDE(SUM(element = 'h'), COUNT(atom_id)) as percent where molecule_id = 'TR206'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.element = 'h' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id),4) FROM atom AS T WHERE T.molecule_id = 'TR206'", + "source_gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T.element = 'h' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id),4) FROM atom AS T WHERE T.molecule_id = 'TR206'", + "source_gold_sql_sha256": "fe3630bd27e07dc819fca088902d054d0ffec727105a6a952de32af9d72c02e6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:230", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR060 is the molecule id;\n\nQuestion:\nWhat are the elements of the toxicology and label of molecule TR060?", + "question": "What are the elements of the toxicology and label of molecule TR060?", + "evidence": "TR060 is the molecule id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T1.element, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR060'", + "source_gold_sql": "SELECT DISTINCT T1.element, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR060'", + "source_gold_sql_sha256": "e7925a8f3456892aad9974a641352fce8a892623cb396bb955dd4c348cb8decc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:231", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR010 is the molecule id; majority of the bond found refers to MAX(COUNT(bond_type));\n\nQuestion:\nWhich bond type accounted for the majority of the bonds found in molecule TR010?", + "question": "Which bond type accounted for the majority of the bonds found in molecule TR010?", + "evidence": "TR010 is the molecule id; majority of the bond found refers to MAX(COUNT(bond_type));", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1 WHERE T1.molecule_id = 'TR010' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T", + "source_gold_sql": "SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1 WHERE T1.molecule_id = 'TR010' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T", + "source_gold_sql_sha256": "6a3c6f7341c0977af753545a874cd09a0cab8e708a86aa0b8c3d5133d87d12ba", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:232", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '-' means molecules are not carcinogenic; single type bond refers to bond_type = '-'; list top three molecules refers to return molecule_id and order by molecule_id;\n\nQuestion:\nPlease list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order.", + "question": "Please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order.", + "evidence": "label = '-' means molecules are not carcinogenic; single type bond refers to bond_type = '-'; list top three molecules refers to return molecule_id and order by molecule_id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-' AND T2.label = '-' ORDER BY T2.molecule_id LIMIT 3", + "source_gold_sql": "SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-' AND T2.label = '-' ORDER BY T2.molecule_id LIMIT 3", + "source_gold_sql_sha256": "7cd743443d43d41b592e19e8332f3b03e39e569887dc5eee1d2b6aab4a76e78b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:234", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR009 is the molecule id; involved atom 12 refers to atom_id = 'TR009_12' or atom_id2 = 'TR009_12'\n\nQuestion:\nHow many bonds which involved atom 12 does molecule TR009 have?", + "question": "How many bonds which involved atom 12 does molecule TR009 have?", + "evidence": "TR009 is the molecule id; involved atom 12 refers to atom_id = 'TR009_12' or atom_id2 = 'TR009_12'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT bond_id) FROM connected WHERE atom_id = 'TR009_12' OR atom_id2 = 'TR009_12'", + "source_gold_sql": "SELECT COUNT(DISTINCT bond_id) FROM connected WHERE atom_id = 'TR009_12' OR atom_id2 = 'TR009_12'", + "source_gold_sql_sha256": "e15b1af642133f0e4b5c4c7c930cbd417104c6ef1c38fab8e74bf28b1489d076", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:236", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\natoms refer to atom_id or atom_id2\n\nQuestion:\nWhat are the bond type and the atoms of the bond ID of TR001_6_9?", + "question": "What are the bond type and the atoms of the bond ID of TR001_6_9?", + "evidence": "atoms refer to atom_id or atom_id2", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T1.bond_type, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.bond_id = 'TR001_6_9'", + "source_gold_sql": "SELECT T1.bond_type, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.bond_id = 'TR001_6_9'", + "source_gold_sql_sha256": "2b1364731e79a3da55ad626ed8faa388e95819af5383d9ca97cff9f329b0993e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:239", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nconnections refers to bond_id; atom 19 refers to atom_id like 'TR%_19';\n\nQuestion:\nHow many connections does the atom 19 have?", + "question": "How many connections does the atom 19 have?", + "evidence": "connections refers to bond_id; atom 19 refers to atom_id like 'TR%_19';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT COUNT(T.bond_id) FROM connected AS T WHERE SUBSTR(T.atom_id, -2) = '19'", + "source_gold_sql": "SELECT COUNT(T.bond_id) FROM connected AS T WHERE SUBSTR(T.atom_id, -2) = '19'", + "source_gold_sql_sha256": "a041faf175577eabcf00ef6e846ce7c503888aa04a21506f910d27e8625c4e35", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:240", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR004 is the molecule id;\n\nQuestion:\nList all the elements of the toxicology of the molecule \"TR004\".", + "question": "List all the elements of the toxicology of the molecule \"TR004\".", + "evidence": "TR004 is the molecule id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR004'", + "source_gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR004'", + "source_gold_sql_sha256": "954f69803a9c764ed8dd32eec9439c94eb1b90558500848082e3138d08a252f7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:242", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\natoms from 21 to 25 refers to SUBSTR(atom_id, 7, 2) between '21' and '25'; label = '+' mean molecules are carcinogenic\n\nQuestion:\nAmong all the atoms from 21 to 25, list all the molecules that are carcinogenic.", + "question": "Among all the atoms from 21 to 25, list all the molecules that are carcinogenic.", + "evidence": "atoms from 21 to 25 refers to SUBSTR(atom_id, 7, 2) between '21' and '25'; label = '+' mean molecules are carcinogenic", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE SUBSTR(T1.atom_id, -2) BETWEEN '21' AND '25' AND T2.label = '+'", + "source_gold_sql": "SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE SUBSTR(T1.atom_id, -2) BETWEEN '21' AND '25' AND T2.label = '+'", + "source_gold_sql_sha256": "1bcb6783e9b7412c7df8307f81a9bc179e529a5eb384e5ddd3b438099c99af07", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:243", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nhave phosphorus as atom elements refers to element = 'p'; have nitrogen as atom elements refers to element = 'n'\n\nQuestion:\nWhat are the bonds that have phosphorus and nitrogen as their atom elements?", + "question": "What are the bonds that have phosphorus and nitrogen as their atom elements?", + "evidence": "have phosphorus as atom elements refers to element = 'p'; have nitrogen as atom elements refers to element = 'n'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T2.bond_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id IN ( SELECT T3.bond_id FROM connected AS T3 INNER JOIN atom AS T4 ON T3.atom_id = T4.atom_id WHERE T4.element = 'p' ) AND T1.element = 'n'", + "source_gold_sql": "SELECT T2.bond_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id IN ( SELECT T3.bond_id FROM connected AS T3 INNER JOIN atom AS T4 ON T3.atom_id = T4.atom_id WHERE T4.element = 'p' ) AND T1.element = 'n'", + "source_gold_sql_sha256": "3aeaf43faff14aebe46c41f2370ff16e2fba7d3ac16f543e04acc42c671020b6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:244", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ndouble bond refers to bond_type = ' = '; label = '+' mean molecules are carcinogenic\n\nQuestion:\nIs the molecule with the most double bonds carcinogenic? Show its label.", + "question": "Is the molecule with the most double bonds carcinogenic? Show its label.", + "evidence": "double bond refers to bond_type = ' = '; label = '+' mean molecules are carcinogenic", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "with sub as ( SELECT T.molecule_id, COUNT(T.bond_type) as cnt\n FROM bond AS T WHERE T.bond_type = '=' GROUP BY T.molecule_id \n) \nSELECT T1.label FROM molecule AS T1 INNER JOIN sub\n AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.cnt = (select max(cnt) from sub)", + "source_gold_sql": "with sub as ( SELECT T.molecule_id, COUNT(T.bond_type) as cnt\n FROM bond AS T WHERE T.bond_type = '=' GROUP BY T.molecule_id \n) \nSELECT T1.label FROM molecule AS T1 INNER JOIN sub\n AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.cnt = (select max(cnt) from sub)", + "source_gold_sql_sha256": "499ba69b23895c726b3de729375a79f0a6d56c4ecad0c65d99c9f92405626b2e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:245", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\natoms with the element iodine refers to element = 'i'; average = DIVIDE(COUND(bond_id), COUNT(atom_id)) where element = 'i'\n\nQuestion:\nWhat is the average number of bonds the atoms with the element iodine have?", + "question": "What is the average number of bonds the atoms with the element iodine have?", + "evidence": "atoms with the element iodine refers to element = 'i'; average = DIVIDE(COUND(bond_id), COUNT(atom_id)) where element = 'i'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(COUNT(T2.bond_id) AS REAL) / COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 'i'", + "source_gold_sql": "SELECT CAST(COUNT(T2.bond_id) AS REAL) / COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 'i'", + "source_gold_sql_sha256": "35c3e063215f1ef353e6358767ebdf5fd3a1ff8b620161279e5ce05ae7eb7105", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:247", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\natoms cannot bond with other atoms means atom_id NOT in connected table;\n\nQuestion:\nList all the elements of atoms that can not bond with any other atoms.", + "question": "List all the elements of atoms that can not bond with any other atoms.", + "evidence": "atoms cannot bond with other atoms means atom_id NOT in connected table;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.atom_id NOT IN (SELECT DISTINCT atom_id FROM connected)", + "source_gold_sql": "SELECT DISTINCT T.element FROM atom AS T WHERE T.atom_id NOT IN (SELECT DISTINCT atom_id FROM connected)", + "source_gold_sql_sha256": "1a0c8778fe80117c02d9bb667db8d359c825d42c32aa98f8aa23e22058256e9c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:248", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR041 is the molecule id; triple bond refers to bond_type = '#';\n\nQuestion:\nList all the atom IDs of the triple bonds in molecule \"TR041\"?", + "question": "List all the atom IDs of the triple bonds in molecule \"TR041\"?", + "evidence": "TR041 is the molecule id; triple bond refers to bond_type = '#';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T2.atom_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '#' AND T3.molecule_id = 'TR041'", + "source_gold_sql": "SELECT DISTINCT T2.atom_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '#' AND T3.molecule_id = 'TR041'", + "source_gold_sql_sha256": "e13c4d7a9defe567bbd2b990385548fb8e12143f838d1df13a0f869380e27df5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:249", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR144_8_19 is the bond id;\n\nQuestion:\nWhat are the elements of the atoms of TR144_8_19?", + "question": "What are the elements of the atoms of TR144_8_19?", + "evidence": "TR144_8_19 is the bond id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR144_8_19'", + "source_gold_sql": "SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR144_8_19'", + "source_gold_sql_sha256": "da66a9f68780c57fa24019074dfdacacc3e7ad4f5f84d95974d6b4a82141163a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:253", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ntriple bond refers to bond_type = '#';\n\nQuestion:\nList the elements of all the triple bonds.", + "question": "List the elements of all the triple bonds.", + "evidence": "triple bond refers to bond_type = '#';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT DISTINCT T3.element FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T1.bond_type = '#'", + "source_gold_sql": "SELECT DISTINCT T3.element FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T1.bond_type = '#'", + "source_gold_sql_sha256": "7397da7e920228e52a23491cc000b7f4882ecfc20753c6127f8bc1813c037191", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:255", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nsingle bond refers to bond_type = '-'; label = '+' mean molecules are carcinogenic; proportion = DIVIDE(SUM(label = '+') * 100, COUNT(bond_id)) where bond_type = '-'\n\nQuestion:\nWhat proportion of single bonds are carcinogenic? Please provide your answer as a percentage with five decimal places.", + "question": "What proportion of single bonds are carcinogenic? Please provide your answer as a percentage with five decimal places.", + "evidence": "single bond refers to bond_type = '-'; label = '+' mean molecules are carcinogenic; proportion = DIVIDE(SUM(label = '+') * 100, COUNT(bond_id)) where bond_type = '-'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T2.label = '+' THEN T1.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bond_id),5) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-'", + "source_gold_sql": "SELECT ROUND(CAST(COUNT(CASE WHEN T2.label = '+' THEN T1.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bond_id),5) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-'", + "source_gold_sql_sha256": "21a572c3af7314a2605376b8d7fb9d34886b48412a8e6c209d448420885833f1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:260", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ntriple bond refers to bond_type = '#'; phosphorus refers to element = 'p'; bromine refers to element = 'br'\n\nQuestion:\nCalculate the total atoms with triple-bond molecules containing the element phosphorus or bromine.", + "question": "Calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine.", + "evidence": "triple bond refers to bond_type = '#'; phosphorus refers to element = 'p'; bromine refers to element = 'br'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT COUNT(*) FROM atom WHERE molecule_id IN ( SELECT DISTINCT molecule_id FROM bond WHERE bond_type = '#' ) AND molecule_id IN ( SELECT DISTINCT molecule_id FROM atom WHERE element IN ('p', 'br') )", + "source_gold_sql": "SELECT COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#' AND T1.element IN ('p', 'br')", + "source_gold_sql_sha256": "de5a8a4277d334395842dadea00c1b71299cddb21eb6d012cffef46326895453", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:263", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nelement chlorine refers to element = 'cl'; single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(element = 'cl'), COUNT(atom_id)) as percent where bond_type = '-'\n\nQuestion:\nWhat is the composition of element chlorine in percentage among the single bond molecules?", + "question": "What is the composition of element chlorine in percentage among the single bond molecules?", + "evidence": "element chlorine refers to element = 'cl'; single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(element = 'cl'), COUNT(atom_id)) as percent where bond_type = '-'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T.element = 'cl' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id) FROM atom AS T WHERE molecule_id IN (SELECT DISTINCT molecule.molecule_id FROM molecule JOIN bond ON molecule.molecule_id = bond.molecule_id AND bond.bond_type = '-')", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T.element = 'cl' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id) FROM atom AS T WHERE molecule_id IN (SELECT DISTINCT molecule.molecule_id FROM molecule JOIN bond ON molecule.molecule_id = bond.molecule_id AND bond.bond_type = '-')", + "source_gold_sql_sha256": "90dec0aecf5df8770224b384938a080c76a7134e8ff55dddf913c9fa5fb4f8e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:268", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nTR001_10_11 is the bond id;\n\nQuestion:\nWhat are the elements for bond id TR001_10_11?", + "question": "What are the elements for bond id TR001_10_11?", + "evidence": "TR001_10_11 is the bond id;", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR001_10_11'", + "source_gold_sql": "SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR001_10_11'", + "source_gold_sql_sha256": "e5eacd1180c8b160f31839b389de4f155afb908d5288afe27e398a4ee31caa82", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:273", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nchlorine refers to element = 'cl'; label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(element = 'cl'); COUNT(molecule_id)) as percentage where label = '+'\n\nQuestion:\nWhat is the percentage of element chlorine in carcinogenic molecules?", + "question": "What is the percentage of element chlorine in carcinogenic molecules?", + "evidence": "chlorine refers to element = 'cl'; label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(element = 'cl'); COUNT(molecule_id)) as percentage where label = '+'", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT CAST(COUNT( CASE WHEN T1.element = 'cl' THEN T1.element ELSE NULL END) AS REAL) * 100 / COUNT(T1.element) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql": "SELECT CAST(COUNT( CASE WHEN T1.element = 'cl' THEN T1.element ELSE NULL END) AS REAL) * 100 / COUNT(T1.element) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'", + "source_gold_sql_sha256": "0db9bafee8b453983ea5dd1ebcfd830fa6bd22564881afb9828274bb1f49d7bc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:281", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '+' means molecules are carcinogenic; 4th atom of each molecule refers to substr(atom_id, -2) = '_4';\n\nQuestion:\nTally the toxicology element of the 4th atom of each molecule that was carcinogenic.", + "question": "Tally the toxicology element of the 4th atom of each molecule that was carcinogenic.", + "evidence": "label = '+' means molecules are carcinogenic; 4th atom of each molecule refers to substr(atom_id, -2) = '_4';", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT element, COUNT(*) FROM atom JOIN molecule ON atom.molecule_id = molecule.molecule_id WHERE molecule.label = '+' AND substr(atom_id, -2) = '_4' GROUP BY element;", + "source_gold_sql": "SELECT element, COUNT(*) FROM atom JOIN molecule ON atom.molecule_id = molecule.molecule_id WHERE molecule.label = '+' AND substr(atom_id, -2) = '_4' GROUP BY element;", + "source_gold_sql_sha256": "284236a1571819a7ba2643bcbbc36460354e1c80dca59e0ea4b52b071da7ef10", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:282", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nhydrogen refers to element = 'h'; ratio = DIVIDE(SUM(element = 'h'), count(element)) where molecule_id = 'TR006' ; label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic\n\nQuestion:\nWhat is the ratio of Hydrogen elements in molecule ID TR006? List the ratio with its label.", + "question": "What is the ratio of Hydrogen elements in molecule ID TR006? List the ratio with its label.", + "evidence": "hydrogen refers to element = 'h'; ratio = DIVIDE(SUM(element = 'h'), count(element)) where molecule_id = 'TR006' ; label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "WITH SubQuery AS (SELECT DISTINCT T1.atom_id, T1.element, T1.molecule_id, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR006') SELECT CAST(COUNT(CASE WHEN element = 'h' THEN atom_id ELSE NULL END) AS REAL) / (CASE WHEN COUNT(atom_id) = 0 THEN NULL ELSE COUNT(atom_id) END) AS ratio, label FROM SubQuery GROUP BY label", + "source_gold_sql": "WITH SubQuery AS (SELECT DISTINCT T1.atom_id, T1.element, T1.molecule_id, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR006') SELECT CAST(COUNT(CASE WHEN element = 'h' THEN atom_id ELSE NULL END) AS REAL) / (CASE WHEN COUNT(atom_id) = 0 THEN NULL ELSE COUNT(atom_id) END) AS ratio, label FROM SubQuery GROUP BY label", + "source_gold_sql_sha256": "f618f5db44cd036b2ba16b7c5f4267b7323137c346d05d01c54ea77ad98e6934", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:327", + "domain": "toxicology", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE bond (\n `bond_id` text, -- unique id representing bonds. TRxxx_A1_A2:. TRXXX refers to which molecule. A1 and A2 refers to which atom.\n `molecule_id` text, -- identifying the molecule in which the bond appears.\n `bond_type` text, -- type of the bond. “-”: single bond. '=': double bond. '#': triple bond.\n PRIMARY KEY (bond_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE molecule (\n `molecule_id` text, -- molecule id. unique id of molecule. \"+\" --> this molecule / compound is carcinogenic. '-' this molecule is not / compound carcinogenic.\n `label` text, -- whether this molecule is carcinogenic or not.\n PRIMARY KEY (molecule_id)\n);\n\nCREATE TABLE atom (\n `atom_id` text, -- atom id. the unique id of atoms.\n `molecule_id` text, -- molecule id. identifying the molecule to which the atom belongs. TRXXX_i represents ith atom of molecule TRXXX.\n `element` text, -- the element of the toxicology. • cl: chlorine. • c: carbon. • h: hydrogen. • o: oxygen. • s: sulfur. • n: nitrogen. • p: phosphorus. • na: sodium. • br: bromine. • f: fluorine. • i: iodine. • sn: Tin. • pb: lead. • te: tellurium. • ca: Calcium.\n PRIMARY KEY (atom_id),\n FOREIGN KEY (molecule_id) REFERENCES molecule (molecule_id)\n);\n\nCREATE TABLE connected (\n `atom_id` text, -- atom id. id of the first atom.\n `atom_id2` text, -- atom id 2. id of the second atom.\n `bond_id` text, -- bond id. bond id representing bond between two atoms.\n PRIMARY KEY (atom_id,atom_id2),\n FOREIGN KEY (atom_id) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (atom_id2) REFERENCES atom (atom_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (bond_id) REFERENCES bond (bond_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nlabel = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5\n\nQuestion:\nWhich non-carcinogenic molecules consisted more than 5 atoms?", + "question": "Which non-carcinogenic molecules consisted more than 5 atoms?", + "evidence": "label = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5", + "db_id": "toxicology", + "database_path": "databases/toxicology.sqlite", + "gold_sql": "SELECT T.molecule_id FROM ( SELECT T1.molecule_id, COUNT(T2.atom_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '-' GROUP BY T1.molecule_id HAVING COUNT(T2.atom_id) > 5 ) t", + "source_gold_sql": "SELECT T.molecule_id FROM ( SELECT T1.molecule_id, COUNT(T2.atom_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '-' GROUP BY T1.molecule_id HAVING COUNT(T2.atom_id) > 5 ) t", + "source_gold_sql_sha256": "a55a678d612e1d93af1460bd9a211215858830a37c5c4627ccb220c5c6d2b710", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:5", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nExclusively virtual refers to Virtual = 'F'\n\nQuestion:\nHow many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?", + "question": "How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?", + "evidence": "Exclusively virtual refers to Virtual = 'F'", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT `T2`.`CDSCode`)\nFROM `satscores` AS T1\nJOIN `schools` AS T2 ON T1.`cds` = T2.`CDSCode`\nWHERE T2.`Virtual` = 'F'\n AND T1.`AvgScrMath` > 400 AND rtype = 'S'", + "source_gold_sql": "SELECT COUNT(DISTINCT `T2`.`CDSCode`)\nFROM `satscores` AS T1\nJOIN `schools` AS T2 ON T1.`cds` = T2.`CDSCode`\nWHERE T2.`Virtual` = 'F'\n AND T1.`AvgScrMath` > 400 AND rtype = 'S'", + "source_gold_sql_sha256": "3e83dfe8d04a52bcfc34a12029c75488fc464278fa8ea0dc5c729d8f5611ab8f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:11", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nTotal enrollment can be represented by \"Enrollment (K-12)\" + \"Enrollment (Ages 5-17)\"\n\nQuestion:\nPlease list the codes of the schools with a total enrollment of over 500.", + "question": "Please list the codes of the schools with a total enrollment of over 500.", + "evidence": "Total enrollment can be represented by \"Enrollment (K-12)\" + \"Enrollment (Ages 5-17)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.CDSCode\nFROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode \nWHERE T2.\"Enrollment (K-12)\" + T2.\"Enrollment (Ages 5-17)\" > 500\nAND School is not NULL", + "source_gold_sql": "SELECT T2.CDSCode\nFROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode \nWHERE T2.\"Enrollment (K-12)\" + T2.\"Enrollment (Ages 5-17)\" > 500\nAND School is not NULL", + "source_gold_sql_sha256": "4c2e31b59cc28573941ec247daa8da95c1563e6917611abd4d1929a28621c393", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:12", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nExcellence rate = NumGE1500 / NumTstTakr; Eligible free rates for students aged 5-17 = \"Free Meal Count (Ages 5-17)\" / \"Enrollment (Ages 5-17)\"\n\nQuestion:\nAmong the schools with an SAT excellence rate of over 0.3, what is the highest eligible free rate for students aged 5-17?", + "question": "Among the schools with an SAT excellence rate of over 0.3, what is the highest eligible free rate for students aged 5-17?", + "evidence": "Excellence rate = NumGE1500 / NumTstTakr; Eligible free rates for students aged 5-17 = \"Free Meal Count (Ages 5-17)\" / \"Enrollment (Ages 5-17)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT MAX(\n CAST(f.`Free Meal Count (Ages 5-17)` AS REAL) /\n f.`Enrollment (Ages 5-17)`\n ) AS max_eligible_free_rate\nFROM frpm AS f\nJOIN satscores AS s\n ON f.`CDSCode` = s.`cds`\nWHERE s.`rtype` = 'S' \n AND s.`NumTstTakr` > 0 \n AND f.`Enrollment (Ages 5-17)` > 0 \n AND CAST(s.`NumGE1500` AS REAL) / s.`NumTstTakr` > 0.3;", + "source_gold_sql": "SELECT MAX(\n CAST(f.`Free Meal Count (Ages 5-17)` AS REAL) /\n f.`Enrollment (Ages 5-17)`\n ) AS max_eligible_free_rate\nFROM frpm AS f\nJOIN satscores AS s\n ON f.`CDSCode` = s.`cds`\nWHERE s.`rtype` = 'S' \n AND s.`NumTstTakr` > 0 \n AND f.`Enrollment (Ages 5-17)` > 0 \n AND CAST(s.`NumGE1500` AS REAL) / s.`NumTstTakr` > 0.3;", + "source_gold_sql_sha256": "b01d6210f8a93c5fbd0767817e30d923a3b86aa86414a874944e7af66a5fdbf6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:17", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nValid charter number means the number is not null\n\nQuestion:\nRank schools by their average score in Writing where the score is greater than 499, showing their charter numbers, average score, and rank.", + "question": "Rank schools by their average score in Writing where the score is greater than 499, showing their charter numbers, average score, and rank.", + "evidence": "Valid charter number means the number is not null", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT CharterNum, AvgScrWrite, \nRANK() OVER (ORDER BY AvgScrWrite DESC) AS WritingScoreRank \nFROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds \nWHERE T2.AvgScrWrite > 499 AND CharterNum is not null AND rtype = 'S'", + "source_gold_sql": "SELECT CharterNum, AvgScrWrite, \nRANK() OVER (ORDER BY AvgScrWrite DESC) AS WritingScoreRank \nFROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds \nWHERE T2.AvgScrWrite > 499 AND CharterNum is not null AND rtype = 'S'", + "source_gold_sql_sha256": "546918909c733a51d52067a876e29987fe33d1db6ae97828bc23001cea8cb0f6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:23", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nDiffrence in enrollement = \"Enrollment (K-12)\" - \"Enrollment (Ages 5-17)\", school name = \"School\"\n\nQuestion:\nList the names of schools with more than 30 difference in enrollements between K-12 and ages 5-17? Please also give the full street adress of the schools.", + "question": "List the names of schools with more than 30 difference in enrollements between K-12 and ages 5-17? Please also give the full street adress of the schools.", + "evidence": "Diffrence in enrollement = \"Enrollment (K-12)\" - \"Enrollment (Ages 5-17)\", school name = \"School\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T1.School, T1.Street FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.\"Enrollment (K-12)\" - T2.\"Enrollment (Ages 5-17)\" > 30 AND T1.School is not NULL", + "source_gold_sql": "SELECT T1.School, T1.Street FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.\"Enrollment (K-12)\" - T2.\"Enrollment (Ages 5-17)\" > 30 AND T1.School is not NULL", + "source_gold_sql_sha256": "7e7280bbe631de56122797b1a1dbddb24c2d888496b9c19faf4cf3bd2634fd79", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:24", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nPercent eligible for free meals = Free Meal Count (K-12) / Total (Enrollment (K-12)\n\nQuestion:\nGive the names of the schools with the percent eligible for free meals in K-12 is more than 0.1 and test takers whose test score is greater than or equal to 1500?", + "question": "Give the names of the schools with the percent eligible for free meals in K-12 is more than 0.1 and test takers whose test score is greater than or equal to 1500?", + "evidence": "Percent eligible for free meals = Free Meal Count (K-12) / Total (Enrollment (K-12)", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.\"School Name\"\nFROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode \nWHERE CAST(T2.\"Free Meal Count (K-12)\" AS REAL) / T2.\"Enrollment (K-12)\" > 0.1 AND T1.NumGE1500 > 0 AND rtype = 'S'", + "source_gold_sql": "SELECT T2.\"School Name\"\nFROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode \nWHERE CAST(T2.\"Free Meal Count (K-12)\" AS REAL) / T2.\"Enrollment (K-12)\" > 0.1 AND T1.NumGE1500 > 0 AND rtype = 'S'", + "source_gold_sql_sha256": "a2622dea8a5bb2354fb773bcf4549d95e9c9fa145f0e8fada38caa97e300a4f2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:25", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nAverage of average math = sum(average math scores) / count(schools), in Riverside refers to \"District Name\" LIKE 'Riverside%'\n\nQuestion:\nName schools in Riverside which the average of average math score for SAT is greater than 400, along with the funding type of these schools?", + "question": "Name schools in Riverside which the average of average math score for SAT is greater than 400, along with the funding type of these schools?", + "evidence": "Average of average math = sum(average math scores) / count(schools), in Riverside refers to \"District Name\" LIKE 'Riverside%'", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT s.`sname`,\n sc.`FundingType`\nFROM satscores AS s\nJOIN schools AS sc\n ON s.`cds` = sc.`CDSCode`\nWHERE sc.`District` LIKE 'Riverside%' AND s.rtype = 'S'\nGROUP BY s.`sname`, sc.`FundingType`\nHAVING AVG(s.`AvgScrMath`) > 400;", + "source_gold_sql": "SELECT s.`sname`,\n sc.`FundingType`\nFROM satscores AS s\nJOIN schools AS sc\n ON s.`cds` = sc.`CDSCode`\nWHERE sc.`District` LIKE 'Riverside%' AND s.rtype = 'S'\nGROUP BY s.`sname`, sc.`FundingType`\nHAVING AVG(s.`AvgScrMath`) > 400;", + "source_gold_sql_sha256": "3ca8604bff52b7312c9ba8b49779de57149f8ee42f499a9d42cdbd478b4bdca4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:26", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nFull communication address should include Street, City, State and zip code if any.\n\nQuestion:\nState the names and full communication address of high schools in Monterey which has more than 800 free or reduced price meals for ages 15-17?", + "question": "State the names and full communication address of high schools in Monterey which has more than 800 free or reduced price meals for ages 15-17?", + "evidence": "Full communication address should include Street, City, State and zip code if any.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T1.\"School Name\", T2.Street, T2.City, T2.State, T2.Zip\nFROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode \nWHERE T2.County = 'Monterey' AND T1.\"FRPM Count (Ages 5-17)\" > 800 AND T1.\"School Type\" = 'High Schools (Public)' AND T2.School is not NULL", + "source_gold_sql": "SELECT T1.\"School Name\", T2.Street, T2.City, T2.State, T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Monterey' AND T1.\"FRPM Count (Ages 5-17)\" > 800 AND T1.\"School Type\" = 'High Schools (Public)'", + "source_gold_sql_sha256": "5ae1e431ecf310fd99793e86e98ff2cfe6eb2148d14c147b9da9771a4f5ec427", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:27", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nCommunication number refers to phone number.\n\nQuestion:\nGive the names and average scores in writing for the schools that were opened after 1991 or closed before 2000? Also, list the communication number of the schools if there is any.", + "question": "Give the names and average scores in writing for the schools that were opened after 1991 or closed before 2000? Also, list the communication number of the schools if there is any.", + "evidence": "Communication number refers to phone number.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000'", + "source_gold_sql": "SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000'", + "source_gold_sql_sha256": "52b9f010903c717f92a995a4ca86bddf4405161aedc4bf7b3581703e22f90292", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:28", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nDifference between K-12 enrollment and 15-17 enrollment can be computed by \"Enrollment (K-12)\" - \"Enrollment (Ages 5-17)\"\n\nQuestion:\nConsider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average.", + "question": "Consider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average.", + "evidence": "Difference between K-12 enrollment and 15-17 enrollment can be computed by \"Enrollment (K-12)\" - \"Enrollment (Ages 5-17)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.School, T2.DOCType FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.FundingType = 'Locally funded' AND (T1.\"Enrollment (K-12)\" - T1.\"Enrollment (Ages 5-17)\") > (SELECT AVG(T3.\"Enrollment (K-12)\" - T3.\"Enrollment (Ages 5-17)\") FROM frpm AS T3 INNER JOIN schools AS T4 ON T3.CDSCode = T4.CDSCode WHERE T4.FundingType = 'Locally funded')", + "source_gold_sql": "SELECT T2.School, T2.DOCType FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.FundingType = 'Locally funded' AND (T1.\"Enrollment (K-12)\" - T1.\"Enrollment (Ages 5-17)\") > (SELECT AVG(T3.\"Enrollment (K-12)\" - T3.\"Enrollment (Ages 5-17)\") FROM frpm AS T3 INNER JOIN schools AS T4 ON T3.CDSCode = T4.CDSCode WHERE T4.FundingType = 'Locally funded')", + "source_gold_sql_sha256": "e7118d70ac078676ada1737a26d791015bd5a7e0a450bdcc5c5276b8453b98ba", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:31", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nK-12 refers to students in grades 1 through 12; Eligible free rate for K-12 = \"Free Meal Count (K-12)\" / \"Enrollment (K-12)\"\n\nQuestion:\nWhat is the eligible free rate of the 10th and 11th schools with the highest enrolment for students in grades 1 through 12?", + "question": "What is the eligible free rate of the 10th and 11th schools with the highest enrolment for students in grades 1 through 12?", + "evidence": "K-12 refers to students in grades 1 through 12; Eligible free rate for K-12 = \"Free Meal Count (K-12)\" / \"Enrollment (K-12)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT CAST(\"Free Meal Count (K-12)\" AS REAL) / \"Enrollment (K-12)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.school is not null ORDER BY \"Enrollment (K-12)\" DESC LIMIT 9, 2", + "source_gold_sql": "SELECT CAST(\"Free Meal Count (K-12)\" AS REAL) / \"Enrollment (K-12)\" FROM frpm ORDER BY \"Enrollment (K-12)\" DESC LIMIT 9, 2", + "source_gold_sql_sha256": "fcf148e9ef6325d37301a4284f832ed569f7ca27979346476fd3b60207bf8ca3", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:32", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\ngrades 1-12 means K-12; Eligible free or reduced price meal rate for K-12 = \"FRPM Count (K-12)\" / \"Enrollment (K-12)\"\n\nQuestion:\nWhat is the eligible free or reduced price meal rate for the top 5 schools in grades 1-12 with the highest free or reduced price meal count of the schools with the ownership code 66?", + "question": "What is the eligible free or reduced price meal rate for the top 5 schools in grades 1-12 with the highest free or reduced price meal count of the schools with the ownership code 66?", + "evidence": "grades 1-12 means K-12; Eligible free or reduced price meal rate for K-12 = \"FRPM Count (K-12)\" / \"Enrollment (K-12)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT CAST(T1.\"FRPM Count (K-12)\" AS REAL) / T1.\"Enrollment (K-12)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.SOC = 66 ORDER BY T1.\"FRPM Count (K-12)\" DESC LIMIT 5", + "source_gold_sql": "SELECT CAST(T1.\"FRPM Count (K-12)\" AS REAL) / T1.\"Enrollment (K-12)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.SOC = 66 ORDER BY T1.\"FRPM Count (K-12)\" DESC LIMIT 5", + "source_gold_sql_sha256": "d6cc4876775a7f1441acda64a87079df0afab86b61160e16e770fe4f2ce483f6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:37", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nExecellence Rate = NumGE1500 / NumTstTakr; complete address has Street, City, State, Zip code\n\nQuestion:\nWhat is the complete address of the school with the lowest excellence rate? Indicate the Street, City, State, and Zip.", + "question": "What is the complete address of the school with the lowest excellence rate? Indicate the Street, City, State, and Zip.", + "evidence": "Execellence Rate = NumGE1500 / NumTstTakr; complete address has Street, City, State, Zip code", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT s.Street, s.City, s.State, s.Zip \nFROM schools s JOIN satscores sat ON s.CDSCode = sat.cds \nWHERE sat.NumTstTakr > 0 AND sat.NumGE1500 IS NOT NULL AND sat.NumTstTakr IS NOT NULL AND rtype = 'S'\nAND CAST(sat.NumGE1500 AS FLOAT) / CAST(sat.NumTstTakr AS FLOAT) =\n (SELECT MIN(CAST(NumGE1500 AS FLOAT) / CAST(NumTstTakr AS FLOAT)) \n FROM satscores WHERE NumTstTakr > 0 AND NumGE1500 IS NOT NULL AND NumTstTakr IS NOT NULL AND rtype = 'S' )", + "source_gold_sql": "SELECT s.Street, s.City, s.State, s.Zip \nFROM schools s JOIN satscores sat ON s.CDSCode = sat.cds \nWHERE sat.NumTstTakr > 0 AND sat.NumGE1500 IS NOT NULL AND sat.NumTstTakr IS NOT NULL AND rtype = 'S'\nAND CAST(sat.NumGE1500 AS FLOAT) / CAST(sat.NumTstTakr AS FLOAT) =\n (SELECT MIN(CAST(NumGE1500 AS FLOAT) / CAST(NumTstTakr AS FLOAT)) \n FROM satscores WHERE NumTstTakr > 0 AND NumGE1500 IS NOT NULL AND NumTstTakr IS NOT NULL AND rtype = 'S' )", + "source_gold_sql_sha256": "9564d454d5ebf417966bba413a17d28646f670a6b6c379ab6e692426a0d30a7b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:36", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nfull name means first name, last name; There are at most 3 administrators for each school; SAT Scores are greater or equal to 1500 refers to NumGE1500\n\nQuestion:\nUnder whose administration is the school with the highest number of students scoring 1500 or more on the SAT? Indicate their full names.", + "question": "Under whose administration is the school with the highest number of students scoring 1500 or more on the SAT? Indicate their full names.", + "evidence": "full name means first name, last name; There are at most 3 administrators for each school; SAT Scores are greater or equal to 1500 refers to NumGE1500", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT s.AdmFName1,\n s.AdmLName1,\n s.AdmFName2,\n s.AdmLName2,\n s.AdmFName3,\n s.AdmLName3\nFROM satscores t\nJOIN schools s ON t.cds = s.CDSCode\nWHERE t.rtype = 'S' \nORDER BY t.NumGE1500 DESC\nLIMIT 1;", + "source_gold_sql": "SELECT s.AdmFName1,\n s.AdmLName1,\n s.AdmFName2,\n s.AdmLName2,\n s.AdmFName3,\n s.AdmLName3\nFROM satscores t\nJOIN schools s ON t.cds = s.CDSCode\nWHERE t.rtype = 'S' \nORDER BY t.NumGE1500 DESC\nLIMIT 1;", + "source_gold_sql_sha256": "9b6122f4a255eb4b2709a0568cf1dd1141b6c34770a02e513ab1f4495c1cbd29", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:39", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nbetween 1/1/1980 and 12/31/1980 means the year = 1980\n\nQuestion:\nWhat is the average number of test takers from Fresno schools that opened between 1/1/1980 and 12/31/1980?", + "question": "What is the average number of test takers from Fresno schools that opened between 1/1/1980 and 12/31/1980?", + "evidence": "between 1/1/1980 and 12/31/1980 means the year = 1980", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT AVG(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE strftime('%Y', T2.OpenDate) = '1980' AND T2.County = 'Fresno'", + "source_gold_sql": "SELECT AVG(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE strftime('%Y', T2.OpenDate) = '1980' AND T2.County = 'Fresno'", + "source_gold_sql_sha256": "ae5771f0bf5e6b43d3073bfd27da13ce0bb866ce1ebc3199bfb2e59cafcd2dee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:40", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nFresno Unified is a name of district;\n\nQuestion:\nWhat is the telephone number for the school with the lowest average score in reading in Fresno Unified?", + "question": "What is the telephone number for the school with the lowest average score in reading in Fresno Unified?", + "evidence": "Fresno Unified is a name of district;", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL AND rtype = 'S' ORDER BY T1.AvgScrRead ASC LIMIT 1", + "source_gold_sql": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL AND rtype = 'S' ORDER BY T1.AvgScrRead ASC LIMIT 1", + "source_gold_sql_sha256": "f2ed2067b59470fa222986ea03fe243a5224c4f570349bfe2c043509ad405633", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:41", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nExclusively virtual refers to Virtual = 'F'; respective counties means PARTITION BY County; name refers to schools.School\n\nQuestion:\nList the names of virtual schools that are among the top 5 in their respective counties based on average reading scores.", + "question": "List the names of virtual schools that are among the top 5 in their respective counties based on average reading scores.", + "evidence": "Exclusively virtual refers to Virtual = 'F'; respective counties means PARTITION BY County; name refers to schools.School", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "WITH ranked AS (\n SELECT s.`School`,\n s.`Virtual`,\n sc.`cname`,\n RANK() OVER (PARTITION BY sc.`cname` ORDER BY sc.`AvgScrRead` DESC) AS rnk\n FROM `schools` s\n JOIN `satscores` sc ON s.`CDSCode` = sc.`cds`\n WHERE sc.`AvgScrRead` IS NOT NULL AND rtype = 'S'\n)\nSELECT DISTINCT `School`\nFROM ranked\nWHERE `Virtual` = 'F'\n AND rnk <= 5;", + "source_gold_sql": "WITH ranked AS (\n SELECT s.`School`,\n s.`Virtual`,\n sc.`cname`,\n RANK() OVER (PARTITION BY sc.`cname` ORDER BY sc.`AvgScrRead` DESC) AS rnk\n FROM `schools` s\n JOIN `satscores` sc ON s.`CDSCode` = sc.`cds`\n WHERE sc.`AvgScrRead` IS NOT NULL AND rtype = 'S'\n)\nSELECT DISTINCT `School`\nFROM ranked\nWHERE `Virtual` = 'F'\n AND rnk <= 5;", + "source_gold_sql_sha256": "14f8d4fb55011d38ca12f4be525f3355cb980ab01d11f1bc37d001f209955b6b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:45", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nUsually, administrators manage the school stuff.\n\nQuestion:\nWhat is the average writing score of each of the schools managed by Ricci Ulrich? List the schools and the corresponding average writing scores.", + "question": "What is the average writing score of each of the schools managed by Ricci Ulrich? List the schools and the corresponding average writing scores.", + "evidence": "Usually, administrators manage the school stuff.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.School, T1.AvgScrWrite FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.AdmFName1 = 'Ricci' AND T2.AdmLName1 = 'Ulrich'", + "source_gold_sql": "SELECT T2.School, T1.AvgScrWrite FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.AdmFName1 = 'Ricci' AND T2.AdmLName1 = 'Ulrich'", + "source_gold_sql_sha256": "5bb822f092e03d289233e8a8301e73eea1bc2b6d08299a07410b19ac62d2f0aa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:46", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nState Special Schools refers to DOC = 31; Grades 1 through 12 means K-12\n\nQuestion:\nWhich state special schools have the highest number of enrollees from grades 1 through 12?", + "question": "Which state special schools have the highest number of enrollees from grades 1 through 12?", + "evidence": "State Special Schools refers to DOC = 31; Grades 1 through 12 means K-12", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.School \nFROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode \nWHERE T2.DOC = 31 AND T2.school is not NULL ORDER BY T1.\"Enrollment (K-12)\" DESC LIMIT 1", + "source_gold_sql": "SELECT T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.DOC = 31 ORDER BY T1.\"Enrollment (K-12)\" DESC LIMIT 1", + "source_gold_sql_sha256": "74e0dbff88a9c1f0150e0482c449fa7b41f0bc79d7152740903564a195f6f760", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:47", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nElementary School District refers to DOC = 52; Monthly average number of schools that opened in 1980 = count(schools that opened in 1980) / 12\n\nQuestion:\nWhat is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980?", + "question": "What is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980?", + "evidence": "Elementary School District refers to DOC = 52; Monthly average number of schools that opened in 1980 = count(schools that opened in 1980) / 12", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980'", + "source_gold_sql": "SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980'", + "source_gold_sql_sha256": "73bd099d557a27c9503d6921696d4755d538f58c62ae0ac5101115b7bf0bc634", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:48", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nElementary School District refers to DOC = 52; Unified School District refers to DOC = 54.\n\nQuestion:\nWhat is the ratio of merged Unified School District schools in Orange County to merged Elementary School District schools?", + "question": "What is the ratio of merged Unified School District schools in Orange County to merged Elementary School District schools?", + "evidence": "Elementary School District refers to DOC = 52; Unified School District refers to DOC = 54.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT CAST((\nSELECT COUNT(*) FROM schools \nWHERE County = 'Orange' AND DOC = '54' AND StatusType = 'Merged' AND school is not null) AS REAL) \n/ (SELECT COUNT(*) FROM schools WHERE DOC = '52' AND StatusType = 'Merged' AND school is not null) AS ratio;", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'", + "source_gold_sql_sha256": "b461862c35434b2d185eafd020ab831322690d812a242f0855b43bfee7401f69", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:50", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nPostal street and mailing street are synonyms.\n\nQuestion:\nWhat is the postal street address for the school with the 7th highest Math average? Indicate the school's name.", + "question": "What is the postal street address for the school with the 7th highest Math average? Indicate the school's name.", + "evidence": "Postal street and mailing street are synonyms.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT s.`MailStreet` AS postal_street_address,\n s.`School`\nFROM `satscores` AS ss\nJOIN `schools` AS s\n ON ss.`cds` = s.`CDSCode`\nWHERE ss.`rtype` = 'S'\n AND ss.`AvgScrMath` IS NOT NULL\nORDER BY ss.`AvgScrMath` DESC\nLIMIT 6, 1;", + "source_gold_sql": "SELECT s.`MailStreet` AS postal_street_address,\n s.`School`\nFROM `satscores` AS ss\nJOIN `schools` AS s\n ON ss.`cds` = s.`CDSCode`\nWHERE ss.`rtype` = 'S'\n AND ss.`AvgScrMath` IS NOT NULL\nORDER BY ss.`AvgScrMath` DESC\nLIMIT 6, 1;", + "source_gold_sql_sha256": "0559b487685d2538311468c1717b27c8f57e0b3170f5370ada8f7bd522600c3e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:62", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nnon-chartered schools refer to schools whose Charter = 0; K-12 means grades 1 through 12; percent of eligible free rate for K-12 = \"Free Meal Count (K-12)\" * 100 / \"Enrollment (K-12)\"\n\nQuestion:\nWhat is the total number of non-chartered schools in the county of Los Angeles with a percent (%) of eligible free meals for grades 1 through 12 that is less than 0.18%?", + "question": "What is the total number of non-chartered schools in the county of Los Angeles with a percent (%) of eligible free meals for grades 1 through 12 that is less than 0.18%?", + "evidence": "non-chartered schools refer to schools whose Charter = 0; K-12 means grades 1 through 12; percent of eligible free rate for K-12 = \"Free Meal Count (K-12)\" * 100 / \"Enrollment (K-12)\"", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT COUNT(T2.School) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.Charter = 0 AND CAST(T1.\"Free Meal Count (K-12)\" AS REAL) * 100 / T1.\"Enrollment (K-12)\" < 0.18", + "source_gold_sql": "SELECT COUNT(T2.School) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.Charter = 0 AND CAST(T1.\"Free Meal Count (K-12)\" AS REAL) * 100 / T1.\"Enrollment (K-12)\" < 0.18", + "source_gold_sql_sha256": "9823040015294fe4a464b62fa2d26059658f3c35d607712fa36e2e47c6aab3e0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:72", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nState Special School means EdOpsCode = 'SSS'\n\nQuestion:\nHow many students from the ages of 5 to 17 are enrolled at State Special School schools in Fremont for the 2014-2015 academic year?", + "question": "How many students from the ages of 5 to 17 are enrolled at State Special School schools in Fremont for the 2014-2015 academic year?", + "evidence": "State Special School means EdOpsCode = 'SSS'", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT SUM(T1.\"Enrollment (Ages 5-17)\") \nFROM frpm AS T1 \nINNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode\nWHERE T2.EdOpsCode = 'SSS' AND T2.City = 'Fremont' AND T1.\"Academic Year\" BETWEEN 2014 AND 2015 AND T2.school is not NULL", + "source_gold_sql": "SELECT SUM(T1.\"Enrollment (Ages 5-17)\") \nFROM frpm AS T1 \nINNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode\nWHERE T2.EdOpsCode = 'SSS' AND T2.City = 'Fremont' AND T1.\"Academic Year\" BETWEEN 2014 AND 2015 AND T2.school is not NULL", + "source_gold_sql_sha256": "54e26e02a5c36c3c8a73d902a963c31eaf59d6f14f5b636c94d4bc5ce362e3ee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:77", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nPercent (%) Eligible FRPM (Ages 5-17) can be acquired by \"FRPM Count (Ages 5-17)\" / \"Enrollment (Ages 5-17)\" * 100\n\nQuestion:\nWhich schools served a grade span of Kindergarten to 9th grade in the county of Los Angeles and what is its Percent (%) Eligible FRPM (Ages 5-17)?", + "question": "Which schools served a grade span of Kindergarten to 9th grade in the county of Los Angeles and what is its Percent (%) Eligible FRPM (Ages 5-17)?", + "evidence": "Percent (%) Eligible FRPM (Ages 5-17) can be acquired by \"FRPM Count (Ages 5-17)\" / \"Enrollment (Ages 5-17)\" * 100", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.School, T1.\"FRPM Count (Ages 5-17)\" * 100 / T1.\"Enrollment (Ages 5-17)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.GSserved = 'K-9'", + "source_gold_sql": "SELECT T2.School, T1.\"FRPM Count (Ages 5-17)\" * 100 / T1.\"Enrollment (Ages 5-17)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.GSserved = 'K-9'", + "source_gold_sql_sha256": "ce2414d94a32c63df2387bd41630842319a80793307aa5c9d1df2f9a96293239", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:79", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nDoes not offer physical building' means Virtual = F in the database.\n\nQuestion:\nBetween San Diego and Santa Barbara, which county offers the most number of schools that does not offer physical building? Indicate the amount.", + "question": "Between San Diego and Santa Barbara, which county offers the most number of schools that does not offer physical building? Indicate the amount.", + "evidence": "Does not offer physical building' means Virtual = F in the database.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT County, COUNT(Virtual) FROM schools WHERE (County = 'San Diego' OR County = 'Santa Barbara') AND Virtual = 'F' GROUP BY County ORDER BY COUNT(Virtual) DESC LIMIT 1", + "source_gold_sql": "SELECT County, COUNT(Virtual) FROM schools WHERE (County = 'San Diego' OR County = 'Santa Barbara') AND Virtual = 'F' GROUP BY County ORDER BY COUNT(Virtual) DESC LIMIT 1", + "source_gold_sql_sha256": "09985c07a06e80ce4bd8285c8545f070eef23f6cf2f76647c561a54e1ceaee4b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:82", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nthe highest longitude refers to the school with the maximum absolute longitude value.\n\nQuestion:\nWhat is the grade span offered in the school with the highest longitude?", + "question": "What is the grade span offered in the school with the highest longitude?", + "evidence": "the highest longitude refers to the school with the maximum absolute longitude value.", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT GSoffered FROM schools ORDER BY ABS(longitude) DESC LIMIT 1", + "source_gold_sql": "SELECT GSoffered FROM schools WHERE school is not null ORDER BY ABS(longitude) DESC LIMIT 1", + "source_gold_sql_sha256": "4b6aec86d572ef24d2166343659116b9af90e837c43a118d63f6463b1a47e901", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:83", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nKindergarten to 8th grade refers to K-8; 'Offers a magnet program' means Magnet = 1; Multiple Provision Types refers to \"NSLP Provision Status\" = 'Multiple Provision Types'\n\nQuestion:\nList the cities with schools offering a Kindergarten to 8th grade span with Multiple Provision Types, and indicate how many schools are there for each city.", + "question": "List the cities with schools offering a Kindergarten to 8th grade span with Multiple Provision Types, and indicate how many schools are there for each city.", + "evidence": "Kindergarten to 8th grade refers to K-8; 'Offers a magnet program' means Magnet = 1; Multiple Provision Types refers to \"NSLP Provision Status\" = 'Multiple Provision Types'", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT s.City, COUNT(*) AS school_count FROM schools s JOIN frpm f ON s.CDSCode = f.CDSCode WHERE s.GSoffered = 'K-8' AND f.\"NSLP Provision Status\" = 'Multiple Provision Types' GROUP BY s.City", + "source_gold_sql": "SELECT s.City, COUNT(*) AS school_count FROM schools s JOIN frpm f ON s.CDSCode = f.CDSCode WHERE s.GSoffered = 'K-8' AND f.\"NSLP Provision Status\" = 'Multiple Provision Types' GROUP BY s.City", + "source_gold_sql_sha256": "14e431d907d52502140192c127894895eb67f05bfa7d3427dfd30aa206687c76", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:85", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nPercent (%) Eligible Free (K-12) = \"Free Meal Count (K-12)\" / \"Enrollment (K-12)\" * 100%\n\nQuestion:\nWhat is the Percent (%) Eligible Free (K-12) in the school administered by an administrator whose first name is Alusine. List the district code of the school.", + "question": "What is the Percent (%) Eligible Free (K-12) in the school administered by an administrator whose first name is Alusine. List the district code of the school.", + "evidence": "Percent (%) Eligible Free (K-12) = \"Free Meal Count (K-12)\" / \"Enrollment (K-12)\" * 100%", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T1.\"Free Meal Count (K-12)\" * 100 / T1.\"Enrollment (K-12)\", T1.\"District Code\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.AdmFName1 = 'Alusine'", + "source_gold_sql": "SELECT T1.\"Free Meal Count (K-12)\" * 100 / T1.\"Enrollment (K-12)\", T1.\"District Code\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.AdmFName1 = 'Alusine'", + "source_gold_sql_sha256": "61751b9799886f3f81b47a0e6662f0e2b6fdb905d9e8f05cafd6ff742fa55340", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:87", + "domain": "california_schools", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE schools (\n `CDSCode` text, -- No description.\n `NCESDist` text, -- National Center for Educational Statistics school district identification number. This field represents the 7-digit National Center for Educational Statistics (NCES) school district identification number. The first 2 digits identify the state and the last 5 digits identify the school district. Combined, they make a unique 7-digit ID for each school district.\n `NCESSchool` text, -- National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.\n `StatusType` text, -- This field identifies the status of the district. Definitions of the valid status types are listed below:. · Active: The district is in operation and providing instructional services. · Closed: The district is not in operation and no longer providing instructional services. · Merged: The district has combined with another district or districts. · Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9–12 months.\n `County` text, -- County name.\n `District` text, -- District.\n `School` text, -- School. If this field is NULL, then the record is for a district, not a school.\n `Street` text, -- Street.\n `StreetAbr` text, -- street address. The abbreviated street address of the school, district, or administrative authority’s physical location. The abbreviated street address of the school, district, or administrative authority’s physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.\n `City` text, -- City.\n `Zip` text, -- Zip.\n `State` text, -- State.\n `MailStreet` text, -- MailStreet. The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.\n `MailStrAbr` text, -- mailing street address. the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.\n `MailCity` text, -- mailing city. The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.\n `MailZip` text, -- mailing zip. The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.\n `MailState` text, -- mailing state. The state within the mailing address. For your convenience we have filled the unpopulated MailState cells with State data.\n `Phone` text, -- Phone.\n `Ext` text, -- extension. The phone number extension of the school, district, or administrative authority.\n `Website` text, -- The website address of the school, district, or administrative authority.\n `OpenDate` date, -- The date the school opened.\n `ClosedDate` date, -- The date the school closed.\n `Charter` integer, -- This field identifies a charter school. The field is coded as follows:. · 1 = The school is a charter. · 0 = The school is not a charter.\n `CharterNum` text, -- The charter school number,. 4-digit number assigned to a charter school.\n `FundingType` text, -- Indicates the charter school funding type. Values are as follows:. · Not in CS (California School) funding model. · Locally funded. · Directly funded.\n `DOC` text, -- District Ownership Code. The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education. • 02 – State Board of Education. • 03 – Statewide Benefit Charter. • 31 – State Special Schools. • 34 – Non-school Location*. • 52 – Elementary School District. • 54 – Unified School District. • 56 – High School District. • 98 – Regional Occupational Center/Program (ROC/P). *Only the California Education Authority has been included in the non-school location category.\n `DOCType` text, -- The District Ownership Code Type. The District Ownership Code Type is the text description of the DOC category. (See text values in DOC field description above).\n `SOC` text, -- School Ownership Code. The School Ownership Code is a numeric code used to identify the type of school. • 08 - Preschool. • 09 – Special Education Schools (Public). • 11 – Youth Authority Facilities (CEA). • 13 – Opportunity Schools. • 14 – Juvenile Court Schools. • 15 – Other County or District Programs. • 31 – State Special Schools. • 60 – Elementary School (Public). • 61 – Elementary School in 1 School District (Public). • 62 – Intermediate/Middle Schools (Public). • 63 – Alternative Schools of Choice. • 64 – Junior High Schools (Public). • 65 – K-12 Schools (Public). • 66 – High Schools (Public). • 67 – High Schools in 1 School District (Public). • 68 – Continuation High Schools. • 69 – District Community Day Schools. • 70 – Adult Education Centers. • 98 – Regional Occupational Center/Program (ROC/P).\n `SOCType` text, -- School Ownership Code Type. The School Ownership Code Type is the text description of the type of school.\n `EdOpsCode` text, -- Education Option Code. The Education Option Code is a short text description of the type of education offered. • ALTSOC – Alternative School of Choice. • COMM – County Community School. • COMMDAY – Community Day School. • CON – Continuation School. • JUV – Juvenile Court School. • OPP – Opportunity School. • YTH – Youth Authority School. • SSS – State Special School. • SPEC – Special Education School. • TRAD – Traditional. • ROP – Regional Occupational Program. • HOMHOS – Home and Hospital. • SPECON – District Consortia Special Education School.\n `EdOpsName` text, -- Educational Option Name. The Educational Option Name is the long text description of the type of education being offered.\n `EILCode` text, -- Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served. • A – Adult. • ELEM – Elementary. • ELEMHIGH – Elementary-High Combination. • HS – High School. • INTMIDJR – Intermediate/Middle/Junior High. • PS – Preschool. • UG – Ungraded.\n `EILName` text, -- Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institution’s type relative to the grade range served.\n `GSoffered` text, -- grade span offered. The grade span offered is the lowest grade and the highest grade offered or supported by the school, district, or administrative authority. This field might differ from the grade span served as reported in the most recent certified California Longitudinal Pupil Achievement (CALPADS) Fall 1 data collection. For example XYZ School might display the following data:. GSoffered = P–Adult. GSserved = K–12.\n `GSserved` text, -- grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only K–12 enrollment is reported through CALPADS. This field may differ from the grade span offered. 1. Only K–12 enrollment is reported through CALPADS. 2. Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type.\n `Virtual` text, -- This field identifies the type of virtual instruction offered by the school. Virtual instruction is instruction in which students and teachers are separated by time and/or location, and interaction occurs via computers and/or telecommunications technologies. The field is coded as follows:. · F = Exclusively Virtual – The school has no physical building where students meet with each other or with teachers, all instruction is virtual. · V = Primarily Virtual – The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. · C = Primarily Classroom – The school offers virtual courses but virtual instruction is not the primary means of instruction. · N = Not Virtual – The school does not offer any virtual instruction. · P = Partial Virtual – The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016–17 school year.\n `Magnet` integer, -- This field identifies whether a school is a magnet school and/or provides a magnet program. The field is coded as follows:. · 1 = Magnet - The school is a magnet school and/or offers a magnet program. · 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. Note: Preschools and adult education centers do not contain a magnet school indicator.\n `Latitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the equator measured north to south.\n `Longitude` real, -- The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.\n `AdmFName1` text, -- administrator's first name. The superintendent’s or principal’s first name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmLName1` text, -- administrator's last name. The superintendent’s or principal’s last name. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmEmail1` text, -- administrator's email address. The superintendent’s or principal’s email address. Only active and pending districts and schools will display administrator information, if applicable.\n `AdmFName2` text, -- SAME as 1.\n `AdmLName2` text, -- No description.\n `AdmEmail2` text, -- No description.\n `AdmFName3` text, -- not useful.\n `AdmLName3` text, -- not useful.\n `AdmEmail3` text, -- not useful.\n `LastUpdate` date, -- when is this record updated last time.\n primary key (CDSCode)\n);\n\nCREATE TABLE satscores (\n `cds` text, -- California Department Schools.\n `rtype` text, -- type of record. The value is either 'D' or 'S'. 'D' means the record is for a district, and 'S' means the record is for a school.\n `sname` text, -- school name. If sname is null, then this record is for a district.\n `dname` text, -- district name. district segment.\n `cname` text, -- county name.\n `enroll12` integer, -- enrollment (1st-12nd grade).\n `NumTstTakr` integer, -- Number of Test Takers. Number of Test Takers in this school. number of test takers in each school.\n `AvgScrRead` integer, -- average scores in Reading.\n `AvgScrMath` integer, -- average scores in Math.\n `AvgScrWrite` integer, -- average scores in writing.\n `NumGE1500` integer, -- Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500. Excellence Rate = NumGE1500 / NumTstTakr.\n primary key (cds),\n foreign key (cds) references schools (CDSCode)\n);\n\nCREATE TABLE frpm (\n `CDSCode` integer, -- CDSCode.\n `Academic Year` integer , -- Academic Year.\n `County Code` integer, -- County Code.\n `District Code` integer, -- District Code.\n `School Code` integer, -- School Code.\n `County Name` text, -- County Code.\n `District Name` text, -- District Name.\n `School Name` text, -- School Name.\n `District Type` text, -- District Type.\n `School Type` text, -- School Type.\n `Educational Option Type` text, -- Educational Option Type.\n `NSLP Provision Status` text, -- NSLP Provision Status.\n `Charter School (Y/N)` integer, -- Charter School (Y/N). 0: N; 1: Y.\n `Charter School Number` text, -- Charter School Number.\n `Charter Funding Type` text, -- Charter Funding Type.\n `IRC` integer, -- Not useful.\n `Low Grade` text, -- Low Grade.\n `High Grade` text, -- High Grade.\n `Enrollment (K-12)` real, -- Enrollment (K-12). K-12: kindergarten - 12th grade.\n `Free Meal Count (K-12)` real, -- Free Meal Count (K-12). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (K-12)` real, -- No description.\n `FRPM Count (K-12)` real, -- Free or Reduced Price Meal Count (K-12). eligible FRPM rate = FRPM / Enrollment.\n `Percent (%) Eligible FRPM (K-12)` real, -- No description.\n `Enrollment (Ages 5-17)` real, -- Enrollment (Ages 5-17).\n `Free Meal Count (Ages 5-17)` real, -- Free Meal Count (Ages 5-17). eligible free rate = Free Meal Count / Enrollment.\n `Percent (%) Eligible Free (Ages 5-17)` real, -- No description.\n `FRPM Count (Ages 5-17)` real, -- No description.\n `Percent (%) Eligible FRPM (Ages 5-17)` real, -- No description.\n `2013-14 CALPADS Fall 1 Certification Status` integer, -- 2013-14 CALPADS Fall 1 Certification Status.\n primary key (CDSCode),\n foreign key (CDSCode) references schools (CDSCode)\n);\n\nExternal Knowledge:\nIntermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'\n\nQuestion:\nWhat are the valid e-mail addresses of the administrator of the school located in the San Bernardino county, City of San Bernardino City Unified that opened between 1/1/2009 to 12/31/2010 which is also both an Intermediate/Middle School and Unified School? List the valid emails in two columns.", + "question": "What are the valid e-mail addresses of the administrator of the school located in the San Bernardino county, City of San Bernardino City Unified that opened between 1/1/2009 to 12/31/2010 which is also both an Intermediate/Middle School and Unified School? List the valid emails in two columns.", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "db_id": "california_schools", + "database_path": "databases/california_schools.sqlite", + "gold_sql": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'San Bernardino' AND T2.City = 'San Bernardino' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "source_gold_sql": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'San Bernardino' AND T2.City = 'San Bernardino' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "source_gold_sql_sha256": "5aaf76e33420a2068f1d2ce120d3b5d6d5f6d91e9314df87e601e9d5e80861fb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:89", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nA3 contains the data of region; 'POPLATEK PO OBRATU' represents for 'issuance after transaction'.\n\nQuestion:\nHow many accounts who choose issuance after transaction are staying in East Bohemia region?", + "question": "How many accounts who choose issuance after transaction are staying in East Bohemia region?", + "evidence": "A3 contains the data of region; 'POPLATEK PO OBRATU' represents for 'issuance after transaction'.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 = 'east Bohemia' AND T2.frequency = 'POPLATEK PO OBRATU'", + "source_gold_sql": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 = 'east Bohemia' AND T2.frequency = 'POPLATEK PO OBRATU'", + "source_gold_sql_sha256": "eb717166d2297b530c835152c5116987c1f14ab66bc209d1f8d85f36c794f9ab", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:92", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nA11 refers to average salary; Female mapps to gender = 'F'\n\nQuestion:\nList out the no. of districts that have female average salary is more than 6000 but less than 10000?", + "question": "List out the no. of districts that have female average salary is more than 6000 but less than 10000?", + "evidence": "A11 refers to average salary; Female mapps to gender = 'F'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T2.district_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T2.A11 BETWEEN 6000 AND 10000", + "source_gold_sql": "SELECT COUNT(DISTINCT T2.district_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T2.A11 BETWEEN 6000 AND 10000", + "source_gold_sql_sha256": "dd77cdfa358f11c1e39144177449b1c9192a4136f34948cef4649f36f33e4c09", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:93", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nMale means that gender = 'M'; A3 refers to region; A11 pertains to average salary.\n\nQuestion:\nHow many male customers who are living in North Bohemia have average salary greater than 8000?", + "question": "How many male customers who are living in North Bohemia have average salary greater than 8000?", + "evidence": "Male means that gender = 'M'; A3 refers to region; A11 pertains to average salary.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A3 = 'north Bohemia' AND T2.A11 > 8000", + "source_gold_sql": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A3 = 'north Bohemia' AND T2.A11 > 8000", + "source_gold_sql_sha256": "586375fb2c04ed2e47dad23114af289f7c109bb46528f54cfb1d8f2849afc668", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:94", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nFemale means gender = 'F'; A11 refers to average salary; Gap = highest average salary - lowest average salary; If the person A's birthdate > B's birthdate, it means that person B is order than person A.\n\nQuestion:\nWhat is (1) the account number of the oldest female client and (2) the gap between the highest average salary and the lowest average salary?", + "question": "What is (1) the account number of the oldest female client and (2) the gap between the highest average salary and the lowest average salary?", + "evidence": "Female means gender = 'F'; A11 refers to average salary; Gap = highest average salary - lowest average salary; If the person A's birthdate > B's birthdate, it means that person B is order than person A.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.account_id , ( SELECT MAX(A11) - MIN(A11) FROM district ) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id INNER JOIN client AS T4 ON T3.client_id = T4.client_id WHERE T4.client_id = ( SELECT client_id FROM client WHERE gender = 'F' ORDER BY birth_date ASC LIMIT 1 ) ORDER BY T2.A11 DESC LIMIT 1", + "source_gold_sql": "SELECT T1.account_id , ( SELECT MAX(A11) - MIN(A11) FROM district ) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id INNER JOIN client AS T4 ON T3.client_id = T4.client_id WHERE T4.client_id = ( SELECT client_id FROM client WHERE gender = 'F' ORDER BY birth_date ASC LIMIT 1 ) ORDER BY T2.A11 DESC LIMIT 1", + "source_gold_sql_sha256": "c29565cbc278d8c7e51d2af590d740efd22185fd7971438f336c7867e4e16b8c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:95", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nIf the person A's birthdate < B's birthdate, it means that person B is younger than person A; A11 refers to average salary\n\nQuestion:\nFind the account number of the youngest client, breaking ties by the average salary of their district.", + "question": "Find the account number of the youngest client, breaking ties by the average salary of their district.", + "evidence": "If the person A's birthdate < B's birthdate, it means that person B is younger than person A; A11 refers to average salary", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.account_id FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id INNER JOIN district AS T4 on T4.district_id = T1.district_id WHERE T2.client_id = ( SELECT client_id FROM client ORDER BY birth_date DESC LIMIT 1) GROUP BY T4.A11, T1.account_id", + "source_gold_sql": "SELECT T1.account_id FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id INNER JOIN district AS T4 on T4.district_id = T1.district_id WHERE T2.client_id = ( SELECT client_id FROM client ORDER BY birth_date DESC LIMIT 1) GROUP BY T4.A11, T1.account_id", + "source_gold_sql_sha256": "0b11c37bdd8ecd67526b41d02348eff5960bc33657b1c7adf17206a2144a3cee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:98", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nPOPLATEK TYDNE' stands for weekly issuance\n\nQuestion:\nAmong the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement.", + "question": "Among the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement.", + "evidence": "POPLATEK TYDNE' stands for weekly issuance", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount LIMIT 1", + "source_gold_sql": "SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount LIMIT 1", + "source_gold_sql_sha256": "8f645f1cff000094c3b162a86b9b358a30917efd6cce51c61e7c72a48cc35180", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:99", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nLoan validity more than 12 months refers to duration > 12\n\nQuestion:\nAmong the accounts who have loan validity more than 12 months, list out the accounts that have the highest approved amount and have account opening date in 1993.", + "question": "Among the accounts who have loan validity more than 12 months, list out the accounts that have the highest approved amount and have account opening date in 1993.", + "evidence": "Loan validity more than 12 months refers to duration > 12", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T2.date) = '1993' AND T1.duration > 12 ORDER BY T1.amount DESC LIMIT 1", + "source_gold_sql": "SELECT T1.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T2.date) = '1993' AND T1.duration > 12 ORDER BY T1.amount DESC LIMIT 1", + "source_gold_sql_sha256": "506a292040f8cd15576766eca23afa95d106923fc2a08acf9bc487b711e83cb7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:100", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nCustomers refer to clients; Female refers to gender = 'F'; Names of districts appear in column A2\n\nQuestion:\nAmong the account opened, how many female customers who were born before 1950 and stayed in Sokolov?", + "question": "Among the account opened, how many female customers who were born before 1950 and stayed in Sokolov?", + "evidence": "Customers refer to clients; Female refers to gender = 'F'; Names of districts appear in column A2", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.gender = 'F' AND STRFTIME('%Y', T2.birth_date) < '1950' AND T1.A2 = 'Sokolov'", + "source_gold_sql": "SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.gender = 'F' AND STRFTIME('%Y', T2.birth_date) < '1950' AND T1.A2 = 'Sokolov'", + "source_gold_sql_sha256": "6552f3cbb8fc41d4ab1f5b915140538489938cb6b042218ea8ae77eecfeded05", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:112", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nFemale refers to gender = 'F'; A2 refers to district names\n\nQuestion:\nFor the female client who was born in 1976/1/29, which district did she opened her account?", + "question": "For the female client who was born in 1976/1/29, which district did she opened her account?", + "evidence": "Female refers to gender = 'F'; A2 refers to district names", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT DISTINCT d.A2\nFROM `client` c\nJOIN `disp` di ON di.`client_id` = c.`client_id`\nJOIN `account` a ON a.`account_id` = di.`account_id`\nJOIN `district` d ON d.`district_id` = a.`district_id`\nWHERE c.`gender` = 'F'\n AND c.`birth_date` = '1976-01-29';", + "source_gold_sql": "SELECT DISTINCT d.A2\nFROM `client` c\nJOIN `disp` di ON di.`client_id` = c.`client_id`\nJOIN `account` a ON a.`account_id` = di.`account_id`\nJOIN `district` d ON d.`district_id` = a.`district_id`\nWHERE c.`gender` = 'F'\n AND c.`birth_date` = '1976-01-29';", + "source_gold_sql_sha256": "fefa93578b39f3c0db5e48d63beec0dacabd1cee7087cd59ed62623441d042f1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:115", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nPercentage of the male clients = DIVIDE(COUNT(male clients), COUNT(clients)) * 100; Male refers to gender = 'M', A3 is the region name. A4 contains the information about inhabitants.\n\nQuestion:\nFor the branch which located in the south Bohemia with biggest number of inhabitants, what is the percentage of the male clients?", + "question": "For the branch which located in the south Bohemia with biggest number of inhabitants, what is the percentage of the male clients?", + "evidence": "Percentage of the male clients = DIVIDE(COUNT(male clients), COUNT(clients)) * 100; Male refers to gender = 'M', A3 is the region name. A4 contains the information about inhabitants.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'south Bohemia' GROUP BY T2.A4 ORDER BY CAST(T2.A4 AS INTEGER) DESC LIMIT 1", + "source_gold_sql": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'south Bohemia' GROUP BY T2.A4 ORDER BY CAST(T2.A4 AS INTEGER) DESC LIMIT 1", + "source_gold_sql_sha256": "6a58b82909adf7d860c5f1f3fca368b8393062c6dc9709cb918a6c1b30c9fc42", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:116", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nIncrease rate of his/her account balance = [(balance of date A - balance of date B) / balance of Date B] * 100%\n\nQuestion:\nFor the client whose loan was approved first in 1993/7/5, what is the increase rate of his/her account balance from 1993/3/22 to 1998/12/27?", + "question": "For the client whose loan was approved first in 1993/7/5, what is the increase rate of his/her account balance from 1993/3/22 to 1998/12/27?", + "evidence": "Increase rate of his/her account balance = [(balance of date A - balance of date B) / balance of Date B] * 100%", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST((SUM(IIF(T3.date = '1998-12-27', T3.balance, 0)) - SUM(IIF(T3.date = '1993-03-22', T3.balance, 0))) AS REAL) * 100 / SUM(IIF(T3.date = '1993-03-22', T3.balance, 0)) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN trans AS T3 ON T3.account_id = T2.account_id WHERE T1.date = '1993-07-05'", + "source_gold_sql": "SELECT CAST((SUM(IIF(T3.date = '1998-12-27', T3.balance, 0)) - SUM(IIF(T3.date = '1993-03-22', T3.balance, 0))) AS REAL) * 100 / SUM(IIF(T3.date = '1993-03-22', T3.balance, 0)) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN trans AS T3 ON T3.account_id = T2.account_id WHERE T1.date = '1993-07-05'", + "source_gold_sql_sha256": "5363c80475c77d8cd13d9aa8b49e393c59c4e5b4425d89cd75b3f0d09a6e36c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:117", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nLoan paid with no issue means contract finished, no problems; status = 'A' means contract finished, no problems; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100%\n\nQuestion:\nWhat is the percentage of loan amount that has been fully paid with no issue.", + "question": "What is the percentage of loan amount that has been fully paid with no issue.", + "evidence": "Loan paid with no issue means contract finished, no problems; status = 'A' means contract finished, no problems; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100%", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT (CAST(SUM(CASE WHEN status = 'A' THEN amount ELSE 0 END) AS REAL) * 100) / SUM(amount) FROM loan", + "source_gold_sql": "SELECT (CAST(SUM(CASE WHEN status = 'A' THEN amount ELSE 0 END) AS REAL) * 100) / SUM(amount) FROM loan", + "source_gold_sql_sha256": "0b2ba7aabf2c4e3b00c42820d88bb93a3fc475aac20238900d433e87abb4aa54", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:118", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nStatus = 'C' stands for running contract, ok so far; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100.\n\nQuestion:\nFor loan amount less than USD100,000, what is the percentage of accounts that is still running with no issue.", + "question": "For loan amount less than USD100,000, what is the percentage of accounts that is still running with no issue.", + "evidence": "Status = 'C' stands for running contract, ok so far; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST(SUM(status = 'C') AS REAL) * 100 / COUNT(account_id) FROM loan WHERE amount < 100000", + "source_gold_sql": "SELECT CAST(SUM(status = 'C') AS REAL) * 100 / COUNT(account_id) FROM loan WHERE amount < 100000", + "source_gold_sql_sha256": "6ce8f37187fdc381b087a2f7c37b3c2c9c2525beb54b2ea60870c198e956a9c8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:125", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nUnemployment increment rate in percentage = [(unemployment rate 1996 - unemployment rate 1995) / unemployment rate 1995] * 100; unemployment rate 1995 appears in the A12; unemployment rate 1996 appears in the A13; Loan contracts which are still running where client are in debt can be presented as status = 'D'\n\nQuestion:\nFor loans contracts which are still running where client are in debt, state their district percentage unemployment rate increment from year 1995 to 1996.", + "question": "For loans contracts which are still running where client are in debt, state their district percentage unemployment rate increment from year 1995 to 1996.", + "evidence": "Unemployment increment rate in percentage = [(unemployment rate 1996 - unemployment rate 1995) / unemployment rate 1995] * 100; unemployment rate 1995 appears in the A12; unemployment rate 1996 appears in the A13; Loan contracts which are still running where client are in debt can be presented as status = 'D'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT (d.A13 - d.A12) / d.A12 * 100 FROM loan AS l JOIN account AS a ON l.account_id = a.account_id JOIN district AS d ON a.district_id = d.district_id WHERE l.status = 'D' AND NOT d.A12 IS NULL AND NOT d.A13 IS NULL AND d.A12 > 0", + "source_gold_sql": "SELECT CAST((T3.A13 - T3.A12) AS REAL) * 100 / T3.A12 FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.status = 'D'", + "source_gold_sql_sha256": "af86b43bd4a0187155ab5c46cb6ab68fde2ffc2614a99b1955a0b607b2b53096", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:128", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\ndistricts refers to A2; Female refers to gender = 'F'\n\nQuestion:\nList the top nine districts by number of female clients, in descending order.", + "question": "List the top nine districts by number of female clients, in descending order.", + "evidence": "districts refers to A2; Female refers to gender = 'F'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T2.A2 FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' GROUP BY T2.district_id, T2.A2 ORDER BY COUNT(T1.client_id) DESC LIMIT 9", + "source_gold_sql": "SELECT T2.A2, COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' GROUP BY T2.district_id, T2.A2 ORDER BY COUNT(T1.client_id) DESC LIMIT 9", + "source_gold_sql_sha256": "14ac430b3e7e5312e182d78e626fe84891bfedd05014cb3402a5febca6feb05e", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:136", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nFrequency = 'POPLATEK MESICNE' stands for monthly issurance\n\nQuestion:\nBetween 1/1/1995 and 12/31/1997, how many loans in the amount of at least 250,000 per account that chose monthly statement issuance were approved?", + "question": "Between 1/1/1995 and 12/31/1997, how many loans in the amount of at least 250,000 per account that chose monthly statement issuance were approved?", + "evidence": "Frequency = 'POPLATEK MESICNE' stands for monthly issurance", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.date BETWEEN '1995-01-01' AND '1997-12-31' AND T1.frequency = 'POPLATEK MESICNE' AND T2.amount >= 250000", + "source_gold_sql": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.date BETWEEN '1995-01-01' AND '1997-12-31' AND T1.frequency = 'POPLATEK MESICNE' AND T2.amount >= 250000", + "source_gold_sql_sha256": "3501fd921d0ecf7416e519daac08634122e7e8384fa9c2576060f09c5cf75745", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:137", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nStatus = 'C' stands for running contract, OK so far; Status = 'D' stands for running contract, client in debt\n\nQuestion:\nHow many accounts have running contracts in Branch location 1?", + "question": "How many accounts have running contracts in Branch location 1?", + "evidence": "Status = 'C' stands for running contract, OK so far; Status = 'D' stands for running contract, client in debt", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN loan AS T3 ON T1.account_id = T3.account_id WHERE T1.district_id = 1 AND (T3.status = 'C' OR T3.status = 'D')", + "source_gold_sql": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN loan AS T3 ON T1.account_id = T3.account_id WHERE T1.district_id = 1 AND (T3.status = 'C' OR T3.status = 'D')", + "source_gold_sql_sha256": "d574a84f7345f07e2cc04052a0eb8517e71263f10d750375248f3491910c8cac", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:138", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nMale refers to gender = 'M'; A15 stands for no. of commited crimes 1995\n\nQuestion:\nIn the branch where the second-highest number of crimes were committed in 1995 occurred, how many male clients are there?", + "question": "In the branch where the second-highest number of crimes were committed in 1995 occurred, how many male clients are there?", + "evidence": "Male refers to gender = 'M'; A15 stands for no. of commited crimes 1995", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A15 = (SELECT T3.A15 FROM district AS T3 ORDER BY T3.A15 DESC LIMIT 1, 1)", + "source_gold_sql": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A15 = (SELECT T3.A15 FROM district AS T3 ORDER BY T3.A15 DESC LIMIT 1, 1)", + "source_gold_sql_sha256": "72bae0a6a7b0625a1b994b6ff7a0dabe80ba40252d5c4cc7322a005e8935ef5c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:129", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nNon-credit card withdraws refers to type = 'VYDAJ'; January 1996 can be found by date LIKE '1996-01%' in the database; A2 means district names\n\nQuestion:\nWhich are the district names of the top ten withdrawals (non-credit card) for the month of January 1996?", + "question": "Which are the district names of the top ten withdrawals (non-credit card) for the month of January 1996?", + "evidence": "Non-credit card withdraws refers to type = 'VYDAJ'; January 1996 can be found by date LIKE '1996-01%' in the database; A2 means district names", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'VYDAJ' AND T3.date LIKE '1996-01%' ORDER BY T3.amount DESC LIMIT 10", + "source_gold_sql": "SELECT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'VYDAJ' AND T3.date LIKE '1996-01%' ORDER BY T3.amount DESC LIMIT 10", + "source_gold_sql_sha256": "32dd4db3e59cef0dce93c28d79d69b3ff1b7ff9913f11476740d55b992e06199", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:145", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nOperation = 'VYBER KARTOU' refers to credit card withdrawal; the average refers to AVG(amount) WHERE STRFTIME('%Y', date) = '1998'\n\nQuestion:\nWho are the account holder identification numbers whose who have transactions on the credit card with the amount is less than the overall average, in 1998?", + "question": "Who are the account holder identification numbers whose who have transactions on the credit card with the amount is less than the overall average, in 1998?", + "evidence": "Operation = 'VYBER KARTOU' refers to credit card withdrawal; the average refers to AVG(amount) WHERE STRFTIME('%Y', date) = '1998'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1998' AND T1.operation = 'VYBER KARTOU' AND T1.amount < (SELECT AVG(amount) FROM trans WHERE STRFTIME('%Y', date) = '1998')", + "source_gold_sql": "SELECT T1.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1998' AND T1.operation = 'VYBER KARTOU' AND T1.amount < (SELECT AVG(amount) FROM trans WHERE STRFTIME('%Y', date) = '1998')", + "source_gold_sql_sha256": "ad719e6e208752834223a81ea85a5feff2132f00d3a8fdf4cfb71cf8a1a93112", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:149", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nA11 represents the average salary; Salary and income share the similar meanings; when the account type = 'OWNER', it's eligible for loans\n\nQuestion:\nPlease list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000.", + "question": "Please list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000.", + "evidence": "A11 represents the average salary; Salary and income share the similar meanings; when the account type = 'OWNER', it's eligible for loans", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT DISTINCT T3.`type`\nFROM `district` AS T1\nJOIN `account` AS T2 ON T1.`district_id` = T2.`district_id`\nJOIN `disp` AS T3 ON T2.`account_id` = T3.`account_id`\nWHERE T3.`type` <> 'OWNER'\n AND T1.`A11` > 8000\n AND T1.`A11` <= 9000;", + "source_gold_sql": "SELECT DISTINCT T3.`type`\nFROM `district` AS T1\nJOIN `account` AS T2 ON T1.`district_id` = T2.`district_id`\nJOIN `disp` AS T3 ON T2.`account_id` = T3.`account_id`\nWHERE T3.`type` <> 'OWNER'\n AND T1.`A11` > 8000\n AND T1.`A11` <= 9000;", + "source_gold_sql_sha256": "8f5eb9b8540400f4d68d4eea660cf3b907020396cc2586397f03391ef84e6752", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:152", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nA15 stands for the number of crimes commited in 1995.\n\nQuestion:\nWhat is the average number of crimes committed in 1995 in districts where the number exceeds 4000 and the district has accounts that are opened starting from the year 1997?", + "question": "What is the average number of crimes committed in 1995 in districts where the number exceeds 4000 and the district has accounts that are opened starting from the year 1997?", + "evidence": "A15 stands for the number of crimes commited in 1995.", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT AVG(T1.A15) FROM district AS T1 WHERE T1.district_id IN (SELECT DISTINCT T2.district_id FROM account T2 WHERE STRFTIME('%Y', T2.date) >= '1997') AND T1.A15 > 4000", + "source_gold_sql": "SELECT AVG(T1.A15) FROM district AS T1 WHERE T1.district_id IN (SELECT DISTINCT T2.district_id FROM account T2 WHERE STRFTIME('%Y', T2.date) >= '1997') AND T1.A15 > 4000", + "source_gold_sql_sha256": "17b2e0d27b54ceb640aab9ccdad22d103ccb57e789d2fd18420ac007dd1248a7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:159", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\noperation = 'VYBER' refers to withdrawal in cash\n\nQuestion:\nList all the withdrawals in cash transactions that the client with the id 3356 makes.", + "question": "List all the withdrawals in cash transactions that the client with the id 3356 makes.", + "evidence": "operation = 'VYBER' refers to withdrawal in cash", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T4.* FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 3356 AND T4.operation = 'VYBER'", + "source_gold_sql": "SELECT T4.trans_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 3356 AND T4.operation = 'VYBER'", + "source_gold_sql_sha256": "ee7eafdc44edb97e440951e8acc4528f8c4abbb8814348ec4725207693e20179", + "gold_sql_overridden": true, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:168", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nFemale refers to gender = 'F'; Woman and female are closed; Average salary can be found in A11\n\nQuestion:\nWhat percentage of clients in the district with an average salary of over 10000 are women?", + "question": "What percentage of clients in the district with an average salary of over 10000 are women?", + "evidence": "Female refers to gender = 'F'; Woman and female are closed; Average salary can be found in A11", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST(SUM(T2.gender = 'F') AS REAL) * 100 / COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.A11 > 10000", + "source_gold_sql": "SELECT CAST(SUM(T2.gender = 'F') AS REAL) * 100 / COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.A11 > 10000", + "source_gold_sql_sha256": "1d1bba2987781d3273fc4e7ee49cc69a9b25c8489e8b6ee9a9bfc68724f3405a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:169", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nGrowth rate = (sum of amount_1997 - sum of amount_1996) / (sum of amount_1996) * 100%; Male refers to gender = 'M'\n\nQuestion:\nWhat was the growth rate of the total amount of loans across all accounts owned by a male client between 1996 and 1997?", + "question": "What was the growth rate of the total amount of loans across all accounts owned by a male client between 1996 and 1997?", + "evidence": "Growth rate = (sum of amount_1997 - sum of amount_1996) / (sum of amount_1996) * 100%; Male refers to gender = 'M'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST((SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1997' THEN T1.amount ELSE 0 END) - SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T3 ON T3.account_id = T2.account_id INNER JOIN client AS T4 ON T4.client_id = T3.client_id WHERE T4.gender = 'M' AND T3.type = 'OWNER'", + "source_gold_sql": "SELECT CAST((SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1997' THEN T1.amount ELSE 0 END) - SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN STRFTIME('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T3 ON T3.account_id = T2.account_id INNER JOIN client AS T4 ON T4.client_id = T3.client_id WHERE T4.gender = 'M' AND T3.type = 'OWNER'", + "source_gold_sql_sha256": "9c5f03dd5574c3a300ded1f48a8c98555fb27de49a8a6310cd686c6abb64f54b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:173", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nk_symbol refers to the purpose of payments\n\nQuestion:\nHow often does account number 3 request an account statement to be released? What was the aim of debiting 3539 in total?", + "question": "How often does account number 3 request an account statement to be released? What was the aim of debiting 3539 in total?", + "evidence": "k_symbol refers to the purpose of payments", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.frequency, T2.k_symbol FROM account AS T1 INNER JOIN (SELECT account_id, k_symbol, SUM(amount) AS total_amount FROM \"order\" GROUP BY account_id, k_symbol) AS T2 ON T1.account_id = T2.account_id WHERE T1.account_id = 3 AND T2.total_amount = 3539", + "source_gold_sql": "SELECT T1.frequency, T2.k_symbol FROM account AS T1 INNER JOIN (SELECT account_id, k_symbol, SUM(amount) AS total_amount FROM \"order\" GROUP BY account_id, k_symbol) AS T2 ON T1.account_id = T2.account_id WHERE T1.account_id = 3 AND T2.total_amount = 3539", + "source_gold_sql_sha256": "0e797ef0f143374ffb6f068fbc8a429e72c0bf13d011394374769afdd0629be3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:186", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nPercentage of male clients = [count(male clients who requested weekly statements / count(clients who requested weekly statements)] * 100%; Male means gender = 'M'; 'POPLATEK TYDNE' stands for weekly issuance\n\nQuestion:\nWhat percentage of male clients request for weekly statements to be issued?", + "question": "What percentage of male clients request for weekly statements to be issued?", + "evidence": "Percentage of male clients = [count(male clients who requested weekly statements / count(clients who requested weekly statements)] * 100%; Male means gender = 'M'; 'POPLATEK TYDNE' stands for weekly issuance", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id WHERE T3.frequency = 'POPLATEK TYDNE'", + "source_gold_sql": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id WHERE T3.frequency = 'POPLATEK TYDNE'", + "source_gold_sql_sha256": "8fd2a635db0d98940390a95ef08c52735343659642a061bb1bb7559cb8487a02", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:189", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nFemale refers to 'F' in the gender; A11 contains information about average salary\n\nQuestion:\nName the account number of the oldest female client, breaking ties by lowest average salary?", + "question": "Name the account number of the oldest female client, breaking ties by lowest average salary?", + "evidence": "Female refers to 'F' in the gender; A11 contains information about average salary", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id AND T4.account_id = T3.account_id WHERE T1.gender = 'F' ORDER BY T1.birth_date ASC, T2.A11 ASC LIMIT 1", + "source_gold_sql": "SELECT T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id AND T4.account_id = T3.account_id WHERE T1.gender = 'F' ORDER BY T1.birth_date ASC, T2.A11 ASC LIMIT 1", + "source_gold_sql_sha256": "a88681955a927b721ccc9725f4d8e3524a3100908f662dccb4c45268704a8091", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:192", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nstatus = 'C' stands for running contract, OK so far; status = 'D' stands for running contract, client in debt. 'POPLATEK PO OBRATU' stands for issuance after transaction\n\nQuestion:\nWhat is the average amount of loan which are still on running contract with statement issuance after each transaction?", + "question": "What is the average amount of loan which are still on running contract with statement issuance after each transaction?", + "evidence": "status = 'C' stands for running contract, OK so far; status = 'D' stands for running contract, client in debt. 'POPLATEK PO OBRATU' stands for issuance after transaction", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'", + "source_gold_sql": "SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'", + "source_gold_sql_sha256": "ab4c94a8af9ad29bddcf872c060b05df527a5dca7157d7e2fb5271ef1ac9d71f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + }, + { + "id": "arcwise-sql:194", + "domain": "financial", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE loan (\n `loan_id` integer, -- the id number identifying the loan data.\n `account_id` integer, -- the id number identifying the account.\n `date` date, -- the date when the loan is approved.\n `amount` integer, -- approved amount. unit:US dollar.\n `duration` integer, -- loan duration. unit:month.\n `payments` real, -- monthly payments. unit:month.\n `status` text, -- repayment status. 'A' stands for contract finished, no problems; 'B' stands for contract finished, loan not paid; 'C' stands for running contract, OK so far; 'D' stands for running contract, client in debt.\n primary key (loan_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE client (\n `client_id` integer, -- the unique number.\n `gender` text, -- F:female. M:male.\n `birth_date` date, -- birth date.\n `district_id` integer, -- location of branch.\n primary key (client_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE district (\n `district_id` integer , -- location of branch.\n `A2` text, -- district_name.\n `A3` text, -- region.\n `A4` text, -- number of inhabitants.\n `A5` text, -- no. of municipalities with inhabitants < 499. municipality < district < region.\n `A6` text, -- no. of municipalities with inhabitants 500-1999. municipality < district < region.\n `A7` text, -- no. of municipalities with inhabitants 2000-9999. municipality < district < region.\n `A8` integer, -- no. of municipalities with inhabitants > 10000. municipality < district < region.\n `A9` integer, -- not useful.\n `A10` real, -- ratio of urban inhabitants.\n `A11` integer, -- average salary.\n `A12` real, -- unemployment rate 1995.\n `A13` real, -- unemployment rate 1996.\n `A14` integer, -- no. of entrepreneurs per 1000 inhabitants.\n `A15` integer, -- no. of committed crimes 1995.\n `A16` integer, -- no. of committed crimes 1996.\n primary key (district_id)\n);\n\nCREATE TABLE trans (\n `trans_id` integer, -- transaction id.\n `account_id` integer, -- No description.\n `date` date, -- date of transaction.\n `type` text, -- +/- transaction. \"PRIJEM\" stands for credit. \"VYDAJ\" stands for withdrawal.\n `operation` text, -- mode of transaction. \"VYBER KARTOU\": credit card withdrawal. \"VKLAD\": credit in cash. \"PREVOD Z UCTU\" :collection from another bank. \"VYBER\": withdrawal in cash. \"PREVOD NA UCET\": remittance to another bank.\n `amount` integer, -- amount of money. Unit:USD.\n `balance` integer, -- balance after transaction. Unit:USD.\n `k_symbol` text, -- characterization of the transaction. \"POJISTNE\": stands for insurrance payment. \"SLUZBY\": stands for payment for statement. \"UROK\": stands for interest credited. \"SANKC. UROK\": sanction interest if negative balance. \"SIPO\": stands for household. \"DUCHOD\": stands for old-age pension. \"UVER\": stands for loan payment.\n `bank` text, -- bank of the partner. each bank has unique two-letter code.\n `account` integer, -- account of the partner.\n primary key (trans_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE account (\n `account_id` integer, -- account id. the id of the account.\n `district_id` integer , -- location of branch.\n `frequency` text, -- frequency of the acount.\n `date` date, -- the creation date of the account. in the form YYMMDD.\n primary key (account_id),\n foreign key (district_id) references district (district_id)\n);\n\nCREATE TABLE card (\n `card_id` integer, -- credit card id. id number of credit card.\n `disp_id` integer, -- disposition id.\n `type` text, -- type of credit card. \"junior\": junior class of credit card; \"classic\": standard class of credit card; \"gold\": high-level credit card.\n `issued` date, -- the date when the credit card issued. in the form YYMMDD.\n primary key (card_id),\n foreign key (disp_id) references disp (disp_id)\n);\n\nCREATE TABLE order (\n `order_id` integer, -- identifying the unique order.\n `account_id` integer, -- id number of account.\n `bank_to` text, -- bank of the recipient.\n `account_to` integer, -- account of the recipient. each bank has unique two-letter code.\n `amount` real, -- debited amount.\n `k_symbol` text, -- characterization of the payment. purpose of the payment. \"POJISTNE\" stands for insurance payment. \"SIPO\" stands for household payment. \"LEASING\" stands for leasing. \"UVER\" stands for loan payment.\n primary key (order_id),\n foreign key (account_id) references account (account_id)\n);\n\nCREATE TABLE disp (\n `disp_id` integer, -- disposition id. unique number of identifying this row of record.\n `client_id` integer, -- id number of client.\n `account_id` integer, -- id number of account.\n `type` text, -- type of disposition. \"OWNER\" : \"USER\" : \"DISPONENT\". the account can only have the right to issue permanent orders or apply for loans.\n primary key (disp_id),\n foreign key (account_id) references account (account_id),\n foreign key (client_id) references client (client_id)\n);\n\nExternal Knowledge:\nthe credit card is high-level refers to card.type = 'gold'; eligible for loans refers to disp.type = 'OWNER'\n\nQuestion:\nProvide the IDs and age of the client with high level credit card, which is eligible for loans.", + "question": "Provide the IDs and age of the client with high level credit card, which is eligible for loans.", + "evidence": "the credit card is high-level refers to card.type = 'gold'; eligible for loans refers to disp.type = 'OWNER'", + "db_id": "financial", + "database_path": "databases/financial.sqlite", + "gold_sql": "SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type = 'gold' AND T1.type = 'OWNER'", + "source_gold_sql": "SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type = 'gold' AND T1.type = 'OWNER'", + "source_gold_sql_sha256": "f77564bda7015af335dfc69c1349b93cba8a655d3318754256a55ffb7e5a79da", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:arcwise_plat_sql.json", + "database_sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e", + "gold_sql_source": "Arcwise-Plat-SQL, uiuc-kang-lab/text_to_sql_benchmarks@bef1f2e42b" + } +] diff --git a/arcwise/databases/codebase_community.sqlite b/arcwise/databases/codebase_community.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..922f1f8d38306c408569999a98b3ea16063b4f85 --- /dev/null +++ b/arcwise/databases/codebase_community.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d +size 481419264 diff --git a/arcwise/databases/european_football_2.sqlite b/arcwise/databases/european_football_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..716ac62b0a21e6c4c416da0bbd91ba577639fee7 --- /dev/null +++ b/arcwise/databases/european_football_2.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536 +size 597754880 diff --git a/arcwise/databases/financial.sqlite b/arcwise/databases/financial.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f4d5e4d01d3b76558d23fe55370d8d2d127f844a --- /dev/null +++ b/arcwise/databases/financial.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e +size 71294976 diff --git a/arcwise/databases/formula_1.sqlite b/arcwise/databases/formula_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..b2a4246edf742447aeb9de53c97a2fcdc1f08785 --- /dev/null +++ b/arcwise/databases/formula_1.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d +size 22360064 diff --git a/arcwise/databases/student_club.sqlite b/arcwise/databases/student_club.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..58204ddfeda4b0c888bfa7ae7b7ebacf0ea5726e --- /dev/null +++ b/arcwise/databases/student_club.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77 +size 2641920 diff --git a/arcwise/databases/superhero.sqlite b/arcwise/databases/superhero.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..dcf14b16ffd36e4f88e7db15d3176b24aec95bf9 --- /dev/null +++ b/arcwise/databases/superhero.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1 +size 237568 diff --git a/arcwise/databases/thrombosis_prediction.sqlite b/arcwise/databases/thrombosis_prediction.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..32ce7f72013618059d0773550b164bd11a84841b --- /dev/null +++ b/arcwise/databases/thrombosis_prediction.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00 +size 7327744 diff --git a/arcwise/databases/toxicology.sqlite b/arcwise/databases/toxicology.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..02921d7962cbdba9be191aa451113a0f9b4c8188 --- /dev/null +++ b/arcwise/databases/toxicology.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93 +size 2678784 diff --git a/release.json b/release.json new file mode 100644 index 0000000000000000000000000000000000000000..2b87cf9c14ffb514d24c9b86f176b00bef6f7ee4 --- /dev/null +++ b/release.json @@ -0,0 +1,356 @@ +{ + "files": { + "arcwise/arcwise498.json": { + "bytes": 4787223, + "sha256": "09906a1dd9c0442d4bee18c2080ebdf2f0f485df1bcff22487b2ca2763094523" + }, + "arcwise/databases/california_schools.sqlite": { + "bytes": 11116544, + "sha256": "c0903eec662e63068fd1d14403d3d6c1d473287fc10c4356333ea58f878db983" + }, + "arcwise/databases/card_games.sqlite": { + "bytes": 261820416, + "sha256": "c98bdb57fe7474da798b407785544b9af0daaad5d61fd21e2a73309493bc1227" + }, + "arcwise/databases/codebase_community.sqlite": { + "bytes": 481419264, + "sha256": "92101be6d2a9f6adceea59d38f6d1c556087f9eea1432432a21268cb1348036d" + }, + "arcwise/databases/debit_card_specializing.sqlite": { + "bytes": 34635776, + "sha256": "b3d149ad05746dbbe5116e229e17e18f09c39db43cf117d9ef3441753608b691" + }, + "arcwise/databases/european_football_2.sqlite": { + "bytes": 597754880, + "sha256": "f72f5c9b990371417288a67b27a02e601ef904d45525c2c9f7931fb01001c536" + }, + "arcwise/databases/financial.sqlite": { + "bytes": 71294976, + "sha256": "d15d89cdb068a202b6f2b99342af44dffc1d52545b39ceaf62efdc0ba570101e" + }, + "arcwise/databases/formula_1.sqlite": { + "bytes": 22360064, + "sha256": "79770caf966707e35516fa566e24b40ae515c74ec1ec4631235245645b87b24d" + }, + "arcwise/databases/student_club.sqlite": { + "bytes": 2641920, + "sha256": "eb89bcfe97eefa386a27904ec5aa15159811a7eac894ec659a36e48fa9f76b77" + }, + "arcwise/databases/superhero.sqlite": { + "bytes": 237568, + "sha256": "75e94a2c3236ee3bb2c01fb97a1c4b4c1c269bcefd4eab1d04be323d2d0825b1" + }, + "arcwise/databases/thrombosis_prediction.sqlite": { + "bytes": 7327744, + "sha256": "87583183c3dc472fba04de702965560a9d7c0a548836613f242317e0eeb83f00" + }, + "arcwise/databases/toxicology.sqlite": { + "bytes": 2678784, + "sha256": "35ef27ae6bdfda530e125ed369666ac0abb8bc8c0bcc0ad09407f547ecb61a93" + }, + "revisql-verified/databases/address.sqlite": { + "bytes": 26550272, + "sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-verified/databases/airline.sqlite": { + "bytes": 122699776, + "sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-verified/databases/app_store.sqlite": { + "bytes": 18018304, + "sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-verified/databases/authors.sqlite": { + "bytes": 616001536, + "sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-verified/databases/beer_factory.sqlite": { + "bytes": 991232, + "sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-verified/databases/bike_share_1.sqlite": { + "bytes": 5209406464, + "sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-verified/databases/book_publishing_company.sqlite": { + "bytes": 184320, + "sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-verified/databases/books.sqlite": { + "bytes": 4337664, + "sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-verified/databases/car_retails.sqlite": { + "bytes": 487424, + "sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-verified/databases/cars.sqlite": { + "bytes": 135168, + "sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-verified/databases/chicago_crime.sqlite": { + "bytes": 66723840, + "sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-verified/databases/citeseer.sqlite": { + "bytes": 7430144, + "sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-verified/databases/codebase_comments.sqlite": { + "bytes": 4497768448, + "sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-verified/databases/coinmarketcap.sqlite": { + "bytes": 1508139008, + "sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-verified/databases/college_completion.sqlite": { + "bytes": 71217152, + "sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-verified/databases/computer_student.sqlite": { + "bytes": 45056, + "sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-verified/databases/cookbook.sqlite": { + "bytes": 1220608, + "sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-verified/databases/craftbeer.sqlite": { + "bytes": 442368, + "sha256": "127bad8fbd45772d66f81aa3935e5b957eaeccce104ec3e933ff156efea168ea" + }, + "revisql-verified/databases/cs_semester.sqlite": { + "bytes": 36864, + "sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-verified/databases/disney.sqlite": { + "bytes": 258048, + "sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-verified/databases/donor.sqlite": { + "bytes": 4497768448, + "sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-verified/databases/european_football_1.sqlite": { + "bytes": 11907072, + "sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-verified/databases/food_inspection.sqlite": { + "bytes": 5021696, + "sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-verified/databases/food_inspection_2.sqlite": { + "bytes": 216940544, + "sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-verified/databases/genes.sqlite": { + "bytes": 1527808, + "sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "revisql-verified/databases/hockey.sqlite": { + "bytes": 6893568, + "sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-verified/databases/human_resources.sqlite": { + "bytes": 28672, + "sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-verified/databases/ice_hockey_draft.sqlite": { + "bytes": 1028096, + "sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-verified/databases/image_and_language.sqlite": { + "bytes": 138891264, + "sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-verified/databases/language_corpus.sqlite": { + "bytes": 2383298560, + "sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-verified/databases/law_episode.sqlite": { + "bytes": 548864, + "sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-verified/databases/legislator.sqlite": { + "bytes": 3485696, + "sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-verified/databases/mental_health_survey.sqlite": { + "bytes": 18276352, + "sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-verified/databases/menu.sqlite": { + "bytes": 272371712, + "sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-verified/databases/mondial_geo.sqlite": { + "bytes": 2113536, + "sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-verified/databases/movie.sqlite": { + "bytes": 1568768, + "sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-verified/databases/movie_3.sqlite": { + "bytes": 6356992, + "sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-verified/databases/movie_platform.sqlite": { + "bytes": 4311130112, + "sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-verified/databases/movielens.sqlite": { + "bytes": 85786624, + "sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-verified/databases/movies_4.sqlite": { + "bytes": 13070336, + "sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-verified/databases/music_platform_2.sqlite": { + "bytes": 1554345984, + "sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-verified/databases/music_tracker.sqlite": { + "bytes": 15204352, + "sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-verified/databases/olympics.sqlite": { + "bytes": 18145280, + "sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-verified/databases/professional_basketball.sqlite": { + "bytes": 6668288, + "sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-verified/databases/public_review_platform.sqlite": { + "bytes": 65339392, + "sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-verified/databases/regional_sales.sqlite": { + "bytes": 2277376, + "sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-verified/databases/restaurant.sqlite": { + "bytes": 806912, + "sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-verified/databases/retail_complains.sqlite": { + "bytes": 25133056, + "sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-verified/databases/retail_world.sqlite": { + "bytes": 65536, + "sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-verified/databases/retails.sqlite": { + "bytes": 1027735552, + "sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-verified/databases/sales.sqlite": { + "bytes": 130338816, + "sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-verified/databases/sales_in_weather.sqlite": { + "bytes": 464236544, + "sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-verified/databases/shakespeare.sqlite": { + "bytes": 12029952, + "sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-verified/databases/shipping.sqlite": { + "bytes": 131072, + "sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-verified/databases/shooting.sqlite": { + "bytes": 180224, + "sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-verified/databases/simpson_episodes.sqlite": { + "bytes": 753664, + "sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-verified/databases/soccer_2016.sqlite": { + "bytes": 17170432, + "sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-verified/databases/social_media.sqlite": { + "bytes": 69132288, + "sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-verified/databases/software_company.sqlite": { + "bytes": 342118400, + "sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-verified/databases/student_loan.sqlite": { + "bytes": 307200, + "sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-verified/databases/superstore.sqlite": { + "bytes": 6631424, + "sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-verified/databases/synthea.sqlite": { + "bytes": 38637568, + "sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-verified/databases/talkingdata.sqlite": { + "bytes": 1903886336, + "sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-verified/databases/trains.sqlite": { + "bytes": 5070848, + "sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-verified/databases/university.sqlite": { + "bytes": 630784, + "sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-verified/databases/video_games.sqlite": { + "bytes": 2547712, + "sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-verified/databases/works_cycles.sqlite": { + "bytes": 114724864, + "sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-verified/databases/world.sqlite": { + "bytes": 253952, + "sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-verified/databases/world_development_indicators.sqlite": { + "bytes": 2451682304, + "sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-verified/dataset/manifest.json": { + "bytes": 700, + "sha256": "c297521a167f417fe75d022dfbbf8874de21e0e0cfe7738024a8fd5483bcb768" + }, + "revisql-verified/dataset/runtime-train.json": { + "bytes": 18632892, + "sha256": "8896ee2f0cb3fed945b1bba5ef94c63d4f90e2b36b7e12b14a815d5c4bd577cd" + }, + "revisql-verified/dataset/runtime-validation.json": { + "bytes": 3893811, + "sha256": "dba31a7e70951df44ac8a01fd7723a5f27d422acc636505bbc1add589639a5a4" + }, + "revisql-verified/hints/current-training-bindings.json": { + "bytes": 693225, + "sha256": "897000ae65b2d7b56df712270da4586d063316929ce6b845e163c34b792db46c" + }, + "revisql-verified/hints/training-references.json": { + "bytes": 2313499, + "sha256": "ea8d1c5d84a7cc60e465db26dc357c4c7a878e58e6625d83432e21a5e505097d" + }, + "revisql-verified/subsets/bird-platinum-hard.json": { + "bytes": 15765, + "sha256": "b8e193cc5f9e0a86865c06bc533b02e6256ddaff60ce0dabdbe3000b63796990" + }, + "revisql-verified/verifier/gate-policy.json": { + "bytes": 602454, + "sha256": "9daa051f1f2dd3ca8723e15dd272f57e5c14acad3f64dd2ae6d023d7d66fca39" + } + } +} diff --git a/revisql-verified/databases/address.sqlite b/revisql-verified/databases/address.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..cdbf3241dfb848ad0125b1a2aa5b77aae281eaa6 --- /dev/null +++ b/revisql-verified/databases/address.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771 +size 26550272 diff --git a/revisql-verified/databases/airline.sqlite b/revisql-verified/databases/airline.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f925a948c8208a451326febd756d25d8cde37abf --- /dev/null +++ b/revisql-verified/databases/airline.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8 +size 122699776 diff --git a/revisql-verified/databases/app_store.sqlite b/revisql-verified/databases/app_store.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..27bb5f72eb4059e1b00f9b576732582265febb19 --- /dev/null +++ b/revisql-verified/databases/app_store.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef +size 18018304 diff --git a/revisql-verified/databases/authors.sqlite b/revisql-verified/databases/authors.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e91d4f87a5c6bc1f78e2a70dd9c957faa57845bb --- /dev/null +++ b/revisql-verified/databases/authors.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f +size 616001536 diff --git a/revisql-verified/databases/beer_factory.sqlite b/revisql-verified/databases/beer_factory.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..878b3b1106eb60ad340e3230d1c412c365101316 --- /dev/null +++ b/revisql-verified/databases/beer_factory.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19 +size 991232 diff --git a/revisql-verified/databases/bike_share_1.sqlite b/revisql-verified/databases/bike_share_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..cc70437a365d16927372ba2726544f9e663feb0a --- /dev/null +++ b/revisql-verified/databases/bike_share_1.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b +size 5209406464 diff --git a/revisql-verified/databases/book_publishing_company.sqlite b/revisql-verified/databases/book_publishing_company.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..457970602c7ce0239fca16a19815d28ab81c6ea3 --- /dev/null +++ b/revisql-verified/databases/book_publishing_company.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d +size 184320 diff --git a/revisql-verified/databases/books.sqlite b/revisql-verified/databases/books.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..736f88465ae0cac6f770811968ad39f4139f55d6 --- /dev/null +++ b/revisql-verified/databases/books.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e +size 4337664 diff --git a/revisql-verified/databases/car_retails.sqlite b/revisql-verified/databases/car_retails.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..6c271194c56312631a0e87833b3f306b01af71b6 --- /dev/null +++ b/revisql-verified/databases/car_retails.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5 +size 487424 diff --git a/revisql-verified/databases/cars.sqlite b/revisql-verified/databases/cars.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..2674341efb4a50db8e519b401064d79bdc04a5bd --- /dev/null +++ b/revisql-verified/databases/cars.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e +size 135168 diff --git a/revisql-verified/databases/chicago_crime.sqlite b/revisql-verified/databases/chicago_crime.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3ca27e0d81af17640aeb02b314710a82113d0fb2 --- /dev/null +++ b/revisql-verified/databases/chicago_crime.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161 +size 66723840 diff --git a/revisql-verified/databases/citeseer.sqlite b/revisql-verified/databases/citeseer.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3dcb7bd2476374143b97af177033757fc4570b60 --- /dev/null +++ b/revisql-verified/databases/citeseer.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32 +size 7430144 diff --git a/revisql-verified/databases/college_completion.sqlite b/revisql-verified/databases/college_completion.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..162b04939fd7b340ad20cf3d2ce86bcc554f15fb --- /dev/null +++ b/revisql-verified/databases/college_completion.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e +size 71217152 diff --git a/revisql-verified/databases/computer_student.sqlite b/revisql-verified/databases/computer_student.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f2364f1d4414c7baf98714b6352ac0bad213be01 Binary files /dev/null and b/revisql-verified/databases/computer_student.sqlite differ diff --git a/revisql-verified/databases/cookbook.sqlite b/revisql-verified/databases/cookbook.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..8fcc4c069a3d11f17ed99a36a53b97a6fb86d320 --- /dev/null +++ b/revisql-verified/databases/cookbook.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da +size 1220608 diff --git a/revisql-verified/databases/craftbeer.sqlite b/revisql-verified/databases/craftbeer.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9036ee397e5aa46635fca9396e1572ba0d8b0ac1 --- /dev/null +++ b/revisql-verified/databases/craftbeer.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:127bad8fbd45772d66f81aa3935e5b957eaeccce104ec3e933ff156efea168ea +size 442368 diff --git a/revisql-verified/databases/cs_semester.sqlite b/revisql-verified/databases/cs_semester.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9f999ecda21cd610d9996598a318456173743539 Binary files /dev/null and b/revisql-verified/databases/cs_semester.sqlite differ diff --git a/revisql-verified/databases/disney.sqlite b/revisql-verified/databases/disney.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..66817ee7d7fd385514fcf4e41066ce0fa3434dd8 --- /dev/null +++ b/revisql-verified/databases/disney.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25 +size 258048 diff --git a/revisql-verified/databases/donor.sqlite b/revisql-verified/databases/donor.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..a54e94057aa925c5657a7cbd48fbdde5c64f307b --- /dev/null +++ b/revisql-verified/databases/donor.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35 +size 4497768448 diff --git a/revisql-verified/databases/european_football_1.sqlite b/revisql-verified/databases/european_football_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..97b8861cc55423125c045ee28453ee95099df78b --- /dev/null +++ b/revisql-verified/databases/european_football_1.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5 +size 11907072 diff --git a/revisql-verified/databases/food_inspection.sqlite b/revisql-verified/databases/food_inspection.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ec6acc972a39254238be9aa797e806bd2e08302e --- /dev/null +++ b/revisql-verified/databases/food_inspection.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1 +size 5021696 diff --git a/revisql-verified/databases/food_inspection_2.sqlite b/revisql-verified/databases/food_inspection_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..443302b70ab4af693bf6b92287e3517cd525124a --- /dev/null +++ b/revisql-verified/databases/food_inspection_2.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65 +size 216940544 diff --git a/revisql-verified/databases/genes.sqlite b/revisql-verified/databases/genes.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..76112b1e95374acf1e9187325fe68e371841cf29 --- /dev/null +++ b/revisql-verified/databases/genes.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5 +size 1527808 diff --git a/revisql-verified/databases/hockey.sqlite b/revisql-verified/databases/hockey.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3e92b11087687b802aadb9325006d17e7692cc0e --- /dev/null +++ b/revisql-verified/databases/hockey.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2 +size 6893568 diff --git a/revisql-verified/databases/human_resources.sqlite b/revisql-verified/databases/human_resources.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..418fb52955cc2858b1203f329c3f973b1d2e5ccd Binary files /dev/null and b/revisql-verified/databases/human_resources.sqlite differ diff --git a/revisql-verified/databases/ice_hockey_draft.sqlite b/revisql-verified/databases/ice_hockey_draft.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e984ce1a3f5fba983c3af28bce9ef938993ca273 --- /dev/null +++ b/revisql-verified/databases/ice_hockey_draft.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18 +size 1028096 diff --git a/revisql-verified/databases/image_and_language.sqlite b/revisql-verified/databases/image_and_language.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..66b42e4772659a49d929a676e4c3117280df81f3 --- /dev/null +++ b/revisql-verified/databases/image_and_language.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1 +size 138891264 diff --git a/revisql-verified/databases/law_episode.sqlite b/revisql-verified/databases/law_episode.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c1f305a78e245d9305b5c96187df34bd7941246f --- /dev/null +++ b/revisql-verified/databases/law_episode.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7 +size 548864 diff --git a/revisql-verified/databases/legislator.sqlite b/revisql-verified/databases/legislator.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3741aaac787f584ed318832cf12a6721a73fe06a --- /dev/null +++ b/revisql-verified/databases/legislator.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c +size 3485696 diff --git a/revisql-verified/databases/movie_platform.sqlite b/revisql-verified/databases/movie_platform.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9105bce4a1f25cc093d89026340cbffe21511f7c --- /dev/null +++ b/revisql-verified/databases/movie_platform.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9 +size 4311130112 diff --git a/revisql-verified/databases/retail_world.sqlite b/revisql-verified/databases/retail_world.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..695219f8f4f54156f0bf4cec9779cce8ac5e121f Binary files /dev/null and b/revisql-verified/databases/retail_world.sqlite differ diff --git a/revisql-verified/databases/talkingdata.sqlite b/revisql-verified/databases/talkingdata.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..6bf98d4735f7bd0613788cec926c4ca3ef149bc7 --- /dev/null +++ b/revisql-verified/databases/talkingdata.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50 +size 1903886336 diff --git a/revisql-verified/databases/world_development_indicators.sqlite b/revisql-verified/databases/world_development_indicators.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..603725ba9cf9eef0261a3cba6db49ae50d68a5cc --- /dev/null +++ b/revisql-verified/databases/world_development_indicators.sqlite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c +size 2451682304 diff --git a/revisql-verified/dataset/manifest.json b/revisql-verified/dataset/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..894cd89d6edb008fd621fd6434fd46299e5e1622 --- /dev/null +++ b/revisql-verified/dataset/manifest.json @@ -0,0 +1,20 @@ +{ + "release_id": "revisql-verified-v1", + "artifact_sha256": { + "runtime-train.json": "8896ee2f0cb3fed945b1bba5ef94c63d4f90e2b36b7e12b14a815d5c4bd577cd", + "runtime-validation.json": "dba31a7e70951df44ac8a01fd7723a5f27d422acc636505bbc1add589639a5a4" + }, + "summary": { + "active_by_role": { + "paper_train": 2064, + "paper_validation": 398 + } + }, + "provenance": { + "training": "the ReViSQL authors' released verified training tasks", + "validation": "the ReViSQL authors' released verified validation tasks", + "annotations": "unchanged", + "databases": "BIRD's original training databases", + "grading": "diamond-numeric-v1 numeric policy; the authors' grading_method and execution budgets" + } +} diff --git a/revisql-verified/dataset/runtime-validation.json b/revisql-verified/dataset/runtime-validation.json new file mode 100644 index 0000000000000000000000000000000000000000..d720b755686162ed306f85d6496db9f4617662ad --- /dev/null +++ b/revisql-verified/dataset/runtime-validation.json @@ -0,0 +1,7969 @@ +[ + { + "id": "revisql-validation:1735", + "domain": "restaurant", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE geographic (\n `city` text, -- the city.\n `county` text, -- country. the country the city belongs to.\n `region` text, -- corresponding regions.\n primary key (city)\n);\n\nCREATE TABLE location (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `street_num` integer, -- street number. the street number of the restaurant.\n `street_name` text, -- street name. the street name of the restaurant.\n `city` text, -- the city where the restaurant is located in.\n primary key (id_restaurant),\n foreign key (city) references geographic (city)\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n);\n\nCREATE TABLE generalinfo (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `label` text, -- the label of the restaurant.\n `food_type` text, -- food type. the food type.\n `city` text, -- the city where the restaurant is located in.\n `review` real, -- the review of the restaurant. the review rating is from 0.0 to 5.0. The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n primary key (id_restaurant),\n foreign key (city) references geographic(city)\n);\n\nExternal Knowledge:\nSankee restaurant refers to label = 'sankee'\n\nQuestion:\nWhat is the county of the Sankee restaurant?", + "question": "What is the county of the Sankee restaurant?", + "evidence": "Sankee restaurant refers to label = 'sankee'", + "db_id": "restaurant", + "database_path": "../databases/restaurant.sqlite", + "gold_sql": "SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'sankee'", + "source_gold_sql": "SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'sankee'", + "source_gold_sql_sha256": "a0d8b81415114902adb8250caae527bc2c271a0e0fb936b0d6db4489974536c5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7111", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nvendors refers to distinct BusinessEntityID; average delivery time of 25 days refers to AverageLeadTime = 25\n\nQuestion:\nHow many vendors are having their products ordered with an average delivery time of 25 days?", + "question": "How many vendors are having their products ordered with an average delivery time of 25 days?", + "evidence": "vendors refers to distinct BusinessEntityID; average delivery time of 25 days refers to AverageLeadTime = 25", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT BusinessEntityID) FROM ProductVendor WHERE AverageLeadTime = 25", + "source_gold_sql": "SELECT COUNT(DISTINCT BusinessEntityID) FROM ProductVendor WHERE AverageLeadTime = 25", + "source_gold_sql_sha256": "8c8b4db2140293b33264cde3b4f359c7929a10e45d89244a3eb2271843778af5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1245", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nepisode \"Refuge: Part 1\" refers to title = 'Refuge: Part 1'\n\nQuestion:\nPlease list all the keywords of the episode \"Refuge: Part 1\".", + "question": "Please list all the keywords of the episode \"Refuge: Part 1\".", + "evidence": "episode \"Refuge: Part 1\" refers to title = 'Refuge: Part 1'", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Refuge: Part 1'", + "source_gold_sql": "SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Refuge: Part 1'", + "source_gold_sql_sha256": "a8204e606874256e415b74f19f8ba83d81a2405f40183ebe4a400a244152a544", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6108", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\nbook purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))\n\nQuestion:\nAmong the book order lines purchased by less than 1 dollar, what is the difference between the number of books with less than 500 pages and books with greater than 500 pages?", + "question": "Among the book order lines purchased by less than 1 dollar, what is the difference between the number of books with less than 500 pages and books with greater than 500 pages?", + "evidence": "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T1.num_pages < 500 THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.num_pages > 500 THEN 1 ELSE 0 END) AS dif FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.price < 1", + "source_gold_sql": "SELECT SUM(CASE WHEN T1.num_pages < 500 THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.num_pages > 500 THEN 1 ELSE 0 END) AS dif FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.price < 1", + "source_gold_sql_sha256": "17f96ea447ebd4804ba6c9b880691c6224f1c4cd3ae79012a1c1a54efbe0a35f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1870", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nplayer's name refers to Player_Name; captain refers to Role_Desc = 'Captain'; the winning team refers to Match_Winner = Team_Id; on 1st June 2008 refers to Match_Date = '2008-06-01'\n\nQuestion:\nWho was the captain of the winning team in the match held on 1st June 2008? List the name of the player.", + "question": "Who was the captain of the winning team in the match held on 1st June 2008? List the name of the player.", + "evidence": "player's name refers to Player_Name; captain refers to Role_Desc = 'Captain'; the winning team refers to Match_Winner = Team_Id; on 1st June 2008 refers to Match_Date = '2008-06-01'", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T2.Match_Id = T1.Match_Id INNER JOIN Player AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Rolee AS T4 ON T4.Role_Id = T1.Role_Id WHERE T2.Match_Date = '2008-06-01' AND T4.Role_Desc = 'Captain' AND T2.Match_Winner = T1.Team_Id", + "source_gold_sql": "SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T2.Match_Id = T1.Match_Id INNER JOIN Player AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Rolee AS T4 ON T4.Role_Id = T1.Role_Id WHERE T2.Match_Date = '2008-06-01' AND T4.Role_Desc = 'Captain' AND T2.Match_Winner = T1.Team_Id", + "source_gold_sql_sha256": "8bb8686f4e5fb8a875ae90266f6e7c77c3185d5b4051ca7a5b4b4a7eb84d9539", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6129", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\n\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'\n\nQuestion:\nHow many \"food maintenance\" related violations did inspection no.1454071 have?", + "question": "How many \"food maintenance\" related violations did inspection no.1454071 have?", + "evidence": "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT COUNT(T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = '1454071' AND T1.category = 'Food Maintenance'", + "source_gold_sql": "SELECT COUNT(T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = '1454071' AND T1.category = 'Food Maintenance'", + "source_gold_sql_sha256": "5d2ac26cb7f9cecdaf6a6ed83a5b443ac8e0d4df67673d526e9f4b8e19dc3b59", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7298", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nLL Fork is name of a product\n\nQuestion:\nPlease give all the list prices of the product LL Fork.", + "question": "Please give all the list prices of the product LL Fork.", + "evidence": "LL Fork is name of a product", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'LL Fork'", + "source_gold_sql": "SELECT T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'LL Fork'", + "source_gold_sql_sha256": "8b4eff5a202bfb77a0c0a4bac5e227b7a71464b629b776ab5c6ca825673fb362", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9303", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nfilm refers to the title; the longest duration refers to MAX(length)\n\nQuestion:\nWhich film has the longest duration?", + "question": "Which film has the longest duration?", + "evidence": "film refers to the title; the longest duration refers to MAX(length)", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film )", + "source_gold_sql": "SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film )", + "source_gold_sql_sha256": "63cbda93f41bad2959f6420b363d226edcf120982f1c6d402696d290721c3ba0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3268", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\npaid through Amazon refers to payment_method = 'amazon'; sum of the total donated amounts refers to SUM(donation_to_project,donation_optional_support)\n\nQuestion:\nWhat is the sum of the total donated amounts paid through Amazon?", + "question": "What is the sum of the total donated amounts paid through Amazon?", + "evidence": "paid through Amazon refers to payment_method = 'amazon'; sum of the total donated amounts refers to SUM(donation_to_project,donation_optional_support)", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT SUM(donation_to_project) + SUM(donation_optional_support) FROM donations WHERE payment_method = 'amazon'", + "source_gold_sql": "SELECT SUM(donation_to_project) + SUM(donation_optional_support) FROM donations WHERE payment_method = 'amazon'", + "source_gold_sql_sha256": "b86b09b31010f483589ab63706eca4fd06db3150901b2b708836baccc27af9c6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3132", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\nfrom 1971 to 1980 refers to model_year between 1971 and 1980; average production rate per year = divide(count(ID where model_year between 1971 and 1980), 10)\n\nQuestion:\nCalculate the average production rate per year from 1971 to 1980.", + "question": "Calculate the average production rate per year from 1971 to 1980.", + "evidence": "from 1971 to 1980 refers to model_year between 1971 and 1980; average production rate per year = divide(count(ID where model_year between 1971 and 1980), 10)", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "SELECT CAST(COUNT(*) AS REAL) / 10 AS avg_production_per_year\nFROM `production`\nWHERE `model_year` BETWEEN 1971 AND 1980;", + "source_gold_sql": "SELECT CAST(COUNT(*) AS REAL) / 10 AS avg_production_per_year\nFROM `production`\nWHERE `model_year` BETWEEN 1971 AND 1980;", + "source_gold_sql_sha256": "65693a38a1cb6c25d4dd76afcbee914e04292f99ac6a002bd22d1ee1834b1344", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4770", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\nfull name refers to official_full_name; official_full_name refers to first_name, last_name; female refers to gender_bio = 'F'; chose Republican as their political party refers to party = 'Republican'\n\nQuestion:\nProvide the full name of all current female legislators that chose Republican as their political party.", + "question": "Provide the full name of all current female legislators that chose Republican as their political party.", + "evidence": "full name refers to official_full_name; official_full_name refers to first_name, last_name; female refers to gender_bio = 'F'; chose Republican as their political party refers to party = 'Republican'", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "SELECT c.`official_full_name`\nFROM `current` AS c\nJOIN (\n SELECT `bioguide`, MAX(`end`) AS max_end\n FROM `current-terms`\n GROUP BY `bioguide`\n) AS ct ON c.`bioguide_id` = ct.`bioguide`\nJOIN `current-terms` t ON t.`bioguide` = ct.`bioguide` AND t.`end` = ct.`max_end`\nWHERE c.`gender_bio` = 'F'\n AND t.`party` = 'Republican';", + "source_gold_sql": "SELECT c.`official_full_name`\nFROM `current` AS c\nJOIN (\n SELECT `bioguide`, MAX(`end`) AS max_end\n FROM `current-terms`\n GROUP BY `bioguide`\n) AS ct ON c.`bioguide_id` = ct.`bioguide`\nJOIN `current-terms` t ON t.`bioguide` = ct.`bioguide` AND t.`end` = ct.`max_end`\nWHERE c.`gender_bio` = 'F'\n AND t.`party` = 'Republican';", + "source_gold_sql_sha256": "16bf338a0054a1febfc416ccda30aa0adbc85701dff9fc077fd0e735eac557d9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7096", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nnumber of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'\n\nQuestion:\nSum the total number of products rejected for having a trim length that is too long.", + "question": "Sum the total number of products rejected for having a trim length that is too long.", + "evidence": "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT SUM(T2.ScrappedQty) FROM ScrapReason AS T1 INNER JOIN WorkOrder AS T2 ON T1.ScrapReasonID = T2.ScrapReasonID WHERE T1.Name = 'Trim length too long'", + "source_gold_sql": "SELECT SUM(T2.ScrappedQty) FROM ScrapReason AS T1 INNER JOIN WorkOrder AS T2 ON T1.ScrapReasonID = T2.ScrapReasonID WHERE T1.Name = 'Trim length too long'", + "source_gold_sql_sha256": "2482a2ae8d3713599112c6e5aea045442827e8686020b8d32189f6362fab1db0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:233", + "domain": "book_publishing_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE jobs (\n `job_id` integer, -- job id. unique id number identifying the jobs.\n `job_desc` text, -- job description. staff should be mentioned.\n `min_lvl` integer, -- min level. min job level.\n `max_lvl` integer, -- max level. max job level. level range for jobs mentioned in job_desc is (min_lvl, max_lvl).\n primary key (job_id)\n);\n\nCREATE TABLE pub_info (\n `pub_id` text, -- publication id. unique id number identifying publications.\n `logo` blob, -- logo of publications.\n `pr_info` text, -- publisher's information.\n primary key (pub_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE sales (\n `stor_id` text, -- store id. id number identifying stores.\n `ord_num` text, -- order number. id number identifying the orders.\n `ord_date` datetime, -- order date. the date of the order.\n `qty` integer, -- quantity. quantity of sales.\n `payterms` text, -- payments.\n `title_id` text, -- title id. id number identifying titles.\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n foreign key (title_id) references titles(title_id)\n);\n\nCREATE TABLE publishers (\n `pub_id` text, -- publisher id. unique id number identifying publisher.\n `pub_name` text, -- publisher name.\n `city` text, -- No description.\n `state` text, -- No description.\n `country` text, -- No description.\n primary key (pub_id)\n);\n\nCREATE TABLE titleauthor (\n `au_id` text, -- author id.\n `title_id` text, -- title id.\n `au_ord` integer, -- author ordering.\n `royaltyper` integer, -- royaltyper.\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n foreign key (title_id) references titles (title_id)\n);\n\nCREATE TABLE employee (\n `emp_id` text, -- employee id. unique number identifying employees.\n `fname` text, -- first name. first name of employees.\n `minit` text, -- middle name.\n `lname` text, -- last name.\n `job_id` integer, -- job id. number identifying jobs.\n `job_lvl` integer, -- job level. higher value means job level is higher.\n `pub_id` text, -- publisher id. id number identifying publishers.\n `hire_date` datetime, -- hire date.\n primary key (emp_id),\n foreign key (job_id) references jobs(job_id)\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE titles (\n `title_id` text, -- title id.\n `title` text, -- title.\n `type` text, -- type of titles.\n `pub_id` text, -- publisher id.\n `price` real, -- price.\n `advance` real, -- pre-paid amount.\n `royalty` integer, -- royalty.\n `ytd_sales` integer, -- year to date sales.\n `notes` text, -- notes if any. had better understand notes contents and put some of them into questions if any.\n `pubdate` datetime, -- publication date.\n primary key (title_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE authors (\n `au_id` text, -- author id. unique number identifying authors.\n `au_lname` text, -- author last name.\n `au_fname` text, -- author first name.\n `phone` text, -- phone number.\n `address` text, -- address.\n `city` text, -- city.\n `state` text, -- state.\n `zip` text, -- zip code.\n `contract` text, -- contract status. 0: not on the contract. 1: on the contract.\n primary key (au_id)\n);\n\nCREATE TABLE stores (\n `stor_id` text, -- store id. unique id number of stores.\n `stor_name` text, -- store name.\n `stor_address` text, -- store address.\n `city` text, -- city name.\n `state` text, -- state code.\n `zip` text, -- zip code.\n primary key (stor_id)\n);\n\nCREATE TABLE discounts (\n `discounttype` text, -- discount type.\n `stor_id` text, -- store id.\n `lowqty` integer, -- low quantity. low quantity (quantity floor). The minimum quantity to enjoy the discount.\n `highqty` integer, -- high quantity. high quantity (max quantity). The maximum quantity to enjoy the discount.\n `discount` real, -- No description.\n foreign key (stor_id) references stores(stor_id)\n);\n\nCREATE TABLE roysched (\n `title_id` text, -- unique id number identifying title.\n `lorange` integer, -- low range.\n `hirange` integer, -- high range.\n `royalty` integer, -- royalty.\n foreign key (title_id) references titles(title_id)\n);\n\nExternal Knowledge:\nEric the Read Books is a publisher which refers to pub_name;\n\nQuestion:\nList the title name, type, and price of the titles published by New Moon Books. Arrange the list in ascending order of price.", + "question": "List the title name, type, and price of the titles published by New Moon Books. Arrange the list in ascending order of price.", + "evidence": "Eric the Read Books is a publisher which refers to pub_name;", + "db_id": "book_publishing_company", + "database_path": "../databases/book_publishing_company.sqlite", + "gold_sql": "SELECT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' ORDER BY T1.price", + "source_gold_sql": "SELECT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' ORDER BY T1.price", + "source_gold_sql_sha256": "d83a4ed18d37a91259acc152b27cd8e431f60db2439dad217bdcede3465c7c54", + "gold_sql_overridden": false, + "grading_method": "list", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3576", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\njournal 'A combined search for the standard model Higgs boson at s = 1.96   TeV' refers to Title = 'A combined search for the standard model Higgs boson at s = 1.96   TeV'\n\nQuestion:\nWhat is the affiliation of the author writing in the journal 'A combined search for the standard model Higgs boson at s = 1.96   TeV'?", + "question": "What is the affiliation of the author writing in the journal 'A combined search for the standard model Higgs boson at s = 1.96   TeV'?", + "evidence": "journal 'A combined search for the standard model Higgs boson at s = 1.96   TeV' refers to Title = 'A combined search for the standard model Higgs boson at s = 1.96   TeV'", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT DISTINCT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'A combined search for the standard model Higgs boson at s = 1.96   TeV'", + "source_gold_sql": "SELECT DISTINCT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'A combined search for the standard model Higgs boson at s = 1.96   TeV'", + "source_gold_sql_sha256": "e59c861608c431ba4711b755a24cb0da7493ea32bb4ab6385163be705a128f4e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3879", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\nin Casa Grande refers to city = 'Casa Grande'\n\nQuestion:\nHow many of the busineses are in Casa Grande?", + "question": "How many of the busineses are in Casa Grande?", + "evidence": "in Casa Grande refers to city = 'Casa Grande'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande'", + "source_gold_sql": "SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande'", + "source_gold_sql_sha256": "d3bbde4ab8af1030bf02a8a6921135de22405004904384d26c0e3c028a6710d9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6962", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList out the seasons that Niklas Eckerblom played.", + "question": "List out the seasons that Niklas Eckerblom played.", + "evidence": "", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT DISTINCT T1.SEASON FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Niklas Eckerblom'", + "source_gold_sql": "SELECT DISTINCT T1.SEASON FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Niklas Eckerblom'", + "source_gold_sql_sha256": "2bf02774757c0f8071c3cd451173ad5130e55768ad65bdbc772a4de1a4757ed2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:326", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\nbirth date refers to year, month, day; youngest client refers to max(year, month, day)\n\nQuestion:\nWhat is the birth date of the youngest client?", + "question": "What is the birth date of the youngest client?", + "evidence": "birth date refers to year, month, day; youngest client refers to max(year, month, day)", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT year, month, day FROM client \nWHERE year || '-' || month || '-' || day = (\n SELECT year || '-' || month || '-' || day\n FROM client\n ORDER BY year DESC, month DESC, day DESC\n LIMIT 1)", + "source_gold_sql": "SELECT year, month, day FROM client \nWHERE year || '-' || month || '-' || day = (\n SELECT year || '-' || month || '-' || day\n FROM client\n ORDER BY year DESC, month DESC, day DESC\n LIMIT 1)", + "source_gold_sql_sha256": "b2f12e7e980d6d854c7fb7a41d6ba417c9075ec9ae29b71ffb69f47b379ad45f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8632", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nthe most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'\n\nQuestion:\nIn the most populated ward, how many incidents of domestic violence were reported in a bar or tavern?", + "question": "In the most populated ward, how many incidents of domestic violence were reported in a bar or tavern?", + "evidence": "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "WITH most_pop_ward AS (\n SELECT `ward_no`\n FROM `Ward`\n ORDER BY CAST(`Population` AS INTEGER) DESC\n LIMIT 1\n)\nSELECT COUNT(*) AS incident_count\nFROM `Crime`\nWHERE `ward_no` = (SELECT `ward_no` FROM most_pop_ward)\n AND `domestic` = 'TRUE'\n AND `location_description` = 'BAR OR TAVERN';", + "source_gold_sql": "WITH most_pop_ward AS (\n SELECT `ward_no`\n FROM `Ward`\n ORDER BY CAST(`Population` AS INTEGER) DESC\n LIMIT 1\n)\nSELECT COUNT(*) AS incident_count\nFROM `Crime`\nWHERE `ward_no` = (SELECT `ward_no` FROM most_pop_ward)\n AND `domestic` = 'TRUE'\n AND `location_description` = 'BAR OR TAVERN';", + "source_gold_sql_sha256": "ec0adcb9e266be54c9c1327ea34953e297152ee48312916338feec1023445e3a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7410", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nhashed password refers to PasswordHash;\n\nQuestion:\nWhat is the hashed password of David Bradley?", + "question": "What is the hashed password of David Bradley?", + "evidence": "hashed password refers to PasswordHash;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T2.PasswordHash FROM Person AS T1 INNER JOIN Password AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley'", + "source_gold_sql": "SELECT T2.PasswordHash FROM Person AS T1 INNER JOIN Password AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley'", + "source_gold_sql_sha256": "c9880aa902e0bb47c250afa4a84882d08119a22b0ab804a862f736a1ad8c17a8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9050", + "domain": "bike_share_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trip (\n `id` integer, -- No description.\n `duration` integer, -- The duration of the trip in seconds. duration = end_date - start_date.\n `start_date` text, -- start date.\n `start_station_name` text, -- start station name. The name of the start station. It represents the station name the bike borrowed from.\n `start_station_id` integer, -- start station id. The ID of the start station.\n `end_date` text, -- end date.\n `end_station_name` text, -- end station name. The name of the end station. It represents the station name the bike returned to.\n `end_station_id` integer, -- end station id. The ID of the end station.\n `bike_id` integer, -- bike id. The ID of the bike.\n `subscription_type` text, -- subscription type. Allowed input: Subscriber, Customer.\n `zip_code` integer, -- zip code.\n primary key (id)\n);\n\nCREATE TABLE weather (\n `date` text, -- No description.\n `max_temperature_f` integer, -- max temperature in Fahrenheit degree. It represents the hottest temperature.\n `mean_temperature_f` integer, -- mean temperature in Fahrenheit degree.\n `min_temperature_f` integer, -- min temperature in Fahrenheit degree. It represents the coldest temperature.\n `max_dew_point_f` integer, -- max dew point in Fahrenheit degree.\n `mean_dew_point_f` integer, -- mean dew point in Fahrenheit degree.\n `min_dew_point_f` integer, -- min dew point in Fahrenheit degree.\n `max_humidity` integer, -- max humidity.\n `mean_humidity` integer, -- mean humidity.\n `min_humidity` integer, -- min humidity.\n `max_sea_level_pressure_inches` real, -- max sea level pressure in inches.\n `mean_sea_level_pressure_inches` real, -- mean sea level pressure in inches.\n `min_sea_level_pressure_inches` real, -- min sea level pressure in inches.\n `max_visibility_miles` integer, -- max visibility in miles.\n `mean_visibility_miles` integer, -- mean visibility in miles.\n `min_visibility_miles` integer, -- min visibility in miles.\n `max_wind_Speed_mph` integer, -- max wind Speed in mph.\n `mean_wind_speed_mph` integer, -- mean wind Speed in mph.\n `max_gust_speed_mph` integer, -- max gust Speed in mph.\n `precipitation_inches` text, -- precipitation in inches.\n `cloud_cover` integer, -- cloud cover.\n `events` text, -- Allowed input: [null], Rain, other.\n `wind_dir_degrees` integer, -- wind direction degrees.\n `zip_code` text, -- zip code.\n\n);\n\nCREATE TABLE station (\n `id` integer, -- unique ID for each station.\n `name` text, -- Station name.\n `lat` real, -- latitude. Can represent the location of the station when combined with longitude.\n `long` real, -- longitude. Can represent the location of the station when combined with. latitude.\n `dock_count` integer, -- dock count. number of bikes the station can hold.\n `city` text, -- No description.\n `installation_date` text, -- installation date.\n primary key (id)\n);\n\nCREATE TABLE status (\n `station_id` integer, -- station id.\n `bikes_available` integer, -- number of available bikes. 0 means no bike can be borrowed.\n `docks_available` integer, -- number of available docks. 0 means no bike can be returned to this station.\n `time` text, -- No description.\n\n);\n\nExternal Knowledge:\nstart station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;\n\nQuestion:\nHow many trips which start station and end station are the same?", + "question": "How many trips which start station and end station are the same?", + "evidence": "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", + "db_id": "bike_share_1", + "database_path": "../databases/bike_share_1.sqlite", + "gold_sql": "SELECT SUM(IIF(start_station_id = end_station_id, 1, 0)) FROM trip", + "source_gold_sql": "SELECT SUM(IIF(start_station_id = end_station_id, 1, 0)) FROM trip", + "source_gold_sql_sha256": "6abd5744a31122e432f5ad012062b66148b87255448b1330bc331580e91ae254", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6017", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)\n\nQuestion:\nWhat is the most expensive price paid by a customer for the book \"Bite Me If You Can (Argeneau #6)\"?", + "question": "What is the most expensive price paid by a customer for the book \"Bite Me If You Can (Argeneau #6)\"?", + "evidence": "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'Bite Me If You Can (Argeneau #6)'", + "source_gold_sql": "SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'Bite Me If You Can (Argeneau #6)'", + "source_gold_sql_sha256": "d40d912f0d179782657fb359824b29daff14f5de56183284e4927122ba933bcc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7468", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat is the name of the product the work order \"2540\" was making?", + "question": "What is the name of the product the work order \"2540\" was making?", + "evidence": "", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T2.Name FROM WorkOrder AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.WorkOrderID = 2540", + "source_gold_sql": "SELECT T2.Name FROM WorkOrder AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.WorkOrderID = 2540", + "source_gold_sql_sha256": "6293292e089466118ae21b94eea8e6dd7adcee91b12bf2778ef3745af3c0a667", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2804", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\nfrom year 2000 to 2010 refers to year between 2000 and 2010; more game lost then won refers to lost > won\n\nQuestion:\nList all the coaches with more game lost than won from year 2000-2010. List the coach ID, team name and year.", + "question": "List all the coaches with more game lost than won from year 2000-2010. List the coach ID, team name and year.", + "evidence": "from year 2000 to 2010 refers to year between 2000 and 2010; more game lost then won refers to lost > won", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "SELECT c.coachID,\n t.`name` AS team_name,\n c.`year`\nFROM `coaches` c\nJOIN `teams` t\n ON c.`tmID` = t.`tmID`\n AND c.`year` = t.`year`\nWHERE c.`year` BETWEEN 2000 AND 2010\n AND c.`lost` > c.`won`;", + "source_gold_sql": "SELECT c.coachID,\n t.`name` AS team_name,\n c.`year`\nFROM `coaches` c\nJOIN `teams` t\n ON c.`tmID` = t.`tmID`\n AND c.`year` = t.`year`\nWHERE c.`year` BETWEEN 2000 AND 2010\n AND c.`lost` > c.`won`;", + "source_gold_sql_sha256": "16bdbed33873299fa2da228ac582201e8e22ba510eedfffb227550c077e5a24b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3677", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nUniversity of Hong Kong' is an affiliation\n\nQuestion:\nHow many papers were written by authors who cooperated with University of Hong Kong?", + "question": "How many papers were written by authors who cooperated with University of Hong Kong?", + "evidence": "University of Hong Kong' is an affiliation", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T2.`PaperId`) FROM `Author` AS T1 JOIN `PaperAuthor` AS T2 ON T1.`Id` = T2.`AuthorId` WHERE T1.`Affiliation` = 'University of Hong Kong';", + "source_gold_sql": "SELECT COUNT(DISTINCT T2.`PaperId`) FROM `Author` AS T1 JOIN `PaperAuthor` AS T2 ON T1.`Id` = T2.`AuthorId` WHERE T1.`Affiliation` = 'University of Hong Kong';", + "source_gold_sql_sha256": "86c9f3dd90e0e88532fac458a57e770157df589c680546fcfafb1d9d014b8895", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3661", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nIEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = ’IEEE Computer’\n\nQuestion:\nHow many author have published papers in the 'IEEE Computer' journal?", + "question": "How many author have published papers in the 'IEEE Computer' journal?", + "evidence": "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = ’IEEE Computer’", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT pa.AuthorId) FROM PaperAuthor AS pa JOIN Paper AS p ON pa.PaperId = p.Id JOIN Journal AS j ON p.JournalId = j.Id WHERE j.FullName = 'IEEE Computer';", + "source_gold_sql": "SELECT COUNT(DISTINCT pa.AuthorId) FROM PaperAuthor AS pa JOIN Paper AS p ON pa.PaperId = p.Id JOIN Journal AS j ON p.JournalId = j.Id WHERE j.FullName = 'IEEE Computer';", + "source_gold_sql_sha256": "9433777a3aa4eadcc3677a8840a9341329215f1f2f1efbd83986abbd56659c95", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5310", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nbrand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));\n\nQuestion:\nWhat brand of beer has been the worst rated most times?", + "question": "What brand of beer has been the worst rated most times?", + "evidence": "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 GROUP BY T1.BrandName ORDER BY COUNT(T1.BrandName) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 GROUP BY T1.BrandName ORDER BY COUNT(T1.BrandName) DESC LIMIT 1", + "source_gold_sql_sha256": "3e3f060a66b3668d196d7a4b727bd92c467e4d3298846dc85a1deca17aa86e99", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6576", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\nname products refers to ProductName; 'Nancy Davolio' is the full name of an employee; full name refers to FirstName, LastName;\n\nQuestion:\nName products and their quantity in the sales order that was processed by Nancy Davolio.", + "question": "Name products and their quantity in the sales order that was processed by Nancy Davolio.", + "evidence": "name products refers to ProductName; 'Nancy Davolio' is the full name of an employee; full name refers to FirstName, LastName;", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "SELECT p.`ProductName`, od.`Quantity` FROM `Employees` AS e JOIN `Orders` AS o ON e.`EmployeeID` = o.`EmployeeID` JOIN `Customers` AS c ON o.`CustomerID` = c.`CustomerID` JOIN `OrderDetails` AS od ON o.`OrderID` = od.`OrderID` JOIN `Products` AS p ON od.`ProductID` = p.`ProductID` WHERE e.`FirstName` = 'Nancy' AND e.`LastName` = 'Davolio'", + "source_gold_sql": "SELECT p.`ProductName`, od.`Quantity` FROM `Employees` AS e JOIN `Orders` AS o ON e.`EmployeeID` = o.`EmployeeID` JOIN `Customers` AS c ON o.`CustomerID` = c.`CustomerID` JOIN `OrderDetails` AS od ON o.`OrderID` = od.`OrderID` JOIN `Products` AS p ON od.`ProductID` = p.`ProductID` WHERE e.`FirstName` = 'Nancy' AND e.`LastName` = 'Davolio'", + "source_gold_sql_sha256": "c757cc0b791712dae435976acb3864aa4f1a0d5dc6a93768389e7f3ce06b072e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5221", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\nWho are the congress representatives refer to first_name, last_name; Garfield is the city; NJ is the state\n\nQuestion:\nWho are the congress representatives of the postal points in Garfield, NJ?", + "question": "Who are the congress representatives of the postal points in Garfield, NJ?", + "evidence": "Who are the congress representatives refer to first_name, last_name; Garfield is the city; NJ is the state", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.city = 'Garfield' and T1.state = 'NJ'", + "source_gold_sql": "SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.city = 'Garfield' and T1.state = 'NJ'", + "source_gold_sql_sha256": "26fe07bf5b945605bcc3e9649adc0f681021c194ce90ce58280b8cc7814aaf16", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4667", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWho are the voice actors for all the heroes?", + "question": "Who are the voice actors for all the heroes?", + "evidence": "", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.character = T1.hero WHERE T2.movie = T1.movie_title", + "source_gold_sql": "SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.character = T1.hero WHERE T2.movie = T1.movie_title", + "source_gold_sql_sha256": "6eaaec23cea4a43203d75e1f774dbe29860bb17c39647eab1edaea8d598ee3ee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5309", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nbrands of beer refers to BrandName;\n\nQuestion:\nWhat brands of beer has Peg Winchester reviewed?", + "question": "What brands of beer has Peg Winchester reviewed?", + "evidence": "brands of beer refers to BrandName;", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Peg' AND T1.Last = 'Winchester'", + "source_gold_sql": "SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Peg' AND T1.Last = 'Winchester'", + "source_gold_sql_sha256": "a69f777e5a4ac6f0551f7c5411c152a8917d143a990d0a0243066169947e1469", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9079", + "domain": "bike_share_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trip (\n `id` integer, -- No description.\n `duration` integer, -- The duration of the trip in seconds. duration = end_date - start_date.\n `start_date` text, -- start date.\n `start_station_name` text, -- start station name. The name of the start station. It represents the station name the bike borrowed from.\n `start_station_id` integer, -- start station id. The ID of the start station.\n `end_date` text, -- end date.\n `end_station_name` text, -- end station name. The name of the end station. It represents the station name the bike returned to.\n `end_station_id` integer, -- end station id. The ID of the end station.\n `bike_id` integer, -- bike id. The ID of the bike.\n `subscription_type` text, -- subscription type. Allowed input: Subscriber, Customer.\n `zip_code` integer, -- zip code.\n primary key (id)\n);\n\nCREATE TABLE weather (\n `date` text, -- No description.\n `max_temperature_f` integer, -- max temperature in Fahrenheit degree. It represents the hottest temperature.\n `mean_temperature_f` integer, -- mean temperature in Fahrenheit degree.\n `min_temperature_f` integer, -- min temperature in Fahrenheit degree. It represents the coldest temperature.\n `max_dew_point_f` integer, -- max dew point in Fahrenheit degree.\n `mean_dew_point_f` integer, -- mean dew point in Fahrenheit degree.\n `min_dew_point_f` integer, -- min dew point in Fahrenheit degree.\n `max_humidity` integer, -- max humidity.\n `mean_humidity` integer, -- mean humidity.\n `min_humidity` integer, -- min humidity.\n `max_sea_level_pressure_inches` real, -- max sea level pressure in inches.\n `mean_sea_level_pressure_inches` real, -- mean sea level pressure in inches.\n `min_sea_level_pressure_inches` real, -- min sea level pressure in inches.\n `max_visibility_miles` integer, -- max visibility in miles.\n `mean_visibility_miles` integer, -- mean visibility in miles.\n `min_visibility_miles` integer, -- min visibility in miles.\n `max_wind_Speed_mph` integer, -- max wind Speed in mph.\n `mean_wind_speed_mph` integer, -- mean wind Speed in mph.\n `max_gust_speed_mph` integer, -- max gust Speed in mph.\n `precipitation_inches` text, -- precipitation in inches.\n `cloud_cover` integer, -- cloud cover.\n `events` text, -- Allowed input: [null], Rain, other.\n `wind_dir_degrees` integer, -- wind direction degrees.\n `zip_code` text, -- zip code.\n\n);\n\nCREATE TABLE station (\n `id` integer, -- unique ID for each station.\n `name` text, -- Station name.\n `lat` real, -- latitude. Can represent the location of the station when combined with longitude.\n `long` real, -- longitude. Can represent the location of the station when combined with. latitude.\n `dock_count` integer, -- dock count. number of bikes the station can hold.\n `city` text, -- No description.\n `installation_date` text, -- installation date.\n primary key (id)\n);\n\nCREATE TABLE status (\n `station_id` integer, -- station id.\n `bikes_available` integer, -- number of available bikes. 0 means no bike can be borrowed.\n `docks_available` integer, -- number of available docks. 0 means no bike can be returned to this station.\n `time` text, -- No description.\n\n);\n\nExternal Knowledge:\nsubscriber refers to subscription_type = 'Subscriber'; customer refers to subscription_type = 'Customer';starting station refers to start_station_name; ending station refers to end_statio_name; start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'\n\nQuestion:\nWhat is the ratio for subscriber to customer given that the starting and the ending stations is 2nd at South Park?", + "question": "What is the ratio for subscriber to customer given that the starting and the ending stations is 2nd at South Park?", + "evidence": "subscriber refers to subscription_type = 'Subscriber'; customer refers to subscription_type = 'Customer';starting station refers to start_station_name; ending station refers to end_statio_name; start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'", + "db_id": "bike_share_1", + "database_path": "../databases/bike_share_1.sqlite", + "gold_sql": "SELECT CAST(SUM(IIF(subscription_type = 'Subscriber', 1, 0)) AS REAL) / SUM(IIF(subscription_type = 'Customer', 1, 0)) FROM trip WHERE start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'", + "source_gold_sql": "SELECT CAST(SUM(IIF(subscription_type = 'Subscriber', 1, 0)) AS REAL) / SUM(IIF(subscription_type = 'Customer', 1, 0)) FROM trip WHERE start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'", + "source_gold_sql_sha256": "307f9ca447bb781260c52f494e6af7ab865df87ab6df786f5253083840f57f9e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1297", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nepisode refers to award; the Primetime Emmy Awards refers to award_category like 'Primetime Emmy'\n\nQuestion:\nWhich episodes of the Law & Order have been nominated for the Primetime Emmy Awards? List the titles of these episodes.", + "question": "Which episodes of the Law & Order have been nominated for the Primetime Emmy Awards? List the titles of these episodes.", + "evidence": "episode refers to award; the Primetime Emmy Awards refers to award_category like 'Primetime Emmy'", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "SELECT DISTINCT e.`title` FROM `Award` a JOIN `Episode` e ON a.`episode_id` = e.`episode_id` WHERE a.`award_category` = 'Primetime Emmy' AND a.`series` = 'Law and Order';", + "source_gold_sql": "SELECT DISTINCT e.`title` FROM `Award` a JOIN `Episode` e ON a.`episode_id` = e.`episode_id` WHERE a.`award_category` = 'Primetime Emmy' AND a.`series` = 'Law and Order';", + "source_gold_sql_sha256": "85ec80bcd49ffb79daa13c55479b1f9cc702c2f5251a21b8e1108b261321f7a8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5126", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nName both the alias and the bad alias of zip code 38015.", + "question": "Name both the alias and the bad alias of zip code 38015.", + "evidence": "", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT T1.alias, T2.bad_alias FROM alias AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 38015", + "source_gold_sql": "SELECT T1.alias, T2.bad_alias FROM alias AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 38015", + "source_gold_sql_sha256": "1413287c28a4d19207aa169bf0d27ea883599b1f7d2ad9efee6ad4f38ddedab0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5827", + "domain": "airline", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Airports (\n `Code` text, -- IATA code of the air airports.\n `Description` text, -- the description of airports.\n primary key (Code)\n);\n\nCREATE TABLE Airlines (\n `FL_DATE` text, -- flight date.\n `OP_CARRIER_AIRLINE_ID` integer, -- operator carrier airline id.\n `TAIL_NUM` text, -- tail number. plane's tail number.\n `OP_CARRIER_FL_NUM` integer, -- operator carrier flight number.\n `ORIGIN_AIRPORT_ID` integer, -- origin airport id.\n `ORIGIN_AIRPORT_SEQ_ID` integer, -- origin airport sequence id.\n `ORIGIN_CITY_MARKET_ID` integer, -- origin city market id.\n `ORIGIN` text, -- airport of origin. • the origin city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `DEST_AIRPORT_ID` integer, -- destination airport id. ID of the destination airport.\n `DEST_AIRPORT_SEQ_ID` integer, -- destination airport sequence id.\n `DEST_CITY_MARKET_ID` integer, -- destination city market id.\n `DEST` text, -- destination. Destination airport. • the dest city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `CRS_DEP_TIME` integer, -- scheduled local departure time.\n `DEP_TIME` integer, -- departure time. Flight departure time. stored as the integer.\n `DEP_DELAY` integer, -- Departure delay. Departure delay indicator. in minutes. • if this value is positive: it means this flight delays; if the value is negative, it means this flight departs in advance (-4). • if this value <= 0, it means this flight departs on time.\n `DEP_DELAY_NEW` integer, -- departure delay new. not useful.\n `ARR_TIME` integer, -- arrival time. Flight arrival time.\n `ARR_DELAY` integer, -- arrival delay. arrival delay time. in minutes. • if this value is positive: it means this flight will arrives late (delay); If the value is negative, this flight arrives earlier than scheduled. (-4). • if this value <= 0, it means this flight arrives on time.\n `ARR_DELAY_NEW` integer, -- arrival delay new. not useful.\n `CANCELLED` integer, -- Flight cancellation indicator.\n `CANCELLATION_CODE` text, -- cancellation code. C--> A: more serious reasons lead to this cancellation.\n `CRS_ELAPSED_TIME` integer, -- scheduled elapsed time.\n `ACTUAL_ELAPSED_TIME` integer, -- actual elapsed time. if ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME: this flight is faster than scheduled; if ACTUAL_ELAPSED_TIME > CRS_ELAPSED_TIME: this flight is slower than scheduled.\n `CARRIER_DELAY` integer, -- carrier delay. minutes.\n `WEATHER_DELAY` integer, -- weather delay. delay caused by the wheather problem. minutes.\n `NAS_DELAY` integer, -- National Aviavtion System delay. delay, in minutes, attributable to the National Aviation System. minutes.\n `SECURITY_DELAY` integer, -- security delay. delay attribute to security. minutes.\n `LATE_AIRCRAFT_DELAY` integer, -- late aircraft delay. delay attribute to late aircraft. minutes.\n FOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n FOREIGN KEY (DEST) REFERENCES Airports(Code),\n FOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code)\n);\n\nCREATE TABLE Air Carriers (\n `Code` integer, -- the code of the air carriers.\n `Description` text, -- the description of air carriers.\n primary key (Code)\n);\n\nExternal Knowledge:\ndeparting from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;\n\nQuestion:\nAmong the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?", + "question": "Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?", + "evidence": "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", + "db_id": "airline", + "database_path": "../databases/airline.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International'", + "source_gold_sql": "SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International'", + "source_gold_sql_sha256": "aa792e8d27eecdb26c4ad39872100cbb53e6ffd7b3ff25fde7497bff45f076a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3657", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\n'University of Illinois Chicago' is an affiliation\n\nQuestion:\nList the name of the author that affiliated with University of Illinois Chicago?", + "question": "List the name of the author that affiliated with University of Illinois Chicago?", + "evidence": "'University of Illinois Chicago' is an affiliation", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT Name FROM Author WHERE Affiliation = 'University of Illinois Chicago'", + "source_gold_sql": "SELECT Name FROM Author WHERE Affiliation = 'University of Illinois Chicago'", + "source_gold_sql_sha256": "851bb5afda30e418790dccb3ff98ce41c6ed62509bfa928267a42df707d2eb2f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:919", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nGPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;\n\nQuestion:\nGPA of the semester refers to student.gpa", + "question": "GPA of the semester refers to student.gpa", + "evidence": "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT s.gpa\nFROM student s\nJOIN registration r ON s.student_id = r.student_id\nJOIN course c ON r.course_id = c.course_id\nWHERE s.f_name = 'Laughton'\n AND s.l_name = 'Antonio';", + "source_gold_sql": "SELECT s.gpa\nFROM student s\nJOIN registration r ON s.student_id = r.student_id\nJOIN course c ON r.course_id = c.course_id\nWHERE s.f_name = 'Laughton'\n AND s.l_name = 'Antonio';", + "source_gold_sql_sha256": "6a1e4ee6f1874c74f4907128abb3af526eb53c2fd2822d48f87381bfef2a0000", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7128", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\ngeographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;\n\nQuestion:\nPlease list the business entity ID of sales persons with a commission percentage of 0.018 or above, along with each sales person's assigned geographical location.", + "question": "Please list the business entity ID of sales persons with a commission percentage of 0.018 or above, along with each sales person's assigned geographical location.", + "evidence": "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T1.BusinessEntityID, T2.'Group' FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 USING (territoryid) WHERE T1.CommissionPct >= 0.018", + "source_gold_sql": "SELECT T1.BusinessEntityID, T2.'Group' FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 USING (territoryid) WHERE T1.CommissionPct >= 0.018", + "source_gold_sql_sha256": "bd5b36e445303696cc70ce6537b27487927f71245c6f73e976de660bbd604069", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:902", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nprofessor with the highest research ability refers to prof_id where MAX(capability);\n\nQuestion:\nWhat is the popularity of the professor who advises the highest number of students with the highest research ability?", + "question": "What is the popularity of the professor who advises the highest number of students with the highest research ability?", + "evidence": "professor with the highest research ability refers to prof_id where MAX(capability);", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "WITH prof_ra_num AS (\n SELECT p.popularity, COUNT(*) num\n FROM prof p\n JOIN RA r ON r.prof_id = p.prof_id\n WHERE r.capability = (SELECT MAX(capability) FROM RA)\n GROUP BY p.prof_id)\nSELECT popularity FROM prof_ra_num WHERE num = (SELECT MAX(num) FROm prof_ra_num)", + "source_gold_sql": "WITH prof_ra_num AS (\n SELECT p.popularity, COUNT(*) num\n FROM prof p\n JOIN RA r ON r.prof_id = p.prof_id\n WHERE r.capability = (SELECT MAX(capability) FROM RA)\n GROUP BY p.prof_id)\nSELECT popularity FROM prof_ra_num WHERE num = (SELECT MAX(num) FROm prof_ra_num)", + "source_gold_sql_sha256": "ce1160b39e2d6ff88d0561a338b240f43ee6352a7d0dfb7752ae4ffdf3ebe92b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3038", + "domain": "shakespeare", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE chapters (\n `id` integer auto_increment, -- unique id number identifying the chapter.\n `Act` integer, -- An act is a major division of a theatre work, including a play, film, opera, or musical theatre. An act can consist of one or more scenes.\n `Scene` integer, -- A scene is a dramatic part of a story, at a specific time and place, between specific characters.\n `Description` text, -- textual description of the chapter.\n `work_id` integer, -- work id. id number identifying the work.\n primary key (id)\n);\n\nCREATE TABLE paragraphs (\n `id` integer , -- unique id number identifying the paragraphs.\n `ParagraphNum` integer, -- paragraph number. unique id number identifying the paragraph number.\n `PlainText` text, -- Plain Text. main content of the paragraphs.\n `character_id` integer, -- character id. unique id number identifying the mentioned character.\n `chapter_id` integer, -- chapter id. unique id number identifying the related chapter. if number of the paragraphs is > 150, then it means this is a long chapter.\n primary key (id)\n);\n\nCREATE TABLE characters (\n `id` integer, -- unique id number identifying the characters.\n `CharName` text, -- char name. character name.\n `Abbrev` text, -- abbreviation. abbreviation. An abbreviation is a shortened form of a word or phrase.\n `Description` text, -- description of the character.\n primary key (id)\n);\n\nCREATE TABLE works (\n `id` integer, -- unique id number identifying the work.\n `Title` text, -- title of the work. the short title or abbreviated title.\n `LongTitle` text, -- Long Title. full title of the work.\n `Date` integer, -- character id. date of the work.\n `GenreType` text, -- genre type. the type of the genere.\n primary key (id)\n);\n\nExternal Knowledge:\nname Gratiano as a character refers to CharName = 'Gratiano'; \"friend to Antonio and Bassiano\" refers to characters.Description = 'friend to Antonio and Bassiano'\n\nQuestion:\nHow many chapters have the name Gratiano as a character for \"friend to Antonio and Bassiano\"?", + "question": "How many chapters have the name Gratiano as a character for \"friend to Antonio and Bassiano\"?", + "evidence": "name Gratiano as a character refers to CharName = 'Gratiano'; \"friend to Antonio and Bassiano\" refers to characters.Description = 'friend to Antonio and Bassiano'", + "db_id": "shakespeare", + "database_path": "../databases/shakespeare.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Gratiano' AND T1.Description = 'friend to Antonio and Bassiano'", + "source_gold_sql": "SELECT COUNT(DISTINCT T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Gratiano' AND T1.Description = 'friend to Antonio and Bassiano'", + "source_gold_sql_sha256": "e082eda19e93f46135988cb935d96618dd3839cdc062cecb8e603cf8875f14f1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1395", + "domain": "synthea", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE procedures (\n `DATE` date, -- the date of the procedure. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the procedure.\n `DESCRIPTION` text, -- the description of the procedure.\n `REASONCODE` integer, -- reason code. the code of the reason.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the procedure.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE immunizations (\n `DATE` date, -- the date of the immunization. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the immunization.\n `DESCRIPTION` text, -- the description of the immunization.\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE conditions (\n `START` date, -- the start date of the allergy. mm/dd/yy.\n `STOP` date, -- the stop date of the allergy. mm/dd/yy.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the condition.\n `DESCRIPTION` text, -- the description of the patient condition.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);\n\nCREATE TABLE all_prevalences (\n `ITEM` text, -- the prevalent disease.\n `POPULATION TYPE` text, -- population type. the population type - LIVING.\n `OCCURRENCES` integer, -- the number of occurrences.\n `POPULATION COUNT` integer, -- population count. the number of the counted populations.\n `PREVALENCE RATE` real, -- prevalence rate. the prevalence rate. prevalence rate = occurrences / population_count.\n `PREVALENCE PERCENTAGE` real, -- prevalence percentage. the prevalence percentage. prevalence rate = occurrences / population_count * 100.\n primary key (ITEM)\n);\n\nCREATE TABLE encounters (\n `ID` text, -- the unique id of the encounter.\n `DATE` date, -- the date of the encounter. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `CODE` integer, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n primary key (ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE careplans (\n `ID` text, -- the unique id of the care plan.\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. care plan period:. stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` real, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE medications (\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. Time of taking medicine.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the medication.\n `DESCRIPTION` text, -- the description of the medication.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the medication.\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE patients (\n `patient` text, -- the unique id for the patient.\n `birthdate` date, -- birth date. the birth date of the patient.\n `deathdate` date, -- death date. the death date of the patient. • the age of the patient = death year - birth year. • if null, it means this patient is still alive.\n `ssn` text, -- social security number. the social security number of the patient.\n `drivers` text, -- the driver number of the patient. if not, this patient doesn't have driving license.\n `passport` text, -- the passport number. if not, this patient cannot go abroad, vice versa.\n `prefix` text, -- the prefix.\n `first` text, -- the first name.\n `last` text, -- the last name. full name = first + last.\n `suffix` text, -- the suffix of the patient. if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n `maiden` text, -- the maiden name of the patient. Only married women have the maiden name.\n `marital` text, -- the marital status of the patient. • M: married. • S: single.\n `race` text, -- the race of the patient.\n `ethnicity` text, -- the ethnicity of the patient.\n `gender` text, -- the gender of the patient.\n `birthplace` text, -- birth place. the birth place.\n `address` text, -- the specific address.\n primary key (patient)\n);\n\nCREATE TABLE allergies (\n `START` text, -- the start date of the allergy. mm/dd/yy.\n `STOP` text, -- the stop date of the allergy. mm/dd/yy. allergy period = stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the allergy.\n `DESCRIPTION` text, -- the description of the allergy.\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE claims (\n `ID` text, -- the unique id of the claim.\n `PATIENT` text, -- the patient id.\n `BILLABLEPERIOD` date, -- billable period. the start date of the billable. yyyy-mm-dd.\n `ORGANIZATION` text, -- the claim organization.\n `ENCOUNTER` text, -- the medical encounter id.\n `DIAGNOSIS` text, -- the diagnosis.\n `TOTAL` integer, -- the length of the billable period.\n primary key (ID)\n);\n\nCREATE TABLE observations (\n `DATE` date, -- the date of the observation. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` text, -- the code of the observation type.\n `DESCRIPTION` text, -- the description of the observation.\n `VALUE` real, -- the observation value.\n `UNITS` text, -- the units of the observation value. DESCRIPTION + VALUE + UNITS could be a fact:. e.g.: body height of patient xxx is 166.03 cm:. body height is in DESCRIPTION. 166.03 is in VALUE. cm is in UNITS.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nExternal Knowledge:\npatients born in 1920s refer to patient where birthdate like '192%'; pneumonia refers to DESCRIPTION = 'Pneumonia' from conditions;\n\nQuestion:\nHow many of the patients born in 1920s had pneumonia?", + "question": "How many of the patients born in 1920s had pneumonia?", + "evidence": "patients born in 1920s refer to patient where birthdate like '192%'; pneumonia refers to DESCRIPTION = 'Pneumonia' from conditions;", + "db_id": "synthea", + "database_path": "../databases/synthea.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE DESCRIPTION = 'Pneumonia' AND strftime('%Y', T1.birthdate) LIKE '192%'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE DESCRIPTION = 'Pneumonia' AND strftime('%Y', T1.birthdate) LIKE '192%'", + "source_gold_sql_sha256": "96318db39e5a53fd6160566a628e63f268ff775a79aa94107c931e945e2abe6c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3946", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\ntotal number of fans or followers refers to user_fans; most likes on their comments refer to MAX(SUM(likes))\n\nQuestion:\nWhat is the total number of fans or followers of the users who received the most likes on their comments in the business?", + "question": "What is the total number of fans or followers of the users who received the most likes on their comments in the business?", + "evidence": "total number of fans or followers refers to user_fans; most likes on their comments refer to MAX(SUM(likes))", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "WITH user_total_likes AS (\n SELECT \n user_id,\n SUM(likes) AS total_likes\n FROM Tips\n GROUP BY user_id\n)\nSELECT U.user_fans\nFROM Users U\nINNER JOIN user_total_likes UTL ON U.user_id = UTL.user_id\nWHERE UTL.total_likes = (\n SELECT MAX(total_likes) \n FROM user_total_likes\n);", + "source_gold_sql": "WITH user_total_likes AS (\n SELECT \n user_id,\n SUM(likes) AS total_likes\n FROM Tips\n GROUP BY user_id\n)\nSELECT U.user_fans\nFROM Users U\nINNER JOIN user_total_likes UTL ON U.user_id = UTL.user_id\nWHERE UTL.total_likes = (\n SELECT MAX(total_likes) \n FROM user_total_likes\n);", + "source_gold_sql_sha256": "c8b88b790a6c1e8b9b4bde4084d97c8a0473c4fb84f3fcf5a9b0e59d174d3a5d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5234", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nname of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;\n\nQuestion:\nPlease list the names of all the root beer brands that are advertised on facebook.", + "question": "Please list the names of all the root beer brands that are advertised on facebook.", + "evidence": "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT BrandName FROM rootbeerbrand WHERE FacebookPage IS NOT NULL", + "source_gold_sql": "SELECT BrandName FROM rootbeerbrand WHERE FacebookPage IS NOT NULL", + "source_gold_sql_sha256": "2db968d4e25bf739e90b48d8fadd12d296f8e810b36fd143e941fa13a55af150", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3108", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\nfrom Japan refers to country = 'Japan'; weighed less than 3000 refers to weight < 3000\n\nQuestion:\nHow many of the cars from Japan weighed less than 3000?", + "question": "How many of the cars from Japan weighed less than 3000?", + "evidence": "from Japan refers to country = 'Japan'; weighed less than 3000 refers to weight < 3000", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT d.`ID`)\nFROM `data` AS d\nJOIN `production` AS p ON p.`ID` = d.`ID`\nJOIN `country` AS c ON c.`origin` = p.`country`\nWHERE c.`country` = 'Japan'\n AND d.`weight` < 3000;", + "source_gold_sql": "SELECT COUNT(DISTINCT d.`ID`)\nFROM `data` AS d\nJOIN `production` AS p ON p.`ID` = d.`ID`\nJOIN `country` AS c ON c.`origin` = p.`country`\nWHERE c.`country` = 'Japan'\n AND d.`weight` < 3000;", + "source_gold_sql_sha256": "b39956ebb31e7d2214cadb9dd910e1a71bd5fdae7a9f4d9baa141d27a6803b35", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:761", + "domain": "movie", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movie (\n `MovieID` integer, -- movie id. the unique id for the movie.\n `Title` text, -- the title of the movie.\n `MPAA Rating` text, -- motion picture association of america rating. MPAA rating of the movie. MPAA rating is the movie rating for parents to use as a guide to determine the appropriateness of a film's content for children and teenagers. • rated G: General audiences – All ages admitted. • rated PG: Parental guidance suggested – Some material may not be suitable for pre-teenagers. • rated R: Restricted – Under 17 requires accompanying parent or adult guardian. • rated X: No one under 17 admitted.\n `Budget` integer, -- the budget of the movie. the unit is dollar.\n `Gross` integer, -- the gross of the movie.\n `Release Date` text, -- release date. yyyy-mm-dd.\n `Genre` text, -- the genre of the movie.\n `Runtime` integer, -- the runtime of the movie.\n `Rating` real, -- the rating of the movie. 0.0 - 10.0. Higher ratings mean higher quality and better response.\n `Rating Count` integer, -- rating count. the number of the ratings.\n `Summary` text, -- the summary of the movie.\n primary key (MovieID)\n);\n\nCREATE TABLE characters (\n `MovieID` integer, -- movie id. the unique id for the movie.\n `ActorID` integer, -- actor id. the unique id for the actor.\n `Character Name` text, -- character name. the name of the character.\n `creditOrder` integer, -- credit order. order of the character in the credit list.\n `pay` text, -- the salary of the character.\n `screentime` text, -- the screentime of the character. Screentime is directly proportional to the importance of the characters.\n primary key (MovieID, ActorID),\n foreign key (ActorID) references actor(ActorID),\n foreign key (MovieID) references movie(MovieID)\n);\n\nCREATE TABLE actor (\n `ActorID` integer, -- actor id. the unique id for the actor.\n `Name` text, -- actor's name.\n `Date of Birth` date, -- date of birth. actor's birth date.\n `Birth City` text, -- birth city. actor's birth city.\n `Birth Country` text, -- birth country. actor's birth country.\n `Height (Inches)` integer, -- height inches. actor's height. the unit is inch.\n `Biography` text, -- actor's biography.\n `Gender` text, -- actor's gender.\n `Ethnicity` text, -- actor's ethnicity.\n `NetWorth` text, -- actor's networth. The actor with more networth is richer.\n primary key (ActorID)\n);\n\nExternal Knowledge:\nmale refers to Gender = 'Male'; white refers to Ethnicity = 'White'\n\nQuestion:\nWhat is the name of male and white actor with actor ID 439?", + "question": "What is the name of male and white actor with actor ID 439?", + "evidence": "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", + "db_id": "movie", + "database_path": "../databases/movie.sqlite", + "gold_sql": "SELECT Name FROM actor WHERE ActorID = 439 AND Gender = 'Male' AND Ethnicity = 'White'", + "source_gold_sql": "SELECT Name FROM actor WHERE ActorID = 439 AND Gender = 'Male' AND Ethnicity = 'White'", + "source_gold_sql_sha256": "20ca53dc0db4521b536c9039e8846e9406df539827adff019f6563c472c11110", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1562", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\nexpected profits greater than 100 = (SUBTRACT(msrp, buyPrice))>100;\n\nQuestion:\nHow many orders which expected profits greater than 100?", + "question": "How many orders which expected profits greater than 100?", + "evidence": "expected profits greater than 100 = (SUBTRACT(msrp, buyPrice))>100;", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT COUNT(*) FROM ( SELECT `orders`.`orderNumber`, SUM(`quantityOrdered` * (`MSRP` - `buyPrice`)) AS order_profit FROM `orders` JOIN `orderdetails` USING (`orderNumber`) JOIN `products` USING (`productCode`) GROUP BY `orders`.`orderNumber` HAVING order_profit > 100) AS sub;", + "source_gold_sql": "SELECT COUNT(*) FROM ( SELECT `orders`.`orderNumber`, SUM(`quantityOrdered` * (`MSRP` - `buyPrice`)) AS order_profit FROM `orders` JOIN `orderdetails` USING (`orderNumber`) JOIN `products` USING (`productCode`) GROUP BY `orders`.`orderNumber` HAVING order_profit > 100) AS sub;", + "source_gold_sql_sha256": "19786512b079370af108b3a6d455ca293ceae8ae6dd9c557987ee356f73b9271", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7628", + "domain": "hockey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE GoaliesSC (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` integer, -- Games played.\n `Min` integer, -- Minutes. Minutes of appearance.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `T` integer, -- Ties.\n `SHO` integer, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE ScoringSup (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `year` integer, -- No description.\n `PPA` text, -- Power play assists.\n `SHA` text, -- Shorthanded assists.\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Coaches (\n `coachID` text, -- coach ID. number identifying coaches.\n `year` integer, -- In which year did the coach teach this team.\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `stint` integer, -- stint.\n `notes` text, -- note if needed. noted information.\n `g` integer, -- games. number of games.\n `w` integer, -- wins. number of wins.\n `l` integer, -- loses. number of loses.\n `t` integer, -- ties. number of ties.\n `postg` text, -- post-season games. number of post-season games.\n `postw` text, -- post-season wins. number of post-season wins.\n `postl` text, -- post-season loses. number of post-season loses.\n `postt` text, -- post-season ties. number of post-season ties.\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE Teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `franchID` text, -- Franchise ID.\n `confID` text, -- Conference ID. see abbrev.csv for details.\n `divID` text, -- Division ID. see abbrev.csv for details.\n `rank` integer, -- Final standing.\n `playoff` text, -- playoff results.\n `G` integer, -- games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- Overtime losses.\n `Pts` integer, -- points.\n `SoW` text, -- Shootout wins.\n `SoL` text, -- Shootout loses.\n `GF` integer, -- Goals for.\n `GA` integer, -- Goals against. goals against.\n `name` text, -- Full team name.\n `PIM` text, -- Penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes). A bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances. power play percentage (PP%) = PPG / PPC.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID)\n);\n\nCREATE TABLE AwardsCoaches (\n `coachID` text, -- coach ID. string ID of the coach.\n `award` text, -- awards that the coach achieve.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- No description.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE AwardsMisc (\n `name` text, -- unique name of awards.\n `ID` text, -- id number of players or coaches, etc.\n `award` text, -- awarder. not useful.\n `year` integer, -- year of the award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed. noted information.\n primary key (name)\n);\n\nCREATE TABLE TeamsHalf (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `half` integer, -- First or second half of season.\n `rank` integer, -- Final standing for the half.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against. goal against.\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE abbrev (\n `Type` text, -- type of hockey games.\n `Code` text, -- abbreviated codes.\n `Fullname` text, -- full names of code.\n primary key (Type, Code)\n);\n\nCREATE TABLE ScoringSC (\n `playerID` text, -- id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `pos` text, -- position.\n `GP` integer, -- Games played.\n `G` integer, -- Goals. goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE CombinedShutouts (\n `year` integer, -- year.\n `month` integer, -- month.\n `date` integer, -- day. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `oppID` text, -- opposite team ID. Team ID of opponent.\n `R/P` text, -- regular / postseason. R\" for regular season, or \"P\" for postseason.\n `IDgoalie1` text, -- ID of goalie 1. ID of first goalie.\n `IDgoalie2` text, -- ID of goalie 2. ID of second goalie.\n foreign key (IDgoalie1) references Master (playerID)\n foreign key (IDgoalie2) references Master (playerID)\n);\n\nCREATE TABLE TeamSplits (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `hW` integer, -- home wins.\n `hL` integer, -- home loses.\n `hT` integer, -- home ties.\n `hOTL` text, -- Home overtime losses.\n `rW` integer, -- Road wins.\n `rL` integer, -- Road loses.\n `rT` integer, -- Road ties.\n `rOTL` text, -- road overtime loses.\n `SepW` text, -- September wins.\n `SepL` text, -- September loses.\n `SepT` text, -- September ties.\n `SepOL` text, -- September overtime loses.\n `OctW` text, -- October wins.\n `OctL` text, -- October loses.\n `OctT` text, -- October ties.\n `OctOL` text, -- October overtime loses.\n `NovW` text, -- November wins.\n `NovL` text, -- November loses.\n `NovT` text, -- November ties.\n `NovOL` text, -- November overtime loses.\n `DecW` text, -- December wins.\n `DecL` text, -- December loses.\n `DecT` text, -- December ties.\n `DecOL` text, -- December overtime loses.\n `JanW` integer, -- January wins.\n `JanL` integer, -- January loses.\n `JanT` integer, -- January ties.\n `JanOL` text, -- January overtime loses.\n `FebW` integer, -- February wins.\n `FebL` integer, -- February loses.\n `FebT` integer, -- February ties.\n `FebOL` text, -- February overtime loses.\n `MarW` text, -- March wins.\n `MarL` text, -- March loses.\n `MarT` text, -- March ties.\n `MarOL` text, -- March overtime loses.\n `AprW` text, -- April wins.\n `AprL` text, -- April loses.\n `AprT` text, -- April ties.\n `AprOL` text, -- April overtime loses.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE SeriesPost (\n `year` integer, -- year.\n `round` text, -- round. see abbrev.csv for details.\n `series` text, -- series. used for the NHL designations.\n `tmIDWinner` text, -- Team ID of winner.\n `lgIDWinner` text, -- League ID of winner.\n `tmIDLoser` text, -- Team ID of loser. Team ID of winner.\n `lgIDLoser` text, -- league id of loser.\n `W` integer, -- number of wins of the winner.\n `L` integer, -- number of loses of the winner.\n `T` integer, -- number of ties.\n `GoalsWinner` integer, -- goals for winner.\n `GoalsLoser` integer, -- goals for loser.\n `note` note, -- note. Note: EX = exhibition, ND = no decision, TG = total-goals series.\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n);\n\nCREATE TABLE Master (\n `playerID` text, -- id number identifying the player.\n `coachID` text, -- coach ID. coach id number. if a person has both playerID and coachID, it means this person becomes coach after retirement.\n `hofID` text, -- hall of fame id.\n `firstName` text, -- first name.\n `lastName` text, -- last name.\n `nameNote` text, -- name note. note about name.\n `nameGiven` text, -- name given. Given name.\n `nameNick` text, -- Nickname. (multiple entries separated by \"/\").\n `height` text, -- height.\n `weight` text, -- weight.\n `shootCatch` text, -- shoot catch. Shooting hand (or catching hand for goalies). Shooting hand (or catching hand for goalies). L: left hand. R: right hand. if null or 'empty', it means this player is good at both left and right hand.\n `legendsID` text, -- legends ID. ID at Legends Of Hockey.\n `ihdbID` text, -- Internet Hockey Database ID. ID at the Internet Hockey Database.\n `hrefID` text, -- Hockey-Reference.com ID. ID at Hockey-Reference.com.\n `firstNHL` text, -- First NHL season.\n `lastNHL` text, -- Last NHL season.\n `firstWHA` text, -- First WHA season.\n `lastWHA` text, -- Last WHA season.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `birthYear` text, -- birth Year.\n `birthMon` text, -- birth Month.\n `birthDay` text, -- birth Day. the entire / detail birth date in this table is \"year\" / \"month\" / \"date\".\n `birthCountry` text, -- birth Country.\n `birthState` text, -- birth State.\n `birthCity` text, -- birth city.\n `deathYear` text, -- death year.\n `deathMon` text, -- death month.\n `deathDay` text, -- death day.\n `deathCountry` text, -- death country.\n `deathState` text, -- death state.\n `deathCity` text, -- death city.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE TeamsPost (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes).\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE AwardsPlayers (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `award` text, -- award name.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed.\n `pos` text, -- position. position of players. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger).\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE HOF (\n `year` integer, -- year of hall of fame.\n `hofID` text, -- hall of fame id.\n `name` text, -- name.\n `category` text, -- category.\n primary key (hofID)\n);\n\nCREATE TABLE GoaliesShootout (\n `playerID` integer, -- No description.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` text, -- stint.\n `tmID` integer, -- team ID. team abbreviated name.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `SA` integer, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamVsTeam (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `oppID` text, -- opponent ID.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- overtime loses.\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (oppID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE Scoring (\n `playerID` text, -- player ID.\n `year` integer, -- play year.\n `stint` integer, -- Stint (order of appearance in a season).\n `tmID` text, -- team id.\n `lgID` text, -- league id.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `GP` integer, -- game played.\n `G` integer, -- goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n `+/-` text, -- Plus / minus. The plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against. In another words, higher \"+ / -\" means more importance to the team, lower means less importance.\n `PPG` text, -- Power play goals. When a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\n `PPA` text, -- Power play assists.\n `SHG` text, -- Shorthanded goals. Sometimes the team with fewer players on the ice known as the short-handed team will score a goal.\n `SHA` text, -- Shorthanded assists.\n `GWG` text, -- Game-winning goals. A game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score. if a player gets more GWG, it means this player is more trustworthy in the critical moment.\n `GTG` text, -- Game-tying goals. A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score.\n `SOG` text, -- Shots on goal. a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `PostGP` text, -- Postseason games played.\n `PostG` text, -- Postseason goals.\n `PostA` text, -- Postseason assists.\n `PostPts` text, -- Postseason points.\n `PostPIM` text, -- Postseason penalty minutes.\n `Post+/-` text, -- Postseason Plus / minus.\n `PostPPG` text, -- Postseason power play goals.\n `PostPPA` text, -- Postseason power play assists.\n `PostSHG` text, -- Postseason Shorthanded goals.\n `PostSHA` text, -- Postseason Shorthanded assists.\n `PostGWG` text, -- Postseason game-winning goals.\n `PostSOG` text, -- Postseason shots on goal.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamsSC (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE ScoringShootout (\n `playerID` text, -- player id. id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- stint.\n `tmID` text, -- team ID. team abbreviated name.\n `S` integer, -- shots.\n `G` integer, -- goals.\n `GDG` integer, -- game deciding goals.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Goalies (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- order of appearance in a season. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` text, -- Games played.\n `Min` text, -- Minutes. Minutes of appearance.\n `W` text, -- wins.\n `L` text, -- loses.\n `T/OL` text, -- Ties / overtime losses.\n `ENG` text, -- Empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `SHO` text, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` text, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `SA` text, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `PostGP` text, -- Postseason games played.\n `PostMin` text, -- Postseason minutes.\n `PostW` text, -- Postseason wins.\n `PostL` text, -- Postseason loses.\n `PostT` text, -- Postseason ties.\n `PostENG` text, -- Postseason empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `PostSHO` text, -- Postseason Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `PostGA` text, -- Postseason Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `PostSA` text, -- Postseason Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nExternal Knowledge:\nname refers to first name, last name; shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00\n\nQuestion:\nName the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice.", + "question": "Name the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice.", + "evidence": "name refers to first name, last name; shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", + "db_id": "hockey", + "database_path": "../databases/hockey.sqlite", + "gold_sql": "WITH season_totals AS (\n SELECT playerID,\n year,\n SUM(CAST(SHO AS INTEGER)) AS tot_SHO,\n SUM(CAST(GA AS INTEGER)) AS tot_GA\n FROM Goalies\n GROUP BY playerID, year\n HAVING tot_GA > 0\n AND ABS(1.0 * tot_SHO / tot_GA - 0.05) < 1e-6 -- exactly 5 %\n)\nSELECT M.firstName,\n M.lastName,\n S.year\nFROM season_totals S\nJOIN Master M ON M.playerID = S.playerID\nORDER BY S.year, M.lastName, M.firstName;", + "source_gold_sql": "WITH season_totals AS (\n SELECT playerID,\n year,\n SUM(CAST(SHO AS INTEGER)) AS tot_SHO,\n SUM(CAST(GA AS INTEGER)) AS tot_GA\n FROM Goalies\n GROUP BY playerID, year\n HAVING tot_GA > 0\n AND ABS(1.0 * tot_SHO / tot_GA - 0.05) < 1e-6 -- exactly 5 %\n)\nSELECT M.firstName,\n M.lastName,\n S.year\nFROM season_totals S\nJOIN Master M ON M.playerID = S.playerID\nORDER BY S.year, M.lastName, M.firstName;", + "source_gold_sql_sha256": "034749c4e0302883f6b47bf87ccbc5df4603683f49c1d604bdbcdbc7daf7fb95", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4995", + "domain": "olympics", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE noc_region (\n `id` integer, -- the unique identifier of the noc region.\n `noc` text, -- the NOC code of the region. A NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world.\n `region_name` text, -- region name. the name of the region.\n primary key (id)\n);\n\nCREATE TABLE sport (\n `id` integer, -- the unique identifier of the sport.\n `sport_name` text, -- sport name. the name of the sport.\n primary key (id)\n);\n\nCREATE TABLE games (\n `id` integer, -- the unique identifier of the game.\n `games_year` integer, -- games year. the year of the game.\n `games_name` text, -- games name. the name of the game. games_name is 'games_year season'.\n `season` text, -- the season of the game. The Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\n primary key (id)\n);\n\nCREATE TABLE games_city (\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `city_id` integer, -- city id. the id of the city that held the game. Maps to city(id).\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n);\n\nCREATE TABLE person (\n `id` integer, -- the unique identifier of the person.\n `full_name` text, -- full name. the full name of the person. A person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name.\n `gender` text, -- the gender of the person. M stands for male and F stands for female.\n `height` integer, -- the height of the person.\n `weight` integer, -- the weight of the person. The unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing.\n primary key (id)\n);\n\nCREATE TABLE event (\n `id` integer, -- the unique identifier of the event.\n `sport_id` integer, -- sport id. the id of the sport. Maps to sport(id). There may be different events for the same sport in Olympics.\n `event_name` text, -- event name. the name of the event.\n primary key (id),\n foreign key (sport_id) references sport(id)\n);\n\nCREATE TABLE person_region (\n `person_id` integer, -- the id of the person. Maps to person(id).\n `region_id` integer, -- the id of the noc region. Maps to noc_region(id).\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n);\n\nCREATE TABLE medal (\n `id` integer, -- the unique identifier of the metal.\n `medal_name` text, -- medal name. the name of the medal.\n primary key (id)\n);\n\nCREATE TABLE games_competitor (\n `id` integer, -- the unique identifier of the record.\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `person_id` integer, -- person id. the id of the person. Maps to person(id). The times a person participated in the Olympics games could be calculated by grouping by person_id.\n `age` integer, -- the age of the person when he/she participated in the game. If person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\n primary key (id),\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n);\n\nCREATE TABLE city (\n `id` integer, -- the unique identifier of the city.\n `city_name` text, -- city name. the name of the city.\n primary key (id)\n);\n\nCREATE TABLE competitor_event (\n `event_id` integer, -- event id. the id of the event. Maps to event(id).\n `competitor_id` integer, -- competitor id. the id of the competitor. Maps to games_competitor(id). The number of competitors who participated in a specific event could be calculated by grouping by event_id.\n `medal_id` integer, -- medal id. the id of the medal. Maps to medal(id). For a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place.\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n);\n\nExternal Knowledge:\nover the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';\n\nQuestion:\nHow many athletes over the age of 59 competed in the 2016 Summer Olympics?", + "question": "How many athletes over the age of 59 competed in the 2016 Summer Olympics?", + "evidence": "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", + "db_id": "olympics", + "database_path": "../databases/olympics.sqlite", + "gold_sql": "SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2016 Summer' AND T2.age > 59", + "source_gold_sql": "SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2016 Summer' AND T2.age > 59", + "source_gold_sql_sha256": "b8b22e2fc14b38fc83b1cf621abe543a2e03133e6301d2d6be6338c8f103529f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7544", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\nimage with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;\n\nQuestion:\nName the object class of the image with a bounding (422, 63, 77, 363).", + "question": "Name the object class of the image with a bounding (422, 63, 77, 363).", + "evidence": "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 422 AND T1.Y = 63 AND T1.W = 77 AND T1.H = 363", + "source_gold_sql": "SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 422 AND T1.Y = 63 AND T1.W = 77 AND T1.H = 363", + "source_gold_sql_sha256": "83b13bc37db4c4c2b6895789f273f484fc2491a6b259b2f8367ee88e20e7576a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6829", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\naccount balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))\n\nQuestion:\nWhat are the account balances of the suppliers with the most parts?", + "question": "What are the account balances of the suppliers with the most parts?", + "evidence": "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT s_acctbal FROM ( SELECT s_suppkey, s_acctbal, COUNT(*) AS num FROM supplier JOIN partsupp ON s_suppkey = ps_suppkey GROUP BY s_suppkey, s_acctbal ) t WHERE num = (SELECT MAX(cnt) FROM (SELECT COUNT(*) AS cnt FROM partsupp GROUP BY ps_suppkey))", + "source_gold_sql": "SELECT s_acctbal FROM ( SELECT s_suppkey, s_acctbal, COUNT(*) AS num FROM supplier JOIN partsupp ON s_suppkey = ps_suppkey GROUP BY s_suppkey, s_acctbal ) t WHERE num = (SELECT MAX(cnt) FROM (SELECT COUNT(*) AS cnt FROM partsupp GROUP BY ps_suppkey))", + "source_gold_sql_sha256": "dcb2e6b0ced90fdbc85f2945298bcc97c1cf27d1d4626e99f3fa88486570b43e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4784", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\ncontact URL refers to contact_form; Claire McCaskill is an official_full_name\n\nQuestion:\nWhat is the contact URL of Claire McCaskill?", + "question": "What is the contact URL of Claire McCaskill?", + "evidence": "contact URL refers to contact_form; Claire McCaskill is an official_full_name", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "SELECT T2.contact_form FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Claire McCaskill' GROUP BY T2.contact_form", + "source_gold_sql": "SELECT T2.contact_form FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Claire McCaskill' GROUP BY T2.contact_form", + "source_gold_sql_sha256": "53b4f16a15ae7495b1b05f2428384c76b01c45786ad6ea4b719ce66fe31a9934", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2094", + "domain": "world_development_indicators", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE SeriesNotes (\n `Seriescode` text, -- Series code. code identifying the series.\n `Year` text, -- year.\n `Description` text, -- Description of series.\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);\n\nCREATE TABLE Indicators (\n `CountryName` text, -- Country code. code identifying unique countries.\n `CountryCode` text, -- Series code. Series code of countries.\n `IndicatorName` text, -- Indicator Name. indicator name.\n `IndicatorCode` text, -- Indicator Code. indicator code.\n `Year` integer, -- year.\n `Value` integer, -- value.\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Footnotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Year` text, -- Year.\n `Description` text, -- Description of country footnotes.\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE CountryNotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Description` text, -- description.\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Series (\n `SeriesCode` text, -- Series Code. unique code identifying series.\n `Topic` text, -- topic of series.\n `IndicatorName` text, -- Indicator Name.\n `ShortDefinition` text, -- Short Definition. Short Definition of series.\n `LongDefinition` text, -- Long Definition. Long Definition of series.\n `UnitOfMeasure` text, -- Unit Of Measure.\n `Periodicity` text, -- No description.\n `BasePeriod` text, -- Base Period. a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production.\n `OtherNotes` integer, -- Other Notes.\n `AggregationMethod` text, -- Aggregation Method.\n `LimitationsAndExceptions` text, -- Limitations And Exceptions.\n `NotesFromOriginalSource` text, -- Notes From Original Source.\n `GeneralComments` text, -- General Comments.\n `Source` text, -- source of this data.\n `StatisticalConceptAndMethodology` text, -- Statistical Concept And Methodology.\n `DevelopmentRelevance` text, -- Development Relevance.\n `RelatedSourceLinks` text, -- Related Source Links.\n `OtherWebLinks` integer, -- Other Web Links.\n `RelatedIndicators` integer, -- Related Indicators.\n `LicenseType` text, -- License Type.\n primary key (SeriesCode)\n);\n\nCREATE TABLE Country (\n `CountryCode` text, -- Country Code. unique code identifying countries.\n `ShortName` text, -- Short Name. Short names of countries.\n `TableName` text, -- Table Name. table names of countries.\n `LongName` text, -- Long Name. long or full name of countries.\n `Alpha2Code` text, -- Alpha to Code. 2 digit code of countries.\n `CurrencyUnit` text, -- Currency Unit. Currency Unit used in this country.\n `SpecialNotes` text, -- Special Notes.\n `Region` text, -- region that country belongs to.\n `IncomeGroup` text, -- Income Group. income level of countries.\n `Wb2Code` text, -- world bank to code.\n `NationalAccountsBaseYear` text, -- National Accounts Base Year. the year used as the base period for constant price calculations in the country's national accounts.\n `NationalAccountsReferenceYear` text, -- National Accounts Reference Year.\n `SnaPriceValuation` text, -- SNA Price Valuation.\n `LendingCategory` text, -- Lending Category. Lending category. • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n `OtherGroups` text, -- Other groups. other groups. • HIPC: Heavily Indebted Poor Countries. • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n `SystemOfNationalAccounts` text, -- System Of National Accounts.\n `AlternativeConversionFactor` text, -- Alternative Conversion Factor. Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method.\n `PppSurveyYear` text, -- purchasing power parity survey year.\n `BalanceOfPaymentsManualInUse` text, -- Balance Of Payments Manual In Use.\n `ExternalDebtReportingStatus` text, -- External Debt Reporting Status. • Actual. • Preliminary. • Estimate. commonsense reasoning:. If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished. if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished.\n `SystemOfTrade` text, -- System Of Trade.\n `GovernmentAccountingConcept` text, -- Government Accounting Concept.\n `ImfDataDisseminationStandard` text, -- International Monetory Fund Data Dissemination Standard. IMF Standards for Data Dissemination.\n `LatestPopulationCensus` text, -- Latest Population Census.\n `LatestHouseholdSurvey` text, -- Latest Household Survey.\n `SourceOfMostRecentIncomeAndExpenditureData` text, -- Source Of Most Recent Income And Expenditure Data.\n `VitalRegistrationComplete` text, -- Vital Registration Complete.\n `LatestAgriculturalCensus` text, -- Latest Agricultural Census.\n `LatestIndustrialData` integer, -- Latest Industrial Data.\n `LatestTradeData` integer, -- Latest Trade Data.\n `LatestWaterWithdrawalData` integer, -- Latest Water Withdrawal Data.\n primary key (CountryCode)\n);\n\nExternal Knowledge:\ncountries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'\n\nQuestion:\nAmong the countries with country notes on the series code SM.POP.TOTL, how many of them are in the low-income group?", + "question": "Among the countries with country notes on the series code SM.POP.TOTL, how many of them are in the low-income group?", + "evidence": "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", + "db_id": "world_development_indicators", + "database_path": "../databases/world_development_indicators.sqlite", + "gold_sql": "SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SM.POP.TOTL' AND T1.IncomeGroup = 'Low income' AND T2.Description IS NOT NULL;", + "source_gold_sql": "SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SM.POP.TOTL' AND T1.IncomeGroup = 'Low income' AND T2.Description IS NOT NULL;", + "source_gold_sql_sha256": "27af9b0eaf888337c0837bb29421d39ab3aedf2cda465685cf91b594cbdb6139", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2670", + "domain": "regional_sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Sales Orders (\n `OrderNumber` text, -- Order Number. the unique number identifying the order.\n `Sales Channel` text, -- Sales Channel. • In-Store. • Online. • Distributor. • Wholesale.\n `WarehouseCode` text, -- Warehouse Code. if the warehouse code is the same, it means this product is shipped from the same ware house.\n `ProcuredDate` text, -- Procured Date. date: month/date/year, 17--> 2017.\n `OrderDate` text, -- Order Date.\n `ShipDate` text, -- Ship Date.\n `DeliveryDate` text, -- Delivery Date. the difference \"DeliveryDate - OrderDate\" is smaller, it means faster delivery.\n `CurrencyCode` text, -- Currency Code. USD.\n `_SalesTeamID` integer, -- _Sales Team ID. Sales Team ID.\n `_CustomerID` integer, -- _Customer ID.\n `_StoreID` integer, -- _Store ID.\n `_ProductID` integer, -- _Product ID.\n `Order Quantity` integer, -- Order Quantity. 1 - 8:. higher means order quantity is higher or customer needs more.\n `Discount Applied` real, -- Discount Applied. 0.2: 20% discount.\n `Unit Price` text, -- No description.\n `Unit Cost` text, -- net profit = Unit Price - Unit Cost.\n primary key (OrderNumber)\n);\n\nCREATE TABLE Regions (\n `StateCode` text, -- state code. the unique code identifying the state.\n `State` text, -- full state name.\n `Region` text, -- the region where the state is located in.\n primary key (StateCode)\n);\n\nCREATE TABLE Sales Team (\n `SalesTeamID` integer, -- SalesTeam ID. unique sales team id.\n `Sales Team` text, -- sales team names.\n `Region` text, -- the region where the state is located in.\n primary key (SalesTeamID)\n);\n\nCREATE TABLE Store Locations (\n `StoreID` integer, -- Store ID. unique store id.\n `City Name` text, -- No description.\n `County` text, -- full county name.\n `StateCode` text, -- State Code. state code.\n `State` text, -- full state name.\n `Type` text, -- type of the store. City. Town. CDP (customer data platform). Unified Government. Consolidated Government. Other. Township. Urban County. Borough. Metropolitan Government.\n `Latitude` real, -- Latitude.\n `Longitude` real, -- Longitude. coordinates or detailed position: (Latitude, Longitude).\n `AreaCode` integer, -- Area Code.\n `Population` integer, -- Population.\n `Household Income` integer, -- Household Income.\n `Median Income` integer, -- Median Income.\n `Land Area` integer, -- Land Area.\n `Water Area` integer, -- Water Area.\n `Time Zone` text, -- Time Zone.\n primary key (StoreID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- product id. unique id number representing each product.\n `Product Name` text, -- product name. name of the product.\n primary key (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- customer id. unique id number indicating which customer.\n `Customer Names` text, -- customer names. the name of the customer.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\nproducts refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'\n\nQuestion:\nName the products via wholesale channel of the store under Pacific/Honolulu time zone.", + "question": "Name the products via wholesale channel of the store under Pacific/Honolulu time zone.", + "evidence": "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", + "db_id": "regional_sales", + "database_path": "../databases/regional_sales.sqlite", + "gold_sql": "SELECT T FROM ( SELECT DISTINCT CASE WHEN T3.`Time Zone` = 'Pacific/Honolulu' AND T2.`Sales Channel` = 'Wholesale' THEN T1.`Product Name` ELSE NULL END AS T FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` T3 ON T3.StoreID = T2._StoreID ) WHERE T IS NOT NULL", + "source_gold_sql": "SELECT T FROM ( SELECT DISTINCT CASE WHEN T3.`Time Zone` = 'Pacific/Honolulu' AND T2.`Sales Channel` = 'Wholesale' THEN T1.`Product Name` ELSE NULL END AS T FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` T3 ON T3.StoreID = T2._StoreID ) WHERE T IS NOT NULL", + "source_gold_sql_sha256": "e90b4e6cfbc9499c517b8d39cb14f8ad9f060593e86b901a0004aee7bc339960", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5220", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\nlatitude and longitude coordinates can be used to identify the location;\n\nQuestion:\nProvide the zip codes, cities, and locations of the postal points that have Shared Reshipper as a bad alias.", + "question": "Provide the zip codes, cities, and locations of the postal points that have Shared Reshipper as a bad alias.", + "evidence": "latitude and longitude coordinates can be used to identify the location;", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT T1.zip_code, T2.city, T2.latitude, T2.longitude FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Shared Reshipper'", + "source_gold_sql": "SELECT T1.zip_code, T2.city, T2.latitude, T2.longitude FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Shared Reshipper'", + "source_gold_sql_sha256": "90ef1cd22c784711567e4ba50b714b3ad0034d55e85588d99258dbc6cc09e2d1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5336", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat is the container type and brand name for root beer ID 100054?", + "question": "What is the container type and brand name for root beer ID 100054?", + "evidence": "", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT r.ContainerType,\n b.BrandName\nFROM rootbeer AS r\nJOIN rootbeerbrand AS b ON r.BrandID = b.BrandID\nWHERE r.RootBeerID = 100054;", + "source_gold_sql": "SELECT r.ContainerType,\n b.BrandName\nFROM rootbeer AS r\nJOIN rootbeerbrand AS b ON r.BrandID = b.BrandID\nWHERE r.RootBeerID = 100054;", + "source_gold_sql_sha256": "0f1401e46f162df71e584f019fd885feb00ad1915cd649dbba2db181227c7d9d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8363", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\nArabic-speaking country = country that speaks 100% Arabic\n\nQuestion:\nWhich Arabic-speaking country has the smallest population?", + "question": "Which Arabic-speaking country has the smallest population?", + "evidence": "Arabic-speaking country = country that speaks 100% Arabic", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT c.Name\nFROM country AS c\nJOIN language AS l ON c.Code = l.Country\nWHERE l.Name = 'Arabic' AND l.Percentage = 100\nORDER BY c.Population\nLIMIT 1;", + "source_gold_sql": "SELECT c.Name\nFROM country AS c\nJOIN language AS l ON c.Code = l.Country\nWHERE l.Name = 'Arabic' AND l.Percentage = 100\nORDER BY c.Population\nLIMIT 1;", + "source_gold_sql_sha256": "45e2d9653b4673cead3299b308661372d40d300cbb466367e4d5b8e1bc49c8b2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1607", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\naverage amount payment = AVG(amount);\n\nQuestion:\nOf the clients whose businesses are located in the city of Boston, calculate which of them has the highest average amount of payment.", + "question": "Of the clients whose businesses are located in the city of Boston, calculate which of them has the highest average amount of payment.", + "evidence": "average amount payment = AVG(amount);", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT T1.customerNumber \nFROM customers AS T1 \nINNER JOIN payments AS T2 \n ON T1.customerNumber = T2.customerNumber \nWHERE T1.city = 'Boston' \nGROUP BY T1.customerNumber \nHAVING AVG(T2.amount) = (SELECT AVG(T4.amount) \n FROM customers AS T3 \n INNER JOIN payments AS T4\n ON T3.customerNumber = T4.customerNumber \n WHERE T3.city = 'Boston' \n GROUP BY T3.customerNumber\n ORDER BY AVG(T4.amount) DESC LIMIT 1)", + "source_gold_sql": "SELECT T1.customerNumber \nFROM customers AS T1 \nINNER JOIN payments AS T2 \n ON T1.customerNumber = T2.customerNumber \nWHERE T1.city = 'Boston' \nGROUP BY T1.customerNumber \nHAVING AVG(T2.amount) = (SELECT AVG(T4.amount) \n FROM customers AS T3 \n INNER JOIN payments AS T4\n ON T3.customerNumber = T4.customerNumber \n WHERE T3.city = 'Boston' \n GROUP BY T3.customerNumber\n ORDER BY AVG(T4.amount) DESC LIMIT 1)", + "source_gold_sql_sha256": "797b90b13dd0b7cb86b2acf3ffbc611f1fb01ba016cb28c9ded1f5cde3043b1c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8169", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nstore no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'\n\nQuestion:\nProvide the sunrise time recorded by the home weather station of store no.30 on 2014/2/21.", + "question": "Provide the sunrise time recorded by the home weather station of store no.30 on 2014/2/21.", + "evidence": "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT T1.sunrise FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2014-02-21' AND store_nbr = 30", + "source_gold_sql": "SELECT T1.sunrise FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2014-02-21' AND store_nbr = 30", + "source_gold_sql_sha256": "07453297f5972fcb764e4efdb251f33e96e605fdb035baede54e37593dc84219", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7376", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nLightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;\n\nQuestion:\nWhat profit will the company gain if they sell 10 items of the product that has the lightest weight?", + "question": "What profit will the company gain if they sell 10 items of the product that has the lightest weight?", + "evidence": "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT 10 * (ListPrice - StandardCost) FROM Product WHERE Weight IS NOT NULL ORDER BY Weight LIMIT 1", + "source_gold_sql": "SELECT 10 * (ListPrice - StandardCost) FROM Product WHERE Weight IS NOT NULL ORDER BY Weight LIMIT 1", + "source_gold_sql_sha256": "56639c097b5a88760f5dd6ba85889b8818a5e0ada7b42259ddb1a8805b61e504", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7525", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\ndimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3\n\nQuestion:\nProvide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.", + "question": "Provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.", + "evidence": "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 3 AND T2.OBJ_CLASS = 'keyboard'", + "source_gold_sql": "SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 3 AND T2.OBJ_CLASS = 'keyboard'", + "source_gold_sql_sha256": "274d3a7f8600447414429751fa1c5431637c59c02fc6ef0d0ea87a630122e9a5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:592", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\ngithub address refers to Url;\n\nQuestion:\nWhat is the github address of the repository that contains files used by solution ID12?", + "question": "What is the github address of the repository that contains files used by solution ID12?", + "evidence": "github address refers to Url;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 12", + "source_gold_sql": "SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 12", + "source_gold_sql_sha256": "cadf364db34ac1f7b7167b8ce0f01ca12da1c809818661f379a69fa98ad81358", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2517", + "domain": "app_store", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE playstore (\n `App` text, -- Application name.\n `Category` text, -- Category the app belongs to. FAMILY 18%. GAME 11%. Other (7725) 71%.\n `Rating` real, -- Overall user rating of the app (as when scraped).\n `Reviews` integer, -- Number of user reviews for the app (as when scraped).\n `Size` text, -- Size of the app (as when scraped). Varies with device 16%. 11M 2%. Other (8948) 83%.\n `Installs` text, -- Number of user downloads/installs for the app (as when scraped). 1,000,000+ 15%. 10,000,000+ 12%. Other (8010) 74%.\n `Type` text, -- Paid or Free. Only has 'Paid' and 'Free'. Free 93%. Paid 7%.\n `Price` text, -- Price of the app (as when scraped). 0 93%. $0.99 1%. Other (653) 6%. Free means the price is 0.\n `Content Rating` text, -- Age group the app is targeted at - Children / Mature 21+ / Adult. Everyone 80%. Teen 11%. Other (919) 8%. According to Wikipedia, the different age groups are defined as:. Children: age<12~13. Teen: 13~19. Adult/Mature: 21+.\n `Genres` text, -- An app can belong to multiple genres (apart from its main category). Tools 8%. Entertainment 6%. Other (9376) 86%.\n\n);\n\nCREATE TABLE user_reviews (\n `App` text, -- Name of app.\n `Translated_Review` text, -- User review (Preprocessed and translated to English). nan 42%. Good 0%. Other (37185) 58%.\n `Sentiment` text, -- Overall user rating of the app (as when scraped). Positive: user holds positive attitude towards this app. Negative: user holds positive attitude / critizes on this app. Neural: user holds neural attitude. nan: user doesn't comment on this app.\n `Sentiment_Polarity` text, -- Sentiment Polarity. Sentiment polarity score. • score >= 0.5 it means pretty positive or pretty like this app. • 0 <= score < 0.5: it means user mildly likes this app. • -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude. • score <-0.5: it means this user dislikes this app pretty much.\n `Sentiment_Subjectivity` text, -- Sentiment Subjectivity. Sentiment subjectivity score. more subjectivity refers to less objectivity, vice versa.\n\n);\n\nExternal Knowledge:\nlowest sentiment polarity score refers to MIN(Sentiment_Polarity); user dislike the app pretty much refers to Sentiment_Polarity<-0.5; number of downloads it has refers to installs;\n\nQuestion:\nWhat is the lowest sentiment polarity score of the Basketball Stars app for people who dislikes the app pretty much and how many downloads does it have?", + "question": "What is the lowest sentiment polarity score of the Basketball Stars app for people who dislikes the app pretty much and how many downloads does it have?", + "evidence": "lowest sentiment polarity score refers to MIN(Sentiment_Polarity); user dislike the app pretty much refers to Sentiment_Polarity<-0.5; number of downloads it has refers to installs;", + "db_id": "app_store", + "database_path": "../databases/app_store.sqlite", + "gold_sql": "SELECT MIN(CAST(`Sentiment_Polarity` AS REAL)) AS lowest_sentiment_polarity, (SELECT `Installs` FROM `playstore` WHERE `App` = 'Basketball Stars') AS installs FROM `user_reviews` WHERE `App` = 'Basketball Stars' AND CAST(`Sentiment_Polarity` AS REAL) < -0.5", + "source_gold_sql": "SELECT MIN(CAST(`Sentiment_Polarity` AS REAL)) AS lowest_sentiment_polarity, (SELECT `Installs` FROM `playstore` WHERE `App` = 'Basketball Stars') AS installs FROM `user_reviews` WHERE `App` = 'Basketball Stars' AND CAST(`Sentiment_Polarity` AS REAL) < -0.5", + "source_gold_sql_sha256": "e6342932ab2c73ce7b75ddbefbaa6b2b1b8d7398f93f90763f6279fdf6a75be2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2920", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\nname of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2\n\nQuestion:\nState the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?", + "question": "State the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?", + "evidence": "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "WITH first_rank AS (\n SELECT `tmID`, COUNT(*) AS cnt_first\n FROM `teams`\n WHERE `year` BETWEEN 1980 AND 2000 AND `rank` = 1\n GROUP BY `tmID`\n HAVING cnt_first >= 5\n),\nfinal_losses AS (\n SELECT `tmIDLoser` AS `tmID`, COUNT(*) AS cnt_loss\n FROM `series_post`\n WHERE `year` BETWEEN 1980 AND 2000 AND `round` = 'F'\n GROUP BY `tmID`\n HAVING cnt_loss >= 2\n)\nSELECT DISTINCT t.`name`\nFROM first_rank fr\nJOIN final_losses fl ON fr.`tmID` = fl.`tmID`\nJOIN `teams` t ON t.`tmID` = fr.`tmID` AND t.`year` = 2000;", + "source_gold_sql": "WITH first_rank AS (\n SELECT `tmID`, COUNT(*) AS cnt_first\n FROM `teams`\n WHERE `year` BETWEEN 1980 AND 2000 AND `rank` = 1\n GROUP BY `tmID`\n HAVING cnt_first >= 5\n),\nfinal_losses AS (\n SELECT `tmIDLoser` AS `tmID`, COUNT(*) AS cnt_loss\n FROM `series_post`\n WHERE `year` BETWEEN 1980 AND 2000 AND `round` = 'F'\n GROUP BY `tmID`\n HAVING cnt_loss >= 2\n)\nSELECT DISTINCT t.`name`\nFROM first_rank fr\nJOIN final_losses fl ON fr.`tmID` = fl.`tmID`\nJOIN `teams` t ON t.`tmID` = fr.`tmID` AND t.`year` = 2000;", + "source_gold_sql_sha256": "802fe68036c8edb66f7c67f48b8e4264678219f8e54301a3613531831eec04b2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:73", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\nA Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;\n\nQuestion:\nHow many users were trialists when they rated the movie \"A Way of Life\"?", + "question": "How many users were trialists when they rated the movie \"A Way of Life\"?", + "evidence": "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_trialist = 1", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_trialist = 1", + "source_gold_sql_sha256": "9ab92c627109dbc60d144bd933024bfd442439fdf0e273278272d82bcb1b6b48", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9057", + "domain": "bike_share_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trip (\n `id` integer, -- No description.\n `duration` integer, -- The duration of the trip in seconds. duration = end_date - start_date.\n `start_date` text, -- start date.\n `start_station_name` text, -- start station name. The name of the start station. It represents the station name the bike borrowed from.\n `start_station_id` integer, -- start station id. The ID of the start station.\n `end_date` text, -- end date.\n `end_station_name` text, -- end station name. The name of the end station. It represents the station name the bike returned to.\n `end_station_id` integer, -- end station id. The ID of the end station.\n `bike_id` integer, -- bike id. The ID of the bike.\n `subscription_type` text, -- subscription type. Allowed input: Subscriber, Customer.\n `zip_code` integer, -- zip code.\n primary key (id)\n);\n\nCREATE TABLE weather (\n `date` text, -- No description.\n `max_temperature_f` integer, -- max temperature in Fahrenheit degree. It represents the hottest temperature.\n `mean_temperature_f` integer, -- mean temperature in Fahrenheit degree.\n `min_temperature_f` integer, -- min temperature in Fahrenheit degree. It represents the coldest temperature.\n `max_dew_point_f` integer, -- max dew point in Fahrenheit degree.\n `mean_dew_point_f` integer, -- mean dew point in Fahrenheit degree.\n `min_dew_point_f` integer, -- min dew point in Fahrenheit degree.\n `max_humidity` integer, -- max humidity.\n `mean_humidity` integer, -- mean humidity.\n `min_humidity` integer, -- min humidity.\n `max_sea_level_pressure_inches` real, -- max sea level pressure in inches.\n `mean_sea_level_pressure_inches` real, -- mean sea level pressure in inches.\n `min_sea_level_pressure_inches` real, -- min sea level pressure in inches.\n `max_visibility_miles` integer, -- max visibility in miles.\n `mean_visibility_miles` integer, -- mean visibility in miles.\n `min_visibility_miles` integer, -- min visibility in miles.\n `max_wind_Speed_mph` integer, -- max wind Speed in mph.\n `mean_wind_speed_mph` integer, -- mean wind Speed in mph.\n `max_gust_speed_mph` integer, -- max gust Speed in mph.\n `precipitation_inches` text, -- precipitation in inches.\n `cloud_cover` integer, -- cloud cover.\n `events` text, -- Allowed input: [null], Rain, other.\n `wind_dir_degrees` integer, -- wind direction degrees.\n `zip_code` text, -- zip code.\n\n);\n\nCREATE TABLE station (\n `id` integer, -- unique ID for each station.\n `name` text, -- Station name.\n `lat` real, -- latitude. Can represent the location of the station when combined with longitude.\n `long` real, -- longitude. Can represent the location of the station when combined with. latitude.\n `dock_count` integer, -- dock count. number of bikes the station can hold.\n `city` text, -- No description.\n `installation_date` text, -- installation date.\n primary key (id)\n);\n\nCREATE TABLE status (\n `station_id` integer, -- station id.\n `bikes_available` integer, -- number of available bikes. 0 means no bike can be borrowed.\n `docks_available` integer, -- number of available docks. 0 means no bike can be returned to this station.\n `time` text, -- No description.\n\n);\n\nExternal Knowledge:\nin 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events LIKE '%Rain%'), COUNT(events));\n\nQuestion:\nIn 2015, among trips whose the subscription type was Customer, what percentage of trips ended on a rainy day?", + "question": "In 2015, among trips whose the subscription type was Customer, what percentage of trips ended on a rainy day?", + "evidence": "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events LIKE '%Rain%'), COUNT(events));", + "db_id": "bike_share_1", + "database_path": "../databases/bike_share_1.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.events LIKE '%Rain%' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) \nFROM trip AS T1 INNER JOIN weather AS T2 \nON T2.zip_code = T1.zip_code AND T2.`date` = SUBSTR(T1.`end_date`, 1, INSTR(T1.`end_date`, ' ') - 1) \nWHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2015' AND T1.subscription_type = 'Customer'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.events LIKE '%Rain%' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) \nFROM trip AS T1 INNER JOIN weather AS T2 \nON T2.zip_code = T1.zip_code AND T2.`date` = SUBSTR(T1.`end_date`, 1, INSTR(T1.`end_date`, ' ') - 1) \nWHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2015' AND T1.subscription_type = 'Customer'", + "source_gold_sql_sha256": "651c5237ee504b7e53823fc0ae21a13f58808fc35f1832654540d79a4c6aca6c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8757", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\ngeneral description refers to primary_description; 'ASSAULT' is the primary_description; incidents refers to iucr_no\n\nQuestion:\nHow many incidents have the general description of \"ASSAULT\" in the IUCR classification?", + "question": "How many incidents have the general description of \"ASSAULT\" in the IUCR classification?", + "evidence": "general description refers to primary_description; 'ASSAULT' is the primary_description; incidents refers to iucr_no", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT COUNT(*)\nFROM `Crime` AS c\nJOIN `IUCR` AS i ON c.`iucr_no` = i.`iucr_no`\nWHERE i.`primary_description` = 'ASSAULT';", + "source_gold_sql": "SELECT COUNT(*)\nFROM `Crime` AS c\nJOIN `IUCR` AS i ON c.`iucr_no` = i.`iucr_no`\nWHERE i.`primary_description` = 'ASSAULT';", + "source_gold_sql_sha256": "a6ae90953dcc080d44ac92a2fae3e353666aec544c2eee276951179dc71e0e07", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:593", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nfollowed by over 1000 people refers to Forks >1000; can be\nimplemented without needs of compilation refers to WasCompiled = 1;\n\nQuestion:\nAmong the solutions that contain files within the repository followed by over 1000 people, how many of them can be\nimplemented without needs of compilation?", + "question": "Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be\nimplemented without needs of compilation?", + "evidence": "followed by over 1000 people refers to Forks >1000; can be\nimplemented without needs of compilation refers to WasCompiled = 1;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1", + "source_gold_sql": "SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1", + "source_gold_sql_sha256": "6fb2e29ad7ee7a673a198f6aba99b6af56e4dabcc7ae13a235193201e041dff4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5618", + "domain": "shipping", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE driver (\n `driver_id` integer, -- driver id. Unique identifier for the driver.\n `first_name` text, -- first name. First given name of the driver.\n `last_name` text, -- last name. Family name of the driver. full name = first_name + last_name.\n `address` text, -- Street address of the driver's home.\n `city` text, -- City the driver lives in.\n `state` text, -- State the driver lives in. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., NY --> New York.\n `zip_code` integer, -- zip code. postal code of the driver's address.\n `phone` text, -- telephone number of the driver.\n primary key (driver_id)\n);\n\nCREATE TABLE customer (\n `cust_id` integer, -- customer id. Unique identifier for the customer.\n `cust_name` text, -- customer name. Business name of the customer.\n `annual_revenue` integer, -- annual revenue. Annual revenue of the customer.\n `cust_type` text, -- customer type. Whether the customer is a manufacturer or a wholes.\n `address` text, -- Physical street address of the customer.\n `city` text, -- City of the customer's address.\n `state` text, -- State of the customer's address. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., NY --> New York.\n `zip` real, -- Postal code of the customer's address.\n `phone` text, -- Telephone number to reach the customer.\n primary key (cust_id)\n);\n\nCREATE TABLE shipment (\n `ship_id` integer, -- ship id. Unique identifier of the shipment.\n `cust_id` integer, -- customer id. A reference to the customer table that indicates which customer the shipment is for.\n `weight` real, -- The number of pounds being transported on the shipment.\n `truck_id` integer, -- truck id. A reference to the truck table that indicates which truck is used in the shipment.\n `driver_id` integer, -- driver id. A reference to the driver table that indicates which driver transported the goods in the shipment.\n `city_id` integer, -- city id. A reference to the city table that indicates the destination of the shipment.\n `ship_date` text, -- ship date. the date the items were received by the driver. yyyy-mm-dd.\n primary key (ship_id),\n foreign key (cust_id) references customer(cust_id),\n foreign key (city_id) references city(city_id),\n foreign key (driver_id) references driver(driver_id),\n foreign key (truck_id) references truck(truck_id)\n);\n\nCREATE TABLE city (\n `city_id` integer, -- city id. unique identifier for the city.\n `city_name` text, -- city name. name of the city.\n `state` text, -- state in which the city is.\n `population` integer, -- population of the city.\n `area` real, -- square miles the city covers. population density (land area per capita) = area / population.\n primary key (city_id)\n);\n\nCREATE TABLE truck (\n `truck_id` integer, -- truck id. Unique identifier of the truck table.\n `make` text, -- The brand of the truck. • Peterbilt headquarter: Texas (TX). • Mack headquarter: North Carolina (NC). • Kenworth headquarter: Washington (WA). can ask question about headquarters of the truck.\n `model_year` integer, -- model year. The year the truck was manufactured. The truck with earlier model year means this truck is newer.\n primary key (truck_id)\n);\n\nExternal Knowledge:\n\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type;\n\nQuestion:\nDetermine the percentage of manufacturers among all of Texas's customers.", + "question": "Determine the percentage of manufacturers among all of Texas's customers.", + "evidence": "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type;", + "db_id": "shipping", + "database_path": "../databases/shipping.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN cust_type = 'manufacturer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer WHERE state = 'TX'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN cust_type = 'manufacturer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer WHERE state = 'TX'", + "source_gold_sql_sha256": "ab321470a7513f24a79437c1b34d675f5eb8e0858df259f2c316ec99d6422f4a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4438", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nhave never been absent from school refers to month = 0\n\nQuestion:\nMention the name of unemployed students who have never been absent from school.", + "question": "Mention the name of unemployed students who have never been absent from school.", + "evidence": "have never been absent from school refers to month = 0", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.month = 0", + "source_gold_sql": "SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.month = 0", + "source_gold_sql_sha256": "bd9bd25a030fa2ff29030a42f9612b3db3df552eebc9a3061e9fc850679726c2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:445", + "domain": "movies_4", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `genre_id` integer, -- genre id. the unique identifier of the genre.\n `genre_name` text, -- the genre.\n primary key (genre_id)\n);\n\nCREATE TABLE movie (\n `movie_id` integer, -- movie id. the unique identifier of the movie.\n `title` text, -- the title of the movie.\n `budget` integer, -- the budget for the movie. If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n `homepage` text, -- the homepage of the movie.\n `overview` text, -- the overview of the movie.\n `popularity` real, -- the popularity of the movie. If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n `release_date` date, -- release date. the release date of the movie.\n `revenue` integer, -- the revenue of the movie. A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n `runtime` integer, -- the runtime of the movie.\n `movie_status` text, -- the status of the movie. The only value of this column is 'Released'.\n `tagline` text, -- the tagline of the movie.\n `vote_average` real, -- vote average. the average vote for the movie. A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n `vote_count` integer, -- vote count. the vote count for the movie. If a movie has a higher vote average and vote count, it means that it has been well-received by audiences and critics. A higher vote count means that more people have rated the movie, which can indicate a greater level of interest in the film.\n primary key (movie_id)\n);\n\nCREATE TABLE movie_cast (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `person_id` integer, -- person id. the id of the person. Maps to person(person_id).\n `character_name` text, -- character name. the character name.\n `gender_id` integer, -- gender id. the id of the cast's gender. Maps to gender(gender_id).\n `cast_order` integer, -- cast order. the cast order of the cast. The cast order of a movie or television show refers to the sequence in which the actors and actresses are listed in the credits. This order is typically determined by the relative importance of each actor's role in the production, with the main actors and actresses appearing first, followed by the supporting cast and extras.\n foreign key (gender_id) references gender(gender_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);\n\nCREATE TABLE person (\n `person_id` integer, -- person id. the unique identifier of the person.\n `person_name` text, -- person name. the name of the person.\n primary key (person_id)\n);\n\nCREATE TABLE department (\n `department_id` integer, -- department id. the unique identifier of the department.\n `department_name` text, -- department name. the name of the department.\n primary key (department_id)\n);\n\nCREATE TABLE gender (\n `gender_id` integer, -- gender id. the unique identifier of the gender.\n `gender` text, -- the gender. female/ male/ unspecified.\n primary key (gender_id)\n);\n\nCREATE TABLE keyword (\n `keyword_id` integer, -- keyword id. the unique identifier of the keyword.\n `keyword_name` text, -- keyword name. the keyword.\n primary key (keyword_id)\n);\n\nCREATE TABLE movie_keywords (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `keyword_id` integer, -- keyword id. the id of the movie keyword. Maps to keyword(keyword_id). A movie may have many keywords. Audience could get the genre of the movie according to the movie keywords.\n\n);\n\nCREATE TABLE movie_languages (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `language_id` integer, -- language id. the id of the movie language. Maps to language(language_id).\n `language_role_id` integer, -- language role id. the id of the role's language.\n foreign key (language_id) references language(language_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (language_role_id) references language_role(role_id)\n);\n\nCREATE TABLE movie_genres (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `genre_id` integer, -- genre id. the id of the movie genre. Maps to genre(genre_id).\n foreign key (genre_id) references genre(genre_id),\n foreign key (movie_id) references movie(movie_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_iso_code` text, -- country iso code. the ISO code. ISO codes are typically used to identify countries and their subdivisions, and there are different types of ISO codes depending on the specific application. Here we use ISO 3166 code to identify countries.\n `country_name` text, -- country name. the name of the country.\n primary key (country_id)\n);\n\nCREATE TABLE language_role (\n `role_id` integer, -- role id. the unique identifier of the language id.\n `language_role` text, -- language role. the language role. In the context of language roles in a movie or other audio-visual production, \"original\" and \"spoken\" refer to the languages in which the movie was originally produced, and the languages spoken by the characters in the movie, respectively.\n primary key (role_id)\n);\n\nCREATE TABLE movie_company (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `company_id` integer, -- company id. the id of the company that produced the movie. Maps to production_company(company_id). If movies with different movie_id have the same company_id, it means these movies were made by the same company.\n\n);\n\nCREATE TABLE movie_crew (\n `movie_id` integer, -- movie id. the id of the movie that the crew worked for. Maps to movie(movie_id).\n `person_id` integer, -- person id. the id of the crew. Maps to person(person_id).\n `department_id` integer, -- department id. the id of the crew's department. Maps to department(department_id).\n `job` text, -- the job of the crew. A movie may involve several crews with the same job title.\n foreign key (department_id) references department(department_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);\n\nCREATE TABLE production_country (\n `movie_id` integer, -- mivie id. the unique identifier of the movie.\n `country_id` integer, -- country id. the id of the country.\n foreign key (country_id) references country(country_id),\n foreign key (movie_id) references movie(movie_id)\n);\n\nCREATE TABLE language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the code of the language. Here we use ISO 639 codes to identify the language.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE production_company (\n `company_id` integer, -- company id. the unique identifier of the company.\n `company_name` text, -- company name. the name of the company.\n primary key (company_id)\n);\n\nExternal Knowledge:\nWalt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)\n\nQuestion:\nWhat is Walt Disney Pictures' most popular movie?", + "question": "What is Walt Disney Pictures' most popular movie?", + "evidence": "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", + "db_id": "movies_4", + "database_path": "../databases/movies_4.sqlite", + "gold_sql": "SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Walt Disney Pictures' AND T3.popularity = (SELECT MAX(T6.popularity) FROM production_company AS T4 INNER JOIN movie_company AS T5 ON T4.company_id = T5.company_id INNER JOIN movie AS T6 ON T5.movie_id = T6.movie_id WHERE T4.company_name = 'Walt Disney Pictures')", + "source_gold_sql": "SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Walt Disney Pictures' AND T3.popularity = (SELECT MAX(T6.popularity) FROM production_company AS T4 INNER JOIN movie_company AS T5 ON T4.company_id = T5.company_id INNER JOIN movie AS T6 ON T5.movie_id = T6.movie_id WHERE T4.company_name = 'Walt Disney Pictures')", + "source_gold_sql_sha256": "c71abf03087c82b6d5282e464a2eea80a3759ad098ae784bdde70c6c85325255", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7890", + "domain": "world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE CountryLanguage (\n `CountryCode` text, -- Country Code. The unique code for country.\n `Language` text, -- Country language.\n `IsOfficial` text, -- Is Official. Information on whether the language is official in a given country. T / F.\n `Percentage` real, -- Percentage of language use.\n PRIMARY KEY (CountryCode,Language),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE City (\n `ID` integer, -- the unique id for the city.\n `Name` text, -- the name of the city.\n `CountryCode` text, -- Country Code. the country code of the country that the city is belonged.\n `District` text, -- the district where the city locates.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n primary key (ID),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE Country (\n `Code` text, -- the unique country code of the country.\n `Name` text, -- the country name.\n `Continent` text, -- the continent that the country locates.\n `Region` text, -- the region that the country locates.\n `SurfaceArea` real, -- Surface Area. the surface area of the country.\n `IndepYear` integer, -- Independence Year. the year that the country declared independence.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n `LifeExpectancy` real, -- Life Expectancy. the life expectancy at birth of the country. Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change.\n `GNP` real, -- Gross National Product. the GNP of the country. GNP measures the total monetary value of the output produced by a country's residents.\n `GNPOld` real, -- Gross National Product Old. Gross national product - old value.\n `LocalName` text, -- Local Name. The country's local name.\n `GovernmentForm` text, -- Government Form. The country's goverment form. Republic: governmentform contains \"Republic\".\n `HeadOfState` text, -- Head Of State. The head of state full name.\n `Capital` integer, -- The country's capital. if the capital is null, it means this country doesn't have a city where a region's government is located.\n `Code2` text, -- The second country code.\n PRIMARY KEY (Code)\n);\n\nExternal Knowledge:\nhighest population refers to MAX(Population);\n\nQuestion:\nWhat city has the highest population?", + "question": "What city has the highest population?", + "evidence": "highest population refers to MAX(Population);", + "db_id": "world", + "database_path": "../databases/world.sqlite", + "gold_sql": "SELECT `Name`\nFROM `City`\nWHERE `Population` = (SELECT MAX(`Population`) FROM `City`);", + "source_gold_sql": "SELECT `Name`\nFROM `City`\nWHERE `Population` = (SELECT MAX(`Population`) FROM `City`);", + "source_gold_sql_sha256": "a1ec613b96ade211b5956cff27a04ab246e71199db1d0a80704c8893fab329e7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3776", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\njoined yelp since 2004 refers to user_yelping_since_year = 2004;\n\nQuestion:\nGive the number of users who joined Yelp since \"2004\".", + "question": "Give the number of users who joined Yelp since \"2004\".", + "evidence": "joined yelp since 2004 refers to user_yelping_since_year = 2004;", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(`user_id`) FROM `Users` WHERE `user_yelping_since_year` >= 2004;", + "source_gold_sql": "SELECT COUNT(`user_id`) FROM `Users` WHERE `user_yelping_since_year` >= 2004;", + "source_gold_sql_sha256": "9d245cd59769b955943c657e796f9d4f9533795d3be6d08f7e6e372a412bd3dd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2324", + "domain": "movielens", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movieid` integer, -- movie id. unique identifier number of movies.\n `year` integer, -- 4: newest; 1: oldest. higher value means newer published date.\n `isEnglish` text, -- is English.\n `country` text, -- country.\n `runningtime` integer, -- No description.\n primary key (movieid)\n);\n\nCREATE TABLE u2base (\n `userid` integer, -- user id. identifier number of users.\n `movieid` integer, -- movie id. identifier number of movie.\n `rating` text, -- ratings of movies. higher value refers to higher satisfactory, each value is the rating of movies left by users.\n primary key (userid, movieid)\n);\n\nCREATE TABLE movies2directors (\n `movieid` integer, -- movie id. identifier number of movies.\n `directorid` integer, -- director id. identifier number of directors.\n `genre` text, -- genre of movies.\n primary key (movieid, directorid)\n);\n\nCREATE TABLE actors (\n `actorid` integer, -- actor id. unique identificator number of actors.\n `a_gender` text, -- actor gender. M: male; F: female.\n `a_quality` integer, -- actor quality. higher is better, lower is the worse.\n primary key (actorid)\n);\n\nCREATE TABLE movies2actors (\n `movieid` integer, -- movie id. identifier number of movies.\n `actorid` integer, -- actor id. identifier number of actors.\n `cast_num` integer, -- cast number.\n primary key (movieid, actorid)\n);\n\nCREATE TABLE directors (\n `directorid` integer, -- director id. unique identification number of actors directors.\n `d_quality` integer, -- director quality. higher value is better, lower is the worse.\n `avg_revenue` integer, -- average revenue. higher value is the higher, lower is the lower.\n primary key (directorid)\n);\n\nCREATE TABLE users (\n `userid` integer, -- user id. unique identifier number of users.\n `age` text, -- 1: 1-18 years old; 18: 18-25 years old; 25: 25-35 years old; 35: 35-45 years old; 45: 45-50 years old; 50: 50-56 years old; 56: over 56 years old.\n `u_gender` text, -- user gender. M / F: Male / Female.\n `occupation` text, -- occupation.\n primary key (userid)\n);\n\nExternal Knowledge:\nFrench and USA are two countries; Female actors mean that a_gender = 'F'\n\nQuestion:\nHow many female actors have been played a role in any of French or USA movies?", + "question": "How many female actors have been played a role in any of French or USA movies?", + "evidence": "French and USA are two countries; Female actors mean that a_gender = 'F'", + "db_id": "movielens", + "database_path": "../databases/movielens.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT a.actorid)\nFROM `actors` AS a\nJOIN `movies2actors` AS m2a ON a.actorid = m2a.actorid\nJOIN `movies` AS m ON m2a.movieid = m.movieid\nWHERE a.a_gender = 'F'\n AND m.country IN ('France', 'USA');", + "source_gold_sql": "SELECT COUNT(DISTINCT a.actorid)\nFROM `actors` AS a\nJOIN `movies2actors` AS m2a ON a.actorid = m2a.actorid\nJOIN `movies` AS m ON m2a.movieid = m.movieid\nWHERE a.a_gender = 'F'\n AND m.country IN ('France', 'USA');", + "source_gold_sql_sha256": "7b4a4b16391e54f32e02f8c9d76b71a40cb0b7200264a54714b0e8626495ca3c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2496", + "domain": "genes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Interactions (\n `GeneID1` text, -- gene id 1. identifier number of genes.\n `GeneID2` text, -- gene id 2. identifier number of genes.\n `Type` text, -- Type.\n `Expression_Corr` real, -- Expression correlation score. range: (0,1). if the value is the positive then it's \"positively correlated\". if the value is the negative then it's \"negatively correlated\". if the value is very high positively, it means two genes are highly correlated.\n primary key (GeneID1, GeneID2),\n foreign key (GeneID1) references Classification (GeneID)\n foreign key (GeneID2) references Classification (GeneID)\n);\n\nCREATE TABLE Classification (\n `GeneID` text, -- gene id. unique identifier number of genes.\n `Localization` text, -- location.\n primary key (GeneID)\n);\n\nCREATE TABLE Genes (\n `GeneID` text, -- gene id. identifier number of genes.\n `Essential` text, -- essential.\n `Class` text, -- class.\n `Complex` text, -- Complex.\n `Phenotype` text, -- Phenotype. ?: means: doesn't exit the phenotype.\n `Motif` text, -- Motif.\n `Chromosome` text, -- Chromosome.\n `Function` text, -- Function.\n `Localization` text, -- No description.\n foreign key (GeneID) references Classification (GeneID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nFor the pairs of genes with one having 9 chromosomes and the other having 6 chromosomes, what is the highest expression correlation score?", + "question": "For the pairs of genes with one having 9 chromosomes and the other having 6 chromosomes, what is the highest expression correlation score?", + "evidence": "", + "db_id": "genes", + "database_path": "../databases/genes.sqlite", + "gold_sql": "SELECT MAX(I.`Expression_Corr`)\nFROM `Interactions` AS I\nJOIN `Genes` AS G1 ON G1.`GeneID` = I.`GeneID1`\nJOIN `Genes` AS G2 ON G2.`GeneID` = I.`GeneID2`\nWHERE (G1.`Chromosome` = '9' AND G2.`Chromosome` = '6')\n OR (G1.`Chromosome` = '6' AND G2.`Chromosome` = '9');", + "source_gold_sql": "SELECT MAX(I.`Expression_Corr`)\nFROM `Interactions` AS I\nJOIN `Genes` AS G1 ON G1.`GeneID` = I.`GeneID1`\nJOIN `Genes` AS G2 ON G2.`GeneID` = I.`GeneID2`\nWHERE (G1.`Chromosome` = '9' AND G2.`Chromosome` = '6')\n OR (G1.`Chromosome` = '6' AND G2.`Chromosome` = '9');", + "source_gold_sql_sha256": "b03ccc2e0e9cf9b9348f69d1b169f67465b8e3736415bc0c20344639d062c26c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7315", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\noldest employee refers to min(BirthDate)\n\nQuestion:\nWhat is the job title of the oldest employee in the company? In which department is he in?", + "question": "What is the job title of the oldest employee in the company? In which department is he in?", + "evidence": "oldest employee refers to min(BirthDate)", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT e.JobTitle,\n d.Name AS Department\nFROM Employee e\nJOIN EmployeeDepartmentHistory edh\n ON e.BusinessEntityID = edh.BusinessEntityID\nJOIN Department d\n ON edh.DepartmentID = d.DepartmentID\nWHERE e.BirthDate = (SELECT MIN(BirthDate) FROM Employee)\n AND edh.EndDate IS NULL;", + "source_gold_sql": "SELECT e.JobTitle,\n d.Name AS Department\nFROM Employee e\nJOIN EmployeeDepartmentHistory edh\n ON e.BusinessEntityID = edh.BusinessEntityID\nJOIN Department d\n ON edh.DepartmentID = d.DepartmentID\nWHERE e.BirthDate = (SELECT MIN(BirthDate) FROM Employee)\n AND edh.EndDate IS NULL;", + "source_gold_sql_sha256": "6eb872745739a8b0764fcf7d5fdee3a41b11e5ff5ce91b2a24169c1090e9473d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:363", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\naverage age = avg(age where Company response to consumer = 'Closed with relief'); response \"Closed with relief\" refers to Company response to consumer = 'Closed with relief'\n\nQuestion:\nCalculate the average age of clients whose response is \"Closed with relief\".", + "question": "Calculate the average age of clients whose response is \"Closed with relief\".", + "evidence": "average age = avg(age where Company response to consumer = 'Closed with relief'); response \"Closed with relief\" refers to Company response to consumer = 'Closed with relief'", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT AVG(age)\nFROM (\n SELECT DISTINCT c.client_id, c.age\n FROM client AS c\n JOIN events AS e ON c.client_id = e.Client_ID\n WHERE e.`Company response to consumer` = 'Closed with relief'\n)", + "source_gold_sql": "SELECT AVG(age)\nFROM (\n SELECT DISTINCT c.client_id, c.age\n FROM client AS c\n JOIN events AS e ON c.client_id = e.Client_ID\n WHERE e.`Company response to consumer` = 'Closed with relief'\n)", + "source_gold_sql_sha256": "9234b294c8caa81c6de57aed839797f62d6b483850d2c823d0d5c9c076e3fde4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1387", + "domain": "synthea", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE procedures (\n `DATE` date, -- the date of the procedure. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the procedure.\n `DESCRIPTION` text, -- the description of the procedure.\n `REASONCODE` integer, -- reason code. the code of the reason.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the procedure.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE immunizations (\n `DATE` date, -- the date of the immunization. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the immunization.\n `DESCRIPTION` text, -- the description of the immunization.\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE conditions (\n `START` date, -- the start date of the allergy. mm/dd/yy.\n `STOP` date, -- the stop date of the allergy. mm/dd/yy.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the condition.\n `DESCRIPTION` text, -- the description of the patient condition.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);\n\nCREATE TABLE all_prevalences (\n `ITEM` text, -- the prevalent disease.\n `POPULATION TYPE` text, -- population type. the population type - LIVING.\n `OCCURRENCES` integer, -- the number of occurrences.\n `POPULATION COUNT` integer, -- population count. the number of the counted populations.\n `PREVALENCE RATE` real, -- prevalence rate. the prevalence rate. prevalence rate = occurrences / population_count.\n `PREVALENCE PERCENTAGE` real, -- prevalence percentage. the prevalence percentage. prevalence rate = occurrences / population_count * 100.\n primary key (ITEM)\n);\n\nCREATE TABLE encounters (\n `ID` text, -- the unique id of the encounter.\n `DATE` date, -- the date of the encounter. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `CODE` integer, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n primary key (ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE careplans (\n `ID` text, -- the unique id of the care plan.\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. care plan period:. stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` real, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE medications (\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. Time of taking medicine.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the medication.\n `DESCRIPTION` text, -- the description of the medication.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the medication.\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE patients (\n `patient` text, -- the unique id for the patient.\n `birthdate` date, -- birth date. the birth date of the patient.\n `deathdate` date, -- death date. the death date of the patient. • the age of the patient = death year - birth year. • if null, it means this patient is still alive.\n `ssn` text, -- social security number. the social security number of the patient.\n `drivers` text, -- the driver number of the patient. if not, this patient doesn't have driving license.\n `passport` text, -- the passport number. if not, this patient cannot go abroad, vice versa.\n `prefix` text, -- the prefix.\n `first` text, -- the first name.\n `last` text, -- the last name. full name = first + last.\n `suffix` text, -- the suffix of the patient. if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n `maiden` text, -- the maiden name of the patient. Only married women have the maiden name.\n `marital` text, -- the marital status of the patient. • M: married. • S: single.\n `race` text, -- the race of the patient.\n `ethnicity` text, -- the ethnicity of the patient.\n `gender` text, -- the gender of the patient.\n `birthplace` text, -- birth place. the birth place.\n `address` text, -- the specific address.\n primary key (patient)\n);\n\nCREATE TABLE allergies (\n `START` text, -- the start date of the allergy. mm/dd/yy.\n `STOP` text, -- the stop date of the allergy. mm/dd/yy. allergy period = stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the allergy.\n `DESCRIPTION` text, -- the description of the allergy.\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE claims (\n `ID` text, -- the unique id of the claim.\n `PATIENT` text, -- the patient id.\n `BILLABLEPERIOD` date, -- billable period. the start date of the billable. yyyy-mm-dd.\n `ORGANIZATION` text, -- the claim organization.\n `ENCOUNTER` text, -- the medical encounter id.\n `DIAGNOSIS` text, -- the diagnosis.\n `TOTAL` integer, -- the length of the billable period.\n primary key (ID)\n);\n\nCREATE TABLE observations (\n `DATE` date, -- the date of the observation. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` text, -- the code of the observation type.\n `DESCRIPTION` text, -- the description of the observation.\n `VALUE` real, -- the observation value.\n `UNITS` text, -- the units of the observation value. DESCRIPTION + VALUE + UNITS could be a fact:. e.g.: body height of patient xxx is 166.03 cm:. body height is in DESCRIPTION. 166.03 is in VALUE. cm is in UNITS.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nExternal Knowledge:\nid of the patient refers to PATIENT from allergies where STOP is not null; the longest allergy period refers to MAX(SUBTRACT((SUBSTR(STOP, - 2, 1)! = '9' then substr(STOP, length(STOP) - 1) + 2000 end), (SUBSTR(START, - 2, 1) = '9' then substr(START, length(START) - 1) + 1900 else substr(START, length(START) - 1) + 2000 end)));\n\nQuestion:\nWhat is the id of the patient who has the longest allergy period?", + "question": "What is the id of the patient who has the longest allergy period?", + "evidence": "id of the patient refers to PATIENT from allergies where STOP is not null; the longest allergy period refers to MAX(SUBTRACT((SUBSTR(STOP, - 2, 1)! = '9' then substr(STOP, length(STOP) - 1) + 2000 end), (SUBSTR(START, - 2, 1) = '9' then substr(START, length(START) - 1) + 1900 else substr(START, length(START) - 1) + 2000 end)));", + "db_id": "synthea", + "database_path": "../databases/synthea.sqlite", + "gold_sql": "WITH parsed AS (\n SELECT PATIENT,\n date(printf('%04d-%02d-%02d',\n CASE WHEN CAST(substr(START,-2) AS int) > 68\n THEN 1900 + CAST(substr(START,-2) AS int)\n ELSE 2000 + CAST(substr(START,-2) AS int) END,\n CAST(substr(START,1,instr(START,'/')-1) AS int),\n CAST(substr(START,instr(START,'/')+1,\n instr(substr(START,instr(START,'/')+1),'/')-1) AS int))) AS start_date,\n date(printf('%04d-%02d-%02d',\n CASE WHEN CAST(substr(STOP,-2) AS int) > 68\n THEN 1900 + CAST(substr(STOP,-2) AS int)\n ELSE 2000 + CAST(substr(STOP,-2) AS int) END,\n CAST(substr(STOP,1,instr(STOP,'/')-1) AS int),\n CAST(substr(STOP,instr(STOP,'/')+1,\n instr(substr(STOP,instr(STOP,'/')+1),'/')-1) AS int))) AS stop_date\n FROM allergies\n WHERE STOP IS NOT NULL\n),\nspan AS (\n SELECT PATIENT,\n julianday(stop_date) - julianday(start_date) AS days_len\n FROM parsed\n),\nper_patient AS (\n SELECT PATIENT, MAX(days_len) AS max_len\n FROM span\n GROUP BY PATIENT\n)\nSELECT PATIENT\nFROM per_patient\nWHERE max_len = (\n SELECT MAX(max_len) FROM per_patient);", + "source_gold_sql": "WITH parsed AS (\n SELECT PATIENT,\n date(printf('%04d-%02d-%02d',\n CASE WHEN CAST(substr(START,-2) AS int) > 68\n THEN 1900 + CAST(substr(START,-2) AS int)\n ELSE 2000 + CAST(substr(START,-2) AS int) END,\n CAST(substr(START,1,instr(START,'/')-1) AS int),\n CAST(substr(START,instr(START,'/')+1,\n instr(substr(START,instr(START,'/')+1),'/')-1) AS int))) AS start_date,\n date(printf('%04d-%02d-%02d',\n CASE WHEN CAST(substr(STOP,-2) AS int) > 68\n THEN 1900 + CAST(substr(STOP,-2) AS int)\n ELSE 2000 + CAST(substr(STOP,-2) AS int) END,\n CAST(substr(STOP,1,instr(STOP,'/')-1) AS int),\n CAST(substr(STOP,instr(STOP,'/')+1,\n instr(substr(STOP,instr(STOP,'/')+1),'/')-1) AS int))) AS stop_date\n FROM allergies\n WHERE STOP IS NOT NULL\n),\nspan AS (\n SELECT PATIENT,\n julianday(stop_date) - julianday(start_date) AS days_len\n FROM parsed\n),\nper_patient AS (\n SELECT PATIENT, MAX(days_len) AS max_len\n FROM span\n GROUP BY PATIENT\n)\nSELECT PATIENT\nFROM per_patient\nWHERE max_len = (\n SELECT MAX(max_len) FROM per_patient);", + "source_gold_sql_sha256": "4465ed61c9ca1ce56043501dd6f9c37f85ad358a2ecd49e4653c903167513792", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2728", + "domain": "regional_sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Sales Orders (\n `OrderNumber` text, -- Order Number. the unique number identifying the order.\n `Sales Channel` text, -- Sales Channel. • In-Store. • Online. • Distributor. • Wholesale.\n `WarehouseCode` text, -- Warehouse Code. if the warehouse code is the same, it means this product is shipped from the same ware house.\n `ProcuredDate` text, -- Procured Date. date: month/date/year, 17--> 2017.\n `OrderDate` text, -- Order Date.\n `ShipDate` text, -- Ship Date.\n `DeliveryDate` text, -- Delivery Date. the difference \"DeliveryDate - OrderDate\" is smaller, it means faster delivery.\n `CurrencyCode` text, -- Currency Code. USD.\n `_SalesTeamID` integer, -- _Sales Team ID. Sales Team ID.\n `_CustomerID` integer, -- _Customer ID.\n `_StoreID` integer, -- _Store ID.\n `_ProductID` integer, -- _Product ID.\n `Order Quantity` integer, -- Order Quantity. 1 - 8:. higher means order quantity is higher or customer needs more.\n `Discount Applied` real, -- Discount Applied. 0.2: 20% discount.\n `Unit Price` text, -- No description.\n `Unit Cost` text, -- net profit = Unit Price - Unit Cost.\n primary key (OrderNumber)\n);\n\nCREATE TABLE Regions (\n `StateCode` text, -- state code. the unique code identifying the state.\n `State` text, -- full state name.\n `Region` text, -- the region where the state is located in.\n primary key (StateCode)\n);\n\nCREATE TABLE Sales Team (\n `SalesTeamID` integer, -- SalesTeam ID. unique sales team id.\n `Sales Team` text, -- sales team names.\n `Region` text, -- the region where the state is located in.\n primary key (SalesTeamID)\n);\n\nCREATE TABLE Store Locations (\n `StoreID` integer, -- Store ID. unique store id.\n `City Name` text, -- No description.\n `County` text, -- full county name.\n `StateCode` text, -- State Code. state code.\n `State` text, -- full state name.\n `Type` text, -- type of the store. City. Town. CDP (customer data platform). Unified Government. Consolidated Government. Other. Township. Urban County. Borough. Metropolitan Government.\n `Latitude` real, -- Latitude.\n `Longitude` real, -- Longitude. coordinates or detailed position: (Latitude, Longitude).\n `AreaCode` integer, -- Area Code.\n `Population` integer, -- Population.\n `Household Income` integer, -- Household Income.\n `Median Income` integer, -- Median Income.\n `Land Area` integer, -- Land Area.\n `Water Area` integer, -- Water Area.\n `Time Zone` text, -- Time Zone.\n primary key (StoreID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- product id. unique id number representing each product.\n `Product Name` text, -- product name. name of the product.\n primary key (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- customer id. unique id number indicating which customer.\n `Customer Names` text, -- customer names. the name of the customer.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\nshipped refers to ShipDate; in 2020 refers to SUBSTR(ShipDate, -2) = '20'; highest amount of shipped orders refers to Max(Count(OrderNumber))\n\nQuestion:\nHow many orders were shipped by the sales teams with the highest amount of shipped orders in 2020? Give the names of the said sales teams.", + "question": "How many orders were shipped by the sales teams with the highest amount of shipped orders in 2020? Give the names of the said sales teams.", + "evidence": "shipped refers to ShipDate; in 2020 refers to SUBSTR(ShipDate, -2) = '20'; highest amount of shipped orders refers to Max(Count(OrderNumber))", + "db_id": "regional_sales", + "database_path": "../databases/regional_sales.sqlite", + "gold_sql": "SELECT COUNT(T1.OrderNumber), T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.ShipDate LIKE '%/%/20' GROUP BY T2.`Sales Team` HAVING COUNT(T1.OrderNumber) = (SELECT COUNT(T3.OrderNumber) FROM `Sales Orders` AS T3 INNER JOIN `Sales Team` AS T4 ON T4.SalesTeamID = T3._SalesTeamID WHERE T3.ShipDate LIKE '%/%/20' GROUP BY T4.`Sales Team` ORDER BY COUNT(T3.OrderNumber) DESC LIMIT 1);", + "source_gold_sql": "SELECT COUNT(T1.OrderNumber), T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.ShipDate LIKE '%/%/20' GROUP BY T2.`Sales Team` HAVING COUNT(T1.OrderNumber) = (SELECT COUNT(T3.OrderNumber) FROM `Sales Orders` AS T3 INNER JOIN `Sales Team` AS T4 ON T4.SalesTeamID = T3._SalesTeamID WHERE T3.ShipDate LIKE '%/%/20' GROUP BY T4.`Sales Team` ORDER BY COUNT(T3.OrderNumber) DESC LIMIT 1);", + "source_gold_sql_sha256": "cc5af3ee5d93d3634e65e7f16c38cb05be36205026f4461ad89c3b83e8b36bbc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:986", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nteachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'\n\nQuestion:\nHow many teachers are faculty employees?", + "question": "How many teachers are faculty employees?", + "evidence": "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT COUNT(*)\nFROM `person`\nWHERE `professor` = 1\n AND `hasPosition` = 'Faculty_eme'", + "source_gold_sql": "SELECT COUNT(*)\nFROM `person`\nWHERE `professor` = 1\n AND `hasPosition` = 'Faculty_eme'", + "source_gold_sql_sha256": "1ab6be737a9e9ab02593765eac4ad9218be25e1682d13c0886d8b39edfaadad7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1277", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nthe most enjoyed refers max(rating); 10-star refers to stars = 10\n\nQuestion:\nHow many people gave the most enjoyed episode a 10-star rating?", + "question": "How many people gave the most enjoyed episode a 10-star rating?", + "evidence": "the most enjoyed refers max(rating); 10-star refers to stars = 10", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "SELECT SUM(V.`votes`) FROM `Episode` AS E JOIN `Vote` AS V ON E.`episode_id` = V.`episode_id` WHERE E.`rating` = (SELECT MAX(`rating`) FROM `Episode`) AND V.`stars` = 10;", + "source_gold_sql": "SELECT SUM(V.`votes`) FROM `Episode` AS E JOIN `Vote` AS V ON E.`episode_id` = V.`episode_id` WHERE E.`rating` = (SELECT MAX(`rating`) FROM `Episode`) AND V.`stars` = 10;", + "source_gold_sql_sha256": "f1c58ad485e985483f0e7ac8ffb1b24beef86061387285d66eb0f0b2482cd4a1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4862", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\nJewish refers to religion_bio = 'Jewish'; in Florida refers to state = 'FL';\n\nQuestion:\nList the first names and last names of all the Jewish current legislators that are serving in Florida.", + "question": "List the first names and last names of all the Jewish current legislators that are serving in Florida.", + "evidence": "Jewish refers to religion_bio = 'Jewish'; in Florida refers to state = 'FL';", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.religion_bio = 'Jewish' AND T2.state = 'FL' GROUP BY T1.first_name, T1.last_name", + "source_gold_sql": "SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.religion_bio = 'Jewish' AND T2.state = 'FL' GROUP BY T1.first_name, T1.last_name", + "source_gold_sql_sha256": "097210a8d80caa67dda0bca5cb39c1fba601cd1653f8f9e47d2d48fe60ae33c0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2473", + "domain": "shooting", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE subjects (\n `case_number` text, -- case number.\n `race` text, -- No description.\n `gender` text, -- gender. M: male; F: female.\n `last_name` text, -- last name.\n `first_name` text, -- first name.\n `full_name` text, -- full name.\n foreign key (case_number) references incidents (case_number)\n);\n\nCREATE TABLE incidents (\n `case_number` text, -- case number.\n `date` date, -- date.\n `location` text, -- location.\n `subject_statuses` text, -- subject statuses. statuses of the victims.\n `subject_weapon` text, -- subject weapon.\n `subjects` text, -- subjects.\n `subject_count` integer, -- subject_count.\n `officers` text, -- officers.\n primary key (case_number)\n);\n\nCREATE TABLE officers (\n `case_number` text, -- case number.\n `race` text, -- No description.\n `gender` text, -- gender. M: male; F: female.\n `last_name` text, -- last name.\n `first_name` text, -- first name.\n `full_name` text, -- full name.\n foreign key (case_number) references incidents (case_number)\n);\n\nExternal Knowledge:\nfemale refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%\n\nQuestion:\nWhat is the percentage of female subjects who used the Vehicle as weapon?", + "question": "What is the percentage of female subjects who used the Vehicle as weapon?", + "evidence": "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", + "db_id": "shooting", + "database_path": "../databases/shooting.sqlite", + "gold_sql": "SELECT CAST(SUM(T1.subject_weapon = 'Vehicle') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN subjects T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F'", + "source_gold_sql": "SELECT CAST(SUM(T1.subject_weapon = 'Vehicle') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN subjects T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F'", + "source_gold_sql_sha256": "a0cd1b8dbe1325b1ff7a520b38d4abea98cd9a17c6241a373208b7a9c6dce7e1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:133", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\n1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(COUNT(rating_score))\n\nQuestion:\nWhich 1988 movie got the most ratings?", + "question": "Which 1988 movie got the most ratings?", + "evidence": "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(COUNT(rating_score))", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT m.movie_title\nFROM movies m\nJOIN ratings r ON m.movie_id = r.movie_id\nWHERE m.movie_release_year = 1988\nGROUP BY m.movie_id\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql": "SELECT m.movie_title\nFROM movies m\nJOIN ratings r ON m.movie_id = r.movie_id\nWHERE m.movie_release_year = 1988\nGROUP BY m.movie_id\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql_sha256": "f71cc805940bbb543c6a6dfd2c1914b2a5884acb26c8741dc2efdf5afc6408e2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7251", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nprofit on net = SUBTRACT(LastReceiptCost, StandardPrice);\n\nQuestion:\nWhat is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.", + "question": "What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.", + "evidence": "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT LastReceiptCost - StandardPrice FROM ProductVendor ORDER BY StandardPrice DESC LIMIT 1", + "source_gold_sql": "SELECT LastReceiptCost - StandardPrice FROM ProductVendor ORDER BY StandardPrice DESC LIMIT 1", + "source_gold_sql_sha256": "b1d8e9e351b5a02ad3ce0e64e66cf2fbcfcce2c8d99732e991266976b5045ff3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3563", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nin 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'KEY WORDS: LOAD; IDE; SNP; haplotype; asso- ciation studies'\n\nQuestion:\nAmong papers that were published in 2005, provide the author name of paper with key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\".", + "question": "Among papers that were published in 2005, provide the author name of paper with key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\".", + "evidence": "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'KEY WORDS: LOAD; IDE; SNP; haplotype; asso- ciation studies'", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2005 AND T1.Keyword = 'KEY WORDS: LOAD; IDE; SNP; haplotype; asso- ciation studies'", + "source_gold_sql": "SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2005 AND T1.Keyword = 'KEY WORDS: LOAD; IDE; SNP; haplotype; asso- ciation studies'", + "source_gold_sql_sha256": "38d3e7dce3d6b93b29c687db3781ec04436456e35cb5e04229fd0bff572dfebb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4827", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat is the total number of current legislators with \"John\" as their first name?", + "question": "What is the total number of current legislators with \"John\" as their first name?", + "evidence": "", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "SELECT COUNT(*) FROM current WHERE first_name = 'John'", + "source_gold_sql": "SELECT COUNT(*) FROM current WHERE first_name = 'John'", + "source_gold_sql_sha256": "6c326335de82e6cd6cc4b96bc1b185043025d4be9d12a2abfcbaae863c0365e0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3838", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\nThursday refers to day_of_week = 'Thursday';\n\nQuestion:\nHow many businesses in AZ state do not open on Thursday?", + "question": "How many businesses in AZ state do not open on Thursday?", + "evidence": "Thursday refers to day_of_week = 'Thursday';", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.state LIKE 'AZ' GROUP BY T1.business_id HAVING SUM(CASE WHEN T3.day_of_week LIKE 'Thursday' THEN 1 ELSE 0 END) = 0 ) T4", + "source_gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.state LIKE 'AZ' GROUP BY T1.business_id HAVING SUM(CASE WHEN T3.day_of_week LIKE 'Thursday' THEN 1 ELSE 0 END) = 0 ) T4", + "source_gold_sql_sha256": "cb966d1251c407ffe76ecdc6e1de5809f7a5d18a0976cf454fbb22f10fd8778d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4462", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nenrolled in UCLA refers to school = 'ucla';\n\nQuestion:\nHow many students are enrolled in UCLA school?", + "question": "How many students are enrolled in UCLA school?", + "evidence": "enrolled in UCLA refers to school = 'ucla';", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT COUNT(name) FROM enrolled WHERE school = 'ucla'", + "source_gold_sql": "SELECT COUNT(name) FROM enrolled WHERE school = 'ucla'", + "source_gold_sql_sha256": "30b4ddb474bea7c07ba7fcb7136b71f4eb354513da1a1b1fde7f9372aeddf102", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5452", + "domain": "sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id of the product.\n `Name` text, -- the product name.\n `Price` real, -- the price of the product. unit price. if the price = 0.0, it means this product is free or a gift.\n primary key (ProductID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id of the employee.\n `FirstName` text, -- First Name. the employee's first name.\n `MiddleInitial` text, -- Middle Initial. the employee's middle initial.\n `LastName` text, -- Last Name. the employee's last name.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Sales (\n `SalesID` integer, -- Sales ID. the unique id of the sales.\n `SalesPersonID` integer, -- SalesPerson ID. the unique id of the sale person.\n `CustomerID` integer, -- Customer ID. the unique id of the customer.\n `ProductID` integer, -- Product ID. the unique id of the product.\n `Quantity` integer, -- trading quantity. total price = quantity x Products' Price.\n primary key (SalesID),\n foreign key (SalesPersonID) references Employees (EmployeeID)\n foreign key (CustomerID) references Customers (CustomerID)\n foreign key (ProductID) references Products (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- Customer ID. the unique id of the customer.\n `FirstName` text, -- First Name. the customer's first name.\n `MiddleInitial` text, -- Middle Initial. the customer's middle initial.\n `LastName` text, -- Last Name. the customer's last name.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\nMountain-100 Silver, 38' is name of product;\n\nQuestion:\nHow many \"Mountain-100 Silver, 38\" were sold by Stearns MacFeather?", + "question": "How many \"Mountain-100 Silver, 38\" were sold by Stearns MacFeather?", + "evidence": "Mountain-100 Silver, 38' is name of product;", + "db_id": "sales", + "database_path": "../databases/sales.sqlite", + "gold_sql": "SELECT SUM(T2.Quantity) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Stearns' AND T1.LastName = 'MacFeather' AND T3.Name = 'Mountain-100 Silver, 38'", + "source_gold_sql": "SELECT SUM(T2.Quantity) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Stearns' AND T1.LastName = 'MacFeather' AND T3.Name = 'Mountain-100 Silver, 38'", + "source_gold_sql_sha256": "30accde6fac81c84ac3ae4dd8a29722c46f061052aef40a64d311a67f81901d4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2191", + "domain": "world_development_indicators", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE SeriesNotes (\n `Seriescode` text, -- Series code. code identifying the series.\n `Year` text, -- year.\n `Description` text, -- Description of series.\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);\n\nCREATE TABLE Indicators (\n `CountryName` text, -- Country code. code identifying unique countries.\n `CountryCode` text, -- Series code. Series code of countries.\n `IndicatorName` text, -- Indicator Name. indicator name.\n `IndicatorCode` text, -- Indicator Code. indicator code.\n `Year` integer, -- year.\n `Value` integer, -- value.\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Footnotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Year` text, -- Year.\n `Description` text, -- Description of country footnotes.\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE CountryNotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Description` text, -- description.\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Series (\n `SeriesCode` text, -- Series Code. unique code identifying series.\n `Topic` text, -- topic of series.\n `IndicatorName` text, -- Indicator Name.\n `ShortDefinition` text, -- Short Definition. Short Definition of series.\n `LongDefinition` text, -- Long Definition. Long Definition of series.\n `UnitOfMeasure` text, -- Unit Of Measure.\n `Periodicity` text, -- No description.\n `BasePeriod` text, -- Base Period. a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production.\n `OtherNotes` integer, -- Other Notes.\n `AggregationMethod` text, -- Aggregation Method.\n `LimitationsAndExceptions` text, -- Limitations And Exceptions.\n `NotesFromOriginalSource` text, -- Notes From Original Source.\n `GeneralComments` text, -- General Comments.\n `Source` text, -- source of this data.\n `StatisticalConceptAndMethodology` text, -- Statistical Concept And Methodology.\n `DevelopmentRelevance` text, -- Development Relevance.\n `RelatedSourceLinks` text, -- Related Source Links.\n `OtherWebLinks` integer, -- Other Web Links.\n `RelatedIndicators` integer, -- Related Indicators.\n `LicenseType` text, -- License Type.\n primary key (SeriesCode)\n);\n\nCREATE TABLE Country (\n `CountryCode` text, -- Country Code. unique code identifying countries.\n `ShortName` text, -- Short Name. Short names of countries.\n `TableName` text, -- Table Name. table names of countries.\n `LongName` text, -- Long Name. long or full name of countries.\n `Alpha2Code` text, -- Alpha to Code. 2 digit code of countries.\n `CurrencyUnit` text, -- Currency Unit. Currency Unit used in this country.\n `SpecialNotes` text, -- Special Notes.\n `Region` text, -- region that country belongs to.\n `IncomeGroup` text, -- Income Group. income level of countries.\n `Wb2Code` text, -- world bank to code.\n `NationalAccountsBaseYear` text, -- National Accounts Base Year. the year used as the base period for constant price calculations in the country's national accounts.\n `NationalAccountsReferenceYear` text, -- National Accounts Reference Year.\n `SnaPriceValuation` text, -- SNA Price Valuation.\n `LendingCategory` text, -- Lending Category. Lending category. • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n `OtherGroups` text, -- Other groups. other groups. • HIPC: Heavily Indebted Poor Countries. • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n `SystemOfNationalAccounts` text, -- System Of National Accounts.\n `AlternativeConversionFactor` text, -- Alternative Conversion Factor. Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method.\n `PppSurveyYear` text, -- purchasing power parity survey year.\n `BalanceOfPaymentsManualInUse` text, -- Balance Of Payments Manual In Use.\n `ExternalDebtReportingStatus` text, -- External Debt Reporting Status. • Actual. • Preliminary. • Estimate. commonsense reasoning:. If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished. if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished.\n `SystemOfTrade` text, -- System Of Trade.\n `GovernmentAccountingConcept` text, -- Government Accounting Concept.\n `ImfDataDisseminationStandard` text, -- International Monetory Fund Data Dissemination Standard. IMF Standards for Data Dissemination.\n `LatestPopulationCensus` text, -- Latest Population Census.\n `LatestHouseholdSurvey` text, -- Latest Household Survey.\n `SourceOfMostRecentIncomeAndExpenditureData` text, -- Source Of Most Recent Income And Expenditure Data.\n `VitalRegistrationComplete` text, -- Vital Registration Complete.\n `LatestAgriculturalCensus` text, -- Latest Agricultural Census.\n `LatestIndustrialData` integer, -- Latest Industrial Data.\n `LatestTradeData` integer, -- Latest Trade Data.\n `LatestWaterWithdrawalData` integer, -- Latest Water Withdrawal Data.\n primary key (CountryCode)\n);\n\nExternal Knowledge:\nuses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'\n\nQuestion:\nHow many countries uses the 1968 System of National Accounts methodology?", + "question": "How many countries uses the 1968 System of National Accounts methodology?", + "evidence": "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'", + "db_id": "world_development_indicators", + "database_path": "../databases/world_development_indicators.sqlite", + "gold_sql": "SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'", + "source_gold_sql": "SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'", + "source_gold_sql_sha256": "fe62a94b3c7d706d242c1bba7675efc1e2f84a988b1db110a1a5fb2eb41ad7b0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:174", + "domain": "book_publishing_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE jobs (\n `job_id` integer, -- job id. unique id number identifying the jobs.\n `job_desc` text, -- job description. staff should be mentioned.\n `min_lvl` integer, -- min level. min job level.\n `max_lvl` integer, -- max level. max job level. level range for jobs mentioned in job_desc is (min_lvl, max_lvl).\n primary key (job_id)\n);\n\nCREATE TABLE pub_info (\n `pub_id` text, -- publication id. unique id number identifying publications.\n `logo` blob, -- logo of publications.\n `pr_info` text, -- publisher's information.\n primary key (pub_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE sales (\n `stor_id` text, -- store id. id number identifying stores.\n `ord_num` text, -- order number. id number identifying the orders.\n `ord_date` datetime, -- order date. the date of the order.\n `qty` integer, -- quantity. quantity of sales.\n `payterms` text, -- payments.\n `title_id` text, -- title id. id number identifying titles.\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n foreign key (title_id) references titles(title_id)\n);\n\nCREATE TABLE publishers (\n `pub_id` text, -- publisher id. unique id number identifying publisher.\n `pub_name` text, -- publisher name.\n `city` text, -- No description.\n `state` text, -- No description.\n `country` text, -- No description.\n primary key (pub_id)\n);\n\nCREATE TABLE titleauthor (\n `au_id` text, -- author id.\n `title_id` text, -- title id.\n `au_ord` integer, -- author ordering.\n `royaltyper` integer, -- royaltyper.\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n foreign key (title_id) references titles (title_id)\n);\n\nCREATE TABLE employee (\n `emp_id` text, -- employee id. unique number identifying employees.\n `fname` text, -- first name. first name of employees.\n `minit` text, -- middle name.\n `lname` text, -- last name.\n `job_id` integer, -- job id. number identifying jobs.\n `job_lvl` integer, -- job level. higher value means job level is higher.\n `pub_id` text, -- publisher id. id number identifying publishers.\n `hire_date` datetime, -- hire date.\n primary key (emp_id),\n foreign key (job_id) references jobs(job_id)\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE titles (\n `title_id` text, -- title id.\n `title` text, -- title.\n `type` text, -- type of titles.\n `pub_id` text, -- publisher id.\n `price` real, -- price.\n `advance` real, -- pre-paid amount.\n `royalty` integer, -- royalty.\n `ytd_sales` integer, -- year to date sales.\n `notes` text, -- notes if any. had better understand notes contents and put some of them into questions if any.\n `pubdate` datetime, -- publication date.\n primary key (title_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE authors (\n `au_id` text, -- author id. unique number identifying authors.\n `au_lname` text, -- author last name.\n `au_fname` text, -- author first name.\n `phone` text, -- phone number.\n `address` text, -- address.\n `city` text, -- city.\n `state` text, -- state.\n `zip` text, -- zip code.\n `contract` text, -- contract status. 0: not on the contract. 1: on the contract.\n primary key (au_id)\n);\n\nCREATE TABLE stores (\n `stor_id` text, -- store id. unique id number of stores.\n `stor_name` text, -- store name.\n `stor_address` text, -- store address.\n `city` text, -- city name.\n `state` text, -- state code.\n `zip` text, -- zip code.\n primary key (stor_id)\n);\n\nCREATE TABLE discounts (\n `discounttype` text, -- discount type.\n `stor_id` text, -- store id.\n `lowqty` integer, -- low quantity. low quantity (quantity floor). The minimum quantity to enjoy the discount.\n `highqty` integer, -- high quantity. high quantity (max quantity). The maximum quantity to enjoy the discount.\n `discount` real, -- No description.\n foreign key (stor_id) references stores(stor_id)\n);\n\nCREATE TABLE roysched (\n `title_id` text, -- unique id number identifying title.\n `lorange` integer, -- low range.\n `hirange` integer, -- high range.\n `royalty` integer, -- royalty.\n foreign key (title_id) references titles(title_id)\n);\n\nExternal Knowledge:\nmost year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000\n\nQuestion:\nState the royalty percentages for the most year to date sale title within the 20000 range.", + "question": "State the royalty percentages for the most year to date sale title within the 20000 range.", + "evidence": "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", + "db_id": "book_publishing_company", + "database_path": "../databases/book_publishing_company.sqlite", + "gold_sql": "SELECT r.royalty\nFROM titles t\nJOIN roysched r ON t.title_id = r.title_id\nWHERE r.hirange < 20000\nAND t.ytd_sales = (\n SELECT MAX(t1.ytd_sales) \n FROM titles t1\n JOIN roysched r1 ON t1.title_id = r1.title_id\n WHERE r1.hirange < 20000)", + "source_gold_sql": "SELECT r.royalty\nFROM titles t\nJOIN roysched r ON t.title_id = r.title_id\nWHERE r.hirange < 20000\nAND t.ytd_sales = (\n SELECT MAX(t1.ytd_sales) \n FROM titles t1\n JOIN roysched r1 ON t1.title_id = r1.title_id\n WHERE r1.hirange < 20000)", + "source_gold_sql_sha256": "1b238a696397bb411423a0d4c2087f7cbbc1a3873e46f3554375c6a2328fbc0c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8054", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nin Denmark refers to country_name = 'Denmark'; name of university refers to university_name;\n\nQuestion:\nList the universities in Denmark.", + "question": "List the universities in Denmark.", + "evidence": "in Denmark refers to country_name = 'Denmark'; name of university refers to university_name;", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Denmark'", + "source_gold_sql": "SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Denmark'", + "source_gold_sql_sha256": "bd980b21e956a97f8eaaab4963a8723dbca1d8a6eb17391b702aa20546509049", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5721", + "domain": "language_corpus", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE words (\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `word` text, -- The word itself.\n `occurrences` integer, -- The occurrences of the specific word.\n primary key (CREATE)\n);\n\nCREATE TABLE pages (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `page` integer, -- wikipedia page id.\n `revision` integer, -- wikipedia revision page id.\n `title` text, -- The title of this Catalan language Wikipedia page.\n `words` integer, -- number of different words in this page.\n primary key (CREATE)\n);\n\nCREATE TABLE biwords (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `w1st` integer, -- word id of the first word. The word id of the first word of the biwords pair. The value is unique.\n `w2nd` integer, -- word id of the second word. The word id of the second word of the biwords pair. The value is unique.\n `occurrences` integer, -- times of this pair appears in this language/page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE pages_words (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `occurrences` integer, -- times of this word appears into this page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs_words (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language.\n `occurrences` integer, -- repetitions of this word in this language. it's INTEGER and DEFAULT is 0.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs (\n `lid` integer, -- language id. lid=1 means it's the Catalan language.\n `lang` text, -- language. language name. ca means Catalan language.\n `locale` text, -- The locale of the language.\n `pages` integer, -- total pages of Wikipedia in this language.\n `words` integer, -- total number of words in this pages.\n primary key (CREATE)\n);\n\nExternal Knowledge:\nrepeated the most times refer to MAX(occurrences);\n\nQuestion:\nIndicate which is the word that is repeated the most times.", + "question": "Indicate which is the word that is repeated the most times.", + "evidence": "repeated the most times refer to MAX(occurrences);", + "db_id": "language_corpus", + "database_path": "../databases/language_corpus.sqlite", + "gold_sql": "SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words )", + "source_gold_sql": "SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words )", + "source_gold_sql_sha256": "c2db7b16851a5d025875144448a2deb3205fcad196883e6fb58fd82639df542b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4714", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nWolfgang Reitherman refers to director = 'Wolfgang Reitherman';\n\nQuestion:\nProvide the names of voice actors for the characters of films directed by Wolfgang Reitherman.", + "question": "Provide the names of voice actors for the characters of films directed by Wolfgang Reitherman.", + "evidence": "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman';", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT DISTINCT `voice-actor`\nFROM `voice-actors`\nWHERE `movie` IN (\n SELECT `name`\n FROM `director`\n WHERE `director` = 'Wolfgang Reitherman'\n);", + "source_gold_sql": "SELECT DISTINCT `voice-actor`\nFROM `voice-actors`\nWHERE `movie` IN (\n SELECT `name`\n FROM `director`\n WHERE `director` = 'Wolfgang Reitherman'\n);", + "source_gold_sql_sha256": "b27cbb3a0d153fae7e7a384ac472d3ed8c9ed6c067d787b7cfbf0b8723ae3245", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6652", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\nName the shipper refers to ShipperName; most shipments refers to max(count(OrderID)); first quarter of 1997 refers to ShippedDate = 1997/1 and ShippedDate = 1997/2 and ShippedDate = 1997/3\n\nQuestion:\nName the shipper which had the most shipments in first quarter of 1997.", + "question": "Name the shipper which had the most shipments in first quarter of 1997.", + "evidence": "Name the shipper refers to ShipperName; most shipments refers to max(count(OrderID)); first quarter of 1997 refers to ShippedDate = 1997/1 and ShippedDate = 1997/2 and ShippedDate = 1997/3", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "WITH sub as (SELECT ShipperName, COUNT(*) as num\nFROM `Orders` o\nJOIN `Shippers` s ON s.`ShipperID` = o.`ShipperID`\nWHERE strftime('%Y', o.`OrderDate`) = '1997'\n AND CAST(strftime('%m', o.`OrderDate`) AS INTEGER) BETWEEN 1 AND 3\nGROUP BY s.`ShipperID`\n)\nselect ShipperName FROM sub where num = (SELECT max(num) from sub)", + "source_gold_sql": "WITH sub as (SELECT ShipperName, COUNT(*) as num\nFROM `Orders` o\nJOIN `Shippers` s ON s.`ShipperID` = o.`ShipperID`\nWHERE strftime('%Y', o.`OrderDate`) = '1997'\n AND CAST(strftime('%m', o.`OrderDate`) AS INTEGER) BETWEEN 1 AND 3\nGROUP BY s.`ShipperID`\n)\nselect ShipperName FROM sub where num = (SELECT max(num) from sub)", + "source_gold_sql_sha256": "2ec2c8d980149731005dfc61a9b5fb93ee8899ec7aeac3b6675ac43a2ccf24da", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2463", + "domain": "shooting", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE subjects (\n `case_number` text, -- case number.\n `race` text, -- No description.\n `gender` text, -- gender. M: male; F: female.\n `last_name` text, -- last name.\n `first_name` text, -- first name.\n `full_name` text, -- full name.\n foreign key (case_number) references incidents (case_number)\n);\n\nCREATE TABLE incidents (\n `case_number` text, -- case number.\n `date` date, -- date.\n `location` text, -- location.\n `subject_statuses` text, -- subject statuses. statuses of the victims.\n `subject_weapon` text, -- subject weapon.\n `subjects` text, -- subjects.\n `subject_count` integer, -- subject_count.\n `officers` text, -- officers.\n primary key (case_number)\n);\n\nCREATE TABLE officers (\n `case_number` text, -- case number.\n `race` text, -- No description.\n `gender` text, -- gender. M: male; F: female.\n `last_name` text, -- last name.\n `first_name` text, -- first name.\n `full_name` text, -- full name.\n foreign key (case_number) references incidents (case_number)\n);\n\nExternal Knowledge:\nyear refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'\n\nQuestion:\nIn which year has the greatest number of cases where Handgun was used as weapon?", + "question": "In which year has the greatest number of cases where Handgun was used as weapon?", + "evidence": "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", + "db_id": "shooting", + "database_path": "../databases/shooting.sqlite", + "gold_sql": "SELECT year\nFROM (\n SELECT SUBSTR(`date`,1,4) AS year,\n COUNT(*) AS cnt\n FROM incidents\n WHERE `subject_weapon` = 'Handgun'\n GROUP BY year\n)\nWHERE cnt = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM incidents\n WHERE `subject_weapon` = 'Handgun'\n GROUP BY SUBSTR(`date`,1,4)\n )\n);", + "source_gold_sql": "SELECT year\nFROM (\n SELECT SUBSTR(`date`,1,4) AS year,\n COUNT(*) AS cnt\n FROM incidents\n WHERE `subject_weapon` = 'Handgun'\n GROUP BY year\n)\nWHERE cnt = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM incidents\n WHERE `subject_weapon` = 'Handgun'\n GROUP BY SUBSTR(`date`,1,4)\n )\n);", + "source_gold_sql_sha256": "e3e471a519de2d4e9a795a722b5a39f9edeb74d8895bb8e391e7cd43255131f3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9352", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList down all of the customers' first name who were attended by staff with ID 1.", + "question": "List down all of the customers' first name who were attended by staff with ID 1.", + "evidence": "", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT DISTINCT T1.first_name FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 1", + "source_gold_sql": "SELECT DISTINCT T1.first_name FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 1", + "source_gold_sql_sha256": "35952ddc1da19bb6e72e15c35406027b9f0a7b5820181414aa357e49d5eee1c5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:657", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nsolutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Forks, 4/3))= r.`Forks`*4.0/3;", + "source_gold_sql": "SELECT COUNT(*)\nFROM `Solution` AS s\nJOIN `Repo` AS r ON s.`RepoId` = r.`Id`\nWHERE r.`Stars` >= r.`Forks`*4.0/3;", + "source_gold_sql_sha256": "a4a795d28fd32061fa15872e87ad8832526ad215aeec1d3402eb3c6918a624b7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9391", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; greater than $10 refers to amount > 10\n\nQuestion:\nList all customers who paid greater than $10 in a single payment. Provide the full name of the customers.", + "question": "List all customers who paid greater than $10 in a single payment. Provide the full name of the customers.", + "evidence": "full name refers to first_name, last_name; greater than $10 refers to amount > 10", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT DISTINCT c.`first_name`,\n c.`last_name`\nFROM `customer` AS c\nJOIN `payment` AS p ON p.`customer_id` = c.`customer_id`\nWHERE p.`amount` > 10", + "source_gold_sql": "SELECT DISTINCT c.`first_name`,\n c.`last_name`\nFROM `customer` AS c\nJOIN `payment` AS p ON p.`customer_id` = c.`customer_id`\nWHERE p.`amount` > 10", + "source_gold_sql_sha256": "fe49e62d45e72adadc5c0c171f66899b36a0ef4016ea6d6423880ea174148cad", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1322", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nwho refers to name; writer refers to role = 'writer'; won refers to result = 'Winner'; the Television refers to award = 'Television'; Silver Gavel Award refers to award_category = 'Silver Gavel Award'; the American Bar Association Silver Gavel Awards for Media and the Arts refers to organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'\n\nQuestion:\nWho was the Law and Order series writer who also won the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years?", + "question": "Who was the Law and Order series writer who also won the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years?", + "evidence": "who refers to name; writer refers to role = 'writer'; won refers to result = 'Winner'; the Television refers to award = 'Television'; Silver Gavel Award refers to award_category = 'Silver Gavel Award'; the American Bar Association Silver Gavel Awards for Media and the Arts refers to organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "WITH winners AS (\n SELECT person_id, year\n FROM Award\n WHERE organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'\n AND award_category = 'Silver Gavel Award'\n AND award = 'Television'\n AND series = 'Law and Order'\n AND role = 'writer'\n AND result = 'Winner'\n),\ntagged AS (\n SELECT person_id,\n year,\n LAG(year) OVER (PARTITION BY person_id ORDER BY year) AS prev_year\n FROM winners\n)\nSELECT DISTINCT Person.name\nFROM tagged\nJOIN Person ON Person.person_id = tagged.person_id\nWHERE prev_year = year - 1;", + "source_gold_sql": "WITH winners AS (\n SELECT person_id, year\n FROM Award\n WHERE organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'\n AND award_category = 'Silver Gavel Award'\n AND award = 'Television'\n AND series = 'Law and Order'\n AND role = 'writer'\n AND result = 'Winner'\n),\ntagged AS (\n SELECT person_id,\n year,\n LAG(year) OVER (PARTITION BY person_id ORDER BY year) AS prev_year\n FROM winners\n)\nSELECT DISTINCT Person.name\nFROM tagged\nJOIN Person ON Person.person_id = tagged.person_id\nWHERE prev_year = year - 1;", + "source_gold_sql_sha256": "add692568041565e02599241bde01364354f5a4b9e9b802a3afe2f370bbff772", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1733", + "domain": "restaurant", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE geographic (\n `city` text, -- the city.\n `county` text, -- country. the country the city belongs to.\n `region` text, -- corresponding regions.\n primary key (city)\n);\n\nCREATE TABLE location (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `street_num` integer, -- street number. the street number of the restaurant.\n `street_name` text, -- street name. the street name of the restaurant.\n `city` text, -- the city where the restaurant is located in.\n primary key (id_restaurant),\n foreign key (city) references geographic (city)\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n);\n\nCREATE TABLE generalinfo (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `label` text, -- the label of the restaurant.\n `food_type` text, -- food type. the food type.\n `city` text, -- the city where the restaurant is located in.\n `review` real, -- the review of the restaurant. the review rating is from 0.0 to 5.0. The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n primary key (id_restaurant),\n foreign key (city) references geographic(city)\n);\n\nExternal Knowledge:\nstreet refers to street_name; San Francisco refers to city = 'san francisco'; burger restaurant refers to food_type = 'burgers'; the most burger restaurants refers to max(count(street_name where food_type = 'burgers' and city = 'san francisco'))\n\nQuestion:\nWhich street in San Francisco has the most burger restaurants?", + "question": "Which street in San Francisco has the most burger restaurants?", + "evidence": "street refers to street_name; San Francisco refers to city = 'san francisco'; burger restaurant refers to food_type = 'burgers'; the most burger restaurants refers to max(count(street_name where food_type = 'burgers' and city = 'san francisco'))", + "db_id": "restaurant", + "database_path": "../databases/restaurant.sqlite", + "gold_sql": "WITH street_num AS (\n SELECT T2.street_name, COUNT(*) num\n FROM generalinfo AS T1 \n INNER JOIN location AS T2 \n ON T1.id_restaurant = T2.id_restaurant \n WHERE T1.city = 'san francisco' AND T1.food_type = 'burgers' \n GROUP BY T2.street_name \n) SELECT street_name FROM street_num WHERE num = (SELECT MAX(num) FROM street_num)", + "source_gold_sql": "WITH street_num AS (\n SELECT T2.street_name, COUNT(*) num\n FROM generalinfo AS T1 \n INNER JOIN location AS T2 \n ON T1.id_restaurant = T2.id_restaurant \n WHERE T1.city = 'san francisco' AND T1.food_type = 'burgers' \n GROUP BY T2.street_name \n) SELECT street_name FROM street_num WHERE num = (SELECT MAX(num) FROM street_num)", + "source_gold_sql_sha256": "4413f93bd38e8679bc499589d8ae31c6fe14cc4c772b2b0ef71a0d6d74af991e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1763", + "domain": "restaurant", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE geographic (\n `city` text, -- the city.\n `county` text, -- country. the country the city belongs to.\n `region` text, -- corresponding regions.\n primary key (city)\n);\n\nCREATE TABLE location (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `street_num` integer, -- street number. the street number of the restaurant.\n `street_name` text, -- street name. the street name of the restaurant.\n `city` text, -- the city where the restaurant is located in.\n primary key (id_restaurant),\n foreign key (city) references geographic (city)\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n);\n\nCREATE TABLE generalinfo (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `label` text, -- the label of the restaurant.\n `food_type` text, -- food type. the food type.\n `city` text, -- the city where the restaurant is located in.\n `review` real, -- the review of the restaurant. the review rating is from 0.0 to 5.0. The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n primary key (id_restaurant),\n foreign key (city) references geographic(city)\n);\n\nExternal Knowledge:\nasian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385\n\nQuestion:\nAmong all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385?", + "question": "Among all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385?", + "evidence": "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", + "db_id": "restaurant", + "database_path": "../databases/restaurant.sqlite", + "gold_sql": "SELECT COUNT(T1.id_restaurant) AS num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'milpitas' AND T2.food_type = 'asian' AND T1.street_name = 'n milpitas blvd' AND T1.id_restaurant > 385", + "source_gold_sql": "SELECT COUNT(T1.id_restaurant) AS num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'milpitas' AND T2.food_type = 'asian' AND T1.street_name = 'n milpitas blvd' AND T1.id_restaurant > 385", + "source_gold_sql_sha256": "ecece9168bb6c075d36e427caaadecb470dedbfd60663cf9f1d842b532d67a95", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6732", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\ncustomers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;\n\nQuestion:\nAmong the customers from Morocco, how many customers were in debt?", + "question": "Among the customers from Morocco, how many customers were in debt?", + "evidence": "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 0 AND T2.n_name = 'MOROCCO'", + "source_gold_sql": "SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 0 AND T2.n_name = 'MOROCCO'", + "source_gold_sql_sha256": "fb34305029600da63e60a815908aef468b7a49eeace4568f4be817e51c12b20a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1600", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\ncancelled shipment refers to status = 'cancelled'; creditLimit > 115000;\n\nQuestion:\nHow many customers with a canceled shipment have a credit limit greater than 115,000?", + "question": "How many customers with a canceled shipment have a credit limit greater than 115,000?", + "evidence": "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.customerNumber)\nFROM `customers` AS T1\nJOIN `orders` AS T2 ON T1.customerNumber = T2.customerNumber\nWHERE T2.`status` = 'Cancelled'\n AND T1.`creditLimit` > 115000;", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.customerNumber)\nFROM `customers` AS T1\nJOIN `orders` AS T2 ON T1.customerNumber = T2.customerNumber\nWHERE T2.`status` = 'Cancelled'\n AND T1.`creditLimit` > 115000;", + "source_gold_sql_sha256": "f372bb0bb466eb5c7b36ceafb465447ae6c6bb63a9af5de2f910e4bb465132cb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3267", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nSuffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'\n\nQuestion:\nHow many schools in Suffolk County have Ph.D. teachers?", + "question": "How many schools in Suffolk County have Ph.D. teachers?", + "evidence": "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT schoolid) FROM projects WHERE teacher_prefix = 'Dr.' AND school_county = 'Suffolk'", + "source_gold_sql": "SELECT COUNT(DISTINCT schoolid) FROM projects WHERE teacher_prefix = 'Dr.' AND school_county = 'Suffolk'", + "source_gold_sql_sha256": "a4606446adccce28c3dd54f1f4998efef6704b5e0271003169fd4e8a65690bda", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7047", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nlongest assembly item duration = max(subtract(EndDate,StartDate))\n\nQuestion:\nWhat is the longest assembly item duration?", + "question": "What is the longest assembly item duration?", + "evidence": "longest assembly item duration = max(subtract(EndDate,StartDate))", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT JULIANDAY(EndDate) - JULIANDAY(StartDate) FROM BillOfMaterials ORDER BY JULIANDAY(EndDate) - JULIANDAY(StartDate) DESC LIMIT 1", + "source_gold_sql": "SELECT JULIANDAY(EndDate) - JULIANDAY(StartDate) FROM BillOfMaterials ORDER BY JULIANDAY(EndDate) - JULIANDAY(StartDate) DESC LIMIT 1", + "source_gold_sql_sha256": "4b5fa369b25045ddc9ed392ac07ee61b28b3493aaa34ec98c2b0348fd72b34c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8157", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nstore no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr\n\nQuestion:\nGive the id of the bestsellers of store no.1 on 2012/1/1.", + "question": "Give the id of the bestsellers of store no.1 on 2012/1/1.", + "evidence": "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT `item_nbr`\nFROM `sales_in_weather`\nWHERE `date` = '2012-01-01'\n AND `store_nbr` = 1\n AND `units` = (\n SELECT MAX(`units`)\n FROM `sales_in_weather`\n WHERE `date` = '2012-01-01'\n AND `store_nbr` = 1\n );", + "source_gold_sql": "SELECT `item_nbr`\nFROM `sales_in_weather`\nWHERE `date` = '2012-01-01'\n AND `store_nbr` = 1\n AND `units` = (\n SELECT MAX(`units`)\n FROM `sales_in_weather`\n WHERE `date` = '2012-01-01'\n AND `store_nbr` = 1\n );", + "source_gold_sql_sha256": "581bc8cf7966c9bd8055d302b5d7e567407189ea69112dd7af913650b30bde04", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4355", + "domain": "simpson_episodes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Character_Award (\n `award_id` integer, -- award id. A unique identifier for the award.\n `character` text, -- the name of the awarded character.\n foreign key (award_id) references Award(award_id)\n);\n\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `stars` integer, -- the star score of the episode. 1-10. Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n `votes` integer, -- the number of votes of the star score.\n `percent` real, -- the percent of the vote number of the star score. percent = the number of votes for the star / the total amount of votes for all stars.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `keyword` text, -- the keywords of episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `category` text, -- the category of the credit.\n `person` text, -- the name of cast and crew members.\n `role` text, -- the role of the person.\n `credited` text, -- whether the person is credited. true/ false. • true: The person is included in the credit list. • false: The person isn't included in the credit list.\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `season` integer, -- the season of the episode.\n `episode` integer, -- the episode number of the episode.\n `number_in_series` integer, -- number in series. the number in series.\n `title` text, -- the title of the episode.\n `summary` text, -- the summary of the episode.\n `air_date` text, -- air date. the air date of the episode. YYYY-MM-DD.\n `episode_image` text, -- episode image. the image of episode.\n `rating` real, -- the rating of episode. 0.0 - 10.0. Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0. • average: 5.0 < rating <= 7.0. • bad: 0.0 < rating <= 5.0. not bad: average, excellent.\n `votes` integer, -- the votes of episode. Higher votes mean more audience supports (or popular).\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique id for the award.\n `organization` text, -- the organization that holds the award.\n `year` integer, -- year of award.\n `award_category` text, -- the category of the award.\n `award` text, -- the name of the award.\n `person` text, -- the person who gets the award.\n `role` text, -- the role of the honoree.\n `episode_id` text, -- episode id. S stands for 'Season' and E stands for 'Episode'.\n `season` text, -- the season of the awarded work.\n `song` text, -- the theme song of the awarded work.\n `result` text, -- the final award result. • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award.\n primary key (award_id),\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Person (\n `name` text, -- the name of the crew.\n `birthdate` text, -- birth date. the birth date of the crew. YYYY-MM-DD.\n `birth_name` text, -- birth name. the birth name of the crew.\n `birth_place` text, -- birth place. the birth place of the crew.\n `birth_region` text, -- birth region. the birth region of the crew.\n `birth_country` text, -- birth country. the birth country of the crew.\n `height_meters` real, -- height meters. the height of the crew. the unit is meter.\n `nickname` text, -- the nickname of the crew.\n primary key (name)\n);\n\nExternal Knowledge:\naired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5\n\nQuestion:\nList down the episode ID of episodes aired in 2008 with 5 stars and below.", + "question": "List down the episode ID of episodes aired in 2008 with 5 stars and below.", + "evidence": "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", + "db_id": "simpson_episodes", + "database_path": "../databases/simpson_episodes.sqlite", + "gold_sql": "SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' AND T2.stars <= 5;", + "source_gold_sql": "SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' AND T2.stars <= 5;", + "source_gold_sql_sha256": "cd0dc5290a2c658875fbc134f3fe601ed9b6be2cb25c05328bd00804ce9d1096", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6058", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\norder updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100\n\nQuestion:\nAmong all orders updated in 2022, identify the percentage that has been returned.", + "question": "Among all orders updated in 2022, identify the percentage that has been returned.", + "evidence": "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT 100.0 * COUNT(DISTINCT CASE WHEN os.`status_value` = 'Returned' THEN oh.`order_id` END) / COUNT(DISTINCT oh.`order_id`) AS returned_pct FROM `order_history` AS oh JOIN `order_status` AS os ON os.`status_id` = oh.`status_id` WHERE STRFTIME('%Y', oh.`status_date`) = '2022'", + "source_gold_sql": "SELECT 100.0 * COUNT(DISTINCT CASE WHEN os.`status_value` = 'Returned' THEN oh.`order_id` END) / COUNT(DISTINCT oh.`order_id`) AS returned_pct FROM `order_history` AS oh JOIN `order_status` AS os ON os.`status_id` = oh.`status_id` WHERE STRFTIME('%Y', oh.`status_date`) = '2022'", + "source_gold_sql_sha256": "a8d1c7d431243446cf411c86485a4175704e737c158c0e5ed60a342f3410f264", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3224", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\ndonors are teachers refers to is_teacher_acct = 't'; Brooklyn is school_city; percentage = Divide(Count(school_city='Brooklyn'),Count(school_city))*100\n\nQuestion:\nAmong the schools whose donors are teachers, what is the percentage of schools that are in Brooklyn?", + "question": "Among the schools whose donors are teachers, what is the percentage of schools that are in Brooklyn?", + "evidence": "donors are teachers refers to is_teacher_acct = 't'; Brooklyn is school_city; percentage = Divide(Count(school_city='Brooklyn'),Count(school_city))*100", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "WITH teacher_schools AS (\n SELECT DISTINCT p.`schoolid`, p.`school_city`\n FROM `projects` p\n JOIN `donations` d ON p.`projectid` = d.`projectid`\n WHERE d.`is_teacher_acct` = 't'\n)\nSELECT 100.0 *\n SUM(CASE WHEN `school_city` = 'Brooklyn' THEN 1 ELSE 0 END) / COUNT(*) AS brooklyn_school_percentage\nFROM teacher_schools;", + "source_gold_sql": "WITH teacher_schools AS (\n SELECT DISTINCT p.`schoolid`, p.`school_city`\n FROM `projects` p\n JOIN `donations` d ON p.`projectid` = d.`projectid`\n WHERE d.`is_teacher_acct` = 't'\n)\nSELECT 100.0 *\n SUM(CASE WHEN `school_city` = 'Brooklyn' THEN 1 ELSE 0 END) / COUNT(*) AS brooklyn_school_percentage\nFROM teacher_schools;", + "source_gold_sql_sha256": "c5f62c1fa36bb06536659c3db543306be13587f827cc489f22781affc23d2bea", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4020", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\non Saturday refers to day_of_week = 'Saturday'\n\nQuestion:\nWhat is the closing time of business id 4 on Saturday?", + "question": "What is the closing time of business id 4 on Saturday?", + "evidence": "on Saturday refers to day_of_week = 'Saturday'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT T2.closing_time FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Saturday' AND T2.business_id = 4", + "source_gold_sql": "SELECT T2.closing_time FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Saturday' AND T2.business_id = 4", + "source_gold_sql_sha256": "d67eb647ca2c462468c4fd5d87785ad999885e267370278687b91f3c74d9d3a6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2944", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\nteam refers to tmID; the youngest refers to max(year); F-G position refers to pos like '%F%' AND like '%G%'; NBA refers to lgID = 'NBA'\n\nQuestion:\nWhich team did the youngest player who could be in F-G position play in the NBA?", + "question": "Which team did the youngest player who could be in F-G position play in the NBA?", + "evidence": "team refers to tmID; the youngest refers to max(year); F-G position refers to pos like '%F%' AND like '%G%'; NBA refers to lgID = 'NBA'", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "WITH youngest AS (\n SELECT playerID, birthDate\n FROM players\n WHERE pos LIKE '%F%' AND pos LIKE '%G%'\n AND birthDate = (SELECT MAX(birthDate) FROM players\n WHERE pos LIKE '%F%' AND pos LIKE '%G%')\n)\nSELECT DISTINCT pt.tmID\nFROM youngest y\nJOIN players_teams pt ON pt.playerID = y.playerID\nWHERE pt.lgID = 'NBA';", + "source_gold_sql": "WITH youngest AS (\n SELECT playerID, birthDate\n FROM players\n WHERE pos LIKE '%F%' AND pos LIKE '%G%'\n AND birthDate = (SELECT MAX(birthDate) FROM players\n WHERE pos LIKE '%F%' AND pos LIKE '%G%')\n)\nSELECT DISTINCT pt.tmID\nFROM youngest y\nJOIN players_teams pt ON pt.playerID = y.playerID\nWHERE pt.lgID = 'NBA';", + "source_gold_sql_sha256": "6dc57c3188810e672d613f8129d239731fea1ea7b1a52ad06a9530132e6788bf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3935", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\njoined Yelp in 2004 refers to user_yelping_since_year = 2004; no follower refers to user_fans = 'None'\n\nQuestion:\nHow many users who joined Yelp in 2004 have no followers?", + "question": "How many users who joined Yelp in 2004 have no followers?", + "evidence": "joined Yelp in 2004 refers to user_yelping_since_year = 2004; no follower refers to user_fans = 'None'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2004 AND user_fans LIKE 'None'", + "source_gold_sql": "SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2004 AND user_fans LIKE 'None'", + "source_gold_sql_sha256": "2f862f4a8849cda35d394e47f5f0b4d514e9f5c8a478b14e3ad74a89cf6d2ec9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7423", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nswitched department the most refers to MAX(count(DepartmentID));\n\nQuestion:\nWhat is the e-mail address of the employee who switched departments for the most times?", + "question": "What is the e-mail address of the employee who switched departments for the most times?", + "evidence": "switched department the most refers to MAX(count(DepartmentID));", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T2.EmailAddress FROM EmployeeDepartmentHistory AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID GROUP BY T2.BusinessEntityID ORDER BY COUNT(T1.DepartmentID) DESC LIMIT 1", + "source_gold_sql": "SELECT T2.EmailAddress FROM EmployeeDepartmentHistory AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID GROUP BY T2.BusinessEntityID ORDER BY COUNT(T1.DepartmentID) DESC LIMIT 1", + "source_gold_sql_sha256": "38ed89171f11cffbc51324d32cc2c3258a26154e77bc7676f8fa18198a434b85", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6277", + "domain": "coinmarketcap", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE coins (\n `id` integer, -- unique id number identifying coins.\n `name` text, -- name of coins.\n `slug` text, -- slug names of coins.\n `symbol` text, -- symbol of names of coins.\n `status` text, -- status of coins. commonsense reasoning:. • active: this coin is active and available for transactions. • untracked: this coin cannot be tracked. • inactive: this coin is not available for transactions. • extinct: this coin has been disappeared.\n `category` text, -- category of coins. commonsense reasoning:. • token:. • coin:.\n `description` text, -- description of coins.\n `subreddit` text, -- name of coins on reddit.\n `notice` text, -- notice if any.\n `tags` text, -- tags of coins.\n `tag_names` text, -- tag names of coins.\n `website` text, -- website introduction of coins.\n `platform_id` integer, -- platform id. id number of the platform.\n `date_added` text, -- date added. the added date.\n `date_launched` text, -- date lanched. lanched date.\n primary key (id)\n);\n\nCREATE TABLE historical (\n `date` date, -- transaction date.\n `coin_id` integer, -- id number referring to coins.\n `cmc_rank` integer, -- coinmarketcap rank. CMC rank is a metric used by CoinMarketCap to rank the relative popularity of different cryptocurrencies.\n `market_cap` real, -- Market capitalization. Market capitalization refers to how much a coin is worth as determined by the coin market. dollars. market cap (latest trade price x circulating supply).\n `price` real, -- how much is a coin. dollars.\n `open` real, -- the price at which a cryptocurrency (coin) opens at a time period. dollars. commonsense reasoning:. if null or empty, it means this coins has not opened yet today.\n `high` real, -- highest price. dollars.\n `low` real, -- lowest price. commonsense reasoning:. 1. It's the best time to purchase this coin. 2. users can make the max profit today by computation: high - low.\n `close` real, -- the price at which a cryptocurrency (coin) closes at a time period, for example at the end of the day.\n `time_high` text, -- the time to achieve highest price.\n `time_low` text, -- the time to achieve lowest price.\n `volume_24h` real, -- the total value of cryptocurrency coined traded in the past 24 hours.\n `percent_change_1h` real, -- percent change 1h. price percentage change in the first hour. The change is the difference (in percent) between the price now compared to the price around this time 1 hours ago.\n `percent_change_24h` real, -- percent change 24h. price percentage change in the first 24 hours. The change is the difference (in percent) between the price now compared to the price around this time 24 hours ago.\n `percent_change_7d` real, -- percent change 7d. price percentage change in the first 7 days. The change is the difference (in percent) between the price now compared to the price around this time 7 days ago.\n `circulating_supply` real, -- circulating supply. the best approximation of the number of coins that are circulating in the market and in the general public's hands.\n `total_supply` real, -- total supply. the total amount of coins in existence right now.\n `max_supply` real, -- max supply. Max Supply is the best approximation of the maximum amount of coins that will ever exist in the lifetime of the cryptocurrency. commonsense reasoning:. the number of coins verifiably burned so far = max_supply - total_supply.\n `num_market_pairs` integer, -- number market pairs. number of market pairs across all exchanges trading each currency. commonsense reasoning:. active coins that have gone inactive can easily be identified as having a num_market_pairs of 0.\n\n);\n\nExternal Knowledge:\nhas disappeared refers to status = 'extinct'\n\nQuestion:\nPlease list the names of coins that has been disappeared.", + "question": "Please list the names of coins that has been disappeared.", + "evidence": "has disappeared refers to status = 'extinct'", + "db_id": "coinmarketcap", + "database_path": "../databases/coinmarketcap.sqlite", + "gold_sql": "SELECT name FROM coins WHERE status = 'extinct'", + "source_gold_sql": "SELECT name FROM coins WHERE status = 'extinct'", + "source_gold_sql_sha256": "207a41521ea91af26a487485f228780d2fd8027fe5c1b4f7919ef596742f9b3a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3123", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\ncar's name refers to car_name; the highest price refers to max(price)\n\nQuestion:\nProvide the names and models of the cars with the highest price.", + "question": "Provide the names and models of the cars with the highest price.", + "evidence": "car's name refers to car_name; the highest price refers to max(price)", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "SELECT T1.car_name, T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = (SELECT MAX(T2.price) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID);", + "source_gold_sql": "SELECT T1.car_name, T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = (SELECT MAX(T2.price) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID);", + "source_gold_sql_sha256": "89382ffc608d370bf32561a9f9c3ccb7fad13feb61e1a0031542b25f95a862d1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8944", + "domain": "human_resources", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE employee (\n `ssn` text, -- social security number. employee's ssn.\n `lastname` text, -- last name. employee's last name.\n `firstname` text, -- first name. employee's first name. employee's full name is firstname lastname .\n `hiredate` text, -- hire date. employee's hire date. yyyy-mm-dd.\n `salary` text, -- employee's salary. the unit is dollar per year.\n `gender` text, -- employee's gender.\n `performance` text, -- employee's performance. Good / Average/ Poor.\n `positionID` integer, -- position id. the unique id for position.\n `locationID` integer, -- location id. the unique id for location.\n primary key (ssn),\n foreign key (locationID) references location(locationID),\n foreign key (positionID) references position(positionID)\n);\n\nCREATE TABLE location (\n `locationID` integer, -- location id. the unique id for location.\n `locationcity` text, -- location city. the location city.\n `address` text, -- the detailed address of the location.\n `state` text, -- the state abbreviation.\n `zipcode` integer, -- zip code. zip code of the location.\n `officephone` text, -- office phone. the office phone number of the location.\n primary key (locationID)\n);\n\nCREATE TABLE position (\n `positionID` integer, -- position id. the unique id for position.\n `positiontitle` text, -- position title. the position title.\n `educationrequired` text, -- education required. the required education year. Generally, more complex work requires more education year.\n `minsalary` text, -- minimum salary. minimum salary of this position.\n `maxsalary` text, -- maximum salary. maximum salary of this position.\n primary key (positionID)\n);\n\nExternal Knowledge:\nJose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)\n\nQuestion:\nWhich employee's job position requires a higher education level, Jose Rodriguez or Sandy Adams? Output first name and last name separately.", + "question": "Which employee's job position requires a higher education level, Jose Rodriguez or Sandy Adams? Output first name and last name separately.", + "evidence": "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", + "db_id": "human_resources", + "database_path": "../databases/human_resources.sqlite", + "gold_sql": "SELECT T1.firstname, T1.lastname FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE (T1.lastname = 'Adams' AND T1.firstname = 'Sandy') OR (T1.lastname = 'Rodriguez' AND T1.firstname = 'Jose') ORDER BY T2.educationrequired DESC LIMIT 1", + "source_gold_sql": "SELECT T1.firstname, T1.lastname FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE (T1.lastname = 'Adams' AND T1.firstname = 'Sandy') OR (T1.lastname = 'Rodriguez' AND T1.firstname = 'Jose') ORDER BY T2.educationrequired DESC LIMIT 1", + "source_gold_sql_sha256": "f3504d4fc29892fe45b16e5c3d908b79625138c393eec721385974fefedd2f2b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8052", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nin 2011 refers to year 2011; less than 50 scores refers to score < 50;\n\nQuestion:\nHow many universities got less than 50 scores under ranking criteria ID 6 in 2011?", + "question": "How many universities got less than 50 scores under ranking criteria ID 6 in 2011?", + "evidence": "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT university_id) FROM university_ranking_year WHERE ranking_criteria_id = 6 AND year = 2011 AND score < 50", + "source_gold_sql": "SELECT COUNT(DISTINCT university_id) FROM university_ranking_year WHERE ranking_criteria_id = 6 AND year = 2011 AND score < 50", + "source_gold_sql_sha256": "4294d94717e8669ffed7c28b39142caea0d80d03a5b051a8d56efe297673ad05", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5733", + "domain": "language_corpus", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE words (\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `word` text, -- The word itself.\n `occurrences` integer, -- The occurrences of the specific word.\n primary key (CREATE)\n);\n\nCREATE TABLE pages (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `page` integer, -- wikipedia page id.\n `revision` integer, -- wikipedia revision page id.\n `title` text, -- The title of this Catalan language Wikipedia page.\n `words` integer, -- number of different words in this page.\n primary key (CREATE)\n);\n\nCREATE TABLE biwords (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `w1st` integer, -- word id of the first word. The word id of the first word of the biwords pair. The value is unique.\n `w2nd` integer, -- word id of the second word. The word id of the second word of the biwords pair. The value is unique.\n `occurrences` integer, -- times of this pair appears in this language/page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE pages_words (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `occurrences` integer, -- times of this word appears into this page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs_words (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language.\n `occurrences` integer, -- repetitions of this word in this language. it's INTEGER and DEFAULT is 0.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs (\n `lid` integer, -- language id. lid=1 means it's the Catalan language.\n `lang` text, -- language. language name. ca means Catalan language.\n `locale` text, -- The locale of the language.\n `pages` integer, -- total pages of Wikipedia in this language.\n `words` integer, -- total number of words in this pages.\n primary key (CREATE)\n);\n\nExternal Knowledge:\nPair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;  w1st = word = 'fukunaga' or w2nd = word = 'fukunaga'; w1st = word = 'd'egees'or w2nd = word = 'd'egees';\n\nQuestion:\nIndicate if there is any pair formed by the words fukunaga and d'egees. Output YES or NO.", + "question": "Indicate if there is any pair formed by the words fukunaga and d'egees. Output YES or NO.", + "evidence": "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;  w1st = word = 'fukunaga' or w2nd = word = 'fukunaga'; w1st = word = 'd'egees'or w2nd = word = 'd'egees';", + "db_id": "language_corpus", + "database_path": "../databases/language_corpus.sqlite", + "gold_sql": "WITH f AS (SELECT wid FROM words WHERE word = 'fukunaga'),\n d AS (SELECT wid FROM words WHERE word = 'd''egees')\nSELECT CASE\n WHEN EXISTS (SELECT 1\n FROM biwords, f, d\n WHERE (w1st = f.wid AND w2nd = d.wid)\n OR (w1st = d.wid AND w2nd = f.wid))\n THEN 'YES'\n ELSE 'NO'\n END;", + "source_gold_sql": "WITH f AS (SELECT wid FROM words WHERE word = 'fukunaga'),\n d AS (SELECT wid FROM words WHERE word = 'd''egees')\nSELECT CASE\n WHEN EXISTS (SELECT 1\n FROM biwords, f, d\n WHERE (w1st = f.wid AND w2nd = d.wid)\n OR (w1st = d.wid AND w2nd = f.wid))\n THEN 'YES'\n ELSE 'NO'\n END;", + "source_gold_sql_sha256": "36e2d676350ff0148e6f5a894f908cad0e1a777e25764f5d19c6e3d41bc1d605", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8314", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many countries on the European Continent has an infant mortality rate per thousand of over 100?", + "question": "How many countries on the European Continent has an infant mortality rate per thousand of over 100?", + "evidence": "", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT c.Code) FROM `country` AS c JOIN `encompasses` AS e ON c.Code = e.Country JOIN `population` AS p ON p.Country = c.Code WHERE e.Continent = 'Europe' AND p.Infant_Mortality > 100", + "source_gold_sql": "SELECT COUNT(DISTINCT c.Code) FROM `country` AS c JOIN `encompasses` AS e ON c.Code = e.Country JOIN `population` AS p ON p.Country = c.Code WHERE e.Continent = 'Europe' AND p.Infant_Mortality > 100", + "source_gold_sql_sha256": "65bdbfc68bf7d6e56a9efbaf125b31ccc39957ee37ca10cc5ae9214bff66b4ab", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3162", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\ncosts the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(total_price_excluding_optional_support))*100%\n\nQuestion:\nWhat is the id of the projects that cost the most. How much has been collected from donations and what is the percentage amount still lacking?", + "question": "What is the id of the projects that cost the most. How much has been collected from donations and what is the percentage amount still lacking?", + "evidence": "costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(total_price_excluding_optional_support))*100%", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "WITH max_cost_project AS (\n SELECT `projectid`, `total_price_excluding_optional_support` AS cost\n FROM `projects`\n WHERE `total_price_excluding_optional_support` = (\n SELECT MAX(`total_price_excluding_optional_support`)\n FROM `projects`\n )\n)\nSELECT m.`projectid`,\n COALESCE(SUM(d.`donation_to_project`),0) AS collected,\n (cost - COALESCE(SUM(d.`donation_to_project`),0))*100.0 / cost AS percent_lacking\nFROM max_cost_project m\nLEFT JOIN `donations` d ON d.`projectid` = m.`projectid`\nLEFT JOIN `essays` e ON e.`projectid` = m.`projectid`\nGROUP BY m.`projectid`;", + "source_gold_sql": "WITH max_cost_project AS (\n SELECT `projectid`, `total_price_excluding_optional_support` AS cost\n FROM `projects`\n WHERE `total_price_excluding_optional_support` = (\n SELECT MAX(`total_price_excluding_optional_support`)\n FROM `projects`\n )\n)\nSELECT m.`projectid`,\n COALESCE(SUM(d.`donation_to_project`),0) AS collected,\n (cost - COALESCE(SUM(d.`donation_to_project`),0))*100.0 / cost AS percent_lacking\nFROM max_cost_project m\nLEFT JOIN `donations` d ON d.`projectid` = m.`projectid`\nLEFT JOIN `essays` e ON e.`projectid` = m.`projectid`\nGROUP BY m.`projectid`;", + "source_gold_sql_sha256": "fbd2ba849c8afce04216d6bdcfccf6a1cb03200c910c51ba0d93a5469aa6f13a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5085", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\n\"Delaware\" is a state; implement daylight savings refers to daylight_saving = 'Yes'\n\nQuestion:\nAmong all the residential areas in Delaware state, how many of them implement daylight saving?", + "question": "Among all the residential areas in Delaware state, how many of them implement daylight saving?", + "evidence": "\"Delaware\" is a state; implement daylight savings refers to daylight_saving = 'Yes'", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT COUNT(*) FROM `zip_data` WHERE `state` = 'DE' AND `daylight_savings` = 'Yes';", + "source_gold_sql": "SELECT COUNT(*) FROM `zip_data` WHERE `state` = 'DE' AND `daylight_savings` = 'Yes';", + "source_gold_sql_sha256": "2f26a8783c1c1ae44d5bac02ff87df1b89d7e9ecda26a34c010b30e0024c8767", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1101", + "domain": "talkingdata", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE app_all (\n `app_id` integer, -- No description.\n PRIMARY KEY (app_id)\n);\n\nCREATE TABLE sample_submission (\n `device_id` integer, -- No description.\n `F23-` real, -- No description.\n `F24-26` real, -- No description.\n `F27-28` real, -- No description.\n `F29-32` real, -- No description.\n `F33-42` real, -- No description.\n `F43+` real, -- No description.\n `M22-` real, -- No description.\n `M23-26` real, -- No description.\n `M27-28` real, -- No description.\n `M29-31` real, -- No description.\n `M32-38` real, -- No description.\n `M39+` real, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE phone_brand_device_model2 (\n `device_id` integer, -- device id. the id number of the device.\n `phone_brand` text, -- phone brand. phone_brand has duplicated values since some device models belong to the same brand.\n `device_model` text, -- device model. phone_brand has duplicated values since some device models belong to the same brand.\n PRIMARY KEY (device_id,phone_brand,device_model)\n);\n\nCREATE TABLE gender_age_test (\n `device_id` integer, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE app_events_relevant (\n `event_id` integer, -- No description.\n `app_id` integer, -- No description.\n `is_installed` integer, -- No description.\n `is_active` integer, -- No description.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events_relevant (event_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE label_categories (\n `label_id` integer, -- label id. unique id of label.\n `category` text, -- category of the label.\n PRIMARY KEY (label_id)\n);\n\nCREATE TABLE gender_age (\n `device_id` integer, -- device id. unique number of devices.\n `gender` text, -- gender of the user who uses this device.\n `age` integer, -- age of the user who uses this device. • M: male; • F: female.\n `group` text, -- group of the ages.\n PRIMARY KEY (device_id),\n FOREIGN KEY (device_id) REFERENCES phone_brand_device_model2 (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_labels (\n `app_id` integer, -- app id. id of the app user.\n `label_id` integer, -- label id. id of labels represents which behavior category that each user belongs to.\n FOREIGN KEY (label_id) REFERENCES label_categories (label_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE gender_age_train (\n `device_id` integer, -- No description.\n `gender` text, -- No description.\n `age` integer, -- No description.\n `group` text, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE events (\n `event_id` integer, -- event id. unique id number referring to the event.\n `device_id` integer, -- device id. id number referring the device.\n `timestamp` datetime, -- the time of the event.\n `longitude` real, -- longitude. the location / coordinate = (longitude, latitude).\n `latitude` real, -- latitude.\n PRIMARY KEY (event_id)\n);\n\nCREATE TABLE events_relevant (\n `event_id` integer, -- No description.\n `device_id` integer, -- No description.\n `timestamp` datetime, -- No description.\n `longitude` real, -- No description.\n `latitude` real, -- No description.\n PRIMARY KEY (event_id),\n FOREIGN KEY (device_id) REFERENCES gender_age (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_events (\n `event_id` integer, -- event id. the id of events.\n `app_id` integer, -- app id. the id of app users. each app_id represents for an user.\n `is_installed` integer, -- is installed. whether this app is installed or not. • 0: no. • 1: yes: installed.\n `is_active` integer, -- is active. whether this user is active or not.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events (event_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nfemale refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';\n\nQuestion:\nHow many female users belong to the age group of 27 to 28?", + "question": "How many female users belong to the age group of 27 to 28?", + "evidence": "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", + "db_id": "talkingdata", + "database_path": "../databases/talkingdata.sqlite", + "gold_sql": "SELECT COUNT(device_id) FROM gender_age WHERE `group` = 'F27-28' AND gender = 'F'", + "source_gold_sql": "SELECT COUNT(device_id) FROM gender_age WHERE `group` = 'F27-28' AND gender = 'F'", + "source_gold_sql_sha256": "93c72febb960018622e90bd5107ab1293fb4eec96f5f69a3d5f5dbba28947d77", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1941", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nCount the match IDs in which V Kohli is the \"Man of the Match\".", + "question": "Count the match IDs in which V Kohli is the \"Man of the Match\".", + "evidence": "", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT COUNT(*) AS match_count FROM `Match` AS M JOIN `Player` AS P ON M.`Man_of_the_Match` = P.`Player_Id` WHERE P.`Player_Name` = 'V Kohli';", + "source_gold_sql": "SELECT COUNT(*) AS match_count FROM `Match` AS M JOIN `Player` AS P ON M.`Man_of_the_Match` = P.`Player_Id` WHERE P.`Player_Name` = 'V Kohli';", + "source_gold_sql_sha256": "bccd6423a7cc1a2d9a9d44d21f1f21805f9ba38cbe3cca1b7adb3ec6a3e8ffed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8370", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947?", + "question": "How many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947?", + "evidence": "", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15'", + "source_gold_sql": "SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15'", + "source_gold_sql_sha256": "4a725da2aa1fd06a676383787ef49d3acac593d33072f3baa41bf86cf0dcc2d9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6813", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\nregion refers to has r_name; the lowest number of countries refers to min(count(n_name))\n\nQuestion:\nWhich region has the lowest number of countries?", + "question": "Which region has the lowest number of countries?", + "evidence": "region refers to has r_name; the lowest number of countries refers to min(count(n_name))", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT T.r_name FROM ( SELECT T1.r_name, COUNT(T2.n_name) AS num FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey GROUP BY T1.r_name ) AS T ORDER BY T.num LIMIT 1", + "source_gold_sql": "SELECT T.r_name FROM ( SELECT T1.r_name, COUNT(T2.n_name) AS num FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey GROUP BY T1.r_name ) AS T ORDER BY T.num LIMIT 1", + "source_gold_sql_sha256": "0c28ba85b555ee3d2cee147271546c6913045ff020ae322fedd794454d133151", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9362", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nrestricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99\n\nQuestion:\nWhat is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?", + "question": "What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?", + "evidence": "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT title FROM film WHERE replacement_cost = 29.99 AND rating = 'R' AND length = 71", + "source_gold_sql": "SELECT title FROM film WHERE replacement_cost = 29.99 AND rating = 'R' AND length = 71", + "source_gold_sql_sha256": "8af01a0ee11b0ffdbc78c728cb6e24a7f124dcde76fa3ba52d8a2b01640ddf78", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8605", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nthe Far North side refers to side = 'Far North '\n\nQuestion:\nHow many community areas are in the Far North side?", + "question": "How many community areas are in the Far North side?", + "evidence": "the Far North side refers to side = 'Far North '", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North '", + "source_gold_sql": "SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North '", + "source_gold_sql_sha256": "064e30c6a908d07391b397cfb8d798a39fc9a1300a9f5f84e40c70221f2825aa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7084", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nProfit = SUBTRACT(ListPrice, StandardCost)\n\nQuestion:\nList, by ProductID, all products whose profit is positive.", + "question": "List, by ProductID, all products whose profit is positive.", + "evidence": "Profit = SUBTRACT(ListPrice, StandardCost)", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT DISTINCT ProductID FROM Product WHERE ListPrice - StandardCost >0", + "source_gold_sql": "SELECT DISTINCT ProductID FROM Product WHERE ListPrice - StandardCost >0", + "source_gold_sql_sha256": "3fc42da714c674fd32fcbd7fafad8f761892be63adc1e63a4c05cfe2239852da", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8336", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\nAtlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning\n\nQuestion:\nList all the cities and provinces located at the rivers that flows to Atlantic Ocean.", + "question": "List all the cities and provinces located at the rivers that flows to Atlantic Ocean.", + "evidence": "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT T1.Name, T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City AND T1.`Province` = T2.`Province` INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Sea = 'Atlantic Ocean'", + "source_gold_sql": "SELECT T1.Name, T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City AND T1.`Province` = T2.`Province` INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Sea = 'Atlantic Ocean'", + "source_gold_sql_sha256": "ef1b454ad36638e1f0bdcb180c183ca757886f02869ac87ec0fbcb0d4468fb24", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3200", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nschool in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;\n\nQuestion:\nWhat is the total donated amount for projects created by a teacher working in a school in Brooklyn?", + "question": "What is the total donated amount for projects created by a teacher working in a school in Brooklyn?", + "evidence": "school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT SUM(T2.donation_total) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn'", + "source_gold_sql": "SELECT SUM(T2.donation_total) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn'", + "source_gold_sql_sha256": "7bce2d86c0dde4b6cdd9c7bb879cba7aeba39a742cf77d4c932a670e587b1927", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3577", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nname of all the journals refers to FullName\n\nQuestion:\nIndicate the name of all the journals published in the paper database in the year 2001.", + "question": "Indicate the name of all the journals published in the paper database in the year 2001.", + "evidence": "name of all the journals refers to FullName", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT DISTINCT J.`FullName` FROM `Paper` AS P JOIN `Journal` AS J ON P.`JournalId` = J.`Id` WHERE P.`Year` = 2001 AND P.`JournalId` > 0", + "source_gold_sql": "SELECT DISTINCT J.`FullName` FROM `Paper` AS P JOIN `Journal` AS J ON P.`JournalId` = J.`Id` WHERE P.`Year` = 2001 AND P.`JournalId` > 0", + "source_gold_sql_sha256": "7fe54a436d05aa9e7571bdc8a81bd4764f746cbeb6d218813a86fd742029e3a9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9354", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList down the actor IDs of film titled \"BOUND CHEAPER\".", + "question": "List down the actor IDs of film titled \"BOUND CHEAPER\".", + "evidence": "", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT T2.actor_id FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'BOUND CHEAPER'", + "source_gold_sql": "SELECT T2.actor_id FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'BOUND CHEAPER'", + "source_gold_sql_sha256": "8b1e91da24b775abab1515ca5b4ee6670f24ad9bdb8cee48e5729c7f47e547ff", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4428", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nnever been absent from school refers to month = 0\n\nQuestion:\nMention the name of disabled students who have never been absent from school.", + "question": "Mention the name of disabled students who have never been absent from school.", + "evidence": "never been absent from school refers to month = 0", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0", + "source_gold_sql": "SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0", + "source_gold_sql_sha256": "edeaa03aface83b1e1f79812d38cd7b372724ecd47a1d9eea16726b6543ec9a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4805", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\nbirthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name\n\nQuestion:\nWhat is the birthday of Amy Klobuchar?", + "question": "What is the birthday of Amy Klobuchar?", + "evidence": "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "SELECT birthday_bio FROM current WHERE first_name = 'Amy' AND last_name = 'Klobuchar'", + "source_gold_sql": "SELECT birthday_bio FROM current WHERE first_name = 'Amy' AND last_name = 'Klobuchar'", + "source_gold_sql_sha256": "9ce9ac99dad5e38ad616a948ed1a38fb98d8864340c210f953d8194498d0f64b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5091", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\n\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'\n\nQuestion:\nAmong the residential areas with the bad alias \"Internal Revenue Service\", how many of them are in the Eastern time zone?", + "question": "Among the residential areas with the bad alias \"Internal Revenue Service\", how many of them are in the Eastern time zone?", + "evidence": "\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'Internal Revenue Service' AND T1.time_zone = 'Eastern'", + "source_gold_sql": "SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'Internal Revenue Service' AND T1.time_zone = 'Eastern'", + "source_gold_sql_sha256": "42847db418d81c2d180a07a7050b03e1031de14eae02caaea21fc96a06bfb396", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8975", + "domain": "human_resources", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE employee (\n `ssn` text, -- social security number. employee's ssn.\n `lastname` text, -- last name. employee's last name.\n `firstname` text, -- first name. employee's first name. employee's full name is firstname lastname .\n `hiredate` text, -- hire date. employee's hire date. yyyy-mm-dd.\n `salary` text, -- employee's salary. the unit is dollar per year.\n `gender` text, -- employee's gender.\n `performance` text, -- employee's performance. Good / Average/ Poor.\n `positionID` integer, -- position id. the unique id for position.\n `locationID` integer, -- location id. the unique id for location.\n primary key (ssn),\n foreign key (locationID) references location(locationID),\n foreign key (positionID) references position(positionID)\n);\n\nCREATE TABLE location (\n `locationID` integer, -- location id. the unique id for location.\n `locationcity` text, -- location city. the location city.\n `address` text, -- the detailed address of the location.\n `state` text, -- the state abbreviation.\n `zipcode` integer, -- zip code. zip code of the location.\n `officephone` text, -- office phone. the office phone number of the location.\n primary key (locationID)\n);\n\nCREATE TABLE position (\n `positionID` integer, -- position id. the unique id for position.\n `positiontitle` text, -- position title. the position title.\n `educationrequired` text, -- education required. the required education year. Generally, more complex work requires more education year.\n `minsalary` text, -- minimum salary. minimum salary of this position.\n `maxsalary` text, -- maximum salary. maximum salary of this position.\n primary key (positionID)\n);\n\nExternal Knowledge:\nfull name = firstname, lastname; the lowest salary refers to MIN(salary)\n\nQuestion:\nMention the employee's full name and performance status who got the lowest in salary per year.", + "question": "Mention the employee's full name and performance status who got the lowest in salary per year.", + "evidence": "full name = firstname, lastname; the lowest salary refers to MIN(salary)", + "db_id": "human_resources", + "database_path": "../databases/human_resources.sqlite", + "gold_sql": "SELECT `firstname`, `lastname`, `performance`\nFROM `employee`\nWHERE CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) = (\n SELECT MIN(CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL)) FROM `employee`\n);", + "source_gold_sql": "SELECT `firstname`, `lastname`, `performance`\nFROM `employee`\nWHERE CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) = (\n SELECT MIN(CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL)) FROM `employee`\n);", + "source_gold_sql_sha256": "77998a3a4e86b529c2c72fda3d4efb7a42ae643c51d4e52cb503ad3fabd320fa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5697", + "domain": "language_corpus", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE words (\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `word` text, -- The word itself.\n `occurrences` integer, -- The occurrences of the specific word.\n primary key (CREATE)\n);\n\nCREATE TABLE pages (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `page` integer, -- wikipedia page id.\n `revision` integer, -- wikipedia revision page id.\n `title` text, -- The title of this Catalan language Wikipedia page.\n `words` integer, -- number of different words in this page.\n primary key (CREATE)\n);\n\nCREATE TABLE biwords (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `w1st` integer, -- word id of the first word. The word id of the first word of the biwords pair. The value is unique.\n `w2nd` integer, -- word id of the second word. The word id of the second word of the biwords pair. The value is unique.\n `occurrences` integer, -- times of this pair appears in this language/page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE pages_words (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `occurrences` integer, -- times of this word appears into this page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs_words (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language.\n `occurrences` integer, -- repetitions of this word in this language. it's INTEGER and DEFAULT is 0.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs (\n `lid` integer, -- language id. lid=1 means it's the Catalan language.\n `lang` text, -- language. language name. ca means Catalan language.\n `locale` text, -- The locale of the language.\n `pages` integer, -- total pages of Wikipedia in this language.\n `words` integer, -- total number of words in this pages.\n primary key (CREATE)\n);\n\nExternal Knowledge:\nword id refers to wid; repeated no more than 10 times refers to occurrences < = 10\n\nQuestion:\nWhat is the word id of the catalan language that was repeated no more than 10 times in the said language?", + "question": "What is the word id of the catalan language that was repeated no more than 10 times in the said language?", + "evidence": "word id refers to wid; repeated no more than 10 times refers to occurrences < = 10", + "db_id": "language_corpus", + "database_path": "../databases/language_corpus.sqlite", + "gold_sql": "SELECT `wid`\nFROM `langs_words`\nWHERE `lid` = 1\n AND `occurrences` <= 10;", + "source_gold_sql": "SELECT `wid`\nFROM `langs_words`\nWHERE `lid` = 1\n AND `occurrences` <= 10;", + "source_gold_sql_sha256": "de376636474a60b5b0adb44ce47766ed4a41191aae601e4d89b55320fcbcd9ef", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "grading_max_rows": 3000000, + "grading_max_bytes": 1000000000, + "timeout_seconds": 300, + "streaming_set_grading": true, + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15", + "grading_max_index_bytes": 2000000000, + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1378", + "domain": "synthea", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE procedures (\n `DATE` date, -- the date of the procedure. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the procedure.\n `DESCRIPTION` text, -- the description of the procedure.\n `REASONCODE` integer, -- reason code. the code of the reason.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the procedure.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE immunizations (\n `DATE` date, -- the date of the immunization. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the immunization.\n `DESCRIPTION` text, -- the description of the immunization.\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE conditions (\n `START` date, -- the start date of the allergy. mm/dd/yy.\n `STOP` date, -- the stop date of the allergy. mm/dd/yy.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the condition.\n `DESCRIPTION` text, -- the description of the patient condition.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);\n\nCREATE TABLE all_prevalences (\n `ITEM` text, -- the prevalent disease.\n `POPULATION TYPE` text, -- population type. the population type - LIVING.\n `OCCURRENCES` integer, -- the number of occurrences.\n `POPULATION COUNT` integer, -- population count. the number of the counted populations.\n `PREVALENCE RATE` real, -- prevalence rate. the prevalence rate. prevalence rate = occurrences / population_count.\n `PREVALENCE PERCENTAGE` real, -- prevalence percentage. the prevalence percentage. prevalence rate = occurrences / population_count * 100.\n primary key (ITEM)\n);\n\nCREATE TABLE encounters (\n `ID` text, -- the unique id of the encounter.\n `DATE` date, -- the date of the encounter. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `CODE` integer, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n primary key (ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE careplans (\n `ID` text, -- the unique id of the care plan.\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. care plan period:. stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` real, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE medications (\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. Time of taking medicine.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the medication.\n `DESCRIPTION` text, -- the description of the medication.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the medication.\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE patients (\n `patient` text, -- the unique id for the patient.\n `birthdate` date, -- birth date. the birth date of the patient.\n `deathdate` date, -- death date. the death date of the patient. • the age of the patient = death year - birth year. • if null, it means this patient is still alive.\n `ssn` text, -- social security number. the social security number of the patient.\n `drivers` text, -- the driver number of the patient. if not, this patient doesn't have driving license.\n `passport` text, -- the passport number. if not, this patient cannot go abroad, vice versa.\n `prefix` text, -- the prefix.\n `first` text, -- the first name.\n `last` text, -- the last name. full name = first + last.\n `suffix` text, -- the suffix of the patient. if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n `maiden` text, -- the maiden name of the patient. Only married women have the maiden name.\n `marital` text, -- the marital status of the patient. • M: married. • S: single.\n `race` text, -- the race of the patient.\n `ethnicity` text, -- the ethnicity of the patient.\n `gender` text, -- the gender of the patient.\n `birthplace` text, -- birth place. the birth place.\n `address` text, -- the specific address.\n primary key (patient)\n);\n\nCREATE TABLE allergies (\n `START` text, -- the start date of the allergy. mm/dd/yy.\n `STOP` text, -- the stop date of the allergy. mm/dd/yy. allergy period = stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the allergy.\n `DESCRIPTION` text, -- the description of the allergy.\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE claims (\n `ID` text, -- the unique id of the claim.\n `PATIENT` text, -- the patient id.\n `BILLABLEPERIOD` date, -- billable period. the start date of the billable. yyyy-mm-dd.\n `ORGANIZATION` text, -- the claim organization.\n `ENCOUNTER` text, -- the medical encounter id.\n `DIAGNOSIS` text, -- the diagnosis.\n `TOTAL` integer, -- the length of the billable period.\n primary key (ID)\n);\n\nCREATE TABLE observations (\n `DATE` date, -- the date of the observation. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` text, -- the code of the observation type.\n `DESCRIPTION` text, -- the description of the observation.\n `VALUE` real, -- the observation value.\n `UNITS` text, -- the units of the observation value. DESCRIPTION + VALUE + UNITS could be a fact:. e.g.: body height of patient xxx is 166.03 cm:. body height is in DESCRIPTION. 166.03 is in VALUE. cm is in UNITS.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nExternal Knowledge:\non 2009/8/9 refers to DATE = '2009-08-09';\n\nQuestion:\nGive the procedure description of Ms. Jacquelyn Shanahan on 2009/8/9.", + "question": "Give the procedure description of Ms. Jacquelyn Shanahan on 2009/8/9.", + "evidence": "on 2009/8/9 refers to DATE = '2009-08-09';", + "db_id": "synthea", + "database_path": "../databases/synthea.sqlite", + "gold_sql": "SELECT DISTINCT T2.description FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DATE = '2009-08-09'", + "source_gold_sql": "SELECT DISTINCT T2.description FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DATE = '2009-08-09'", + "source_gold_sql_sha256": "ad85237178271c7cde4b7ddf4d543c4fadeb963b70351bd505e5c5ae79cff4cf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:90", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\nIt's Winter' is movie_title;\n\nQuestion:\nPlease list the id of the director of the movie \"It's Winter\".", + "question": "Please list the id of the director of the movie \"It's Winter\".", + "evidence": "It's Winter' is movie_title;", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT director_id FROM movies WHERE movie_title = 'It''s Winter'", + "source_gold_sql": "SELECT director_id FROM movies WHERE movie_title = 'It''s Winter'", + "source_gold_sql_sha256": "8793bd9063d37e5b4bf0b67eb9fe3c35f794d7a1170f6ee68492f7179dd61109", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6165", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\nname refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'\n\nQuestion:\nList the names of employees involved in an inspection with the Display of Inspection Report Summary category.", + "question": "List the names of employees involved in an inspection with the Display of Inspection Report Summary category.", + "evidence": "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'Display of Inspection Report Summary'", + "source_gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'Display of Inspection Report Summary'", + "source_gold_sql_sha256": "36198d55f46e36b962b48fbcf58cbcc4150815b252058b28903b498ba6620a4e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8683", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\n\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))\n\nQuestion:\nWhat is the average number of reckless homicides that happened in a district?", + "question": "What is the average number of reckless homicides that happened in a district?", + "evidence": "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT CAST(COUNT(*) AS REAL) /\n (SELECT COUNT(*) FROM `District`) AS avg_reckless_homicides_per_district\nFROM `Crime` c\nJOIN `IUCR` i ON i.`iucr_no` = c.`iucr_no`\nWHERE i.`secondary_description` = 'RECKLESS HOMICIDE';", + "source_gold_sql": "SELECT CAST(COUNT(*) AS REAL) /\n (SELECT COUNT(*) FROM `District`) AS avg_reckless_homicides_per_district\nFROM `Crime` c\nJOIN `IUCR` i ON i.`iucr_no` = c.`iucr_no`\nWHERE i.`secondary_description` = 'RECKLESS HOMICIDE';", + "source_gold_sql_sha256": "479f2e3f1509f6e420612041b541d04d5cbc4ad44332e5afa69ff8ceefd6097b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3294", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nMathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)\n\nQuestion:\nWhich item provided for projects with Mathematics as a primary subject is the most expensive?", + "question": "Which item provided for projects with Mathematics as a primary subject is the most expensive?", + "evidence": "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Mathematics' ORDER BY T1.item_unit_price DESC LIMIT 1", + "source_gold_sql": "SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Mathematics' ORDER BY T1.item_unit_price DESC LIMIT 1", + "source_gold_sql_sha256": "01ef5b3b31571c4e475e752498b5fadcc13d56e00bd528eca286153a2568df02", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3567", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nyears 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)\n\nQuestion:\nHow many papers were preprinted between the years 1990 and 2000?", + "question": "How many papers were preprinted between the years 1990 and 2000?", + "evidence": "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(id) FROM Paper WHERE Year BETWEEN '1990' AND '2000' AND ConferenceId = 0 AND JournalId = 0", + "source_gold_sql": "SELECT COUNT(id) FROM Paper WHERE Year BETWEEN '1990' AND '2000' AND ConferenceId = 0 AND JournalId = 0", + "source_gold_sql_sha256": "e24253c2fe87fa095556cb398913a5b42bd12d7312d47baa3412c216cb575dbf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7659", + "domain": "hockey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE GoaliesSC (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` integer, -- Games played.\n `Min` integer, -- Minutes. Minutes of appearance.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `T` integer, -- Ties.\n `SHO` integer, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE ScoringSup (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `year` integer, -- No description.\n `PPA` text, -- Power play assists.\n `SHA` text, -- Shorthanded assists.\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Coaches (\n `coachID` text, -- coach ID. number identifying coaches.\n `year` integer, -- In which year did the coach teach this team.\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `stint` integer, -- stint.\n `notes` text, -- note if needed. noted information.\n `g` integer, -- games. number of games.\n `w` integer, -- wins. number of wins.\n `l` integer, -- loses. number of loses.\n `t` integer, -- ties. number of ties.\n `postg` text, -- post-season games. number of post-season games.\n `postw` text, -- post-season wins. number of post-season wins.\n `postl` text, -- post-season loses. number of post-season loses.\n `postt` text, -- post-season ties. number of post-season ties.\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE Teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `franchID` text, -- Franchise ID.\n `confID` text, -- Conference ID. see abbrev.csv for details.\n `divID` text, -- Division ID. see abbrev.csv for details.\n `rank` integer, -- Final standing.\n `playoff` text, -- playoff results.\n `G` integer, -- games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- Overtime losses.\n `Pts` integer, -- points.\n `SoW` text, -- Shootout wins.\n `SoL` text, -- Shootout loses.\n `GF` integer, -- Goals for.\n `GA` integer, -- Goals against. goals against.\n `name` text, -- Full team name.\n `PIM` text, -- Penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes). A bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances. power play percentage (PP%) = PPG / PPC.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID)\n);\n\nCREATE TABLE AwardsCoaches (\n `coachID` text, -- coach ID. string ID of the coach.\n `award` text, -- awards that the coach achieve.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- No description.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE AwardsMisc (\n `name` text, -- unique name of awards.\n `ID` text, -- id number of players or coaches, etc.\n `award` text, -- awarder. not useful.\n `year` integer, -- year of the award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed. noted information.\n primary key (name)\n);\n\nCREATE TABLE TeamsHalf (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `half` integer, -- First or second half of season.\n `rank` integer, -- Final standing for the half.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against. goal against.\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE abbrev (\n `Type` text, -- type of hockey games.\n `Code` text, -- abbreviated codes.\n `Fullname` text, -- full names of code.\n primary key (Type, Code)\n);\n\nCREATE TABLE ScoringSC (\n `playerID` text, -- id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `pos` text, -- position.\n `GP` integer, -- Games played.\n `G` integer, -- Goals. goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE CombinedShutouts (\n `year` integer, -- year.\n `month` integer, -- month.\n `date` integer, -- day. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `oppID` text, -- opposite team ID. Team ID of opponent.\n `R/P` text, -- regular / postseason. R\" for regular season, or \"P\" for postseason.\n `IDgoalie1` text, -- ID of goalie 1. ID of first goalie.\n `IDgoalie2` text, -- ID of goalie 2. ID of second goalie.\n foreign key (IDgoalie1) references Master (playerID)\n foreign key (IDgoalie2) references Master (playerID)\n);\n\nCREATE TABLE TeamSplits (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `hW` integer, -- home wins.\n `hL` integer, -- home loses.\n `hT` integer, -- home ties.\n `hOTL` text, -- Home overtime losses.\n `rW` integer, -- Road wins.\n `rL` integer, -- Road loses.\n `rT` integer, -- Road ties.\n `rOTL` text, -- road overtime loses.\n `SepW` text, -- September wins.\n `SepL` text, -- September loses.\n `SepT` text, -- September ties.\n `SepOL` text, -- September overtime loses.\n `OctW` text, -- October wins.\n `OctL` text, -- October loses.\n `OctT` text, -- October ties.\n `OctOL` text, -- October overtime loses.\n `NovW` text, -- November wins.\n `NovL` text, -- November loses.\n `NovT` text, -- November ties.\n `NovOL` text, -- November overtime loses.\n `DecW` text, -- December wins.\n `DecL` text, -- December loses.\n `DecT` text, -- December ties.\n `DecOL` text, -- December overtime loses.\n `JanW` integer, -- January wins.\n `JanL` integer, -- January loses.\n `JanT` integer, -- January ties.\n `JanOL` text, -- January overtime loses.\n `FebW` integer, -- February wins.\n `FebL` integer, -- February loses.\n `FebT` integer, -- February ties.\n `FebOL` text, -- February overtime loses.\n `MarW` text, -- March wins.\n `MarL` text, -- March loses.\n `MarT` text, -- March ties.\n `MarOL` text, -- March overtime loses.\n `AprW` text, -- April wins.\n `AprL` text, -- April loses.\n `AprT` text, -- April ties.\n `AprOL` text, -- April overtime loses.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE SeriesPost (\n `year` integer, -- year.\n `round` text, -- round. see abbrev.csv for details.\n `series` text, -- series. used for the NHL designations.\n `tmIDWinner` text, -- Team ID of winner.\n `lgIDWinner` text, -- League ID of winner.\n `tmIDLoser` text, -- Team ID of loser. Team ID of winner.\n `lgIDLoser` text, -- league id of loser.\n `W` integer, -- number of wins of the winner.\n `L` integer, -- number of loses of the winner.\n `T` integer, -- number of ties.\n `GoalsWinner` integer, -- goals for winner.\n `GoalsLoser` integer, -- goals for loser.\n `note` note, -- note. Note: EX = exhibition, ND = no decision, TG = total-goals series.\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n);\n\nCREATE TABLE Master (\n `playerID` text, -- id number identifying the player.\n `coachID` text, -- coach ID. coach id number. if a person has both playerID and coachID, it means this person becomes coach after retirement.\n `hofID` text, -- hall of fame id.\n `firstName` text, -- first name.\n `lastName` text, -- last name.\n `nameNote` text, -- name note. note about name.\n `nameGiven` text, -- name given. Given name.\n `nameNick` text, -- Nickname. (multiple entries separated by \"/\").\n `height` text, -- height.\n `weight` text, -- weight.\n `shootCatch` text, -- shoot catch. Shooting hand (or catching hand for goalies). Shooting hand (or catching hand for goalies). L: left hand. R: right hand. if null or 'empty', it means this player is good at both left and right hand.\n `legendsID` text, -- legends ID. ID at Legends Of Hockey.\n `ihdbID` text, -- Internet Hockey Database ID. ID at the Internet Hockey Database.\n `hrefID` text, -- Hockey-Reference.com ID. ID at Hockey-Reference.com.\n `firstNHL` text, -- First NHL season.\n `lastNHL` text, -- Last NHL season.\n `firstWHA` text, -- First WHA season.\n `lastWHA` text, -- Last WHA season.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `birthYear` text, -- birth Year.\n `birthMon` text, -- birth Month.\n `birthDay` text, -- birth Day. the entire / detail birth date in this table is \"year\" / \"month\" / \"date\".\n `birthCountry` text, -- birth Country.\n `birthState` text, -- birth State.\n `birthCity` text, -- birth city.\n `deathYear` text, -- death year.\n `deathMon` text, -- death month.\n `deathDay` text, -- death day.\n `deathCountry` text, -- death country.\n `deathState` text, -- death state.\n `deathCity` text, -- death city.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE TeamsPost (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes).\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE AwardsPlayers (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `award` text, -- award name.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed.\n `pos` text, -- position. position of players. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger).\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE HOF (\n `year` integer, -- year of hall of fame.\n `hofID` text, -- hall of fame id.\n `name` text, -- name.\n `category` text, -- category.\n primary key (hofID)\n);\n\nCREATE TABLE GoaliesShootout (\n `playerID` integer, -- No description.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` text, -- stint.\n `tmID` integer, -- team ID. team abbreviated name.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `SA` integer, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamVsTeam (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `oppID` text, -- opponent ID.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- overtime loses.\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (oppID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE Scoring (\n `playerID` text, -- player ID.\n `year` integer, -- play year.\n `stint` integer, -- Stint (order of appearance in a season).\n `tmID` text, -- team id.\n `lgID` text, -- league id.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `GP` integer, -- game played.\n `G` integer, -- goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n `+/-` text, -- Plus / minus. The plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against. In another words, higher \"+ / -\" means more importance to the team, lower means less importance.\n `PPG` text, -- Power play goals. When a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\n `PPA` text, -- Power play assists.\n `SHG` text, -- Shorthanded goals. Sometimes the team with fewer players on the ice known as the short-handed team will score a goal.\n `SHA` text, -- Shorthanded assists.\n `GWG` text, -- Game-winning goals. A game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score. if a player gets more GWG, it means this player is more trustworthy in the critical moment.\n `GTG` text, -- Game-tying goals. A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score.\n `SOG` text, -- Shots on goal. a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `PostGP` text, -- Postseason games played.\n `PostG` text, -- Postseason goals.\n `PostA` text, -- Postseason assists.\n `PostPts` text, -- Postseason points.\n `PostPIM` text, -- Postseason penalty minutes.\n `Post+/-` text, -- Postseason Plus / minus.\n `PostPPG` text, -- Postseason power play goals.\n `PostPPA` text, -- Postseason power play assists.\n `PostSHG` text, -- Postseason Shorthanded goals.\n `PostSHA` text, -- Postseason Shorthanded assists.\n `PostGWG` text, -- Postseason game-winning goals.\n `PostSOG` text, -- Postseason shots on goal.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamsSC (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE ScoringShootout (\n `playerID` text, -- player id. id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- stint.\n `tmID` text, -- team ID. team abbreviated name.\n `S` integer, -- shots.\n `G` integer, -- goals.\n `GDG` integer, -- game deciding goals.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Goalies (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- order of appearance in a season. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` text, -- Games played.\n `Min` text, -- Minutes. Minutes of appearance.\n `W` text, -- wins.\n `L` text, -- loses.\n `T/OL` text, -- Ties / overtime losses.\n `ENG` text, -- Empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `SHO` text, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` text, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `SA` text, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `PostGP` text, -- Postseason games played.\n `PostMin` text, -- Postseason minutes.\n `PostW` text, -- Postseason wins.\n `PostL` text, -- Postseason loses.\n `PostT` text, -- Postseason ties.\n `PostENG` text, -- Postseason empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `PostSHO` text, -- Postseason Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `PostGA` text, -- Postseason Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `PostSA` text, -- Postseason Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nExternal Knowledge:\nover 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'\n\nQuestion:\nAmong the coaches whose team has over 30 wins in a year, how many of them are born in the USA?", + "question": "Among the coaches whose team has over 30 wins in a year, how many of them are born in the USA?", + "evidence": "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", + "db_id": "hockey", + "database_path": "../databases/hockey.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T2.`coachID`) FROM `Master` AS T1 JOIN `Coaches` AS T2 ON T1.`coachID` = T2.`coachID` WHERE T2.`w` > 30 AND T1.`birthCountry` = 'USA'", + "source_gold_sql": "SELECT COUNT(DISTINCT T2.`coachID`) FROM `Master` AS T1 JOIN `Coaches` AS T2 ON T1.`coachID` = T2.`coachID` WHERE T2.`w` > 30 AND T1.`birthCountry` = 'USA'", + "source_gold_sql_sha256": "6e7690729936065b71bef8e9ac8711df888b5256eb2b694fc51098a0b346b0e9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4442", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nstudent name appear in Male table means student is a male, student does not appear in Male table means student is a female\n\nQuestion:\nWhat is the gender of student1000? 'female' or 'male'", + "question": "What is the gender of student1000? 'female' or 'male'", + "evidence": "student name appear in Male table means student is a male, student does not appear in Male table means student is a female", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT IIF(T.result = 0, 'female', 'male') AS re FROM ( SELECT COUNT(name) AS result FROM male WHERE name = 'student1000' ) T", + "source_gold_sql": "SELECT IIF(T.result = 0, 'female', 'male') AS re FROM ( SELECT COUNT(name) AS result FROM male WHERE name = 'student1000' ) T", + "source_gold_sql_sha256": "28ab88932b5c295cb41f70bd4901d5f35c82acb5f6e72e8f22c4987fcac0998e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5846", + "domain": "airline", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Airports (\n `Code` text, -- IATA code of the air airports.\n `Description` text, -- the description of airports.\n primary key (Code)\n);\n\nCREATE TABLE Airlines (\n `FL_DATE` text, -- flight date.\n `OP_CARRIER_AIRLINE_ID` integer, -- operator carrier airline id.\n `TAIL_NUM` text, -- tail number. plane's tail number.\n `OP_CARRIER_FL_NUM` integer, -- operator carrier flight number.\n `ORIGIN_AIRPORT_ID` integer, -- origin airport id.\n `ORIGIN_AIRPORT_SEQ_ID` integer, -- origin airport sequence id.\n `ORIGIN_CITY_MARKET_ID` integer, -- origin city market id.\n `ORIGIN` text, -- airport of origin. • the origin city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `DEST_AIRPORT_ID` integer, -- destination airport id. ID of the destination airport.\n `DEST_AIRPORT_SEQ_ID` integer, -- destination airport sequence id.\n `DEST_CITY_MARKET_ID` integer, -- destination city market id.\n `DEST` text, -- destination. Destination airport. • the dest city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `CRS_DEP_TIME` integer, -- scheduled local departure time.\n `DEP_TIME` integer, -- departure time. Flight departure time. stored as the integer.\n `DEP_DELAY` integer, -- Departure delay. Departure delay indicator. in minutes. • if this value is positive: it means this flight delays; if the value is negative, it means this flight departs in advance (-4). • if this value <= 0, it means this flight departs on time.\n `DEP_DELAY_NEW` integer, -- departure delay new. not useful.\n `ARR_TIME` integer, -- arrival time. Flight arrival time.\n `ARR_DELAY` integer, -- arrival delay. arrival delay time. in minutes. • if this value is positive: it means this flight will arrives late (delay); If the value is negative, this flight arrives earlier than scheduled. (-4). • if this value <= 0, it means this flight arrives on time.\n `ARR_DELAY_NEW` integer, -- arrival delay new. not useful.\n `CANCELLED` integer, -- Flight cancellation indicator.\n `CANCELLATION_CODE` text, -- cancellation code. C--> A: more serious reasons lead to this cancellation.\n `CRS_ELAPSED_TIME` integer, -- scheduled elapsed time.\n `ACTUAL_ELAPSED_TIME` integer, -- actual elapsed time. if ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME: this flight is faster than scheduled; if ACTUAL_ELAPSED_TIME > CRS_ELAPSED_TIME: this flight is slower than scheduled.\n `CARRIER_DELAY` integer, -- carrier delay. minutes.\n `WEATHER_DELAY` integer, -- weather delay. delay caused by the wheather problem. minutes.\n `NAS_DELAY` integer, -- National Aviavtion System delay. delay, in minutes, attributable to the National Aviation System. minutes.\n `SECURITY_DELAY` integer, -- security delay. delay attribute to security. minutes.\n `LATE_AIRCRAFT_DELAY` integer, -- late aircraft delay. delay attribute to late aircraft. minutes.\n FOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n FOREIGN KEY (DEST) REFERENCES Airports(Code),\n FOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code)\n);\n\nCREATE TABLE Air Carriers (\n `Code` integer, -- the code of the air carriers.\n `Description` text, -- the description of air carriers.\n primary key (Code)\n);\n\nExternal Knowledge:\ntail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';\n\nQuestion:\nFor the flight with the tail number 'N702SK', which air carrier does it belong to?", + "question": "For the flight with the tail number 'N702SK', which air carrier does it belong to?", + "evidence": "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", + "db_id": "airline", + "database_path": "../databases/airline.sqlite", + "gold_sql": "SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N702SK' GROUP BY T2.Description", + "source_gold_sql": "SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N702SK' GROUP BY T2.Description", + "source_gold_sql_sha256": "d18527311d929c3c64a5c70311370767e565c7904038ceddbbbc0938af1b36bc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6936", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\nnames of the players refers to PlayerName; played for Acadie-Bathurst Titan refers to TEAM = 'AcadieandBathurst Titan'; regular season refers to GAMETYPE = 'Regular Season'; in 1998-1999 refers to SEASON = '1998-1999';\n\nQuestion:\nWhat are the names of the players who played for Acadie-Bathurst Titan during the regular season in 1998-1999?", + "question": "What are the names of the players who played for Acadie-Bathurst Titan during the regular season in 1998-1999?", + "evidence": "names of the players refers to PlayerName; played for Acadie-Bathurst Titan refers to TEAM = 'AcadieandBathurst Titan'; regular season refers to GAMETYPE = 'Regular Season'; in 1998-1999 refers to SEASON = '1998-1999';", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Acadie-Bathurst Titan'", + "source_gold_sql": "SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Acadie-Bathurst Titan'", + "source_gold_sql_sha256": "bb3538e8146380d80d00a1dc8992bdfb2ee8761284c5db206fad6856242aeff5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4180", + "domain": "simpson_episodes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Character_Award (\n `award_id` integer, -- award id. A unique identifier for the award.\n `character` text, -- the name of the awarded character.\n foreign key (award_id) references Award(award_id)\n);\n\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `stars` integer, -- the star score of the episode. 1-10. Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n `votes` integer, -- the number of votes of the star score.\n `percent` real, -- the percent of the vote number of the star score. percent = the number of votes for the star / the total amount of votes for all stars.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `keyword` text, -- the keywords of episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `category` text, -- the category of the credit.\n `person` text, -- the name of cast and crew members.\n `role` text, -- the role of the person.\n `credited` text, -- whether the person is credited. true/ false. • true: The person is included in the credit list. • false: The person isn't included in the credit list.\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `season` integer, -- the season of the episode.\n `episode` integer, -- the episode number of the episode.\n `number_in_series` integer, -- number in series. the number in series.\n `title` text, -- the title of the episode.\n `summary` text, -- the summary of the episode.\n `air_date` text, -- air date. the air date of the episode. YYYY-MM-DD.\n `episode_image` text, -- episode image. the image of episode.\n `rating` real, -- the rating of episode. 0.0 - 10.0. Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0. • average: 5.0 < rating <= 7.0. • bad: 0.0 < rating <= 5.0. not bad: average, excellent.\n `votes` integer, -- the votes of episode. Higher votes mean more audience supports (or popular).\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique id for the award.\n `organization` text, -- the organization that holds the award.\n `year` integer, -- year of award.\n `award_category` text, -- the category of the award.\n `award` text, -- the name of the award.\n `person` text, -- the person who gets the award.\n `role` text, -- the role of the honoree.\n `episode_id` text, -- episode id. S stands for 'Season' and E stands for 'Episode'.\n `season` text, -- the season of the awarded work.\n `song` text, -- the theme song of the awarded work.\n `result` text, -- the final award result. • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award.\n primary key (award_id),\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Person (\n `name` text, -- the name of the crew.\n `birthdate` text, -- birth date. the birth date of the crew. YYYY-MM-DD.\n `birth_name` text, -- birth name. the birth name of the crew.\n `birth_place` text, -- birth place. the birth place of the crew.\n `birth_region` text, -- birth region. the birth region of the crew.\n `birth_country` text, -- birth country. the birth country of the crew.\n `height_meters` real, -- height meters. the height of the crew. the unit is meter.\n `nickname` text, -- the nickname of the crew.\n primary key (name)\n);\n\nExternal Knowledge:\nvoiced refers to role; role = 'Helen Lovejoy\"\n\nQuestion:\nWhat is the birth name of the person who voiced 'Helen Lovejoy?'", + "question": "What is the birth name of the person who voiced 'Helen Lovejoy?'", + "evidence": "voiced refers to role; role = 'Helen Lovejoy\"", + "db_id": "simpson_episodes", + "database_path": "../databases/simpson_episodes.sqlite", + "gold_sql": "SELECT DISTINCT T1.birth_name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'Helen Lovejoy';", + "source_gold_sql": "SELECT DISTINCT T1.birth_name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'Helen Lovejoy';", + "source_gold_sql_sha256": "75191e4eb9affba30908fe19aa61decfb8168faf1761bf4fa5c938e7ab1f7e4b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2868", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\n\"NBL\" is the lgID; most  personal foul refers to Max(Count(PF))\n\nQuestion:\nPlease list the first names of the players with the most personal fouls in the 'NBL' league.", + "question": "Please list the first names of the players with the most personal fouls in the 'NBL' league.", + "evidence": "\"NBL\" is the lgID; most  personal foul refers to Max(Count(PF))", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "WITH pf_sum AS (\n SELECT pt.playerID,\n SUM(pt.PF) AS totalPF\n FROM players_teams pt\n WHERE pt.lgID = 'NBL'\n GROUP BY pt.playerID\n)\nSELECT p.firstName\nFROM pf_sum\nJOIN players p ON p.playerID = pf_sum.playerID\nWHERE pf_sum.totalPF = (SELECT MAX(totalPF) FROM pf_sum);", + "source_gold_sql": "WITH pf_sum AS (\n SELECT pt.playerID,\n SUM(pt.PF) AS totalPF\n FROM players_teams pt\n WHERE pt.lgID = 'NBL'\n GROUP BY pt.playerID\n)\nSELECT p.firstName\nFROM pf_sum\nJOIN players p ON p.playerID = pf_sum.playerID\nWHERE pf_sum.totalPF = (SELECT MAX(totalPF) FROM pf_sum);", + "source_gold_sql_sha256": "caf300807f9f716bacd2fec7d655d1a669746575c168210a4625576bec54b61e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7296", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nvendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)\n\nQuestion:\nWhich vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.", + "question": "Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.", + "evidence": "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT v.`Name`\nFROM `Vendor` AS v\nJOIN `ProductVendor` AS pv ON v.`BusinessEntityID` = pv.`BusinessEntityID`\nJOIN `Product` AS p ON pv.`ProductID` = p.`ProductID`\nWHERE p.`Name` = 'Hex Nut 5'\n AND pv.`StandardPrice` = (\n SELECT MIN(pv2.`StandardPrice`)\n FROM `ProductVendor` AS pv2\n JOIN `Product` AS p2 ON pv2.`ProductID` = p2.`ProductID`\n WHERE p2.`Name` = 'Hex Nut 5');", + "source_gold_sql": "SELECT v.`Name`\nFROM `Vendor` AS v\nJOIN `ProductVendor` AS pv ON v.`BusinessEntityID` = pv.`BusinessEntityID`\nJOIN `Product` AS p ON pv.`ProductID` = p.`ProductID`\nWHERE p.`Name` = 'Hex Nut 5'\n AND pv.`StandardPrice` = (\n SELECT MIN(pv2.`StandardPrice`)\n FROM `ProductVendor` AS pv2\n JOIN `Product` AS p2 ON pv2.`ProductID` = p2.`ProductID`\n WHERE p2.`Name` = 'Hex Nut 5');", + "source_gold_sql_sha256": "26845c223e12c83347d56a1b843591a51a812a6908af25169fcaea16ceada93d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4709", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nJack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47' AND substr(release_date, length(release_date) - 1, length(release_date)) > '30';\n\nQuestion:\nList the titles of movies directed by Jack Kinney that were released before 1947.", + "question": "List the titles of movies directed by Jack Kinney that were released before 1947.", + "evidence": "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47' AND substr(release_date, length(release_date) - 1, length(release_date)) > '30';", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT T1.movie_title FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Jack Kinney' \nAND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 1, LENGTH(T1.release_date)) < '47'\nAND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 1, LENGTH(T1.release_date)) > '30'", + "source_gold_sql": "SELECT T1.movie_title FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Jack Kinney' \nAND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 1, LENGTH(T1.release_date)) < '47'\nAND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 1, LENGTH(T1.release_date)) > '30'", + "source_gold_sql_sha256": "21f27f533cf52852263f53f5e1f0429c3aa14c15981446ec94c9fb657da7ce22", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9139", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n\"Horror\" is the name of category; average replacement cost = Divide (Sum(replacement_cost), Count(film_id where name = Horror))\n\nQuestion:\nWhat is the average replacement cost of the films under the category of \"Horror\"?", + "question": "What is the average replacement cost of the films under the category of \"Horror\"?", + "evidence": "\"Horror\" is the name of category; average replacement cost = Divide (Sum(replacement_cost), Count(film_id where name = Horror))", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT AVG(T3.replacement_cost) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Horror'", + "source_gold_sql": "SELECT AVG(T3.replacement_cost) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Horror'", + "source_gold_sql_sha256": "fe02dfc9c0e047d453476b80c25dc918a63f73cfd94c5247ef49be12ad98a60a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6846", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\ncustomer name refers to c_name; the highest discount refers to max(l_discount)\n\nQuestion:\nName the customer whose order contains a line item with the highest discount.", + "question": "Name the customer whose order contains a line item with the highest discount.", + "evidence": "customer name refers to c_name; the highest discount refers to max(l_discount)", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT DISTINCT c.`c_name`\nFROM `orders` o\nJOIN `lineitem` l ON o.`o_orderkey` = l.`l_orderkey`\nJOIN `customer` c ON o.`o_custkey` = c.`c_custkey`\nWHERE l.`l_discount` = (SELECT MAX(`l_discount`) FROM `lineitem`);", + "source_gold_sql": "SELECT DISTINCT c.`c_name`\nFROM `orders` o\nJOIN `lineitem` l ON o.`o_orderkey` = l.`l_orderkey`\nJOIN `customer` c ON o.`o_custkey` = c.`c_custkey`\nWHERE l.`l_discount` = (SELECT MAX(`l_discount`) FROM `lineitem`);", + "source_gold_sql_sha256": "63f58262e43c43370475f5ce656bb99c8ea6608d59572cf946af921485c6f449", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2565", + "domain": "app_store", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE playstore (\n `App` text, -- Application name.\n `Category` text, -- Category the app belongs to. FAMILY 18%. GAME 11%. Other (7725) 71%.\n `Rating` real, -- Overall user rating of the app (as when scraped).\n `Reviews` integer, -- Number of user reviews for the app (as when scraped).\n `Size` text, -- Size of the app (as when scraped). Varies with device 16%. 11M 2%. Other (8948) 83%.\n `Installs` text, -- Number of user downloads/installs for the app (as when scraped). 1,000,000+ 15%. 10,000,000+ 12%. Other (8010) 74%.\n `Type` text, -- Paid or Free. Only has 'Paid' and 'Free'. Free 93%. Paid 7%.\n `Price` text, -- Price of the app (as when scraped). 0 93%. $0.99 1%. Other (653) 6%. Free means the price is 0.\n `Content Rating` text, -- Age group the app is targeted at - Children / Mature 21+ / Adult. Everyone 80%. Teen 11%. Other (919) 8%. According to Wikipedia, the different age groups are defined as:. Children: age<12~13. Teen: 13~19. Adult/Mature: 21+.\n `Genres` text, -- An app can belong to multiple genres (apart from its main category). Tools 8%. Entertainment 6%. Other (9376) 86%.\n\n);\n\nCREATE TABLE user_reviews (\n `App` text, -- Name of app.\n `Translated_Review` text, -- User review (Preprocessed and translated to English). nan 42%. Good 0%. Other (37185) 58%.\n `Sentiment` text, -- Overall user rating of the app (as when scraped). Positive: user holds positive attitude towards this app. Negative: user holds positive attitude / critizes on this app. Neural: user holds neural attitude. nan: user doesn't comment on this app.\n `Sentiment_Polarity` text, -- Sentiment Polarity. Sentiment polarity score. • score >= 0.5 it means pretty positive or pretty like this app. • 0 <= score < 0.5: it means user mildly likes this app. • -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude. • score <-0.5: it means this user dislikes this app pretty much.\n `Sentiment_Subjectivity` text, -- Sentiment Subjectivity. Sentiment subjectivity score. more subjectivity refers to less objectivity, vice versa.\n\n);\n\nExternal Knowledge:\naverage sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad  is the App;\n\nQuestion:\nHow much is the average sentiment polarity score of Golf GPS Rangefinder: Golf Pad and what is it's rating in the Google Play Store?", + "question": "How much is the average sentiment polarity score of Golf GPS Rangefinder: Golf Pad and what is it's rating in the Google Play Store?", + "evidence": "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad  is the App;", + "db_id": "app_store", + "database_path": "../databases/app_store.sqlite", + "gold_sql": "SELECT AVG(CAST(`Sentiment_Polarity` AS REAL)) AS avg_sentiment,\n `Rating`\nFROM `playstore` p\nJOIN `user_reviews` u ON p.`App` = u.`App`\nWHERE p.`App` = 'Golf GPS Rangefinder: Golf Pad'\n AND u.`Sentiment_Polarity` <> 'nan'\nGROUP BY `Rating`;", + "source_gold_sql": "SELECT AVG(CAST(`Sentiment_Polarity` AS REAL)) AS avg_sentiment,\n `Rating`\nFROM `playstore` p\nJOIN `user_reviews` u ON p.`App` = u.`App`\nWHERE p.`App` = 'Golf GPS Rangefinder: Golf Pad'\n AND u.`Sentiment_Polarity` <> 'nan'\nGROUP BY `Rating`;", + "source_gold_sql_sha256": "ccef04bc0bc886fe4b6424622a6f6f2c8a5410db1701889ed51a0c9687c50db8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2571", + "domain": "app_store", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE playstore (\n `App` text, -- Application name.\n `Category` text, -- Category the app belongs to. FAMILY 18%. GAME 11%. Other (7725) 71%.\n `Rating` real, -- Overall user rating of the app (as when scraped).\n `Reviews` integer, -- Number of user reviews for the app (as when scraped).\n `Size` text, -- Size of the app (as when scraped). Varies with device 16%. 11M 2%. Other (8948) 83%.\n `Installs` text, -- Number of user downloads/installs for the app (as when scraped). 1,000,000+ 15%. 10,000,000+ 12%. Other (8010) 74%.\n `Type` text, -- Paid or Free. Only has 'Paid' and 'Free'. Free 93%. Paid 7%.\n `Price` text, -- Price of the app (as when scraped). 0 93%. $0.99 1%. Other (653) 6%. Free means the price is 0.\n `Content Rating` text, -- Age group the app is targeted at - Children / Mature 21+ / Adult. Everyone 80%. Teen 11%. Other (919) 8%. According to Wikipedia, the different age groups are defined as:. Children: age<12~13. Teen: 13~19. Adult/Mature: 21+.\n `Genres` text, -- An app can belong to multiple genres (apart from its main category). Tools 8%. Entertainment 6%. Other (9376) 86%.\n\n);\n\nCREATE TABLE user_reviews (\n `App` text, -- Name of app.\n `Translated_Review` text, -- User review (Preprocessed and translated to English). nan 42%. Good 0%. Other (37185) 58%.\n `Sentiment` text, -- Overall user rating of the app (as when scraped). Positive: user holds positive attitude towards this app. Negative: user holds positive attitude / critizes on this app. Neural: user holds neural attitude. nan: user doesn't comment on this app.\n `Sentiment_Polarity` text, -- Sentiment Polarity. Sentiment polarity score. • score >= 0.5 it means pretty positive or pretty like this app. • 0 <= score < 0.5: it means user mildly likes this app. • -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude. • score <-0.5: it means this user dislikes this app pretty much.\n `Sentiment_Subjectivity` text, -- Sentiment Subjectivity. Sentiment subjectivity score. more subjectivity refers to less objectivity, vice versa.\n\n);\n\nExternal Knowledge:\neducation App refers to Category = 'EDUCATION'; worst rated app refers to Rating = 1;\n\nQuestion:\nWhich education App has the worst rating?", + "question": "Which education App has the worst rating?", + "evidence": "education App refers to Category = 'EDUCATION'; worst rated app refers to Rating = 1;", + "db_id": "app_store", + "database_path": "../databases/app_store.sqlite", + "gold_sql": "SELECT `App`\nFROM `playstore`\nWHERE `Category` = 'EDUCATION'\nAND Rating = (SELECT MIN(Rating) FROM playstore WHERE Category = 'EDUCATION' AND Rating IS NOT NULL)", + "source_gold_sql": "SELECT `App`\nFROM `playstore`\nWHERE `Category` = 'EDUCATION'\nAND Rating = (SELECT MIN(Rating) FROM playstore WHERE Category = 'EDUCATION' AND Rating IS NOT NULL)", + "source_gold_sql_sha256": "fc9a2baef70a8cdcfdd4d3d3382a86c7efce1a086b37d85698fa1b06400541f6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3203", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nmain subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(donation_total);\n\nQuestion:\nWhat is the total donation amount made for projects whose main subject area are Literacy & Language?", + "question": "What is the total donation amount made for projects whose main subject area are Literacy & Language?", + "evidence": "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(donation_total);", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT SUM(d.`donation_total`) AS total_donation\nFROM `projects` p\nJOIN `donations` d ON p.`projectid` = d.`projectid`\nWHERE p.`primary_focus_area` = 'Literacy & Language';", + "source_gold_sql": "SELECT SUM(d.`donation_total`) AS total_donation\nFROM `projects` p\nJOIN `donations` d ON p.`projectid` = d.`projectid`\nWHERE p.`primary_focus_area` = 'Literacy & Language';", + "source_gold_sql_sha256": "7e2eeb7092303430c6462c82efa7bec0d379a173a3413ee9bee4e8c302862e0d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7126", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nSUBTRACT(count(address where city = 'Bothell'), count(address where city = 'Kenmore'))\n\nQuestion:\nHow many addresses are in Bothell as opposed to Kenmore? What is the name of the State that comprises these two cities?", + "question": "How many addresses are in Bothell as opposed to Kenmore? What is the name of the State that comprises these two cities?", + "evidence": "SUBTRACT(count(address where city = 'Bothell'), count(address where city = 'Kenmore'))", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT \n SUM(CASE WHEN a.City='Bothell' THEN 1 ELSE 0 END) AS Bothell_cnt,\n SUM(CASE WHEN a.City='Kenmore' THEN 1 ELSE 0 END) AS Kenmore_cnt,\n sp.Name AS StateName\nFROM Address a\nJOIN StateProvince sp ON a.StateProvinceID = sp.StateProvinceID\nWHERE a.City IN ('Bothell','Kenmore')\nGROUP BY sp.Name;", + "source_gold_sql": "SELECT \n SUM(CASE WHEN a.City='Bothell' THEN 1 ELSE 0 END) AS Bothell_cnt,\n SUM(CASE WHEN a.City='Kenmore' THEN 1 ELSE 0 END) AS Kenmore_cnt,\n sp.Name AS StateName\nFROM Address a\nJOIN StateProvince sp ON a.StateProvinceID = sp.StateProvinceID\nWHERE a.City IN ('Bothell','Kenmore')\nGROUP BY sp.Name;", + "source_gold_sql_sha256": "90c6bbef1963e47eca8b9bdb4d3c4cfa604711e6b5cc3384a0b9a73896e1db59", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4698", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nReleased from 2001 to 2005 refers to substr(release_date, length(release_date) - 3, length(release_date)) between '2001' and '2005'; average total gross refers to DIVIDE(SUM(total_gross), COUNT(movie_title));\n\nQuestion:\nAmong the movies released from 2001 to 2005, list down the titles and directors of the movies which had a total gross of more than 100% above the average total gross from 2001 to 2005.", + "question": "Among the movies released from 2001 to 2005, list down the titles and directors of the movies which had a total gross of more than 100% above the average total gross from 2001 to 2005.", + "evidence": "Released from 2001 to 2005 refers to substr(release_date, length(release_date) - 3, length(release_date)) between '2001' and '2005'; average total gross refers to DIVIDE(SUM(total_gross), COUNT(movie_title));", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT d.`name` AS title,\n d.`director`\nFROM `movies_total_gross` m\nJOIN `director` d\n ON m.`movie_title` = d.`name`\nWHERE SUBSTR(m.`release_date`, LENGTH(m.`release_date`) - 3, 4) BETWEEN '2001' AND '2005'\n AND CAST(REPLACE(TRIM(m.`total_gross`, '$'), ',', '') AS REAL) >\n 2 * ( SELECT AVG(CAST(REPLACE(TRIM(`total_gross`, '$'), ',', '') AS REAL))\n FROM `movies_total_gross`\n WHERE SUBSTR(`release_date`, LENGTH(`release_date`) - 3, 4) BETWEEN '2001' AND '2005' );", + "source_gold_sql": "SELECT d.`name` AS title,\n d.`director`\nFROM `movies_total_gross` m\nJOIN `director` d\n ON m.`movie_title` = d.`name`\nWHERE SUBSTR(m.`release_date`, LENGTH(m.`release_date`) - 3, 4) BETWEEN '2001' AND '2005'\n AND CAST(REPLACE(TRIM(m.`total_gross`, '$'), ',', '') AS REAL) >\n 2 * ( SELECT AVG(CAST(REPLACE(TRIM(`total_gross`, '$'), ',', '') AS REAL))\n FROM `movies_total_gross`\n WHERE SUBSTR(`release_date`, LENGTH(`release_date`) - 3, 4) BETWEEN '2001' AND '2005' );", + "source_gold_sql_sha256": "63677f8fe4828aed3028f1262440afa94627274e51bdaf15c78ba31ccec4369d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3903", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\n'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'\n\nQuestion:\nHow many businesses in Phoenix, Arizona is attributed to waiter service?", + "question": "How many businesses in Phoenix, Arizona is attributed to waiter service?", + "evidence": "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT b.`business_id`) FROM `Business` AS b JOIN `Business_Attributes` AS ba ON ba.`business_id` = b.`business_id` JOIN `Attributes` AS a ON a.`attribute_id` = ba.`attribute_id` WHERE b.`city` = 'Phoenix' AND b.`state` = 'AZ' AND LOWER(a.`attribute_name`) = 'waiter service' AND COALESCE(LOWER(ba.`attribute_value`), '') NOT IN ('no','false','none')", + "source_gold_sql": "SELECT COUNT(DISTINCT b.`business_id`) FROM `Business` AS b JOIN `Business_Attributes` AS ba ON ba.`business_id` = b.`business_id` JOIN `Attributes` AS a ON a.`attribute_id` = ba.`attribute_id` WHERE b.`city` = 'Phoenix' AND b.`state` = 'AZ' AND LOWER(a.`attribute_name`) = 'waiter service' AND COALESCE(LOWER(ba.`attribute_value`), '') NOT IN ('no','false','none')", + "source_gold_sql_sha256": "ba72e171af525dbc1fba3594ef7c4ad36a76484596926ebacddbb72b7f82021c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3287", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nRock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'\n\nQuestion:\nHow many Rock Hill City School projects have teacher donors?", + "question": "How many Rock Hill City School projects have teacher donors?", + "evidence": "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Rock Hill' AND is_teacher_acct = 't'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Rock Hill' AND is_teacher_acct = 't'", + "source_gold_sql_sha256": "e49d97c6bdf4c7fcf3c5e74c2bb2ab292207974cdba47a8f963a5656325435c0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:960", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nhighest teachability refers to MAX(teachability); high salary refers to salary = 'high';\n\nQuestion:\nAmong professors with the highest teachability, how many of their students have high salary?", + "question": "Among professors with the highest teachability, how many of their students have high salary?", + "evidence": "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT `RA`.`student_id`) FROM `RA` JOIN `prof` ON `RA`.`prof_id` = `prof`.`prof_id` WHERE `RA`.`salary` = 'high' AND `prof`.`teachingability` = (SELECT MAX(`teachingability`) FROM `prof`);", + "source_gold_sql": "SELECT COUNT(DISTINCT `RA`.`student_id`) FROM `RA` JOIN `prof` ON `RA`.`prof_id` = `prof`.`prof_id` WHERE `RA`.`salary` = 'high' AND `prof`.`teachingability` = (SELECT MAX(`teachingability`) FROM `prof`);", + "source_gold_sql_sha256": "1500d3f022d5796c80847d180a3dfa45f357b7be5f042b475ec530eb352b73e5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6010", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n\"Villeneuve-la-Garenne\" is the city\n\nQuestion:\nHow many customers have an address that is located in the city of Villeneuve-la-Garenne?", + "question": "How many customers have an address that is located in the city of Villeneuve-la-Garenne?", + "evidence": "\"Villeneuve-la-Garenne\" is the city", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT ca.customer_id) FROM customer_address AS ca JOIN address AS a ON ca.address_id = a.address_id WHERE a.city = 'Villeneuve-la-Garenne'", + "source_gold_sql": "SELECT COUNT(DISTINCT ca.customer_id) FROM customer_address AS ca JOIN address AS a ON ca.address_id = a.address_id WHERE a.city = 'Villeneuve-la-Garenne'", + "source_gold_sql_sha256": "e897066ba82f463cd067fd61ef0db20fbca0a0ae1264896f06b0c014fa5d7c32", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6162", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'\n\nQuestion:\nWhat is the employee's full name involved in the canvass inspection type on March 09, 2010?", + "question": "What is the employee's full name involved in the canvass inspection type on March 09, 2010?", + "evidence": "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-03-09' AND T2.inspection_type = 'Canvass'", + "source_gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-03-09' AND T2.inspection_type = 'Canvass'", + "source_gold_sql_sha256": "e34fb84575478393fdf45e7fa2b67bd5ab57f3eed1c0fabc12898a42d19de66c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6578", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\n'Pavlova' is a ProductName\n\nQuestion:\nHow many boxes of 'Pavlova' did Northwind sell?", + "question": "How many boxes of 'Pavlova' did Northwind sell?", + "evidence": "'Pavlova' is a ProductName", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "SELECT SUM(`Quantity`) AS boxes_sold FROM `OrderDetails` od JOIN `Products` p ON p.`ProductID` = od.`ProductID` WHERE p.`ProductName` = 'Pavlova'", + "source_gold_sql": "SELECT SUM(`Quantity`) AS boxes_sold FROM `OrderDetails` od JOIN `Products` p ON p.`ProductID` = od.`ProductID` WHERE p.`ProductName` = 'Pavlova'", + "source_gold_sql_sha256": "e4948678eec3bccaae6ee42983e723794112ca436354b5b9861cd098c91e7643", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:628", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nmethods refers to Name; solution refers to SolutionId;\n\nQuestion:\nList all the methods with a solution with a \"636449701378925547\" processed time.", + "question": "List all the methods with a solution with a \"636449701378925547\" processed time.", + "evidence": "methods refers to Name; solution refers to SolutionId;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.ProcessedTime = 636449701378925547", + "source_gold_sql": "SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.ProcessedTime = 636449701378925547", + "source_gold_sql_sha256": "e7e3ae8ea2afe140f7fcdd8e919fd695e2d43c56659277ae3020ed3eff50876a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3628", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\n'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes' is the Title of the paper; conference refers to Conference.FullName\n\nQuestion:\nAt which conference was the paper \"Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes\" presented?", + "question": "At which conference was the paper \"Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes\" presented?", + "evidence": "'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes' is the Title of the paper; conference refers to Conference.FullName", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes'", + "source_gold_sql": "SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes'", + "source_gold_sql_sha256": "ed977280304e23df8d573d70043aa77c6c9dd980f1d6464562f4794d702c5de7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8764", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\ngeneral description refers to primary_description; 'BATTERY' is the primary_description\n\nQuestion:\nPlease list the case numbers of all the incidents with the generic description of \"BATTERY\" in the IUCR classification.", + "question": "Please list the case numbers of all the incidents with the generic description of \"BATTERY\" in the IUCR classification.", + "evidence": "general description refers to primary_description; 'BATTERY' is the primary_description", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT T2.case_number FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY'", + "source_gold_sql": "SELECT T2.case_number FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY'", + "source_gold_sql_sha256": "31460696133e714fda2754a841d033b0db19d9780033004859abfda4e7c92d5c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1922", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nNew Zealand umpires refers to Country_Name = 'New Zealand'; name of umpires refers to Umpire_Name\n\nQuestion:\nList the name of all New Zealand umpires.", + "question": "List the name of all New Zealand umpires.", + "evidence": "New Zealand umpires refers to Country_Name = 'New Zealand'; name of umpires refers to Umpire_Name", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand'", + "source_gold_sql": "SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand'", + "source_gold_sql_sha256": "ec1aecdf6653996e5d7fae075d13af11bbc37e6ec3aa796d36391e62330304f3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8811", + "domain": "food_inspection", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspections (\n `business_id` integer, -- business id. the unique id of the business.\n `score` integer, -- the inspection score. The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n `date` date, -- the inspection date.\n `type` text, -- the inspection type.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE violations (\n `business_id` integer, -- business id. the unique id of the business.\n `date` date, -- the date of the violation.\n `violation_type_id` text, -- violation type id. the unique type id of the violation.\n `risk_category` text, -- risk category. risk category. High / Moderate / Low risk. High risks have more safety and health hazards than low risks.\n `description` text, -- the description of the violation.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE businesses (\n `business_id` integer, -- business id. the unique id of the business.\n `name` text, -- the name of the eatery.\n `address` text, -- the eatery address.\n `city` text, -- the city where the eatery is located in.\n `postal_code` text, -- postal code. the postal code of the eatery.\n `latitude` real, -- the latitude of the position.\n `longitude` real, -- the longitude of the position. the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}.\n `phone_number` integer, -- phone number. the phone number of the eatery.\n `tax_code` text, -- tax code. the tax code of the eatery.\n `business_certificate` integer, -- business certificate. the business certificate number.\n `application_date` date, -- application date. the application date of the eatery.\n `owner_name` text, -- owner name. the owner's name.\n `owner_address` text, -- owner address. the owner's address.\n `owner_city` text, -- owner city. the city where the owner is located.\n `owner_state` text, -- owner state. the state where the owner is located.\n `owner_zip` text, -- owner zip. the zip code of the owner.\n PRIMARY KEY (business_id)\n);\n\nExternal Knowledge:\nthe lowest inspection score refers to MIN(score);\n\nQuestion:\nWhat is the name of the establishment with the lowest inspection score of all time?", + "question": "What is the name of the establishment with the lowest inspection score of all time?", + "evidence": "the lowest inspection score refers to MIN(score);", + "db_id": "food_inspection", + "database_path": "../databases/food_inspection.sqlite", + "gold_sql": "SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = ( SELECT MIN(score) FROM inspections )", + "source_gold_sql": "SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = ( SELECT MIN(score) FROM inspections )", + "source_gold_sql_sha256": "c8153a95d0f458b40ac0e1f6b1e8c8da4b05bb79fda7c68ffaeefaa84ee5332b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3128", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\nthe cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year\n\nQuestion:\nWhich cars are the cheapest? Provide the car name, acceleration, number of cylinders, and producing year.", + "question": "Which cars are the cheapest? Provide the car name, acceleration, number of cylinders, and producing year.", + "evidence": "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "WITH cheapest AS (SELECT MIN(price) AS min_price FROM price) SELECT T1.car_name, T1.acceleration, T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN price AS T3 ON T3.ID = T2.ID INNER JOIN cheapest AS T4 ON T3.price = T4.min_price", + "source_gold_sql": "WITH cheapest AS (SELECT MIN(price) AS min_price FROM price) SELECT T1.car_name, T1.acceleration, T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN price AS T3 ON T3.ID = T2.ID INNER JOIN cheapest AS T4 ON T3.price = T4.min_price", + "source_gold_sql_sha256": "f95ac6174ec7c3e7b56d37a2ebd4e2c3fff158574db2c94af28f5d5b2a09476d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3522", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\n\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)\n\nQuestion:\nWhat is the average number of papers published in the journal \"Molecular Brain\" every year from 2008 to 2011?", + "question": "What is the average number of papers published in the journal \"Molecular Brain\" every year from 2008 to 2011?", + "evidence": "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT CAST(COUNT(p.`Id`) AS REAL) / 4 AS avg_papers_per_year FROM `Paper` p JOIN `Journal` j ON j.`Id` = p.`JournalId` WHERE j.`FullName` = 'Molecular Brain' AND p.`Year` BETWEEN 2008 AND 2011", + "source_gold_sql": "SELECT CAST(COUNT(p.`Id`) AS REAL) / 4 AS avg_papers_per_year FROM `Paper` p JOIN `Journal` j ON j.`Id` = p.`JournalId` WHERE j.`FullName` = 'Molecular Brain' AND p.`Year` BETWEEN 2008 AND 2011", + "source_gold_sql_sha256": "379504d85b1a57060e3357a5090716cd47e66a8fdb2cbf758e7cda19b1362036", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3785", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\nhow many hours = SUBTRACT(closing_time, opening_time); business No. refers to business_id; open on Saturday refers to day_of_week = 'Saturday';\n\nQuestion:\nHow many hours does the Yelp business No. \"5734\" open on Saturday?", + "question": "How many hours does the Yelp business No. \"5734\" open on Saturday?", + "evidence": "how many hours = SUBTRACT(closing_time, opening_time); business No. refers to business_id; open on Saturday refers to day_of_week = 'Saturday';", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "WITH times AS ( SELECT CASE WHEN opening_time LIKE '%AM' THEN CASE WHEN REPLACE(opening_time,'AM','')='12' THEN 0 ELSE CAST(REPLACE(opening_time,'AM','') AS INT) END ELSE CASE WHEN REPLACE(opening_time,'PM','')='12' THEN 12 ELSE CAST(REPLACE(opening_time,'PM','') AS INT)+12 END END AS open_hr, CASE WHEN closing_time LIKE '%AM' THEN CASE WHEN REPLACE(closing_time,'AM','')='12' THEN 0 ELSE CAST(REPLACE(closing_time,'AM','') AS INT) END ELSE CASE WHEN REPLACE(closing_time,'PM','')='12' THEN 12 ELSE CAST(REPLACE(closing_time,'PM','') AS INT)+12 END END AS close_hr FROM Business_Hours bh JOIN Days d ON bh.day_id = d.day_id WHERE bh.business_id = 5734 AND d.day_of_week = 'Saturday' ) SELECT CASE WHEN close_hr > open_hr THEN close_hr - open_hr ELSE 24 - (open_hr - close_hr) END AS hours_open_on_saturday FROM times", + "source_gold_sql": "WITH times AS ( SELECT CASE WHEN opening_time LIKE '%AM' THEN CASE WHEN REPLACE(opening_time,'AM','')='12' THEN 0 ELSE CAST(REPLACE(opening_time,'AM','') AS INT) END ELSE CASE WHEN REPLACE(opening_time,'PM','')='12' THEN 12 ELSE CAST(REPLACE(opening_time,'PM','') AS INT)+12 END END AS open_hr, CASE WHEN closing_time LIKE '%AM' THEN CASE WHEN REPLACE(closing_time,'AM','')='12' THEN 0 ELSE CAST(REPLACE(closing_time,'AM','') AS INT) END ELSE CASE WHEN REPLACE(closing_time,'PM','')='12' THEN 12 ELSE CAST(REPLACE(closing_time,'PM','') AS INT)+12 END END AS close_hr FROM Business_Hours bh JOIN Days d ON bh.day_id = d.day_id WHERE bh.business_id = 5734 AND d.day_of_week = 'Saturday' ) SELECT CASE WHEN close_hr > open_hr THEN close_hr - open_hr ELSE 24 - (open_hr - close_hr) END AS hours_open_on_saturday FROM times", + "source_gold_sql_sha256": "36e442400c89f8db7226dcd326ba3c75c653694d1e9f53c347201b0c4e92d636", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7561", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\nimages have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;\n\nQuestion:\nWhich images have more than 20 object samples?", + "question": "Which images have more than 20 object samples?", + "evidence": "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(IMG_ID) > 20", + "source_gold_sql": "SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(IMG_ID) > 20", + "source_gold_sql_sha256": "fe1c513db324b16b783c34e45d98af24396209a682d5ccfddeb2d5a0239f344a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6994", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\nheight in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';\n\nQuestion:\nIndicate the height of all players from team Oshawa Generals in inches.", + "question": "Indicate the height of all players from team Oshawa Generals in inches.", + "evidence": "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT T3.height_in_inch FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T2.TEAM = 'Oshawa Generals' GROUP BY T2.ELITEID", + "source_gold_sql": "SELECT T3.height_in_inch FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T2.TEAM = 'Oshawa Generals' GROUP BY T2.ELITEID", + "source_gold_sql_sha256": "40537632b7a27e3c359b7ab59ed0ef18d9c4ec0b657f277379ce2fee253bf7ef", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3331", + "domain": "video_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `id` integer, -- the unique identifier of the game genre.\n `genre_name` text, -- the game genre. The game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\n primary key (id)\n);\n\nCREATE TABLE game (\n `id` integer, -- the unique identifier of the game.\n `genre_id` integer, -- genre id. the id of the game genre. If game A and game B have the same genre, the user who likes game A may also like game B.\n `game_name` text, -- game name. the name of the game.\n primary key (id),\n foreign key (genre_id) references genre(id)\n);\n\nCREATE TABLE game_platform (\n `id` integer, -- the unique identifier of the record.\n `game_publisher_id` integer, -- game publisher id. the id of the game publisher.\n `platform_id` integer, -- platform id. the id of the platform.\n `release_year` integer, -- release year. the release year of the game.\n primary key (id),\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n);\n\nCREATE TABLE platform (\n `id` integer, -- the unique identifier of the game platform.\n `platform_name` text, -- the name of the platform. The game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\n primary key (id)\n);\n\nCREATE TABLE region_sales (\n `region_id` integer, -- the id of the region.\n `game_platform_id` integer, -- game platform id. the id of the game platform.\n `num_sales` real, -- number sales. the number of sales in this region. The number of games sold in the region = num_sales * 100000. The game platform with higher num_sales is more popular in the region.\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n);\n\nCREATE TABLE region (\n `id` integer, -- the unique identifier of the region.\n `region_name` text, -- the region name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `publisher_name` text, -- the name of the publisher. The publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players.\n primary key (id)\n);\n\nCREATE TABLE game_publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `game_id` integer, -- game id. the id of the game.\n `publisher_id` integer, -- publisher id. the id of the publisher. If game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\n primary key (id),\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n);\n\nExternal Knowledge:\nid of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'\n\nQuestion:\nShow the IDs of game platforms which make the most sales in Japan.", + "question": "Show the IDs of game platforms which make the most sales in Japan.", + "evidence": "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", + "db_id": "video_games", + "database_path": "../databases/video_games.sqlite", + "gold_sql": "SELECT T2.game_platform_id FROM region_sales AS T2 INNER JOIN region AS T1 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' GROUP BY T2.game_platform_id HAVING SUM(T2.num_sales) = ( SELECT SUM(T4.num_sales) FROM region_sales AS T4 INNER JOIN region AS T3 ON T3.id = T4.region_id WHERE T3.region_name = 'Japan' GROUP BY T4.game_platform_id ORDER BY SUM(T4.num_sales) DESC LIMIT 1 )", + "source_gold_sql": "SELECT T2.game_platform_id FROM region_sales AS T2 INNER JOIN region AS T1 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' GROUP BY T2.game_platform_id HAVING SUM(T2.num_sales) = ( SELECT SUM(T4.num_sales) FROM region_sales AS T4 INNER JOIN region AS T3 ON T3.id = T4.region_id WHERE T3.region_name = 'Japan' GROUP BY T4.game_platform_id ORDER BY SUM(T4.num_sales) DESC LIMIT 1 )", + "source_gold_sql_sha256": "d225f30382dfb87dcd771544219dc59116e562a7fadbebc1b72516143a4d5472", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3752", + "domain": "college_completion", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE state_sector_grads (\n `stateid` integer, -- state id. state FIPS (Federal Information Processing System) code.\n `state` text, -- state name.\n `state_abbr` text, -- No description.\n `control` text, -- Public,. Private not-for-profit,. Private for-profit.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `year` integer, -- year of data release.\n `gender` text, -- gender of students. B' = both genders; 'M' = male; 'F' = female.\n `race` text, -- race/ethnicity of students. 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White.\n `cohort` text, -- degree-seeking cohort type. • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions. 4-year degree is bachelor's degree. 2-year degree is associate's degree.\n `grad_cohort` text, -- graduation cohort. Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions.\n `grad_100` text, -- graduation 100. Number of students who graduated within 100 percent of normal/expected time.\n `grad_150` text, -- graduation 150. Number of students who graduated within 150 percent of normal/expected time.\n `grad_100_rate` text, -- Percentage of students who graduated within 100 percent of normal/expected time.\n `grad_150_rate` text, -- Percentage of students who graduated within 150 percent of normal/expected time.\n `grad_cohort_ct` integer, -- graduation cohort count. Number of institutions with data included in the cohort.\n foreign key (state) references institution_details(state),\n foreign key (stateid) references state_sector_details(stateid)\n);\n\nCREATE TABLE institution_details (\n `unitid` integer, -- Unit ID number. unique Education Unit ID number.\n `chronname` text, -- Institution name.\n `city` text, -- Institution city.\n `state` text, -- Institution state.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `control` text, -- Control of institution. Public,. Private not-for-profit,. Private for-profit.\n `basic` text, -- Carnegie Foundation for the Advancement of Teaching Basic Classification (2010 version).\n `hbcu` text, -- Historically Black College and Universities. Denotes Historically Black College and Universities.\n `flagship` text, -- Denotes Public flagship institutions.\n `long_x` real, -- Institution longitude.\n `lat_y` real, -- Institution latitude. institute Coordinate.\n `site` text, -- Institution Web site address.\n `student_count` integer, -- student count. Total number of undergraduates in 2010.\n `awards_per_value` real, -- awards per value. Completions per 100 FTE (full-time equivalency) undergraduate students (average 2011, 2012, and 2013).\n `awards_per_state_value` real, -- awards per state value. Completions per 100 FTE (full-time equivalency) undergraduate students, state and sector average. • if his institute's completion (or graduation) rate exceeds the average for the state and sector in which it belongs:. awards_per_value > awards_per_state_value. • if his institute's completion (or graduation) rate falls below the average for the state and sector in which it belongs:. awards_per_value < awards_per_state_value.\n `awards_per_natl_value` real, -- awards per national value. Completions per 100 FTE (full-time equivalency) undergraduate students, national sector average. • if his institute's completion (or graduation) rate exceeds the average for the nationalin which it belongs:. awards_per_value > awards_per_natl_value. • if his institute's completion (or graduation) rate falls below the average for the state and industry in which it belongs:. awards_per_value < awards_per_natl_value.\n `exp_award_value` integer, -- expected award value. Estimated educational spending per academic award in 2013. Includes all certificates and degrees. expenses related to instruction, research, public service, student services, academic support, institutional support, operations and maintenance. Includes all certificates and degrees.\n `exp_award_state_value` integer, -- expected award state value. Spending per completion, state and sector average.\n `exp_award_natl_value` integer, -- expected award national value. Spending per completion, national sector average.\n `exp_award_percentile` integer, -- No description.\n `ft_pct` real, -- Full-time percentage. Percentage of undergraduates who attend full-time.\n `fte_value` integer, -- Full-time percentage. total number of full-time equivalent undergraduates.\n `fte_percentile` integer, -- No description.\n `med_sat_value` text, -- median SAT value. Median estimated SAT value for incoming students.\n `med_sat_percentile` text, -- median SAT percentile. Institution's percent rank for median SAT value within sector.\n `aid_value` integer, -- aid value. The average amount of student aid going to undergraduate recipients.\n `aid_percentile` integer, -- aid percentile. Institution's percent rank for average amount of student aid going to undergraduate recipients within sector.\n `endow_value` text, -- endow value. End-of-year endowment value per full-time equivalent student.\n `endow_percentile` text, -- endow percentile. Institution's percent rank for endowment value per full-time equivalent student within sector.\n `grad_100_value` real, -- graduation 100 value. percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 100 percent of expected time (bachelor's-seeking group at 4-year institutions). %,. lower means harder to graduate for bachelor.\n `grad_100_percentile` integer, -- graduation 100 percentile. Institution's percent rank for completers within 100 percent of normal time within sector.\n `grad_150_value` real, -- graduation 150 value. percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 150 percent of expected time (bachelor's-seeking group at 4-year institutions). %,. lower means harder to graduate for bachelor.\n `grad_150_percentile` integer, -- graduation 150 percentile. Institution's percent rank for completers within 150 percent of normal time within sector.\n `pell_value` real, -- pell value. percentage of undergraduates receiving a Pell Grant.\n `pell_percentile` integer, -- pell percentile. Institution's percent rank for undergraduate Pell recipients within sector.\n `retain_value` real, -- retain value. share of freshman students retained for a second year.\n `retain_percentile` integer, -- retain percentile. Institution's percent rank for freshman retention percentage within sector.\n `ft_fac_value` real, -- full time faculty value. Percentage of employees devoted to instruction, research or public service who are full-time and do not work for an associated medical school.\n `ft_fac_percentile` integer, -- full time faculty percentile. Institution's percent rank for full-time faculty share within sector.\n `vsa_year` text, -- voluntary system of accountability year. Most recent year of Student Success and Progress Rate data available from the Voluntary System of Accountability.\n `vsa_grad_after4_first` text, -- voluntary system of accountability after 4 year first time. First-time, full-time students who graduated from this institution within four years.\n `vsa_grad_elsewhere_after4_first` text, -- voluntary system of accountability graduation elsewhere after 4 year first time. First-time, full-time students who graduated from another institution within four years.\n `vsa_enroll_after4_first` text, -- voluntary system of accountability enrollment after 4 year first time. First-time, full-time students who are still enrolled at this institution after four years.\n `vsa_enroll_elsewhere_after4_first` text, -- voluntary system of accountability enrollment elsewhere after 4 year first time. First-time, full-time students who are enrolled at another institution after four years.\n `vsa_grad_after6_first` text, -- voluntary system of accountability graduation elsewhere after 6 year first time. First-time, full-time students who graduated from this institution within six years. null: not available.\n `vsa_grad_elsewhere_after6_first` text, -- voluntary system of accountability graduation elsewhere after 6 year first time. First-time, full-time students who graduated from another institution within six years.\n `vsa_enroll_after6_first` text, -- voluntary system of accountability enrollment after 6 year first time. First-time, full-time students who are still enrolled at this institution after six years.\n `vsa_enroll_elsewhere_after6_first` text, -- voluntary system of accountability enrollment elsewhere after 6 year first time. First-time, full-time students who are enrolled at another institution after six years.\n `vsa_grad_after4_transfer` text, -- voluntary system of accountability transfer after 6 year first time. Full-time transfer students who graduated from this institution within four years.\n `vsa_grad_elsewhere_after4_transfer` text, -- voluntary system of accountability graduation elsewhere after 4 year. Full-time transfer students who graduated from this institution within four years.\n `vsa_enroll_after4_transfer` text, -- voluntary system of accountability enrollment after 4 years transfer. Full-time transfer students who are still enrolled at this institution after four years.\n `vsa_enroll_elsewhere_after4_transfer` text, -- voluntary system of accountability enrollment elsewhere after 4 years transfer. Full-time transfer students who are enrolled at another institution after four years.\n `vsa_grad_after6_transfer` text, -- voluntary system of accountability enrollment elsewhere after 6 years transfer. Full-time transfer students who graduated from this institution within six years.\n `vsa_grad_elsewhere_after6_transfer` text, -- voluntary system of accountability graduation elsewhere after 6 years transfer. Full-time transfer students who graduated from another institution within six years.\n `vsa_enroll_after6_transfer` text, -- voluntary system of accountability enrollment after 6 years transfer. Full-time transfer students who are still enrolled at this institution after six years.\n `vsa_enroll_elsewhere_after6_transfer` text, -- voluntary system of accountability enrollment elsewhere after 6 years transfer. Full-time transfer students who are enrolled at another institution after six years.\n `similar` text, -- No description.\n `state_sector_ct` integer, -- No description.\n `carnegie_ct` integer, -- No description.\n `counted_pct` text, -- No description.\n `nicknames` text, -- No description.\n `cohort_size` integer, -- No description.\n primary key (unitid)\n);\n\nCREATE TABLE state_sector_details (\n `stateid` integer, -- state id. state FIPS (Federal Information Processing System) code.\n `state` text, -- state name.\n `state_post` text, -- No description.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `control` text, -- Public,. Private not-for-profit,. Private for-profit.\n `schools_count` integer, -- No description.\n `counted_pct` text, -- counted percentage. Percentage of students in the entering class (Fall 2007 at 4-year institutions, Fall 2010 at 2-year institutions) who are first-time, full-time, degree-seeking students and generally part of the official graduation rate.\n `awards_per_state_value` text, -- awards per state value. Completions per 100 FTE (full-time equivalent) undergraduate students, state and sector average.\n `awards_per_natl_value` real, -- awards per national value. Completions per 100 FTE (full-time equivalent) undergraduate students, national sector average.\n `exp_award_state_value` text, -- expected award state value. Spending per completion, state and sector average.\n `exp_award_natl_value` integer, -- expected award national value. Spending per completion, national sector average.\n `state_appr_value` text, -- state appropriation value. State appropriations to higher education in fiscal year 2011 per resident.\n `state_appr_rank` text, -- No description.\n `grad_rate_rank` text, -- No description.\n `awards_per_rank` text, -- No description.\n primary key (stateid, level, control)\n);\n\nCREATE TABLE institution_grads (\n `unitid` integer, -- unit id. Education Unit ID number.\n `year` integer, -- year of data release.\n `gender` text, -- gender of students. 'B' = both genders; 'M' = male; 'F' = female.\n `race` text, -- race/ethnicity of students. 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White.\n `cohort` text, -- degree-seeking cohort type. • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions. 4-year degree is bachelor's degree. 2-year degree is associate's degree.\n `grad_cohort` text, -- graduation cohort. Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions.\n `grad_100` text, -- graduation 100. Number of students who graduated within 100 percent of normal/expected time.\n `grad_150` text, -- graduation 150. Number of students who graduated within 150 percent of normal/expected time.\n `grad_100_rate` text, -- Percentage of students who graduated within 100 percent of normal/expected time.\n `grad_150_rate` text, -- Percentage of students who graduated within 150 percent of normal/expected time.\n foreign key (unitid) references institution_details(unitid)\n);\n\nExternal Knowledge:\nhighest number of schools refers to MAX(schools_count); percentage of no less than 90 of undergraduates who attend full-time refers to ft_pct >= 90; institutions' names refers to chronname;\n\nQuestion:\nIn the state with the highest number of schools, how many institutions have a percentage of no less than 90 of undergraduates who attend full-time?", + "question": "In the state with the highest number of schools, how many institutions have a percentage of no less than 90 of undergraduates who attend full-time?", + "evidence": "highest number of schools refers to MAX(schools_count); percentage of no less than 90 of undergraduates who attend full-time refers to ft_pct >= 90; institutions' names refers to chronname;", + "db_id": "college_completion", + "database_path": "../databases/college_completion.sqlite", + "gold_sql": "WITH top_state AS (\n SELECT `state`\n FROM `state_sector_details`\n WHERE `state` <> 'United States'\n GROUP BY `state`\n ORDER BY SUM(`schools_count`) DESC\n LIMIT 1\n)\nSELECT COUNT(*) AS num_institutions\nFROM `institution_details`\nWHERE `state` = (SELECT `state` FROM top_state)\n AND `ft_pct` >= 90;", + "source_gold_sql": "WITH top_state AS (\n SELECT `state`\n FROM `state_sector_details`\n WHERE `state` <> 'United States'\n GROUP BY `state`\n ORDER BY SUM(`schools_count`) DESC\n LIMIT 1\n)\nSELECT COUNT(*) AS num_institutions\nFROM `institution_details`\nWHERE `state` = (SELECT `state` FROM top_state)\n AND `ft_pct` >= 90;", + "source_gold_sql_sha256": "7c9ceb9863fe2b4c5cbd9e68f0d9d62e879b07ec66266ccd4a59eb22c0f0bd86", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:223", + "domain": "book_publishing_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE jobs (\n `job_id` integer, -- job id. unique id number identifying the jobs.\n `job_desc` text, -- job description. staff should be mentioned.\n `min_lvl` integer, -- min level. min job level.\n `max_lvl` integer, -- max level. max job level. level range for jobs mentioned in job_desc is (min_lvl, max_lvl).\n primary key (job_id)\n);\n\nCREATE TABLE pub_info (\n `pub_id` text, -- publication id. unique id number identifying publications.\n `logo` blob, -- logo of publications.\n `pr_info` text, -- publisher's information.\n primary key (pub_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE sales (\n `stor_id` text, -- store id. id number identifying stores.\n `ord_num` text, -- order number. id number identifying the orders.\n `ord_date` datetime, -- order date. the date of the order.\n `qty` integer, -- quantity. quantity of sales.\n `payterms` text, -- payments.\n `title_id` text, -- title id. id number identifying titles.\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n foreign key (title_id) references titles(title_id)\n);\n\nCREATE TABLE publishers (\n `pub_id` text, -- publisher id. unique id number identifying publisher.\n `pub_name` text, -- publisher name.\n `city` text, -- No description.\n `state` text, -- No description.\n `country` text, -- No description.\n primary key (pub_id)\n);\n\nCREATE TABLE titleauthor (\n `au_id` text, -- author id.\n `title_id` text, -- title id.\n `au_ord` integer, -- author ordering.\n `royaltyper` integer, -- royaltyper.\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n foreign key (title_id) references titles (title_id)\n);\n\nCREATE TABLE employee (\n `emp_id` text, -- employee id. unique number identifying employees.\n `fname` text, -- first name. first name of employees.\n `minit` text, -- middle name.\n `lname` text, -- last name.\n `job_id` integer, -- job id. number identifying jobs.\n `job_lvl` integer, -- job level. higher value means job level is higher.\n `pub_id` text, -- publisher id. id number identifying publishers.\n `hire_date` datetime, -- hire date.\n primary key (emp_id),\n foreign key (job_id) references jobs(job_id)\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE titles (\n `title_id` text, -- title id.\n `title` text, -- title.\n `type` text, -- type of titles.\n `pub_id` text, -- publisher id.\n `price` real, -- price.\n `advance` real, -- pre-paid amount.\n `royalty` integer, -- royalty.\n `ytd_sales` integer, -- year to date sales.\n `notes` text, -- notes if any. had better understand notes contents and put some of them into questions if any.\n `pubdate` datetime, -- publication date.\n primary key (title_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE authors (\n `au_id` text, -- author id. unique number identifying authors.\n `au_lname` text, -- author last name.\n `au_fname` text, -- author first name.\n `phone` text, -- phone number.\n `address` text, -- address.\n `city` text, -- city.\n `state` text, -- state.\n `zip` text, -- zip code.\n `contract` text, -- contract status. 0: not on the contract. 1: on the contract.\n primary key (au_id)\n);\n\nCREATE TABLE stores (\n `stor_id` text, -- store id. unique id number of stores.\n `stor_name` text, -- store name.\n `stor_address` text, -- store address.\n `city` text, -- city name.\n `state` text, -- state code.\n `zip` text, -- zip code.\n primary key (stor_id)\n);\n\nCREATE TABLE discounts (\n `discounttype` text, -- discount type.\n `stor_id` text, -- store id.\n `lowqty` integer, -- low quantity. low quantity (quantity floor). The minimum quantity to enjoy the discount.\n `highqty` integer, -- high quantity. high quantity (max quantity). The maximum quantity to enjoy the discount.\n `discount` real, -- No description.\n foreign key (stor_id) references stores(stor_id)\n);\n\nCREATE TABLE roysched (\n `title_id` text, -- unique id number identifying title.\n `lorange` integer, -- low range.\n `hirange` integer, -- high range.\n `royalty` integer, -- royalty.\n foreign key (title_id) references titles(title_id)\n);\n\nExternal Knowledge:\nsold on refers to ord_date\n\nQuestion:\nList the type of the book for the order which was sold on 1993/5/29.", + "question": "List the type of the book for the order which was sold on 1993/5/29.", + "evidence": "sold on refers to ord_date", + "db_id": "book_publishing_company", + "database_path": "../databases/book_publishing_company.sqlite", + "gold_sql": "SELECT DISTINCT T1.type FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y-%m-%d', T2.ord_date) = '1993-05-29'", + "source_gold_sql": "SELECT DISTINCT T1.type FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y-%m-%d', T2.ord_date) = '1993-05-29'", + "source_gold_sql_sha256": "275156d30cfe40a1824a7040592ac475a3b69d7f93254490f81356fc1fc4d72f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3084", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\nthe $32650.65157 car refers to price = 32650.65157; year refers to model+1990\n\nQuestion:\nWhen was the $32650.65157 car introduced to the market? State the year.", + "question": "When was the $32650.65157 car introduced to the market? State the year.", + "evidence": "the $32650.65157 car refers to price = 32650.65157; year refers to model+1990", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "SELECT 1900 + T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 32650.65157", + "source_gold_sql": "SELECT 1900 + T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 32650.65157", + "source_gold_sql_sha256": "b392d8f8729e2b8aefbc07576723defe4e132bca40dcb68e442c0a5b477e67cd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1339", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nthe first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10\n\nQuestion:\nWhat is the difference of 10 stars votes between the first episode and the last episode?", + "question": "What is the difference of 10 stars votes between the first episode and the last episode?", + "evidence": "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T2.episode = 1 THEN T1.votes ELSE 0 END) - SUM(CASE WHEN T2.episode = 24 THEN T1.votes ELSE 0 END) FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10", + "source_gold_sql": "SELECT SUM(CASE WHEN T2.episode = 1 THEN T1.votes ELSE 0 END) - SUM(CASE WHEN T2.episode = 24 THEN T1.votes ELSE 0 END) FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10", + "source_gold_sql_sha256": "c3f0bcadda8f4f77a486b936a8fef6713d7ad144ebf0a824e39c85c0cc95883d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4802", + "domain": "legislator", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE current-terms (\n `address` text, -- the address of this legislator.\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `caucus` text, -- caucus. For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE social-media (\n `bioguide` text, -- The unique alphanumeric ID for this legislator.\n `facebook` text, -- The username of the current official Facebook presence of the legislator.\n `facebook_id` real, -- The numeric ID of the current official Facebook presence of the legislator.\n `govtrack` real, -- The numeric ID for this legislator on GovTrack.us.\n `instagram` text, -- The current official Instagram handle of the legislator.\n `instagram_id` real, -- The numeric ID of the current official Instagram handle of the legislator.\n `thomas` integer, -- The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov.\n `twitter` text, -- The current official Twitter handle of the legislator.\n `twitter_id` real, -- The numeric ID of the current official twitter handle of the legislator.\n `youtube` text, -- The current official YouTube username of the legislator.\n `youtube_id` text, -- The current official YouTube channel ID of the legislator.\n primary key (bioguide),\n foreign key (bioguide) references current(bioguide_id)\n);\n\nCREATE TABLE historical (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_previous_id` text, -- bioguide previous id. The previous alphanumeric ID for this legislator.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` text, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` text, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_alternate_id` text, -- house history alternate id. The alternative numeric ID for this legislator.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` text, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` text, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` text, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id)\n);\n\nCREATE TABLE historical-terms (\n `bioguide` text, -- bioguide id. The alphanumeric ID for this legislator.\n `address` text, -- the address of this legislator.\n `chamber` text, -- chamber. • senate. • house.\n `class` real, -- class. For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n `contact_form` text, -- The website URL of the contact page on the legislator's official website.\n `district` real, -- district. For representatives, the district number they are serving from. if null or empty, they are not representatives.\n `end` text, -- the end of the term. end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n `fax` text, -- The fax number of the legislator's Washington, D.C. office. only valid if the term is current.\n `last` text, -- the last known number.\n `middle` text, -- No description.\n `name` text, -- not useful.\n `office` text, -- office. only valid if the term is current, otherwise the last known office.\n `party` text, -- The political party of the legislator. If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n `party_affiliations` text, -- party affiliations. This field is present if the legislator changed party or caucus affiliation during the term. The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n `phone` text, -- The phone number of the legislator's Washington, D.C. office. only valid if the term is current, otherwise the last known number.\n `relation` text, -- not useful.\n `rss_url` text, -- Really Simple Syndication URL. The URL to the official website's RSS feed.\n `start` text, -- The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.).\n `state` text, -- state code. AK: Alaska. AL: Alabama. AR: Arkansas. AZ: Arizona. CA: California. CO: Colorado. CT: Connecticut. DE: Delaware. FL: Florida. GA: Georgia. HI: Hawaii. IA: Iowa. ID: Idaho. IL: Illinois. IN: Indiana. KS: Kansas. KY: Kentucky. LA: Louisiana. MA: Massachusetts. MD: Maryland. ME: Maine. MI: Michigan. MN: Minnesota. MO: Missouri. MS: Mississippi. MT: Montana. NC: North Carolina. ND: North Dakota. NE: Nebraska. NH: New Hampshire. NJ: New Jersey. 9 divisions of states in us: (please mention). https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf.\n `state_rank` text, -- whether they are the \"junior\" or \"senior\" senator. only valid if the term is current, otherwise the senator's rank at the time the term ended. only senator has this value.\n `title` text, -- title of the legislator.\n `type` text, -- The type of the term. Either \"sen\" for senators or \"rep\" for representatives and delegates to the House.\n `url` text, -- The official website URL of the legislator. only valid if the term is current.\n primary key (bioguide),\n foreign key (bioguide) references historical(bioguide_id)\n);\n\nCREATE TABLE current (\n `ballotpedia_id` text, -- ballotpedia id. The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org.\n `bioguide_id` text, -- bioguide id. The alphanumeric ID for this legislator.\n `birthday_bio` date, -- birthday bio. The legislator's birthday,. in YYYY-MM-DD format.\n `cspan_id` real, -- cspan id. The numeric ID for this legislator on C-SPAN's video website,. if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website.\n `fec_id` text, -- fec id. A list of IDs for this legislator in Federal Election Commission data. if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n `first_name` text, -- first name. first name of the legislator.\n `gender_bio` text, -- gender bio. gender of the legislator.\n `google_entity_id_id` text, -- google entity id. if this value is null or empty, it means this legislator are not google entities.\n `govtrack_id` integer, -- govtrack id. The numeric ID for this legislator on GovTrack.us. if this value is null or empty, it means this legislator doesn't have account on GovTrack.us.\n `house_history_id` real, -- house history id. The numeric ID for this legislator on http://history.house.gov/People/Search/. The ID is present only for members who have served in the U.S. House.\n `icpsr_id` real, -- interuniversity consortium for political and social research id. The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). if this value is null or empty, it means this legislator doesn't have account on VoteView.com.\n `last_name` text, -- last name. last name of the legislator.\n `lis_id` text, -- legislator id. The alphanumeric ID for this legislator found in Senate roll call votes. The ID is present only for members who attended in Senate roll call votes.\n `maplight_id` real, -- maplight id. The numeric ID for this legislator on maplight.org. if this value is null or empty, it means this legislator doesn't have account on maplight.org.\n `middle_name` text, -- middle name. the middle name of the legislator.\n `nickname_name` text, -- nickname. nickname of the legislator.\n `official_full_name` text, -- official full name.\n `opensecrets_id` text, -- opensecrets id. The alphanumeric ID for this legislator on OpenSecrets.org. if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n `religion_bio` text, -- religion bio. The legislator's religion.\n `suffix_name` text, -- suffix name.\n `thomas_id` integer, -- thomas id. The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n `votesmart_id` real, -- votesmart id. The numeric ID for this legislator on VoteSmart.org. if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org.\n `wikidata_id` text, -- wikidata id. the id for wikidata.\n `wikipedia_id` text, -- wikipedia id. The Wikipedia page name for the person. if a legislator has wikipedia id, it means he or she is famous or impact.\n primary key (bioguide_id, cspan_id)\n);\n\nExternal Knowledge:\nstarted the term in 1875 refers to start LIKE '1875%'; started the term in 2005 refers to start LIKE '2005%'\n\nQuestion:\nReport the difference between the number of all legislators who started their term in 2005 and 1875?", + "question": "Report the difference between the number of all legislators who started their term in 2005 and 1875?", + "evidence": "started the term in 1875 refers to start LIKE '1875%'; started the term in 2005 refers to start LIKE '2005%'", + "db_id": "legislator", + "database_path": "../databases/legislator.sqlite", + "gold_sql": "WITH all_terms AS ( SELECT `bioguide`, `start` FROM `historical-terms` UNION ALL SELECT `bioguide`, `start` FROM `current-terms` ) SELECT (SELECT COUNT(DISTINCT bioguide) FROM all_terms WHERE start LIKE '2005%') - (SELECT COUNT(DISTINCT bioguide) FROM all_terms WHERE start LIKE '1875%')", + "source_gold_sql": "WITH all_terms AS ( SELECT `bioguide`, `start` FROM `historical-terms` UNION ALL SELECT `bioguide`, `start` FROM `current-terms` ) SELECT (SELECT COUNT(DISTINCT bioguide) FROM all_terms WHERE start LIKE '2005%') - (SELECT COUNT(DISTINCT bioguide) FROM all_terms WHERE start LIKE '1875%')", + "source_gold_sql_sha256": "673ba18a1299d0eaabb4729ae22d525408da02e3802da7b818898359a52da883", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7831", + "domain": "world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE CountryLanguage (\n `CountryCode` text, -- Country Code. The unique code for country.\n `Language` text, -- Country language.\n `IsOfficial` text, -- Is Official. Information on whether the language is official in a given country. T / F.\n `Percentage` real, -- Percentage of language use.\n PRIMARY KEY (CountryCode,Language),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE City (\n `ID` integer, -- the unique id for the city.\n `Name` text, -- the name of the city.\n `CountryCode` text, -- Country Code. the country code of the country that the city is belonged.\n `District` text, -- the district where the city locates.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n primary key (ID),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE Country (\n `Code` text, -- the unique country code of the country.\n `Name` text, -- the country name.\n `Continent` text, -- the continent that the country locates.\n `Region` text, -- the region that the country locates.\n `SurfaceArea` real, -- Surface Area. the surface area of the country.\n `IndepYear` integer, -- Independence Year. the year that the country declared independence.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n `LifeExpectancy` real, -- Life Expectancy. the life expectancy at birth of the country. Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change.\n `GNP` real, -- Gross National Product. the GNP of the country. GNP measures the total monetary value of the output produced by a country's residents.\n `GNPOld` real, -- Gross National Product Old. Gross national product - old value.\n `LocalName` text, -- Local Name. The country's local name.\n `GovernmentForm` text, -- Government Form. The country's goverment form. Republic: governmentform contains \"Republic\".\n `HeadOfState` text, -- Head Of State. The head of state full name.\n `Capital` integer, -- The country's capital. if the capital is null, it means this country doesn't have a city where a region's government is located.\n `Code2` text, -- The second country code.\n PRIMARY KEY (Code)\n);\n\nExternal Knowledge:\nBaltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;\n\nQuestion:\nAmong the languages used in Baltic Countries, provide the languages which are used by over 80%.", + "question": "Among the languages used in Baltic Countries, provide the languages which are used by over 80%.", + "evidence": "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", + "db_id": "world", + "database_path": "../databases/world.sqlite", + "gold_sql": "SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Region = 'Baltic Countries' AND T2.Percentage > 80", + "source_gold_sql": "SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Region = 'Baltic Countries' AND T2.Percentage > 80", + "source_gold_sql_sha256": "0b00d76df0514587e65c6e0666eae3953e1c2b40d17893e54b8c3dc053899d1a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8215", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nitem 10 refers to item_nbr = 10; average temperature below median temperature refers to tavg < avg(tavg); total units refers to Sum(units)\n\nQuestion:\nWhat was the total unit sold for item 10 when the average temperature was below the average of the average temperature?", + "question": "What was the total unit sold for item 10 when the average temperature was below the average of the average temperature?", + "evidence": "item 10 refers to item_nbr = 10; average temperature below median temperature refers to tavg < avg(tavg); total units refers to Sum(units)", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT SUM(T5.units) FROM weather AS T4 INNER JOIN sales_in_weather AS T5 ON T4.`date` = T5.`date` INNER JOIN relation AS T6 ON T5.store_nbr = T6.store_nbr WHERE T5.item_nbr = 10 AND T4.tavg < ( SELECT AVG(T1.tavg) FROM weather AS T1 )", + "source_gold_sql": "SELECT SUM(T5.units) FROM weather AS T4 INNER JOIN sales_in_weather AS T5 ON T4.`date` = T5.`date` INNER JOIN relation AS T6 ON T5.store_nbr = T6.store_nbr WHERE T5.item_nbr = 10 AND T4.tavg < ( SELECT AVG(T1.tavg) FROM weather AS T1 )", + "source_gold_sql_sha256": "5028784702f6027dbf94ac516d89a45430977dab6faaaf17e3fa2abd71daaebf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2453", + "domain": "superstore", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE product (\n `Product ID` text, -- the id of products.\n `Product Name` text, -- the name of products.\n `Category` text, -- the categories of products. • Furniture. • Office Supplies. • Technology.\n `Sub-Category` text, -- the sub-categories of products. • Bookcases. • Chairs. • Furnishings. • Tables. • Appliances. • Art. • Binders. • Envelopes. • Fasteners. • Labels. • Paper. • Storage. • Supplies. • Accessories. • Copiers. • Machines. • Phones.\n `Region` text, -- the region where products are sold. • Central:. • East:. • West:. • South:.\n primary key (\"Product ID\", Region)\n);\n\nCREATE TABLE west_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE central_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE south_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE east_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE people (\n `Customer ID` text, -- the id of the customers.\n `Customer Name` text, -- the name of the customers.\n `Segment` text, -- the segment that the customers belong to. • consumer. • home office: synonym: headquarter. • corporate.\n `Country` text, -- the country of people.\n `City` text, -- the city of people.\n `State` text, -- the state of people. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., New York --> NY.\n `Postal Code` integer, -- the postal code.\n `Region` text, -- the region of people. • Central:. • East:. • West:. • South:.\n primary key (\"Customer ID\", Region)\n);\n\nExternal Knowledge:\nWho is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'\n\nQuestion:\nWho is the customer with an order shipped on March 5, 2013, in the eastern region?", + "question": "Who is the customer with an order shipped on March 5, 2013, in the eastern region?", + "evidence": "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", + "db_id": "superstore", + "database_path": "../databases/superstore.sqlite", + "gold_sql": "SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Ship Date` = '2013-03-05'", + "source_gold_sql": "SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Ship Date` = '2013-03-05'", + "source_gold_sql_sha256": "4d3e47edee6e50bd5e5a591bb6b1b5c7ea48f89c22c9b27b4e2fc30aed3b607d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:686", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nhow many liked by people refers to Stars; solution path refers to Path; Path = 'ninject_Ninject\\Ninject.sln';\n\nQuestion:\n\"How many liked by people does the repository of the solution path \"\"ninject_Ninject\\Ninject.sln\"\" have?\"", + "question": "\"How many liked by people does the repository of the solution path \"\"ninject_Ninject\\Ninject.sln\"\" have?\"", + "evidence": "how many liked by people refers to Stars; solution path refers to Path; Path = 'ninject_Ninject\\Ninject.sln';", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_Ninject\\Ninject.sln'", + "source_gold_sql": "SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_Ninject\\Ninject.sln'", + "source_gold_sql_sha256": "b19442fa2e81d2875a2848edcf2cb288b0c601f76448fbb2b6f79ce48084a5c2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2772", + "domain": "european_football_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE matchs (\n `Div` text, -- Division. Division Id.\n `Date` date, -- Match Date. YYYY-MM-DD.\n `HomeTeam` text, -- Name of Home Team.\n `AwayTeam` text, -- Name of Away Team.\n `FTHG` integer, -- Final-time Home-team Goals.\n `FTAG` integer, -- Final-time Away-team Goals.\n `FTR` text, -- Final-time Results. H stands for home victory, which means FTHG is higher than FTAG. A stands for away victory, which means FTAG is higher than FTHG. D stands for draw, which means FTHG equals to FTAG.\n `season` integer, -- season of the match.\n foreign key (Div) references divisions(division)\n);\n\nCREATE TABLE divisions (\n `division` text, -- division id.\n `name` text, -- name of the division.\n `country` text, -- country of the division.\n primary key (division)\n);\n\nExternal Knowledge:\nNational League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;\n\nQuestion:\nHow many draw games happened on 2018/8/7 for National League?", + "question": "How many draw games happened on 2018/8/7 for National League?", + "evidence": "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", + "db_id": "european_football_1", + "database_path": "../databases/european_football_1.sqlite", + "gold_sql": "SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D'", + "source_gold_sql": "SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D'", + "source_gold_sql_sha256": "5fa5bb04484b18bee5baf82fdcbd05437bd6231a475d7e5d501864f98b98a7b6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6334", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nProvide the number of orders that were handled by Michael Suyama.", + "question": "Provide the number of orders that were handled by Michael Suyama.", + "evidence": "", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama'", + "source_gold_sql": "SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama'", + "source_gold_sql_sha256": "2fc70e3fd0a3e70d3091fd20097a726232354ed95279ca7c9c98d66f9c5d7c9c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1766", + "domain": "restaurant", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE geographic (\n `city` text, -- the city.\n `county` text, -- country. the country the city belongs to.\n `region` text, -- corresponding regions.\n primary key (city)\n);\n\nCREATE TABLE location (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `street_num` integer, -- street number. the street number of the restaurant.\n `street_name` text, -- street name. the street name of the restaurant.\n `city` text, -- the city where the restaurant is located in.\n primary key (id_restaurant),\n foreign key (city) references geographic (city)\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n);\n\nCREATE TABLE generalinfo (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `label` text, -- the label of the restaurant.\n `food_type` text, -- food type. the food type.\n `city` text, -- the city where the restaurant is located in.\n `review` real, -- the review of the restaurant. the review rating is from 0.0 to 5.0. The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n primary key (id_restaurant),\n foreign key (city) references geographic(city)\n);\n\nExternal Knowledge:\n22779 refers to street_num = 22779; 6th St. refers to street_name = '6th st'\n\nQuestion:\nList the food type of the restaurant located in 22779 6th St., Hayward City.", + "question": "List the food type of the restaurant located in 22779 6th St., Hayward City.", + "evidence": "22779 refers to street_num = 22779; 6th St. refers to street_name = '6th st'", + "db_id": "restaurant", + "database_path": "../databases/restaurant.sqlite", + "gold_sql": "SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_num = 22779 AND T1.street_name = '6th st' AND T2.city = 'hayward'", + "source_gold_sql": "SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_num = 22779 AND T1.street_name = '6th st' AND T2.city = 'hayward'", + "source_gold_sql_sha256": "4a7a9e988b38aab0d09fad6dbc5919ff5ce32a15215105861ebc8c8f4daef332", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2817", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\n\"Brooklyn\" is the birthCity of player; known by the name of Superman refers to nameNick like '%Superman%'; total minutes refers to Sum(minutes)\n\nQuestion:\nHow many total minutes has the Brooklyn-born player, known by the name of Superman, played during all of his NBA All-Star seasons?", + "question": "How many total minutes has the Brooklyn-born player, known by the name of Superman, played during all of his NBA All-Star seasons?", + "evidence": "\"Brooklyn\" is the birthCity of player; known by the name of Superman refers to nameNick like '%Superman%'; total minutes refers to Sum(minutes)", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "SELECT SUM(T2.minutes) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Brooklyn' AND T1.nameNick LIKE '%Superman%'", + "source_gold_sql": "SELECT SUM(T2.minutes) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Brooklyn' AND T1.nameNick LIKE '%Superman%'", + "source_gold_sql_sha256": "0974d606e3ffb0862fe2d2314d476f88734989193e17abdc25716612e21f0010", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:257", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\npercentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York City'; year(\"Date received\") BETWEEN 2016 AND 2017; a client's compliant refers to a record in the table events\n\nQuestion:\nWhat is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?", + "question": "What is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?", + "evidence": "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York City'; year(\"Date received\") BETWEEN 2016 AND 2017; a client's compliant refers to a record in the table events", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT 100.0 * (SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2017' THEN 1 ELSE 0 END) - SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END)) / SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'New York City'", + "source_gold_sql": "SELECT 100.0 * (SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2017' THEN 1 ELSE 0 END) - SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END)) / SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'New York City'", + "source_gold_sql_sha256": "7e17a4397cefdc065a3383b95a94f19be061c56db365d2e855689381bb9ff518", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2519", + "domain": "app_store", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE playstore (\n `App` text, -- Application name.\n `Category` text, -- Category the app belongs to. FAMILY 18%. GAME 11%. Other (7725) 71%.\n `Rating` real, -- Overall user rating of the app (as when scraped).\n `Reviews` integer, -- Number of user reviews for the app (as when scraped).\n `Size` text, -- Size of the app (as when scraped). Varies with device 16%. 11M 2%. Other (8948) 83%.\n `Installs` text, -- Number of user downloads/installs for the app (as when scraped). 1,000,000+ 15%. 10,000,000+ 12%. Other (8010) 74%.\n `Type` text, -- Paid or Free. Only has 'Paid' and 'Free'. Free 93%. Paid 7%.\n `Price` text, -- Price of the app (as when scraped). 0 93%. $0.99 1%. Other (653) 6%. Free means the price is 0.\n `Content Rating` text, -- Age group the app is targeted at - Children / Mature 21+ / Adult. Everyone 80%. Teen 11%. Other (919) 8%. According to Wikipedia, the different age groups are defined as:. Children: age<12~13. Teen: 13~19. Adult/Mature: 21+.\n `Genres` text, -- An app can belong to multiple genres (apart from its main category). Tools 8%. Entertainment 6%. Other (9376) 86%.\n\n);\n\nCREATE TABLE user_reviews (\n `App` text, -- Name of app.\n `Translated_Review` text, -- User review (Preprocessed and translated to English). nan 42%. Good 0%. Other (37185) 58%.\n `Sentiment` text, -- Overall user rating of the app (as when scraped). Positive: user holds positive attitude towards this app. Negative: user holds positive attitude / critizes on this app. Neural: user holds neural attitude. nan: user doesn't comment on this app.\n `Sentiment_Polarity` text, -- Sentiment Polarity. Sentiment polarity score. • score >= 0.5 it means pretty positive or pretty like this app. • 0 <= score < 0.5: it means user mildly likes this app. • -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude. • score <-0.5: it means this user dislikes this app pretty much.\n `Sentiment_Subjectivity` text, -- Sentiment Subjectivity. Sentiment subjectivity score. more subjectivity refers to less objectivity, vice versa.\n\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many apps have rating of 5?", + "question": "How many apps have rating of 5?", + "evidence": "", + "db_id": "app_store", + "database_path": "../databases/app_store.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT App) FROM playstore WHERE Rating = 5", + "source_gold_sql": "SELECT COUNT(DISTINCT App) FROM playstore WHERE Rating = 5", + "source_gold_sql_sha256": "130e8f5eac637af56c10bcde3a45d907189fbfc16e484cf6c15c61e56f873347", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2385", + "domain": "superstore", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE product (\n `Product ID` text, -- the id of products.\n `Product Name` text, -- the name of products.\n `Category` text, -- the categories of products. • Furniture. • Office Supplies. • Technology.\n `Sub-Category` text, -- the sub-categories of products. • Bookcases. • Chairs. • Furnishings. • Tables. • Appliances. • Art. • Binders. • Envelopes. • Fasteners. • Labels. • Paper. • Storage. • Supplies. • Accessories. • Copiers. • Machines. • Phones.\n `Region` text, -- the region where products are sold. • Central:. • East:. • West:. • South:.\n primary key (\"Product ID\", Region)\n);\n\nCREATE TABLE west_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE central_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE south_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE east_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE people (\n `Customer ID` text, -- the id of the customers.\n `Customer Name` text, -- the name of the customers.\n `Segment` text, -- the segment that the customers belong to. • consumer. • home office: synonym: headquarter. • corporate.\n `Country` text, -- the country of people.\n `City` text, -- the city of people.\n `State` text, -- the state of people. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., New York --> NY.\n `Postal Code` integer, -- the postal code.\n `Region` text, -- the region of people. • Central:. • East:. • West:. • South:.\n primary key (\"Customer ID\", Region)\n);\n\nExternal Knowledge:\nhighest profit refers to MAX(profit); Region = 'East'\n\nQuestion:\nWho is the customer from the East region that purchased the order with the highest profit?", + "question": "Who is the customer from the East region that purchased the order with the highest profit?", + "evidence": "highest profit refers to MAX(profit); Region = 'East'", + "db_id": "superstore", + "database_path": "../databases/superstore.sqlite", + "gold_sql": "SELECT p.`Customer Name`\nFROM (\n SELECT `Order ID`,\n `Customer ID`,\n SUM(`Profit`) AS total_profit\n FROM `east_superstore`\n GROUP BY `Order ID`, `Customer ID`\n ORDER BY total_profit DESC\n LIMIT 1\n) o\nJOIN `people` p\n ON p.`Customer ID` = o.`Customer ID`\n AND p.`Region` = 'East';", + "source_gold_sql": "SELECT p.`Customer Name`\nFROM (\n SELECT `Order ID`,\n `Customer ID`,\n SUM(`Profit`) AS total_profit\n FROM `east_superstore`\n GROUP BY `Order ID`, `Customer ID`\n ORDER BY total_profit DESC\n LIMIT 1\n) o\nJOIN `people` p\n ON p.`Customer ID` = o.`Customer ID`\n AND p.`Region` = 'East';", + "source_gold_sql_sha256": "67dcf995ca9c8de7f405710b17a74279ad158c1bc461154f4421274398abf565", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8181", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nnumber of store refers to Count(store_nbr); highest number of store refers to Max(Count(store_nbr)); weather station refers to station_nbr\n\nQuestion:\nWhich weather station has the highest number of stores?", + "question": "Which weather station has the highest number of stores?", + "evidence": "number of store refers to Count(store_nbr); highest number of store refers to Max(Count(store_nbr)); weather station refers to station_nbr", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(store_nbr) DESC LIMIT 1", + "source_gold_sql": "SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(store_nbr) DESC LIMIT 1", + "source_gold_sql_sha256": "bfa0f0f2727dd6536db83ac6ad24075ba1af514cf4c80ed8879aced188ad417d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8325", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList the all the cities and its city population for provinces with population more than 1000000.", + "question": "List the all the cities and its city population for provinces with population more than 1000000.", + "evidence": "", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province AND T1.`Country` = T2.`Country` WHERE T2.Population > 1000000", + "source_gold_sql": "SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province AND T1.`Country` = T2.`Country` WHERE T2.Population > 1000000", + "source_gold_sql_sha256": "7a8e02ad0add19f4b2bc04c09fdd1a634cbfd837707094a957642ec2dcaaa326", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3540", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\nyear of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100\n\nQuestion:\nWithin the year of 2001 to 2010, find the paper published rate of 2001.", + "question": "Within the year of 2001 to 2010, find the paper published rate of 2001.", + "evidence": "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN Year = 2001 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Id) FROM Paper WHERE Year >= 2001 AND Year < 2011", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN Year = 2001 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Id) FROM Paper WHERE Year >= 2001 AND Year < 2011", + "source_gold_sql_sha256": "466aaa9361b0b24b8f20ea66617d26eee8d1b1268e39e11ff25a55bc0fcd9383", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8156", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nitem no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100\n\nQuestion:\nWhat is the percentage of the units of item no.5 sold among all units of items sold in store no.3 on the day when store no.3 has the highest max temperature in 2012? List the date and the corresponding percentage.", + "question": "What is the percentage of the units of item no.5 sold among all units of items sold in store no.3 on the day when store no.3 has the highest max temperature in 2012? List the date and the corresponding percentage.", + "evidence": "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "WITH hottest_days AS (\n SELECT w.`date`\n FROM relation r\n JOIN weather w ON w.`station_nbr` = r.`station_nbr`\n WHERE r.`store_nbr` = 3\n AND substr(w.`date`,1,4) = '2012'\n AND w.`tmax` = (\n SELECT MAX(w2.`tmax`)\n FROM relation r2\n JOIN weather w2 ON w2.`station_nbr` = r2.`station_nbr`\n WHERE r2.`store_nbr` = 3\n AND substr(w2.`date`,1,4) = '2012')\n)\nSELECT date, CAST(SUM(CASE WHEN item_nbr = 5 THEN units ELSE 0 END) AS REAL) * 100.0 / SUM(units) AS percentage_item5\nFROM sales_in_weather\nWHERE `store_nbr` = 3\n AND `date` IN (SELECT `date` FROM hottest_days)\n group by date", + "source_gold_sql": "WITH hottest_days AS (\n SELECT w.`date`\n FROM relation r\n JOIN weather w ON w.`station_nbr` = r.`station_nbr`\n WHERE r.`store_nbr` = 3\n AND substr(w.`date`,1,4) = '2012'\n AND w.`tmax` = (\n SELECT MAX(w2.`tmax`)\n FROM relation r2\n JOIN weather w2 ON w2.`station_nbr` = r2.`station_nbr`\n WHERE r2.`store_nbr` = 3\n AND substr(w2.`date`,1,4) = '2012')\n)\nSELECT date, CAST(SUM(CASE WHEN item_nbr = 5 THEN units ELSE 0 END) AS REAL) * 100.0 / SUM(units) AS percentage_item5\nFROM sales_in_weather\nWHERE `store_nbr` = 3\n AND `date` IN (SELECT `date` FROM hottest_days)\n group by date", + "source_gold_sql_sha256": "57c541e8563d1ae7b7d6de992cab01ec2a84f39a3b98f6b08e9b2cccf13b95d8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9345", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nItalian is name of language; special featured with deleted scenes refers to special_features LIKE '%deleted scenes%'\n\nQuestion:\nHow many Italian film titles were special featured with deleted scenes?", + "question": "How many Italian film titles were special featured with deleted scenes?", + "evidence": "Italian is name of language; special featured with deleted scenes refers to special_features LIKE '%deleted scenes%'", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'Italian' AND T1.special_features LIKE '%deleted scenes%'", + "source_gold_sql": "SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'Italian' AND T1.special_features LIKE '%deleted scenes%'", + "source_gold_sql_sha256": "6fedf2bbba95ac511e8b2b40dd09f45c8f9758b95b42c2e367b0826773e3fb4f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7663", + "domain": "hockey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE GoaliesSC (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` integer, -- Games played.\n `Min` integer, -- Minutes. Minutes of appearance.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `T` integer, -- Ties.\n `SHO` integer, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE ScoringSup (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `year` integer, -- No description.\n `PPA` text, -- Power play assists.\n `SHA` text, -- Shorthanded assists.\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Coaches (\n `coachID` text, -- coach ID. number identifying coaches.\n `year` integer, -- In which year did the coach teach this team.\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `stint` integer, -- stint.\n `notes` text, -- note if needed. noted information.\n `g` integer, -- games. number of games.\n `w` integer, -- wins. number of wins.\n `l` integer, -- loses. number of loses.\n `t` integer, -- ties. number of ties.\n `postg` text, -- post-season games. number of post-season games.\n `postw` text, -- post-season wins. number of post-season wins.\n `postl` text, -- post-season loses. number of post-season loses.\n `postt` text, -- post-season ties. number of post-season ties.\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE Teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `franchID` text, -- Franchise ID.\n `confID` text, -- Conference ID. see abbrev.csv for details.\n `divID` text, -- Division ID. see abbrev.csv for details.\n `rank` integer, -- Final standing.\n `playoff` text, -- playoff results.\n `G` integer, -- games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- Overtime losses.\n `Pts` integer, -- points.\n `SoW` text, -- Shootout wins.\n `SoL` text, -- Shootout loses.\n `GF` integer, -- Goals for.\n `GA` integer, -- Goals against. goals against.\n `name` text, -- Full team name.\n `PIM` text, -- Penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes). A bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances. power play percentage (PP%) = PPG / PPC.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID)\n);\n\nCREATE TABLE AwardsCoaches (\n `coachID` text, -- coach ID. string ID of the coach.\n `award` text, -- awards that the coach achieve.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- No description.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE AwardsMisc (\n `name` text, -- unique name of awards.\n `ID` text, -- id number of players or coaches, etc.\n `award` text, -- awarder. not useful.\n `year` integer, -- year of the award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed. noted information.\n primary key (name)\n);\n\nCREATE TABLE TeamsHalf (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `half` integer, -- First or second half of season.\n `rank` integer, -- Final standing for the half.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against. goal against.\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE abbrev (\n `Type` text, -- type of hockey games.\n `Code` text, -- abbreviated codes.\n `Fullname` text, -- full names of code.\n primary key (Type, Code)\n);\n\nCREATE TABLE ScoringSC (\n `playerID` text, -- id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `pos` text, -- position.\n `GP` integer, -- Games played.\n `G` integer, -- Goals. goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE CombinedShutouts (\n `year` integer, -- year.\n `month` integer, -- month.\n `date` integer, -- day. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `oppID` text, -- opposite team ID. Team ID of opponent.\n `R/P` text, -- regular / postseason. R\" for regular season, or \"P\" for postseason.\n `IDgoalie1` text, -- ID of goalie 1. ID of first goalie.\n `IDgoalie2` text, -- ID of goalie 2. ID of second goalie.\n foreign key (IDgoalie1) references Master (playerID)\n foreign key (IDgoalie2) references Master (playerID)\n);\n\nCREATE TABLE TeamSplits (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `hW` integer, -- home wins.\n `hL` integer, -- home loses.\n `hT` integer, -- home ties.\n `hOTL` text, -- Home overtime losses.\n `rW` integer, -- Road wins.\n `rL` integer, -- Road loses.\n `rT` integer, -- Road ties.\n `rOTL` text, -- road overtime loses.\n `SepW` text, -- September wins.\n `SepL` text, -- September loses.\n `SepT` text, -- September ties.\n `SepOL` text, -- September overtime loses.\n `OctW` text, -- October wins.\n `OctL` text, -- October loses.\n `OctT` text, -- October ties.\n `OctOL` text, -- October overtime loses.\n `NovW` text, -- November wins.\n `NovL` text, -- November loses.\n `NovT` text, -- November ties.\n `NovOL` text, -- November overtime loses.\n `DecW` text, -- December wins.\n `DecL` text, -- December loses.\n `DecT` text, -- December ties.\n `DecOL` text, -- December overtime loses.\n `JanW` integer, -- January wins.\n `JanL` integer, -- January loses.\n `JanT` integer, -- January ties.\n `JanOL` text, -- January overtime loses.\n `FebW` integer, -- February wins.\n `FebL` integer, -- February loses.\n `FebT` integer, -- February ties.\n `FebOL` text, -- February overtime loses.\n `MarW` text, -- March wins.\n `MarL` text, -- March loses.\n `MarT` text, -- March ties.\n `MarOL` text, -- March overtime loses.\n `AprW` text, -- April wins.\n `AprL` text, -- April loses.\n `AprT` text, -- April ties.\n `AprOL` text, -- April overtime loses.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE SeriesPost (\n `year` integer, -- year.\n `round` text, -- round. see abbrev.csv for details.\n `series` text, -- series. used for the NHL designations.\n `tmIDWinner` text, -- Team ID of winner.\n `lgIDWinner` text, -- League ID of winner.\n `tmIDLoser` text, -- Team ID of loser. Team ID of winner.\n `lgIDLoser` text, -- league id of loser.\n `W` integer, -- number of wins of the winner.\n `L` integer, -- number of loses of the winner.\n `T` integer, -- number of ties.\n `GoalsWinner` integer, -- goals for winner.\n `GoalsLoser` integer, -- goals for loser.\n `note` note, -- note. Note: EX = exhibition, ND = no decision, TG = total-goals series.\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n);\n\nCREATE TABLE Master (\n `playerID` text, -- id number identifying the player.\n `coachID` text, -- coach ID. coach id number. if a person has both playerID and coachID, it means this person becomes coach after retirement.\n `hofID` text, -- hall of fame id.\n `firstName` text, -- first name.\n `lastName` text, -- last name.\n `nameNote` text, -- name note. note about name.\n `nameGiven` text, -- name given. Given name.\n `nameNick` text, -- Nickname. (multiple entries separated by \"/\").\n `height` text, -- height.\n `weight` text, -- weight.\n `shootCatch` text, -- shoot catch. Shooting hand (or catching hand for goalies). Shooting hand (or catching hand for goalies). L: left hand. R: right hand. if null or 'empty', it means this player is good at both left and right hand.\n `legendsID` text, -- legends ID. ID at Legends Of Hockey.\n `ihdbID` text, -- Internet Hockey Database ID. ID at the Internet Hockey Database.\n `hrefID` text, -- Hockey-Reference.com ID. ID at Hockey-Reference.com.\n `firstNHL` text, -- First NHL season.\n `lastNHL` text, -- Last NHL season.\n `firstWHA` text, -- First WHA season.\n `lastWHA` text, -- Last WHA season.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `birthYear` text, -- birth Year.\n `birthMon` text, -- birth Month.\n `birthDay` text, -- birth Day. the entire / detail birth date in this table is \"year\" / \"month\" / \"date\".\n `birthCountry` text, -- birth Country.\n `birthState` text, -- birth State.\n `birthCity` text, -- birth city.\n `deathYear` text, -- death year.\n `deathMon` text, -- death month.\n `deathDay` text, -- death day.\n `deathCountry` text, -- death country.\n `deathState` text, -- death state.\n `deathCity` text, -- death city.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE TeamsPost (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes).\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE AwardsPlayers (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `award` text, -- award name.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed.\n `pos` text, -- position. position of players. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger).\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE HOF (\n `year` integer, -- year of hall of fame.\n `hofID` text, -- hall of fame id.\n `name` text, -- name.\n `category` text, -- category.\n primary key (hofID)\n);\n\nCREATE TABLE GoaliesShootout (\n `playerID` integer, -- No description.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` text, -- stint.\n `tmID` integer, -- team ID. team abbreviated name.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `SA` integer, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamVsTeam (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `oppID` text, -- opponent ID.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- overtime loses.\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (oppID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE Scoring (\n `playerID` text, -- player ID.\n `year` integer, -- play year.\n `stint` integer, -- Stint (order of appearance in a season).\n `tmID` text, -- team id.\n `lgID` text, -- league id.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `GP` integer, -- game played.\n `G` integer, -- goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n `+/-` text, -- Plus / minus. The plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against. In another words, higher \"+ / -\" means more importance to the team, lower means less importance.\n `PPG` text, -- Power play goals. When a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\n `PPA` text, -- Power play assists.\n `SHG` text, -- Shorthanded goals. Sometimes the team with fewer players on the ice known as the short-handed team will score a goal.\n `SHA` text, -- Shorthanded assists.\n `GWG` text, -- Game-winning goals. A game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score. if a player gets more GWG, it means this player is more trustworthy in the critical moment.\n `GTG` text, -- Game-tying goals. A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score.\n `SOG` text, -- Shots on goal. a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `PostGP` text, -- Postseason games played.\n `PostG` text, -- Postseason goals.\n `PostA` text, -- Postseason assists.\n `PostPts` text, -- Postseason points.\n `PostPIM` text, -- Postseason penalty minutes.\n `Post+/-` text, -- Postseason Plus / minus.\n `PostPPG` text, -- Postseason power play goals.\n `PostPPA` text, -- Postseason power play assists.\n `PostSHG` text, -- Postseason Shorthanded goals.\n `PostSHA` text, -- Postseason Shorthanded assists.\n `PostGWG` text, -- Postseason game-winning goals.\n `PostSOG` text, -- Postseason shots on goal.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamsSC (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE ScoringShootout (\n `playerID` text, -- player id. id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- stint.\n `tmID` text, -- team ID. team abbreviated name.\n `S` integer, -- shots.\n `G` integer, -- goals.\n `GDG` integer, -- game deciding goals.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Goalies (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- order of appearance in a season. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` text, -- Games played.\n `Min` text, -- Minutes. Minutes of appearance.\n `W` text, -- wins.\n `L` text, -- loses.\n `T/OL` text, -- Ties / overtime losses.\n `ENG` text, -- Empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `SHO` text, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` text, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `SA` text, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `PostGP` text, -- Postseason games played.\n `PostMin` text, -- Postseason minutes.\n `PostW` text, -- Postseason wins.\n `PostL` text, -- Postseason loses.\n `PostT` text, -- Postseason ties.\n `PostENG` text, -- Postseason empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `PostSHO` text, -- Postseason Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `PostGA` text, -- Postseason Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `PostSA` text, -- Postseason Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nExternal Knowledge:\nafter the year 1940 refers to year>1940; have already died refers to deathYear IS NOT NULL\n\nQuestion:\nAmong the coaches who have received an award after the year 1940, how many of them have already died?", + "question": "Among the coaches who have received an award after the year 1940, how many of them have already died?", + "evidence": "after the year 1940 refers to year>1940; have already died refers to deathYear IS NOT NULL", + "db_id": "hockey", + "database_path": "../databases/hockey.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT m.coachID) FROM Master AS m JOIN AwardsCoaches AS ac ON m.coachID = ac.coachID WHERE m.deathYear IS NOT NULL AND ac.year > 1940", + "source_gold_sql": "SELECT COUNT(DISTINCT m.coachID) FROM Master AS m JOIN AwardsCoaches AS ac ON m.coachID = ac.coachID WHERE m.deathYear IS NOT NULL AND ac.year > 1940", + "source_gold_sql_sha256": "4472f7613a52911a01c690b1b72d4ed5a028bea0c1b27840b052ae6b0417824e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6978", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\nplayed the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';\n\nQuestion:\nWho has played the most game plays in the 2000-2001 season of the International league?", + "question": "Who has played the most game plays in the 2000-2001 season of the International league?", + "evidence": "played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT P.`PlayerName`\nFROM SeasonStatus S\nJOIN PlayerInfo P ON P.`ELITEID` = S.`ELITEID`\nWHERE S.`SEASON` = '2000-2001'\n AND S.`LEAGUE` = 'International'\nGROUP BY S.`ELITEID`\nHAVING SUM(S.`GP`) = (\n SELECT MAX(total_gp)\n FROM (\n SELECT `ELITEID`, SUM(`GP`) AS total_gp\n FROM SeasonStatus\n WHERE `SEASON` = '2000-2001'\n AND `LEAGUE` = 'International'\n GROUP BY `ELITEID`\n )\n);", + "source_gold_sql": "SELECT P.`PlayerName`\nFROM SeasonStatus S\nJOIN PlayerInfo P ON P.`ELITEID` = S.`ELITEID`\nWHERE S.`SEASON` = '2000-2001'\n AND S.`LEAGUE` = 'International'\nGROUP BY S.`ELITEID`\nHAVING SUM(S.`GP`) = (\n SELECT MAX(total_gp)\n FROM (\n SELECT `ELITEID`, SUM(`GP`) AS total_gp\n FROM SeasonStatus\n WHERE `SEASON` = '2000-2001'\n AND `LEAGUE` = 'International'\n GROUP BY `ELITEID`\n )\n);", + "source_gold_sql_sha256": "4622395f6a0c208946d30c7730156a4efc9a521446c9bbc09a9e949c4b7b952b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5134", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\n\"Lexington-Fayette, KY\" is the CBSA_name\n\nQuestion:\nName 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.", + "question": "Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.", + "evidence": "\"Lexington-Fayette, KY\" is the CBSA_name", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY'", + "source_gold_sql": "SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY'", + "source_gold_sql_sha256": "52a609e1a42e2d971c64e075aa1f2e0719eef3c1115c9953b185114ef75f8ec5", + "gold_sql_overridden": false, + "grading_method": "subset,=,10", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7394", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\ntotal profit = SUM(SUBTRACT(ListPrice, StandardCost)); David is the ReviewerName;\n\nQuestion:\nWhat is the company's total profit on the products that were rated second-highest by David?", + "question": "What is the company's total profit on the products that were rated second-highest by David?", + "evidence": "total profit = SUM(SUBTRACT(ListPrice, StandardCost)); David is the ReviewerName;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT SUM(p.`ListPrice` - p.`StandardCost`) AS profit FROM `ProductReview` r JOIN `Product` p ON p.`ProductID` = r.`ProductID` WHERE r.`ReviewerName` = 'David' AND r.`Rating` = ( SELECT DISTINCT r2.`Rating` FROM `ProductReview` r2 WHERE r2.`ReviewerName` = 'David' ORDER BY r2.`Rating` DESC LIMIT 1 OFFSET 1)", + "source_gold_sql": "SELECT SUM(p.`ListPrice` - p.`StandardCost`) AS profit FROM `ProductReview` r JOIN `Product` p ON p.`ProductID` = r.`ProductID` WHERE r.`ReviewerName` = 'David' AND r.`Rating` = ( SELECT DISTINCT r2.`Rating` FROM `ProductReview` r2 WHERE r2.`ReviewerName` = 'David' ORDER BY r2.`Rating` DESC LIMIT 1 OFFSET 1)", + "source_gold_sql_sha256": "1ba435cc57e869d0435568520c8a04109872c5152a0254ad885744d2eb2b3a55", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6029", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\nordered in last month of the year 2020 refers to Substr(order_date, 1, 7) = '2020-12'\n\nQuestion:\nHow many books were ordered in the last month of the year 2020?", + "question": "How many books were ordered in the last month of the year 2020?", + "evidence": "ordered in last month of the year 2020 refers to Substr(order_date, 1, 7) = '2020-12'", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT COUNT(*) AS books_ordered\nFROM `order_line` AS ol\nJOIN `cust_order` AS co ON ol.`order_id` = co.`order_id`\nWHERE co.`order_date` >= '2020-12-01'\n AND co.`order_date` < '2021-01-01';", + "source_gold_sql": "SELECT COUNT(*) AS books_ordered\nFROM `order_line` AS ol\nJOIN `cust_order` AS co ON ol.`order_id` = co.`order_id`\nWHERE co.`order_date` >= '2020-12-01'\n AND co.`order_date` < '2021-01-01';", + "source_gold_sql_sha256": "1318ede1351c6dfe76e03c3ba5dd67dbe61870ae1dc830744f0d20349954924e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5649", + "domain": "shipping", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE driver (\n `driver_id` integer, -- driver id. Unique identifier for the driver.\n `first_name` text, -- first name. First given name of the driver.\n `last_name` text, -- last name. Family name of the driver. full name = first_name + last_name.\n `address` text, -- Street address of the driver's home.\n `city` text, -- City the driver lives in.\n `state` text, -- State the driver lives in. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., NY --> New York.\n `zip_code` integer, -- zip code. postal code of the driver's address.\n `phone` text, -- telephone number of the driver.\n primary key (driver_id)\n);\n\nCREATE TABLE customer (\n `cust_id` integer, -- customer id. Unique identifier for the customer.\n `cust_name` text, -- customer name. Business name of the customer.\n `annual_revenue` integer, -- annual revenue. Annual revenue of the customer.\n `cust_type` text, -- customer type. Whether the customer is a manufacturer or a wholes.\n `address` text, -- Physical street address of the customer.\n `city` text, -- City of the customer's address.\n `state` text, -- State of the customer's address. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., NY --> New York.\n `zip` real, -- Postal code of the customer's address.\n `phone` text, -- Telephone number to reach the customer.\n primary key (cust_id)\n);\n\nCREATE TABLE shipment (\n `ship_id` integer, -- ship id. Unique identifier of the shipment.\n `cust_id` integer, -- customer id. A reference to the customer table that indicates which customer the shipment is for.\n `weight` real, -- The number of pounds being transported on the shipment.\n `truck_id` integer, -- truck id. A reference to the truck table that indicates which truck is used in the shipment.\n `driver_id` integer, -- driver id. A reference to the driver table that indicates which driver transported the goods in the shipment.\n `city_id` integer, -- city id. A reference to the city table that indicates the destination of the shipment.\n `ship_date` text, -- ship date. the date the items were received by the driver. yyyy-mm-dd.\n primary key (ship_id),\n foreign key (cust_id) references customer(cust_id),\n foreign key (city_id) references city(city_id),\n foreign key (driver_id) references driver(driver_id),\n foreign key (truck_id) references truck(truck_id)\n);\n\nCREATE TABLE city (\n `city_id` integer, -- city id. unique identifier for the city.\n `city_name` text, -- city name. name of the city.\n `state` text, -- state in which the city is.\n `population` integer, -- population of the city.\n `area` real, -- square miles the city covers. population density (land area per capita) = area / population.\n primary key (city_id)\n);\n\nCREATE TABLE truck (\n `truck_id` integer, -- truck id. Unique identifier of the truck table.\n `make` text, -- The brand of the truck. • Peterbilt headquarter: Texas (TX). • Mack headquarter: North Carolina (NC). • Kenworth headquarter: Washington (WA). can ask question about headquarters of the truck.\n `model_year` integer, -- model year. The year the truck was manufactured. The truck with earlier model year means this truck is newer.\n primary key (truck_id)\n);\n\nExternal Knowledge:\n\"Klett & Sons Repair\" is the cust_name\n\nQuestion:\nWhat is the annual revenue of Klett & Sons Repair?", + "question": "What is the annual revenue of Klett & Sons Repair?", + "evidence": "\"Klett & Sons Repair\" is the cust_name", + "db_id": "shipping", + "database_path": "../databases/shipping.sqlite", + "gold_sql": "SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair'", + "source_gold_sql": "SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair'", + "source_gold_sql_sha256": "731d83319622d83950ca6ac5393652a8019356a9901a6af560a99b19d83729b7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8871", + "domain": "cookbook", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Quantity (\n `quantity_id` integer, -- quantity id. the unique identifier for the quantity.\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `ingredient_id` integer, -- ingredient id. the id of the ingredient.\n `max_qty` real, -- maximum quantity. the max quantity of the ingredient.\n `min_qty` real, -- minimum quantity. the min quantity of the ingredient. If max_qty equals to min_qty, it means that the ingredient must be rationed.\n `unit` text, -- the unit of the ingredient.\n `preparation` text, -- 'No data' means the ingredient doesn't need preprocessing.\n `optional` text, -- whether the ingredient is optional.\n primary key (quantity_id),\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);\n\nCREATE TABLE Nutrition (\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `protein` real, -- the protein content in the recipe.\n `carbo` real, -- the carbo content in the recipe.\n `alcohol` real, -- the alcohol content in the recipe.\n `total_fat` real, -- total fat. the total fat content in the recipe. higher --> higher possibility to gain weight.\n `sat_fat` real, -- saturated fat. the saturated fat content in the recipe. unsaturated fat = total_fat - saturated fat.\n `cholestrl` real, -- cholesterol. the cholesterol content in the recipe.\n `sodium` real, -- the sodium content in the recipe. Salt/Sodium-Free - Less than 5 mg of sodium per serving. Very Low Sodium - 35 mg of sodium or less per serving. Low Sodium -140 mg of sodium or less per serving. Reduced Sodium - At least 25% less sodium than the regular product. Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product. No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated.\n `iron` real, -- the iron content in the recipe. if iron > 20mg, it will lead to. • constipation. • feeling sick. • being sick. • stomach pain. question could mention any of functions listed before.\n `vitamin_c` real, -- vitamin c. the vitamin c content in the recipe. Vitamin C, also known as ascorbic acid, if the VC is higher, it will:. • helping to protect cells and keeping them healthy. • maintaining healthy skin, blood vessels, bones and cartilage. • helping with wound healing. question could mention any of functions listed before.\n `vitamin_a` real, -- vitamin a. the vitamin a content in the recipe. higher --> beneficial to. • helping your body's natural defense against illness and infection (the immune system) work properly. • helping vision in dim light. • keeping skin and the lining of some parts of the body, such as the nose, healthy. question could mention any of functions listed before.\n `fiber` real, -- the fiber a content in the recipe.\n `pcnt_cal_carb` real, -- percentage calculation carbo. percentage of carbo in total nutrient composition.\n `pcnt_cal_fat` real, -- percentage calculation fat. percentage of fat in total nutrient composition.\n `pcnt_cal_prot` real, -- percentage calculation protein. percentage of protein in total nutrient composition.\n `calories` real, -- the calories of the recipe.\n primary key (recipe_id),\n foreign key (recipe_id) references Recipe(recipe_id)\n);\n\nCREATE TABLE Recipe (\n `recipe_id` integer, -- recipe id. the unique identifier for the recipe.\n `title` text, -- the title of the recipe.\n `subtitle` text, -- the subtitle of the recipe.\n `servings` integer, -- the number of people the recipe can serve.\n `yield_unit` text, -- yield unit. the unit of the yield for the recipe.\n `prep_min` integer, -- preparation minute. the preparation minute of the recipe.\n `cook_min` integer, -- cooked minute. the cooked minute of the recipe.\n `stnd_min` integer, -- stand minute. the stand minute of the price. The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min.\n `source` text, -- the source of the recipe.\n `intro` text, -- introduction. the introduction of the recipe.\n `directions` text, -- the directions of the recipe.\n primary key (recipe_id)\n);\n\nCREATE TABLE Ingredient (\n `ingredient_id` integer, -- ingredient id. the unique identifier for the ingredient.\n `category` text, -- the category of the ingredient.\n `name` text, -- the name of the ingredient.\n `plural` text, -- the plural suffix of the ingredient.\n primary key (ingredient_id)\n);\n\nExternal Knowledge:\nRaspberry Chiffon Pie refers to title; do not need preprocessing refers to preparation IS NULL\n\nQuestion:\nPlease list the names of all the ingredients needed for the recipe \"Raspberry Chiffon Pie\" that do not need preprocessing.", + "question": "Please list the names of all the ingredients needed for the recipe \"Raspberry Chiffon Pie\" that do not need preprocessing.", + "evidence": "Raspberry Chiffon Pie refers to title; do not need preprocessing refers to preparation IS NULL", + "db_id": "cookbook", + "database_path": "../databases/cookbook.sqlite", + "gold_sql": "SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.preparation IS NULL", + "source_gold_sql": "SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.preparation IS NULL", + "source_gold_sql_sha256": "cab10ad6cb8234a02ac4eaf9acfff7e43513850e4c39ca590b3f1005c8fe28ad", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4618", + "domain": "mental_health_survey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Answer (\n `AnswerText` text, -- Answer Text. The specific and detailed answer text of each question. The content is highly depend on the question.\n `SurveyID` integer, -- Survey ID. The id of each survey. The SurveyID is simply survey year i.e., 2014, 2016, 2017, 2018, 2019.\n `UserID` integer, -- User ID. The id of different user. Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n `QuestionID` integer, -- Question ID. The id of different questions. Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n primary key (UserID, QuestionID)\n);\n\nCREATE TABLE Question (\n `questiontext` text, -- question text. The detailed text of the question.\n `questionid` integer, -- question id. The unique id of the question. Each questiontext can only have one unique questionid.\n primary key (questionid)\n);\n\nCREATE TABLE Survey (\n `SurveyID` integer, -- Survey ID. The unique id of each survey. Each SurveyID is unique. And SurveyID is simply survey year ie 2014, 2016, 2017, 2018, 2019.\n `Description` text, -- The Description of the specific survey.\n primary key (SurveyID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many questions were asked in the questionary for the mental health survey in total?", + "question": "How many questions were asked in the questionary for the mental health survey in total?", + "evidence": "", + "db_id": "mental_health_survey", + "database_path": "../databases/mental_health_survey.sqlite", + "gold_sql": "SELECT COUNT(questiontext) FROM Question", + "source_gold_sql": "SELECT COUNT(questiontext) FROM Question", + "source_gold_sql_sha256": "657f5f9b0901d4b3105b04455b7ba880e2567375302e18381f31620980b1f095", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8637", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nname of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'\n\nQuestion:\nWhat is the name of the community that has the highest number of crimes related to prostitution?", + "question": "What is the name of the community that has the highest number of crimes related to prostitution?", + "evidence": "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "with sub as (SELECT CA.`community_area_name`, count(*) as num\nFROM `Crime` C\nJOIN `IUCR` I ON C.`iucr_no` = I.`iucr_no`\nJOIN `Community_Area` CA ON C.`community_area_no` = CA.`community_area_no`\nWHERE I.`primary_description` = 'PROSTITUTION'\nGROUP BY CA.`community_area_no`\n)\nselect community_area_name from sub where num = (select max(num) from sub)", + "source_gold_sql": "with sub as (SELECT CA.`community_area_name`, count(*) as num\nFROM `Crime` C\nJOIN `IUCR` I ON C.`iucr_no` = I.`iucr_no`\nJOIN `Community_Area` CA ON C.`community_area_no` = CA.`community_area_no`\nWHERE I.`primary_description` = 'PROSTITUTION'\nGROUP BY CA.`community_area_no`\n)\nselect community_area_name from sub where num = (select max(num) from sub)", + "source_gold_sql_sha256": "d48d63af129cf22a6b72132c313a769d03e17e770c9da7c933664b418f1bab77", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3656", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\npreprint or not published refer to Year = 0 or ConferenceId and JournalID are less than or equal to 0 at the same time.\n\nQuestion:\nHow many papers are preprint or not published?", + "question": "How many papers are preprint or not published?", + "evidence": "preprint or not published refer to Year = 0 or ConferenceId and JournalID are less than or equal to 0 at the same time.", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(Id) FROM Paper WHERE Year = 0 OR (ConferenceId <= 0 AND JournalId <= 0)", + "source_gold_sql": "SELECT COUNT(Id) FROM Paper WHERE Year = 0 OR (ConferenceId <= 0 AND JournalId <= 0)", + "source_gold_sql_sha256": "0a2e5f258c2a1ea077742ff5549e6a5d015d0333f2b844dbefb6b254585d49e7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7079", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nCurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;\n\nQuestion:\nAmong the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours?", + "question": "Among the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours?", + "evidence": "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.VacationHours > 20 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.BusinessEntityID) FROM Employee AS T2 WHERE T2.CurrentFlag = 1 AND T2.SickLeaveHours > 10", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.VacationHours > 20 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.BusinessEntityID) FROM Employee AS T2 WHERE T2.CurrentFlag = 1 AND T2.SickLeaveHours > 10", + "source_gold_sql_sha256": "2da0d92d55e511a3a15e4116c9f82a722f0bed06cb1a8ce64340be94ac4ef33c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4703", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat movies did director Jack Kinney direct?", + "question": "What movies did director Jack Kinney direct?", + "evidence": "", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT name FROM director WHERE director = 'Jack Kinney'", + "source_gold_sql": "SELECT name FROM director WHERE director = 'Jack Kinney'", + "source_gold_sql_sha256": "6ff15409f588a1c908835e2a9635e70c40e072c4d363adaf9570ede7d0b82ff7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1853", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nname of the team refers to Team_Name; in 2011 refers to Match_Date LIKE '2011%'; the point of winning margin lower than 30% of the average winning margin refers to Win_Margin < multiply(avg(Win_Margin), 0.3) where Match_Date LIKE '2011%'\n\nQuestion:\nList the names of the first and the second teams that played matches in 2011 with the point of the winning margin lower than the 30% of the average winning margin of the matches held in 2011.", + "question": "List the names of the first and the second teams that played matches in 2011 with the point of the winning margin lower than the 30% of the average winning margin of the matches held in 2011.", + "evidence": "name of the team refers to Team_Name; in 2011 refers to Match_Date LIKE '2011%'; the point of winning margin lower than 30% of the average winning margin refers to Win_Margin < multiply(avg(Win_Margin), 0.3) where Match_Date LIKE '2011%'", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT DISTINCT\n t2.`Team_Name` AS First_Team,\n t3.`Team_Name` AS Second_Team\nFROM `Match` m\nJOIN `Team` t2 ON t2.`Team_Id` = m.`Team_1`\nJOIN `Team` t3 ON t3.`Team_Id` = m.`Team_2`\nWHERE m.`Match_Date` LIKE '2011%'\n AND m.`Win_Margin` <\n (SELECT AVG(`Win_Margin`)*0.30\n FROM `Match`\n WHERE `Match_Date` LIKE '2011%');", + "source_gold_sql": "SELECT DISTINCT\n t2.`Team_Name` AS First_Team,\n t3.`Team_Name` AS Second_Team\nFROM `Match` m\nJOIN `Team` t2 ON t2.`Team_Id` = m.`Team_1`\nJOIN `Team` t3 ON t3.`Team_Id` = m.`Team_2`\nWHERE m.`Match_Date` LIKE '2011%'\n AND m.`Win_Margin` <\n (SELECT AVG(`Win_Margin`)*0.30\n FROM `Match`\n WHERE `Match_Date` LIKE '2011%');", + "source_gold_sql_sha256": "8f57ce5083df43303d0db3505a20cc4db088d6448f1e6171855f377eec8ec1cf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1632", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\nVP Sales refers to jobTitle\n\nQuestion:\nWhat's the postal code of the office the VP Sales is at?", + "question": "What's the postal code of the office the VP Sales is at?", + "evidence": "VP Sales refers to jobTitle", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT t2.postalCode FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t1.jobTitle = 'VP Sales'", + "source_gold_sql": "SELECT t2.postalCode FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t1.jobTitle = 'VP Sales'", + "source_gold_sql_sha256": "d757ec1dad3f18cb7c6db883de210da8ab0c649d122b33e7642bb32823d242c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7384", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nmost number of night shift = MAX(count(shift.Name = 'Night'))\n\nQuestion:\nWhich department has the most number of night shifts?", + "question": "Which department has the most number of night shifts?", + "evidence": "most number of night shift = MAX(count(shift.Name = 'Night'))", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T3.Name\nFROM `EmployeeDepartmentHistory` AS T2\nJOIN `Shift` AS T1 ON T1.`ShiftID` = T2.`ShiftID`\nJOIN `Department` AS T3 ON T3.`DepartmentID` = T2.`DepartmentID`\nWHERE T1.`Name` = 'Night'\nGROUP BY T3.`Name`\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql": "SELECT T3.Name\nFROM `EmployeeDepartmentHistory` AS T2\nJOIN `Shift` AS T1 ON T1.`ShiftID` = T2.`ShiftID`\nJOIN `Department` AS T3 ON T3.`DepartmentID` = T2.`DepartmentID`\nWHERE T1.`Name` = 'Night'\nGROUP BY T3.`Name`\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql_sha256": "474c158b3519aea6d92dcff96602bfc26ced2d784685b83242e616f1deb772fd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6755", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\nproducts refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';\n\nQuestion:\nAmong the products that have a retail price greater than 1,000, how many products were shipped via ship?", + "question": "Among the products that have a retail price greater than 1,000, how many products were shipped via ship?", + "evidence": "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT `p`.`p_partkey`) FROM `part` AS `p` JOIN `lineitem` AS `l` ON `l`.`l_partkey` = `p`.`p_partkey` WHERE `p`.`p_retailprice` > 1000 AND `l`.`l_shipmode` = 'SHIP'", + "source_gold_sql": "SELECT COUNT(DISTINCT `p`.`p_partkey`) FROM `part` AS `p` JOIN `lineitem` AS `l` ON `l`.`l_partkey` = `p`.`p_partkey` WHERE `p`.`p_retailprice` > 1000 AND `l`.`l_shipmode` = 'SHIP'", + "source_gold_sql_sha256": "2a1b35bdcd55fca98fa7f9e08c912ccc7295f7eebf087eba361f718cfdd652a9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5078", + "domain": "olympics", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE noc_region (\n `id` integer, -- the unique identifier of the noc region.\n `noc` text, -- the NOC code of the region. A NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world.\n `region_name` text, -- region name. the name of the region.\n primary key (id)\n);\n\nCREATE TABLE sport (\n `id` integer, -- the unique identifier of the sport.\n `sport_name` text, -- sport name. the name of the sport.\n primary key (id)\n);\n\nCREATE TABLE games (\n `id` integer, -- the unique identifier of the game.\n `games_year` integer, -- games year. the year of the game.\n `games_name` text, -- games name. the name of the game. games_name is 'games_year season'.\n `season` text, -- the season of the game. The Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\n primary key (id)\n);\n\nCREATE TABLE games_city (\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `city_id` integer, -- city id. the id of the city that held the game. Maps to city(id).\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n);\n\nCREATE TABLE person (\n `id` integer, -- the unique identifier of the person.\n `full_name` text, -- full name. the full name of the person. A person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name.\n `gender` text, -- the gender of the person. M stands for male and F stands for female.\n `height` integer, -- the height of the person.\n `weight` integer, -- the weight of the person. The unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing.\n primary key (id)\n);\n\nCREATE TABLE event (\n `id` integer, -- the unique identifier of the event.\n `sport_id` integer, -- sport id. the id of the sport. Maps to sport(id). There may be different events for the same sport in Olympics.\n `event_name` text, -- event name. the name of the event.\n primary key (id),\n foreign key (sport_id) references sport(id)\n);\n\nCREATE TABLE person_region (\n `person_id` integer, -- the id of the person. Maps to person(id).\n `region_id` integer, -- the id of the noc region. Maps to noc_region(id).\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n);\n\nCREATE TABLE medal (\n `id` integer, -- the unique identifier of the metal.\n `medal_name` text, -- medal name. the name of the medal.\n primary key (id)\n);\n\nCREATE TABLE games_competitor (\n `id` integer, -- the unique identifier of the record.\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `person_id` integer, -- person id. the id of the person. Maps to person(id). The times a person participated in the Olympics games could be calculated by grouping by person_id.\n `age` integer, -- the age of the person when he/she participated in the game. If person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\n primary key (id),\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n);\n\nCREATE TABLE city (\n `id` integer, -- the unique identifier of the city.\n `city_name` text, -- city name. the name of the city.\n primary key (id)\n);\n\nCREATE TABLE competitor_event (\n `event_id` integer, -- event id. the id of the event. Maps to event(id).\n `competitor_id` integer, -- competitor id. the id of the competitor. Maps to games_competitor(id). The number of competitors who participated in a specific event could be calculated by grouping by event_id.\n `medal_id` integer, -- medal id. the id of the medal. Maps to medal(id). For a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place.\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n);\n\nExternal Knowledge:\nthe tallest refers to MAX(height);\n\nQuestion:\nProvide the age of the tallest competitor.", + "question": "Provide the age of the tallest competitor.", + "evidence": "the tallest refers to MAX(height);", + "db_id": "olympics", + "database_path": "../databases/olympics.sqlite", + "gold_sql": "SELECT gc.`age`\nFROM person p\nJOIN games_competitor gc ON gc.`person_id` = p.`id`\nWHERE p.`height` = (\n SELECT MAX(p2.`height`)\n FROM person p2\n JOIN games_competitor gc2 ON gc2.`person_id` = p2.`id`\n);", + "source_gold_sql": "SELECT gc.`age`\nFROM person p\nJOIN games_competitor gc ON gc.`person_id` = p.`id`\nWHERE p.`height` = (\n SELECT MAX(p2.`height`)\n FROM person p2\n JOIN games_competitor gc2 ON gc2.`person_id` = p2.`id`\n);", + "source_gold_sql_sha256": "0def24dfa1c71e622b3842df3f98184b5e19d90ceafa38e6ed6595d6474e3b75", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4575", + "domain": "mental_health_survey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Answer (\n `AnswerText` text, -- Answer Text. The specific and detailed answer text of each question. The content is highly depend on the question.\n `SurveyID` integer, -- Survey ID. The id of each survey. The SurveyID is simply survey year i.e., 2014, 2016, 2017, 2018, 2019.\n `UserID` integer, -- User ID. The id of different user. Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n `QuestionID` integer, -- Question ID. The id of different questions. Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n primary key (UserID, QuestionID)\n);\n\nCREATE TABLE Question (\n `questiontext` text, -- question text. The detailed text of the question.\n `questionid` integer, -- question id. The unique id of the question. Each questiontext can only have one unique questionid.\n primary key (questionid)\n);\n\nCREATE TABLE Survey (\n `SurveyID` integer, -- Survey ID. The unique id of each survey. Each SurveyID is unique. And SurveyID is simply survey year ie 2014, 2016, 2017, 2018, 2019.\n `Description` text, -- The Description of the specific survey.\n primary key (SurveyID)\n);\n\nExternal Knowledge:\nBetween 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34\n\nQuestion:\nBetweeen 2016 to 2019, which year recorded the highest number of people with mental illness?", + "question": "Betweeen 2016 to 2019, which year recorded the highest number of people with mental illness?", + "evidence": "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", + "db_id": "mental_health_survey", + "database_path": "../databases/mental_health_survey.sqlite", + "gold_sql": "WITH survey_num AS(\n SELECT T1.SurveyID, COUNT(T1.UserID) num\n FROM Answer AS T1 \n INNER JOIN Question AS T2 \n ON T1.QuestionID = T2.questionid \n WHERE T1.SurveyID BETWEEN 2016 AND 2019 AND T2.questionid = 34 AND T1.AnswerText LIKE 'Yes' \n GROUP BY T1.SurveyID\n) SELECT SurveyID FROM survey_num WHERE num = (SELECT MAX(num) FROM survey_num)", + "source_gold_sql": "WITH survey_num AS(\n SELECT T1.SurveyID, COUNT(T1.UserID) num\n FROM Answer AS T1 \n INNER JOIN Question AS T2 \n ON T1.QuestionID = T2.questionid \n WHERE T1.SurveyID BETWEEN 2016 AND 2019 AND T2.questionid = 34 AND T1.AnswerText LIKE 'Yes' \n GROUP BY T1.SurveyID\n) SELECT SurveyID FROM survey_num WHERE num = (SELECT MAX(num) FROM survey_num)", + "source_gold_sql_sha256": "67c0760e3d404da1bf9c52290c1c2225af643acc3b1375c18239436783cf632d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:633", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nen methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;\n\nQuestion:\nWhat are the \"en\" methods with solutions from repository \"1093?\" List ids of such methods.", + "question": "What are the \"en\" methods with solutions from repository \"1093?\" List ids of such methods.", + "evidence": "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT DISTINCT T2.id FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 1093 AND T2.Lang = 'en'", + "source_gold_sql": "SELECT DISTINCT T2.id FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 1093 AND T2.Lang = 'en'", + "source_gold_sql_sha256": "7ac2b27d430de3b8f103e0b87c44129e5fbbc5ab7167eb29d33e2cc67a3b93fd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6161", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\nschool refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'\n\nQuestion:\nGive the address of the schools that passed the inspection in March 2010.", + "question": "Give the address of the schools that passed the inspection in March 2010.", + "evidence": "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT DISTINCT T1.address FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-03' AND T2.results = 'Pass' AND T1.facility_type = 'School'", + "source_gold_sql": "SELECT DISTINCT T1.address FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-03' AND T2.results = 'Pass' AND T1.facility_type = 'School'", + "source_gold_sql_sha256": "b95f2b16a9b0d4aa3d34bb3475734d51e6566e73668ac60a7fd11ac71f75b8fc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6862", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\nname of the product refers to p_name; the highest retail price refers to p_retailprice\n\nQuestion:\nWhat is the name of the product with the highest retail price?", + "question": "What is the name of the product with the highest retail price?", + "evidence": "name of the product refers to p_name; the highest retail price refers to p_retailprice", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT p_name FROM part WHERE p_retailprice = ( SELECT MAX(p_retailprice) FROM part )", + "source_gold_sql": "SELECT p_name FROM part WHERE p_retailprice = ( SELECT MAX(p_retailprice) FROM part )", + "source_gold_sql_sha256": "f62dbc16d2da92a2aadbed62689b872974b0ae30f43ee0523660afd087a6b485", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7292", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nvendor's selling price refers to StandardPrice\n\nQuestion:\nWhat is the highest vendor's selling price for Hex Nut 5?", + "question": "What is the highest vendor's selling price for Hex Nut 5?", + "evidence": "vendor's selling price refers to StandardPrice", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 5' ORDER BY T1.StandardPrice DESC LIMIT 1", + "source_gold_sql": "SELECT T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 5' ORDER BY T1.StandardPrice DESC LIMIT 1", + "source_gold_sql_sha256": "ec4a8f0b0341f4d5b762b099a53d307db0a3fd8f5524f34244d2ba9c5f17b17e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4640", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nthe most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);\n\nQuestion:\nWhich song is associated with the most popular Disney movie in 1970s?", + "question": "Which song is associated with the most popular Disney movie in 1970s?", + "evidence": "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(SUBSTR(T1.release_date, INSTR(T1.release_date, ', ') + 1) AS int) BETWEEN 1970 AND 1979 ORDER BY CAST(REPLACE(SUBSTR(T1.total_gross, 2), ',', '') AS float) DESC LIMIT 1", + "source_gold_sql": "SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(SUBSTR(T1.release_date, INSTR(T1.release_date, ', ') + 1) AS int) BETWEEN 1970 AND 1979 ORDER BY CAST(REPLACE(SUBSTR(T1.total_gross, 2), ',', '') AS float) DESC LIMIT 1", + "source_gold_sql_sha256": "568c663c2208cd79ffcfe0cc8c0a8c8d57421a231e729595991b904383907ccd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:706", + "domain": "trains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trains (\n `id` integer, -- the unique id representing the trains.\n `direction` text, -- the direction of trains that are running. • east; • west;\n PRIMARY KEY (id)\n);\n\nCREATE TABLE cars (\n `id` integer, -- the unique id number representing the cars.\n `train_id` integer, -- train id. the counterpart id for trains that the cars belong to.\n `position` integer, -- postion id of cars in the trains. 1-4:. 1: head car. 4: tail car.\n `shape` text, -- shape of the cars. • rectangle. • bucket. • u_shaped. • hexagon. • elipse. regular shape:. rectangle, u_shaped, hexagon.\n `len` text, -- length. length of the cars. • short. • long.\n `sides` text, -- sides of the cars. • not_double. • double.\n `roof` text, -- roof of the cars. • none: the roof is open. • peaked. • flat. • arc. • jagged.\n `wheels` integer, -- wheels of the cars. • 2:. • 3:.\n `load_shape` text, -- load shape. • circle. • hexagon. • triangle. • rectangle. • diamond.\n `load_num` integer, -- load number. 0-3:. • 0: empty load. • 3: full load.\n PRIMARY KEY (id),\n FOREIGN KEY (train_id) REFERENCES trains (id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\nmost rectangle-shaped cars refers to MAX(rectCarsNum)\n\nQuestion:\nWhich directions have the trains that have the most rectangle-shaped cars?", + "question": "Which directions have the trains that have the most rectangle-shaped cars?", + "evidence": "most rectangle-shaped cars refers to MAX(rectCarsNum)", + "db_id": "trains", + "database_path": "../databases/trains.sqlite", + "gold_sql": "SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id) AS T2 ON T1.id = T2.train_id AND rectCarsNum = (SELECT COUNT(id) AS cnt FROM cars WHERE shape = 'rectangle' GROUP BY train_id ORDER BY cnt DESC LIMIT 1)", + "source_gold_sql": "SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id) AS T2 ON T1.id = T2.train_id AND rectCarsNum = (SELECT COUNT(id) AS cnt FROM cars WHERE shape = 'rectangle' GROUP BY train_id ORDER BY cnt DESC LIMIT 1)", + "source_gold_sql_sha256": "3a600ca54a864752310e34f6fd5c9ba606849604a655040a722972aa58c747c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5218", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\npostal points refer to zip_code;\n\nQuestion:\nCount the number of postal points in the district represented by Kirkpatrick Ann.", + "question": "Count the number of postal points in the district represented by Kirkpatrick Ann.", + "evidence": "postal points refer to zip_code;", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT COUNT(T2.zip_code) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.first_name = 'Kirkpatrick' AND T1.last_name = 'Ann'", + "source_gold_sql": "SELECT COUNT(T2.zip_code) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.first_name = 'Kirkpatrick' AND T1.last_name = 'Ann'", + "source_gold_sql_sha256": "c92a701817b86d75146414b4f9a836e47bcdb4559b7db287f5b993436deec192", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:161", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\naverage number of followers refers to AVG(list_followers); movie \"Pavee Lackeen: The Traveller Girl\" refers to movie_title = 'Pavee Lackeen: The Traveller Girl'; on 3/27/2011 at 2:06:34 AM refers to rating_timestamp_utc = '2011-03-27 02:06:34'\n\nQuestion:\nWhat is the average number of followers of the lists created by the user who rated the movie \"Pavee Lackeen: The Traveller Girl\" on 3/27/2011 at 2:06:34 AM?", + "question": "What is the average number of followers of the lists created by the user who rated the movie \"Pavee Lackeen: The Traveller Girl\" on 3/27/2011 at 2:06:34 AM?", + "evidence": "average number of followers refers to AVG(list_followers); movie \"Pavee Lackeen: The Traveller Girl\" refers to movie_title = 'Pavee Lackeen: The Traveller Girl'; on 3/27/2011 at 2:06:34 AM refers to rating_timestamp_utc = '2011-03-27 02:06:34'", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT CAST(SUM(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.movie_title LIKE 'Pavee Lackeen: The Traveller Girl' AND T1.rating_timestamp_utc LIKE '2011-03-27 02:06:34'", + "source_gold_sql": "SELECT CAST(SUM(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.movie_title LIKE 'Pavee Lackeen: The Traveller Girl' AND T1.rating_timestamp_utc LIKE '2011-03-27 02:06:34'", + "source_gold_sql_sha256": "cdd68f50d83cce40602c20168a8743945c08837ef32c31585cb7265705427722", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5361", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nroot beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));\n\nQuestion:\nPlease name the root beer brand that has the highest market evaluation and acceptance.", + "question": "Please name the root beer brand that has the highest market evaluation and acceptance.", + "evidence": "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT `b`.`BrandName`\nFROM `rootbeerbrand` AS `b`\nJOIN `rootbeerreview` AS `r` ON `b`.`BrandID` = `r`.`BrandID`\nWHERE `r`.`StarRating` = 5\nGROUP BY `b`.`BrandID`, `b`.`BrandName`\nHAVING COUNT(*) = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM `rootbeerreview`\n WHERE `StarRating` = 5\n GROUP BY `BrandID`\n ) t\n)", + "source_gold_sql": "SELECT `b`.`BrandName`\nFROM `rootbeerbrand` AS `b`\nJOIN `rootbeerreview` AS `r` ON `b`.`BrandID` = `r`.`BrandID`\nWHERE `r`.`StarRating` = 5\nGROUP BY `b`.`BrandID`, `b`.`BrandName`\nHAVING COUNT(*) = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM `rootbeerreview`\n WHERE `StarRating` = 5\n GROUP BY `BrandID`\n ) t\n)", + "source_gold_sql_sha256": "9c4f48e80a1d40e27568a9beebc810eeec950ffca9e5630c7f5f635bfc20a39b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6240", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\ninspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'\n\nQuestion:\nList down the inspection ID with the inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" and inspection category of Personnel.", + "question": "List down the inspection ID with the inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" and inspection category of Personnel.", + "evidence": "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT DISTINCT v.`inspection_id` FROM `violation` v JOIN `inspection_point` p ON v.`point_id` = p.`point_id` WHERE p.`category` = 'Personnel' AND v.`inspector_comment` LIKE 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.%NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED%'", + "source_gold_sql": "SELECT DISTINCT v.`inspection_id` FROM `violation` v JOIN `inspection_point` p ON v.`point_id` = p.`point_id` WHERE p.`category` = 'Personnel' AND v.`inspector_comment` LIKE 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.%NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED%'", + "source_gold_sql_sha256": "53c9353c9c3c034328cde67d3af20597988f10f9745112e33a6766584a6113d0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3063", + "domain": "cars", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE data (\n `ID` integer, -- unique ID for each car.\n `mpg` real, -- mileage per gallon. mileage of the car in miles per gallon. The car with higher mileage is more fuel-efficient.\n `cylinders` integer, -- number of cylinders. the number of cylinders present in the car.\n `displacement` real, -- engine displacement in cubic mm. sweep volume = displacement / no_of cylinders.\n `horsepower` integer, -- horse power. horse power associated with the car. horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n `weight` integer, -- weight of the car in lbs. A bigger, heavier vehicle provides better crash protection than a smaller.\n `acceleration` real, -- acceleration of the car in miles per squared hour.\n `model` integer, -- the year when the car model was introduced in the market. 0 --> 1970.\n `car_name` text, -- car name. name of the car.\n primary key (ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE price (\n `ID` integer, -- unique ID for each car.\n `price` real, -- price of the car in USD.\n primary key (ID)\n);\n\nCREATE TABLE production (\n `ID` integer, -- the id of the car.\n `model_year` integer, -- model year. year when the car model was introduced in the market.\n `country` integer, -- country id to which the car belongs. Japan --> Asia. USA --> North America.\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);\n\nCREATE TABLE country (\n `origin` integer, -- the unique identifier for the origin country.\n `country` text, -- the origin country of the car.\n primary key (origin)\n);\n\nExternal Knowledge:\nwith 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)\n\nQuestion:\nAmong the cars with 8 cylinders, what are the names of the ones that are the most expensive?", + "question": "Among the cars with 8 cylinders, what are the names of the ones that are the most expensive?", + "evidence": "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", + "db_id": "cars", + "database_path": "../databases/cars.sqlite", + "gold_sql": "SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.cylinders = 8 AND T2.price = (SELECT MAX(T4.price) FROM data AS T3 INNER JOIN price AS T4 ON T3.ID = T4.ID WHERE T3.cylinders = 8);", + "source_gold_sql": "SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.cylinders = 8 AND T2.price = (SELECT MAX(T4.price) FROM data AS T3 INNER JOIN price AS T4 ON T3.ID = T4.ID WHERE T3.cylinders = 8);", + "source_gold_sql_sha256": "1ce8f63cf0d7954918f99f2a4cb2bd2736b7964abac1abc80f0c87aed54b7dc6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:368", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\nin Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age <= 18\n\nQuestion:\nAmong the clients in Middle Atlantic, how many are them are female and no more than 18 years old?", + "question": "Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?", + "evidence": "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age <= 18", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Middle Atlantic' AND T1.sex = 'Female' AND T1.age <= 18", + "source_gold_sql": "SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Middle Atlantic' AND T1.sex = 'Female' AND T1.age <= 18", + "source_gold_sql_sha256": "f50a7bfa9169d8a16aa4f572771929bb8f2ed53dafbd1992becf3de0bdf3a22a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8803", + "domain": "food_inspection", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspections (\n `business_id` integer, -- business id. the unique id of the business.\n `score` integer, -- the inspection score. The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n `date` date, -- the inspection date.\n `type` text, -- the inspection type.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE violations (\n `business_id` integer, -- business id. the unique id of the business.\n `date` date, -- the date of the violation.\n `violation_type_id` text, -- violation type id. the unique type id of the violation.\n `risk_category` text, -- risk category. risk category. High / Moderate / Low risk. High risks have more safety and health hazards than low risks.\n `description` text, -- the description of the violation.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE businesses (\n `business_id` integer, -- business id. the unique id of the business.\n `name` text, -- the name of the eatery.\n `address` text, -- the eatery address.\n `city` text, -- the city where the eatery is located in.\n `postal_code` text, -- postal code. the postal code of the eatery.\n `latitude` real, -- the latitude of the position.\n `longitude` real, -- the longitude of the position. the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}.\n `phone_number` integer, -- phone number. the phone number of the eatery.\n `tax_code` text, -- tax code. the tax code of the eatery.\n `business_certificate` integer, -- business certificate. the business certificate number.\n `application_date` date, -- application date. the application date of the eatery.\n `owner_name` text, -- owner name. the owner's name.\n `owner_address` text, -- owner address. the owner's address.\n `owner_city` text, -- owner city. the city where the owner is located.\n `owner_state` text, -- owner state. the state where the owner is located.\n `owner_zip` text, -- owner zip. the zip code of the owner.\n PRIMARY KEY (business_id)\n);\n\nExternal Knowledge:\nDIVIDE(COUNT(risk_category = 'Moderate Risk' where name = 'Melody Lounge'), COUNT(business_id where name = 'Melody Lounge')) as percentage;\n\nQuestion:\nWhat percentage of the violations for \"Melody Lounge\" are moderate risks?", + "question": "What percentage of the violations for \"Melody Lounge\" are moderate risks?", + "evidence": "DIVIDE(COUNT(risk_category = 'Moderate Risk' where name = 'Melody Lounge'), COUNT(business_id where name = 'Melody Lounge')) as percentage;", + "db_id": "food_inspection", + "database_path": "../databases/food_inspection.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.risk_category = 'Moderate Risk' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.business_id) FROM businesses AS T1 INNER JOIN violations AS T2 ON T1.business_id = T2.business_id WHERE T1.name = 'Melody Lounge'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.risk_category = 'Moderate Risk' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.business_id) FROM businesses AS T1 INNER JOIN violations AS T2 ON T1.business_id = T2.business_id WHERE T1.name = 'Melody Lounge'", + "source_gold_sql_sha256": "c1e1787fbdd4ae3c579b93e93e4118a0082b250108fbd7eeb58f87e15231ac07", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8635", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nshort description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)\n\nQuestion:\nWhat is the short description of the crime committed the most by criminals in the least populated community?", + "question": "What is the short description of the crime committed the most by criminals in the least populated community?", + "evidence": "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "WITH least_pop AS (\n SELECT community_area_no\n FROM Community_Area\n ORDER BY CAST(REPLACE(population, ',', '') AS INTEGER) ASC\n LIMIT 1\n)\nSELECT fc.title\nFROM Crime c\nJOIN least_pop lp ON c.community_area_no = lp.community_area_no\nJOIN FBI_Code fc ON c.fbi_code_no = fc.fbi_code_no\nGROUP BY fc.title\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql": "WITH least_pop AS (\n SELECT community_area_no\n FROM Community_Area\n ORDER BY CAST(REPLACE(population, ',', '') AS INTEGER) ASC\n LIMIT 1\n)\nSELECT fc.title\nFROM Crime c\nJOIN least_pop lp ON c.community_area_no = lp.community_area_no\nJOIN FBI_Code fc ON c.fbi_code_no = fc.fbi_code_no\nGROUP BY fc.title\nORDER BY COUNT(*) DESC\nLIMIT 1;", + "source_gold_sql_sha256": "aef347ce2a05dc850a52d9675af9f701547f615caaad6f3f82c7d7b9865714f5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2621", + "domain": "regional_sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Sales Orders (\n `OrderNumber` text, -- Order Number. the unique number identifying the order.\n `Sales Channel` text, -- Sales Channel. • In-Store. • Online. • Distributor. • Wholesale.\n `WarehouseCode` text, -- Warehouse Code. if the warehouse code is the same, it means this product is shipped from the same ware house.\n `ProcuredDate` text, -- Procured Date. date: month/date/year, 17--> 2017.\n `OrderDate` text, -- Order Date.\n `ShipDate` text, -- Ship Date.\n `DeliveryDate` text, -- Delivery Date. the difference \"DeliveryDate - OrderDate\" is smaller, it means faster delivery.\n `CurrencyCode` text, -- Currency Code. USD.\n `_SalesTeamID` integer, -- _Sales Team ID. Sales Team ID.\n `_CustomerID` integer, -- _Customer ID.\n `_StoreID` integer, -- _Store ID.\n `_ProductID` integer, -- _Product ID.\n `Order Quantity` integer, -- Order Quantity. 1 - 8:. higher means order quantity is higher or customer needs more.\n `Discount Applied` real, -- Discount Applied. 0.2: 20% discount.\n `Unit Price` text, -- No description.\n `Unit Cost` text, -- net profit = Unit Price - Unit Cost.\n primary key (OrderNumber)\n);\n\nCREATE TABLE Regions (\n `StateCode` text, -- state code. the unique code identifying the state.\n `State` text, -- full state name.\n `Region` text, -- the region where the state is located in.\n primary key (StateCode)\n);\n\nCREATE TABLE Sales Team (\n `SalesTeamID` integer, -- SalesTeam ID. unique sales team id.\n `Sales Team` text, -- sales team names.\n `Region` text, -- the region where the state is located in.\n primary key (SalesTeamID)\n);\n\nCREATE TABLE Store Locations (\n `StoreID` integer, -- Store ID. unique store id.\n `City Name` text, -- No description.\n `County` text, -- full county name.\n `StateCode` text, -- State Code. state code.\n `State` text, -- full state name.\n `Type` text, -- type of the store. City. Town. CDP (customer data platform). Unified Government. Consolidated Government. Other. Township. Urban County. Borough. Metropolitan Government.\n `Latitude` real, -- Latitude.\n `Longitude` real, -- Longitude. coordinates or detailed position: (Latitude, Longitude).\n `AreaCode` integer, -- Area Code.\n `Population` integer, -- Population.\n `Household Income` integer, -- Household Income.\n `Median Income` integer, -- Median Income.\n `Land Area` integer, -- Land Area.\n `Water Area` integer, -- Water Area.\n `Time Zone` text, -- Time Zone.\n primary key (StoreID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- product id. unique id number representing each product.\n `Product Name` text, -- product name. name of the product.\n primary key (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- customer id. unique id number indicating which customer.\n `Customer Names` text, -- customer names. the name of the customer.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\nEi is the name of the customer; orders have quantity greater than 4 refer to OrderNumber WHERE Order Quantity > 4;\n\nQuestion:\nAmong the orders placed by Ei, how many orders have quantity greater than 4?", + "question": "Among the orders placed by Ei, how many orders have quantity greater than 4?", + "evidence": "Ei is the name of the customer; orders have quantity greater than 4 refer to OrderNumber WHERE Order Quantity > 4;", + "db_id": "regional_sales", + "database_path": "../databases/regional_sales.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T1.`Order Quantity` > 4 AND T2.`Customer Names` = 'Ei ' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID", + "source_gold_sql": "SELECT SUM(CASE WHEN T1.`Order Quantity` > 4 AND T2.`Customer Names` = 'Ei ' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID", + "source_gold_sql_sha256": "f4918be972edbc79f8fc0e5004c57ee415e5bbf423a35cfe8c967d795639b7c0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6073", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)\n\nQuestion:\nWhat is the average number of book pages written by Zilpha Keatley Snyder?", + "question": "What is the average number of book pages written by Zilpha Keatley Snyder?", + "evidence": "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT AVG(T3.num_pages) FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id INNER JOIN book AS T3 ON T3.book_id = T1.book_id WHERE T2.author_name = 'Zilpha Keatley Snyder'", + "source_gold_sql": "SELECT AVG(T3.num_pages) FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id INNER JOIN book AS T3 ON T3.book_id = T1.book_id WHERE T2.author_name = 'Zilpha Keatley Snyder'", + "source_gold_sql_sha256": "723af1f683737d031e5d34b61aa7c7a15cf5d126fa181b2d623d1841c5625ef3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3201", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nschool in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';\n\nQuestion:\nPlease list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn.", + "question": "Please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn.", + "evidence": "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT T2.donation_message FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' AND T1.school_magnet = 't'", + "source_gold_sql": "SELECT T2.donation_message FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' AND T1.school_magnet = 't'", + "source_gold_sql_sha256": "8a3ec7068b8aa424901f7e105fa3942af41b1e4d54f0ffa1ef86cc0372862bd6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3570", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\ndo not have a website refers to HomePage = ''\n\nQuestion:\nHow many journals do not have a website?", + "question": "How many journals do not have a website?", + "evidence": "do not have a website refers to HomePage = ''", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(HomePage) FROM Journal WHERE HomePage = ''", + "source_gold_sql": "SELECT COUNT(HomePage) FROM Journal WHERE HomePage = ''", + "source_gold_sql_sha256": "dd2b560bcae274f8d0015d436d922f46bc0697e68b323ab4ab050d5f9645ea48", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:897", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nstudent with the highest GPA refers to student_id where MAX(gpa);\n\nQuestion:\nHow many courses does the student with the highest GPA this semester take?", + "question": "How many courses does the student with the highest GPA this semester take?", + "evidence": "student with the highest GPA refers to student_id where MAX(gpa);", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT COUNT(course_id) FROM registration WHERE student_id IN ( SELECT student_id FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student ) )", + "source_gold_sql": "SELECT COUNT(course_id) FROM registration WHERE student_id IN ( SELECT student_id FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student ) )", + "source_gold_sql_sha256": "0bcdf6557e95f2deb7bfffd1e57e262d7af8fff65d0430b0bb48e280b8de2b00", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5353", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nstars refers to StarRating; Frostie refers to BrandName = 'Frostie';\n\nQuestion:\nHow many stars did Urijah Faber rate for Frostie?", + "question": "How many stars did Urijah Faber rate for Frostie?", + "evidence": "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT T2.StarRating FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Urijah' AND T1.Last = 'Faber' AND T3.BrandName = 'Frostie'", + "source_gold_sql": "SELECT T2.StarRating FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Urijah' AND T1.Last = 'Faber' AND T3.BrandName = 'Frostie'", + "source_gold_sql_sha256": "0741b18c859c6b931e5281593c920eeb7d7e7d1b9e9c93c9c95fe4d88db68463", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4696", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nMusical movies refer to genre = 'Musical'; released in 1991 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '1991';\n\nQuestion:\nProvide the directors and MPAA ratings of the musical movies released in 1991.", + "question": "Provide the directors and MPAA ratings of the musical movies released in 1991.", + "evidence": "Musical movies refer to genre = 'Musical'; released in 1991 refers to substr(release_date, length(release_date) - 3, length(release_date)) = '1991';", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT T2.director, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.genre = 'Musical' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1991'", + "source_gold_sql": "SELECT T2.director, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.genre = 'Musical' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1991'", + "source_gold_sql_sha256": "70f37428445b2cd7ace26ab6c6a464d153cf4e5d49d6c92ebdab908a01aa2ad9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:122", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\nat 2019/10/17 1:36:36 refers to rating_timestamp_utc = '2019/10/17 1:36:36'; avatar of the user refers to user_avatar_image_url\n\nQuestion:\nShow the avatar of the user who gave the rating at 2019/10/17 1:36:36.", + "question": "Show the avatar of the user who gave the rating at 2019/10/17 1:36:36.", + "evidence": "at 2019/10/17 1:36:36 refers to rating_timestamp_utc = '2019/10/17 1:36:36'; avatar of the user refers to user_avatar_image_url", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT DISTINCT ru.user_avatar_image_url\nFROM ratings AS r\nJOIN ratings_users AS ru ON r.user_id = ru.user_id\nWHERE r.rating_timestamp_utc = '2019-10-17 01:36:36';", + "source_gold_sql": "SELECT DISTINCT ru.user_avatar_image_url\nFROM ratings AS r\nJOIN ratings_users AS ru ON r.user_id = ru.user_id\nWHERE r.rating_timestamp_utc = '2019-10-17 01:36:36';", + "source_gold_sql_sha256": "646abea70f09d13a59cdf4baf54061f3b65a0389591f60bb0a6f454070f15e8d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "timeout_seconds": 90, + "gold_timeout_seconds": 180, + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6009", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\nother than 0 refers to price ! = 0; lowest price paid refers to Min(price)\n\nQuestion:\nOther than zero, what is the lowest price paid by a customer for an order?", + "question": "Other than zero, what is the lowest price paid by a customer for an order?", + "evidence": "other than 0 refers to price ! = 0; lowest price paid refers to Min(price)", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT MIN(total_price)\nFROM (\n SELECT `order_id`, SUM(`price`) AS total_price\n FROM `order_line`\n GROUP BY `order_id`\n) \nWHERE total_price <> 0;", + "source_gold_sql": "SELECT MIN(total_price)\nFROM (\n SELECT `order_id`, SUM(`price`) AS total_price\n FROM `order_line`\n GROUP BY `order_id`\n) \nWHERE total_price <> 0;", + "source_gold_sql_sha256": "d365d357e66e5242be7344cd8888b87ec7154b33b3f09236b0dcf7f8a2c12dea", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8528", + "domain": "software_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE mailings3 (\n `REFID` integer, -- REFERENCE ID. unique id number identifying the customer.\n `REF_DATE` datetime, -- REFERENCE DATE. indicating the date when the mailing was sent.\n `RESPONSE` text, -- Actual response to the marketing incentive email. • True. • False. 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no.\n primary key (REFID)\n);\n\nCREATE TABLE Demog (\n `GEOID` integer, -- GEOGRAPHIC ID. unique geographic identifier.\n `INHABITANTS_K` real, -- INHABITANTS (THOUSANDS). number of inhabitants. the unit is K (thousands).\n `INCOME_K` real, -- INCOME (THOUSANDS). average income per inhabitant per month. the unit is dollar, it indicates the average income per inhabitant per month. some computation like: total income per year = INHABITANTS_K x INCOME_K x 12.\n `A_VAR1` real, -- No description.\n `A_VAR2` real, -- No description.\n `A_VAR3` real, -- No description.\n `A_VAR4` real, -- No description.\n `A_VAR5` real, -- No description.\n `A_VAR6` real, -- No description.\n `A_VAR7` real, -- No description.\n `A_VAR8` real, -- No description.\n `A_VAR9` real, -- No description.\n `A_VAR10` real, -- No description.\n `A_VAR11` real, -- No description.\n `A_VAR12` real, -- No description.\n `A_VAR13` real, -- No description.\n `A_VAR14` real, -- No description.\n `A_VAR15` real, -- No description.\n `A_VAR16` real, -- No description.\n `A_VAR17` real, -- No description.\n `A_VAR18` real, -- No description.\n primary key (GEOID)\n);\n\nCREATE TABLE Mailings1_2 (\n `REFID` integer, -- REFERENCE ID. unique id number identifying the customer.\n `REF_DATE` datetime, -- REFERENCE DATE. indicating the date when the mailing was sent.\n `RESPONSE` text, -- Response to the incentive mailing that marketing department sent. • True. • False. 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no.\n primary key (REFID)\n);\n\nCREATE TABLE Sales (\n `EVENTID` integer, -- EVENT ID. unique id of event (sales).\n `REFID` integer, -- REFERENCE ID. Reference to customer ID.\n `EVENT_DATE` datetime, -- EVENT DATE. date of sales.\n `AMOUNT` real, -- amount of sales.\n primary key (EVENTID)\n);\n\nCREATE TABLE Customers (\n `ID` integer, -- the unique number identifying the customer.\n `SEX` text, -- the sex of the customer.\n `MARITAL_STATUS` text, -- MARITAL STATUS. � Never-married. � Married-civ-spouse. � Divorced. � Widowed. � Other. \"Married-civ-spouse\", \"Divorced\", \"Widowed\" mean customer has been married.\n `GEOID` integer, -- GEOGRAPHIC ID. geographic identifier.\n `EDUCATIONNUM` integer, -- EDUCATION NUMBER. the level of education. higher education number refers to higher education.\n `OCCUPATION` text, -- occupation of customers.\n `age` integer, -- age of customers. � teenager: 13-19 years old. � elder: people aged over 65.\n primary key (ID)\n);\n\nExternal Knowledge:\nplace with the lowest average income per month refers to GEOID where MIN(INCOME_K); average education level refers to AVG(EDUCATIONNUM);\n\nQuestion:\nWhat is the average education level of customers from the place with the lowest average income per month?", + "question": "What is the average education level of customers from the place with the lowest average income per month?", + "evidence": "place with the lowest average income per month refers to GEOID where MIN(INCOME_K); average education level refers to AVG(EDUCATIONNUM);", + "db_id": "software_company", + "database_path": "../databases/software_company.sqlite", + "gold_sql": "SELECT AVG(`EDUCATIONNUM`)\nFROM `Customers`\nWHERE `GEOID` = (\n SELECT `GEOID`\n FROM `Demog`\n ORDER BY `INCOME_K` \n LIMIT 1\n);", + "source_gold_sql": "SELECT AVG(`EDUCATIONNUM`)\nFROM `Customers`\nWHERE `GEOID` = (\n SELECT `GEOID`\n FROM `Demog`\n ORDER BY `INCOME_K` \n LIMIT 1\n);", + "source_gold_sql_sha256": "31329289a3ee1e8b9facf2091d3bd612442835d1705976905a5a16bb2b0a634b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9185", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nmost rented movie refers to title where Max(Count(rental_id))\n\nQuestion:\nWhat is the name of the most rented movie?", + "question": "What is the name of the most rented movie?", + "evidence": "most rented movie refers to title where Max(Count(rental_id))", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "with rental_subquery as (\nSELECT T1.title, COUNT(T3.rental_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id \nINNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T1.title\n)\nSELECT title FROM rental_subquery WHERE num = (SELECT max(num) FROM rental_subquery)", + "source_gold_sql": "with rental_subquery as (\nSELECT T1.title, COUNT(T3.rental_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id \nINNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T1.title\n)\nSELECT title FROM rental_subquery WHERE num = (SELECT max(num) FROM rental_subquery)", + "source_gold_sql_sha256": "a93ae778fd9b1d297edb9c2b8c86a766c97e75a76005943149014a0486d2fb5c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1866", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nteam \"Chennai Super Kings\" refers to Team_Name = 'Chennai Super Kings'; win rate = divide(count(Match_Id where Match_Winner = 3), count(Match_Id)) * 100%\n\nQuestion:\nCalculate the win rate of the team \"Chennai Super Kings\".", + "question": "Calculate the win rate of the team \"Chennai Super Kings\".", + "evidence": "team \"Chennai Super Kings\" refers to Team_Name = 'Chennai Super Kings'; win rate = divide(count(Match_Id where Match_Winner = 3), count(Match_Id)) * 100%", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.Match_Winner = 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE T2.Team_Name = 'Chennai Super Kings' OR T3.Team_Name = 'Chennai Super Kings'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.Match_Winner = 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE T2.Team_Name = 'Chennai Super Kings' OR T3.Team_Name = 'Chennai Super Kings'", + "source_gold_sql_sha256": "ae9a1f95634f754fb91b784ab039f50dcadd44b41d3c4414a40953253938b820", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9117", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nPlease list the titles of all the films starring the actor PENELOPE GUINESS.", + "question": "Please list the titles of all the films starring the actor PENELOPE GUINESS.", + "evidence": "", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT T2.title FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = 'PENELOPE' AND T3.last_name = 'GUINESS'", + "source_gold_sql": "SELECT T2.title FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = 'PENELOPE' AND T3.last_name = 'GUINESS'", + "source_gold_sql_sha256": "79735af2428caeb178bd9cfb8c366cdceedf466c6e440c8ba3e2e667c5be7c84", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5135", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\n\"Democrats\" and \"Republicans\" refers to party = 'Democrat\" and party = 'Republican'; percentage ratio = Multiply (Divide (Count(party = 'Democrat\"), Count(party = 'Republican')), 100)\n\nQuestion:\nWhat is the percentage ratio between Democrats and Republicans in Indiana?", + "question": "What is the percentage ratio between Democrats and Republicans in Indiana?", + "evidence": "\"Democrats\" and \"Republicans\" refers to party = 'Democrat\" and party = 'Republican'; percentage ratio = Multiply (Divide (Count(party = 'Democrat\"), Count(party = 'Republican')), 100)", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT \n cast(SUM(CASE WHEN `party` = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / \n SUM(CASE WHEN `party` = 'Republican' THEN 1 ELSE 0 END) AS is_rep \n FROM `congress` \n WHERE `state` = 'Indiana'", + "source_gold_sql": "SELECT \n cast(SUM(CASE WHEN `party` = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / \n SUM(CASE WHEN `party` = 'Republican' THEN 1 ELSE 0 END) AS is_rep \n FROM `congress` \n WHERE `state` = 'Indiana'", + "source_gold_sql_sha256": "43f242331b5a0f630e40130ff4c5031ebca8616de1b17a3449cbd9ca48426f0b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2833", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\nhigh school in New York refers to highSchool like '%New York%'; won the MVP refers to award = 'Most Valuable Player'; average height = Divide (Sum(height), Count(playerID))\n\nQuestion:\nAmong the players that went to high school in New York and have won the MVP, what is their average height?", + "question": "Among the players that went to high school in New York and have won the MVP, what is their average height?", + "evidence": "high school in New York refers to highSchool like '%New York%'; won the MVP refers to award = 'Most Valuable Player'; average height = Divide (Sum(height), Count(playerID))", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "SELECT AVG(p.`height`) AS avg_height FROM `players` AS p WHERE p.`hsState` = 'NY' AND p.`playerID` IN ( SELECT DISTINCT ap.`playerID` FROM `awards_players` AS ap WHERE ap.`award` = 'Most Valuable Player' )", + "source_gold_sql": "SELECT AVG(p.`height`) AS avg_height FROM `players` AS p WHERE p.`hsState` = 'NY' AND p.`playerID` IN ( SELECT DISTINCT ap.`playerID` FROM `awards_players` AS ap WHERE ap.`award` = 'Most Valuable Player' )", + "source_gold_sql_sha256": "d133e7776ea7be4348ae421ee774dc5c537b726169009b44542676ae833e4500", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4159", + "domain": "simpson_episodes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Character_Award (\n `award_id` integer, -- award id. A unique identifier for the award.\n `character` text, -- the name of the awarded character.\n foreign key (award_id) references Award(award_id)\n);\n\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `stars` integer, -- the star score of the episode. 1-10. Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n `votes` integer, -- the number of votes of the star score.\n `percent` real, -- the percent of the vote number of the star score. percent = the number of votes for the star / the total amount of votes for all stars.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `keyword` text, -- the keywords of episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `category` text, -- the category of the credit.\n `person` text, -- the name of cast and crew members.\n `role` text, -- the role of the person.\n `credited` text, -- whether the person is credited. true/ false. • true: The person is included in the credit list. • false: The person isn't included in the credit list.\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `season` integer, -- the season of the episode.\n `episode` integer, -- the episode number of the episode.\n `number_in_series` integer, -- number in series. the number in series.\n `title` text, -- the title of the episode.\n `summary` text, -- the summary of the episode.\n `air_date` text, -- air date. the air date of the episode. YYYY-MM-DD.\n `episode_image` text, -- episode image. the image of episode.\n `rating` real, -- the rating of episode. 0.0 - 10.0. Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0. • average: 5.0 < rating <= 7.0. • bad: 0.0 < rating <= 5.0. not bad: average, excellent.\n `votes` integer, -- the votes of episode. Higher votes mean more audience supports (or popular).\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique id for the award.\n `organization` text, -- the organization that holds the award.\n `year` integer, -- year of award.\n `award_category` text, -- the category of the award.\n `award` text, -- the name of the award.\n `person` text, -- the person who gets the award.\n `role` text, -- the role of the honoree.\n `episode_id` text, -- episode id. S stands for 'Season' and E stands for 'Episode'.\n `season` text, -- the season of the awarded work.\n `song` text, -- the theme song of the awarded work.\n `result` text, -- the final award result. • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award.\n primary key (award_id),\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Person (\n `name` text, -- the name of the crew.\n `birthdate` text, -- birth date. the birth date of the crew. YYYY-MM-DD.\n `birth_name` text, -- birth name. the birth name of the crew.\n `birth_place` text, -- birth place. the birth place of the crew.\n `birth_region` text, -- birth region. the birth region of the crew.\n `birth_country` text, -- birth country. the birth country of the crew.\n `height_meters` real, -- height meters. the height of the crew. the unit is meter.\n `nickname` text, -- the nickname of the crew.\n primary key (name)\n);\n\nExternal Knowledge:\n\"Dan Castellaneta\" is the name of Person\n\nQuestion:\nWhat's the nickname for Dan Castellaneta?", + "question": "What's the nickname for Dan Castellaneta?", + "evidence": "\"Dan Castellaneta\" is the name of Person", + "db_id": "simpson_episodes", + "database_path": "../databases/simpson_episodes.sqlite", + "gold_sql": "SELECT nickname FROM Person WHERE name = 'Dan Castellaneta';", + "source_gold_sql": "SELECT nickname FROM Person WHERE name = 'Dan Castellaneta';", + "source_gold_sql_sha256": "4e0f871639cfd2fb3b5b1bc44e96a3eef914b69e0916704f2238a23acd470ba5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3711", + "domain": "college_completion", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE state_sector_grads (\n `stateid` integer, -- state id. state FIPS (Federal Information Processing System) code.\n `state` text, -- state name.\n `state_abbr` text, -- No description.\n `control` text, -- Public,. Private not-for-profit,. Private for-profit.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `year` integer, -- year of data release.\n `gender` text, -- gender of students. B' = both genders; 'M' = male; 'F' = female.\n `race` text, -- race/ethnicity of students. 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White.\n `cohort` text, -- degree-seeking cohort type. • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions. 4-year degree is bachelor's degree. 2-year degree is associate's degree.\n `grad_cohort` text, -- graduation cohort. Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions.\n `grad_100` text, -- graduation 100. Number of students who graduated within 100 percent of normal/expected time.\n `grad_150` text, -- graduation 150. Number of students who graduated within 150 percent of normal/expected time.\n `grad_100_rate` text, -- Percentage of students who graduated within 100 percent of normal/expected time.\n `grad_150_rate` text, -- Percentage of students who graduated within 150 percent of normal/expected time.\n `grad_cohort_ct` integer, -- graduation cohort count. Number of institutions with data included in the cohort.\n foreign key (state) references institution_details(state),\n foreign key (stateid) references state_sector_details(stateid)\n);\n\nCREATE TABLE institution_details (\n `unitid` integer, -- Unit ID number. unique Education Unit ID number.\n `chronname` text, -- Institution name.\n `city` text, -- Institution city.\n `state` text, -- Institution state.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `control` text, -- Control of institution. Public,. Private not-for-profit,. Private for-profit.\n `basic` text, -- Carnegie Foundation for the Advancement of Teaching Basic Classification (2010 version).\n `hbcu` text, -- Historically Black College and Universities. Denotes Historically Black College and Universities.\n `flagship` text, -- Denotes Public flagship institutions.\n `long_x` real, -- Institution longitude.\n `lat_y` real, -- Institution latitude. institute Coordinate.\n `site` text, -- Institution Web site address.\n `student_count` integer, -- student count. Total number of undergraduates in 2010.\n `awards_per_value` real, -- awards per value. Completions per 100 FTE (full-time equivalency) undergraduate students (average 2011, 2012, and 2013).\n `awards_per_state_value` real, -- awards per state value. Completions per 100 FTE (full-time equivalency) undergraduate students, state and sector average. • if his institute's completion (or graduation) rate exceeds the average for the state and sector in which it belongs:. awards_per_value > awards_per_state_value. • if his institute's completion (or graduation) rate falls below the average for the state and sector in which it belongs:. awards_per_value < awards_per_state_value.\n `awards_per_natl_value` real, -- awards per national value. Completions per 100 FTE (full-time equivalency) undergraduate students, national sector average. • if his institute's completion (or graduation) rate exceeds the average for the nationalin which it belongs:. awards_per_value > awards_per_natl_value. • if his institute's completion (or graduation) rate falls below the average for the state and industry in which it belongs:. awards_per_value < awards_per_natl_value.\n `exp_award_value` integer, -- expected award value. Estimated educational spending per academic award in 2013. Includes all certificates and degrees. expenses related to instruction, research, public service, student services, academic support, institutional support, operations and maintenance. Includes all certificates and degrees.\n `exp_award_state_value` integer, -- expected award state value. Spending per completion, state and sector average.\n `exp_award_natl_value` integer, -- expected award national value. Spending per completion, national sector average.\n `exp_award_percentile` integer, -- No description.\n `ft_pct` real, -- Full-time percentage. Percentage of undergraduates who attend full-time.\n `fte_value` integer, -- Full-time percentage. total number of full-time equivalent undergraduates.\n `fte_percentile` integer, -- No description.\n `med_sat_value` text, -- median SAT value. Median estimated SAT value for incoming students.\n `med_sat_percentile` text, -- median SAT percentile. Institution's percent rank for median SAT value within sector.\n `aid_value` integer, -- aid value. The average amount of student aid going to undergraduate recipients.\n `aid_percentile` integer, -- aid percentile. Institution's percent rank for average amount of student aid going to undergraduate recipients within sector.\n `endow_value` text, -- endow value. End-of-year endowment value per full-time equivalent student.\n `endow_percentile` text, -- endow percentile. Institution's percent rank for endowment value per full-time equivalent student within sector.\n `grad_100_value` real, -- graduation 100 value. percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 100 percent of expected time (bachelor's-seeking group at 4-year institutions). %,. lower means harder to graduate for bachelor.\n `grad_100_percentile` integer, -- graduation 100 percentile. Institution's percent rank for completers within 100 percent of normal time within sector.\n `grad_150_value` real, -- graduation 150 value. percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 150 percent of expected time (bachelor's-seeking group at 4-year institutions). %,. lower means harder to graduate for bachelor.\n `grad_150_percentile` integer, -- graduation 150 percentile. Institution's percent rank for completers within 150 percent of normal time within sector.\n `pell_value` real, -- pell value. percentage of undergraduates receiving a Pell Grant.\n `pell_percentile` integer, -- pell percentile. Institution's percent rank for undergraduate Pell recipients within sector.\n `retain_value` real, -- retain value. share of freshman students retained for a second year.\n `retain_percentile` integer, -- retain percentile. Institution's percent rank for freshman retention percentage within sector.\n `ft_fac_value` real, -- full time faculty value. Percentage of employees devoted to instruction, research or public service who are full-time and do not work for an associated medical school.\n `ft_fac_percentile` integer, -- full time faculty percentile. Institution's percent rank for full-time faculty share within sector.\n `vsa_year` text, -- voluntary system of accountability year. Most recent year of Student Success and Progress Rate data available from the Voluntary System of Accountability.\n `vsa_grad_after4_first` text, -- voluntary system of accountability after 4 year first time. First-time, full-time students who graduated from this institution within four years.\n `vsa_grad_elsewhere_after4_first` text, -- voluntary system of accountability graduation elsewhere after 4 year first time. First-time, full-time students who graduated from another institution within four years.\n `vsa_enroll_after4_first` text, -- voluntary system of accountability enrollment after 4 year first time. First-time, full-time students who are still enrolled at this institution after four years.\n `vsa_enroll_elsewhere_after4_first` text, -- voluntary system of accountability enrollment elsewhere after 4 year first time. First-time, full-time students who are enrolled at another institution after four years.\n `vsa_grad_after6_first` text, -- voluntary system of accountability graduation elsewhere after 6 year first time. First-time, full-time students who graduated from this institution within six years. null: not available.\n `vsa_grad_elsewhere_after6_first` text, -- voluntary system of accountability graduation elsewhere after 6 year first time. First-time, full-time students who graduated from another institution within six years.\n `vsa_enroll_after6_first` text, -- voluntary system of accountability enrollment after 6 year first time. First-time, full-time students who are still enrolled at this institution after six years.\n `vsa_enroll_elsewhere_after6_first` text, -- voluntary system of accountability enrollment elsewhere after 6 year first time. First-time, full-time students who are enrolled at another institution after six years.\n `vsa_grad_after4_transfer` text, -- voluntary system of accountability transfer after 6 year first time. Full-time transfer students who graduated from this institution within four years.\n `vsa_grad_elsewhere_after4_transfer` text, -- voluntary system of accountability graduation elsewhere after 4 year. Full-time transfer students who graduated from this institution within four years.\n `vsa_enroll_after4_transfer` text, -- voluntary system of accountability enrollment after 4 years transfer. Full-time transfer students who are still enrolled at this institution after four years.\n `vsa_enroll_elsewhere_after4_transfer` text, -- voluntary system of accountability enrollment elsewhere after 4 years transfer. Full-time transfer students who are enrolled at another institution after four years.\n `vsa_grad_after6_transfer` text, -- voluntary system of accountability enrollment elsewhere after 6 years transfer. Full-time transfer students who graduated from this institution within six years.\n `vsa_grad_elsewhere_after6_transfer` text, -- voluntary system of accountability graduation elsewhere after 6 years transfer. Full-time transfer students who graduated from another institution within six years.\n `vsa_enroll_after6_transfer` text, -- voluntary system of accountability enrollment after 6 years transfer. Full-time transfer students who are still enrolled at this institution after six years.\n `vsa_enroll_elsewhere_after6_transfer` text, -- voluntary system of accountability enrollment elsewhere after 6 years transfer. Full-time transfer students who are enrolled at another institution after six years.\n `similar` text, -- No description.\n `state_sector_ct` integer, -- No description.\n `carnegie_ct` integer, -- No description.\n `counted_pct` text, -- No description.\n `nicknames` text, -- No description.\n `cohort_size` integer, -- No description.\n primary key (unitid)\n);\n\nCREATE TABLE state_sector_details (\n `stateid` integer, -- state id. state FIPS (Federal Information Processing System) code.\n `state` text, -- state name.\n `state_post` text, -- No description.\n `level` text, -- Level of institution. 4-year: bachelor's degree. 2-year: associate's degree.\n `control` text, -- Public,. Private not-for-profit,. Private for-profit.\n `schools_count` integer, -- No description.\n `counted_pct` text, -- counted percentage. Percentage of students in the entering class (Fall 2007 at 4-year institutions, Fall 2010 at 2-year institutions) who are first-time, full-time, degree-seeking students and generally part of the official graduation rate.\n `awards_per_state_value` text, -- awards per state value. Completions per 100 FTE (full-time equivalent) undergraduate students, state and sector average.\n `awards_per_natl_value` real, -- awards per national value. Completions per 100 FTE (full-time equivalent) undergraduate students, national sector average.\n `exp_award_state_value` text, -- expected award state value. Spending per completion, state and sector average.\n `exp_award_natl_value` integer, -- expected award national value. Spending per completion, national sector average.\n `state_appr_value` text, -- state appropriation value. State appropriations to higher education in fiscal year 2011 per resident.\n `state_appr_rank` text, -- No description.\n `grad_rate_rank` text, -- No description.\n `awards_per_rank` text, -- No description.\n primary key (stateid, level, control)\n);\n\nCREATE TABLE institution_grads (\n `unitid` integer, -- unit id. Education Unit ID number.\n `year` integer, -- year of data release.\n `gender` text, -- gender of students. 'B' = both genders; 'M' = male; 'F' = female.\n `race` text, -- race/ethnicity of students. 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White.\n `cohort` text, -- degree-seeking cohort type. • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions. 4-year degree is bachelor's degree. 2-year degree is associate's degree.\n `grad_cohort` text, -- graduation cohort. Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions.\n `grad_100` text, -- graduation 100. Number of students who graduated within 100 percent of normal/expected time.\n `grad_150` text, -- graduation 150. Number of students who graduated within 150 percent of normal/expected time.\n `grad_100_rate` text, -- Percentage of students who graduated within 100 percent of normal/expected time.\n `grad_150_rate` text, -- Percentage of students who graduated within 150 percent of normal/expected time.\n foreign key (unitid) references institution_details(unitid)\n);\n\nExternal Knowledge:\npercentage of students graduating within 100 percent of normal/expected time refers to grade_100_rate; Central Alabama Community College refers to chronname = 'Central Alabama Community College';\n\nQuestion:\nWhat is the average percentage of students graduating within 100 percent of normal/expected time for Central Alabama Community College?", + "question": "What is the average percentage of students graduating within 100 percent of normal/expected time for Central Alabama Community College?", + "evidence": "percentage of students graduating within 100 percent of normal/expected time refers to grade_100_rate; Central Alabama Community College refers to chronname = 'Central Alabama Community College';", + "db_id": "college_completion", + "database_path": "../databases/college_completion.sqlite", + "gold_sql": "SELECT AVG(CAST(g.`grad_100_rate` AS REAL)) AS avg_grad_100_rate\nFROM `institution_details` AS d\nJOIN `institution_grads` AS g ON g.`unitid` = d.`unitid`\nWHERE d.`chronname` = 'Central Alabama Community College'\n AND g.`gender` = 'B'\n AND g.`race` = 'X'\n AND g.`grad_100_rate` NOT IN ('', 'NULL')", + "source_gold_sql": "SELECT AVG(CAST(g.`grad_100_rate` AS REAL)) AS avg_grad_100_rate\nFROM `institution_details` AS d\nJOIN `institution_grads` AS g ON g.`unitid` = d.`unitid`\nWHERE d.`chronname` = 'Central Alabama Community College'\n AND g.`gender` = 'B'\n AND g.`race` = 'X'\n AND g.`grad_100_rate` NOT IN ('', 'NULL')", + "source_gold_sql_sha256": "f46dca24206424ecf551144a30ff5aa51c0f8fc08893323946490b2eeb6b7e42", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:586", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nlanguage refers to Lang;\n\nQuestion:\nWhat is the language of the method used in the solution path \"opendns_diagnosticapp\\windows\\OpenDnsDiagnostic.sln\"?", + "question": "What is the language of the method used in the solution path \"opendns_diagnosticapp\\windows\\OpenDnsDiagnostic.sln\"?", + "evidence": "language refers to Lang;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT DISTINCT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'opendns_diagnosticapp\\windows\\OpenDnsDiagnostic.sln'", + "source_gold_sql": "SELECT DISTINCT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'opendns_diagnosticapp\\windows\\OpenDnsDiagnostic.sln'", + "source_gold_sql_sha256": "7ad84df69d4e36c17ac9670406925377fbee0f8d85642c4749df82dfd232b7e3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8040", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nin Argentina refers to country_name = 'Argentina';  most famous refers to MAX(SUM(score))\n\nQuestion:\nName the most famous university in Argentina based on the total ranking score.", + "question": "Name the most famous university in Argentina based on the total ranking score.", + "evidence": "in Argentina refers to country_name = 'Argentina';  most famous refers to MAX(SUM(score))", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name HAVING SUM(T2.Score) = (SELECT SUM(T2.Score) FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name ORDER BY SUM(T2.Score) DESC LIMIT 1);", + "source_gold_sql": "SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name HAVING SUM(T2.Score) = (SELECT SUM(T2.Score) FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name ORDER BY SUM(T2.Score) DESC LIMIT 1);", + "source_gold_sql_sha256": "9c3d1b42adcd804a1bf7a866fc89227f032f92282c88fbdd2c1880e496a79076", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5271", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nMasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';\n\nQuestion:\nHow many transactions were paid through MasterCard in 2014?", + "question": "How many transactions were paid through MasterCard in 2014?", + "evidence": "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT COUNT(TransactionID) FROM `transaction` WHERE CreditCardType = 'MasterCard' AND TransactionDate LIKE '2014%'", + "source_gold_sql": "SELECT COUNT(TransactionID) FROM `transaction` WHERE CreditCardType = 'MasterCard' AND TransactionDate LIKE '2014%'", + "source_gold_sql_sha256": "e8ad47eaa1bf32b1803fa11086ef3b3585705b602d487bbd2bee7b03116bbf6f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:613", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nrepository refers to Repo.Id and RepoId; solutions a repository contains refers to Solution.Id;\n\nQuestion:\nFor the repository with '8094' watchers , how many solutions does it contain?", + "question": "For the repository with '8094' watchers , how many solutions does it contain?", + "evidence": "repository refers to Repo.Id and RepoId; solutions a repository contains refers to Solution.Id;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = 8094", + "source_gold_sql": "SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = 8094", + "source_gold_sql_sha256": "e32f115b5c20ddf94d735f481ff820125b9e518129bbd6701048e76480e03182", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:360", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\nsent via Fax refers to Submitted via = 'Fax'\n\nQuestion:\nWrite down the date received of complaints sent via Fax.", + "question": "Write down the date received of complaints sent via Fax.", + "evidence": "sent via Fax refers to Submitted via = 'Fax'", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT DISTINCT `Date received` FROM events WHERE `Submitted via` = 'Fax'", + "source_gold_sql": "SELECT DISTINCT `Date received` FROM events WHERE `Submitted via` = 'Fax'", + "source_gold_sql_sha256": "a9d35bcecf6811e8574a836e1ed8f13df12f296844b0b5ab418aa62405100ea6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4385", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nin the foreign legion organ = 'foreign_legion';\n\nQuestion:\nName all students enlisted in the foreign legion.", + "question": "Name all students enlisted in the foreign legion.", + "evidence": "in the foreign legion organ = 'foreign_legion';", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT name FROM enlist WHERE organ = 'foreign_legion'", + "source_gold_sql": "SELECT name FROM enlist WHERE organ = 'foreign_legion'", + "source_gold_sql_sha256": "3df29c57dddabcc1b83e4e1fb36246352647ce236bd9392d43060a960bb8478e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8026", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nscore below 80 refers to score < 80; in 2015 refers to year 2015; percentage of international students refers to DIVIDE(SUM(MULTIPLY(num_students, pct_international_students)), SUM(num_students))\n\nQuestion:\nAmong universities that had at least one score below 80 in 2015, what is their percentage of international students in 2015?", + "question": "Among universities that had at least one score below 80 in 2015, what is their percentage of international students in 2015?", + "evidence": "score below 80 refers to score < 80; in 2015 refers to year 2015; percentage of international students refers to DIVIDE(SUM(MULTIPLY(num_students, pct_international_students)), SUM(num_students))", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "WITH low_score AS (\n SELECT DISTINCT `university_id`\n FROM `university_ranking_year`\n WHERE `year` = 2015\n AND `score` < 80\n)\nSELECT CAST(SUM(`num_students` * `pct_international_students`) as REAL)\n / SUM(`num_students`) AS pct_international_students\nFROM `university_year`\nWHERE `year` = 2015\n AND `university_id` IN (SELECT `university_id` FROM low_score);", + "source_gold_sql": "WITH low_score AS (\n SELECT DISTINCT `university_id`\n FROM `university_ranking_year`\n WHERE `year` = 2015\n AND `score` < 80\n)\nSELECT CAST(SUM(`num_students` * `pct_international_students`) as REAL)\n / SUM(`num_students`) AS pct_international_students\nFROM `university_year`\nWHERE `year` = 2015\n AND `university_id` IN (SELECT `university_id` FROM low_score);", + "source_gold_sql_sha256": "8d4586f831803b7e3c6a6cb5cdf94339bd495241f99e8ef923f9493d353a81f4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8506", + "domain": "mondial_geo", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE economy (\n `Country` text, -- the country code.\n `GDP` real, -- gross domestic product.\n `Agriculture` real, -- percentage of agriculture of the GDP.\n `Service` real, -- percentage of services of the GDP,.\n `Industry` real, -- percentage of industry of the GDP.\n `Inflation` real, -- inflation rate (per annum),.\n primary key (Country)\n);\n\nCREATE TABLE geo_island (\n `Island` text, -- the name of the island.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Island),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE islandIn (\n `Island` text, -- No description.\n `Sea` text, -- No description.\n `Lake` text, -- No description.\n `River` text, -- No description.\n\n);\n\nCREATE TABLE ethnicGroup (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE island (\n `Name` text, -- the name of the island.\n `Islands` text, -- the group of islands where it belongs to.\n `Area` real, -- the area of the island.\n `Height` real, -- the maximal elevation of the island.\n `Type` text, -- the type of the island.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude.\n primary key (Name)\n);\n\nCREATE TABLE sea (\n `Name` text, -- the name of the sea.\n `Depth` real, -- the maximal depth of the sea.\n primary key (Name)\n);\n\nCREATE TABLE river (\n `Name` text, -- the name of the river.\n `River` text, -- the river where it finally flows to.\n `Lake` text, -- the lake where it finally flows to.\n `Sea` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Length` real, -- the length of the river.\n `SourceLongitude` real, -- the longitude of its source.\n `SourceLatitude` real, -- the latitude of its source.\n `Mountains` text, -- the mountains where its source is located.\n `SourceAltitude` real, -- the elevation (above sea level) of its source.\n `EstuaryLongitude` real, -- the coordinates of its estuary.\n `EstuaryLatitude` real, -- the latitude of its estuary.\n primary key (Name)\n);\n\nCREATE TABLE organization (\n `Abbreviation` text, -- its abbreviation.\n `Name` text, -- the full name of the organization.\n `City` text, -- the city where the headquarters are located.\n `Country` text, -- the code of the country where the headquarters are located.\n `Province` text, -- the name of the province where the headquarters are located,.\n `Established` date, -- date of establishment.\n primary key (Abbreviation),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_desert (\n `Desert` text, -- the name of the desert.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Desert),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE geo_source (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE located (\n `City` text, -- the name of the city.\n `Country` text, -- the country code where the city belongs to.\n `Province` text, -- the province where the city belongs to.\n `River` text, -- the river where it is located at.\n `Lake` text, -- the lake where it is located at.\n `Sea` text, -- the sea where it is located at. Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE politics (\n `Country` text, -- the country code.\n `Independence` date, -- date of independence. Commonsense evidence:. if the value is null or empty, it means this country is not independent.\n `Dependent` text, -- the country code where the area belongs to.\n `Government` text, -- type of government.\n primary key (Country)\n);\n\nCREATE TABLE geo_mountain (\n `Mountain` text, -- the name of the mountain.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Mountain),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE population (\n `Country` text, -- the country code.\n `Population_Growth` real, -- population growth. population growth rate. per annum.\n `Infant_Mortality` real, -- infant mortality. per thousand.\n primary key (Country)\n);\n\nCREATE TABLE geo_sea (\n `Sea` text, -- the name of the sea.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Sea),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mergesWith (\n `Sea1` text, -- the name of the mountain.\n `Sea2` text, -- the country code where it is located.\n primary key (Sea1, Sea2)\n);\n\nCREATE TABLE encompasses (\n `Country` text, -- a country code.\n `Continent` text, -- the continent name.\n `Percentage` real, -- how much of the area of a country belongs to the continent. %.\n primary key (Country, Continent)\n);\n\nCREATE TABLE province (\n `Name` text, -- the name of the administrative division.\n `Country` text, -- the country code where it belongs to.\n `Area` integer, -- the total area of the province,.\n `Population` real, -- the population of the province.\n `Capital` text, -- the name of the capital. if null, doesn't have capital.\n `CapProv` text, -- capital province. the name of the province where the capital belongs to. note that capprov is not necessarily equal to name.\n primary key (Name, Country)\n);\n\nCREATE TABLE continent (\n `Name` text, -- name of the continent.\n `Area` real, -- total area of the continent.\n primary key (Name)\n);\n\nCREATE TABLE country (\n `Name` text, -- the country name.\n `Code` text, -- country code.\n `Capital` text, -- the name of the capital,.\n `Province` text, -- the province where the capital belongs to,.\n `Area` real, -- the total area,.\n `Population` integer, -- the population number.\n primary key (Code)\n);\n\nCREATE TABLE geo_river (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE target (\n `Country` text, -- No description.\n `Target` real, -- No description.\n primary key (Country)\n);\n\nCREATE TABLE religion (\n `Country` text, -- the country code.\n `Name` text, -- name of the religion.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE geo_lake (\n `Lake` text, -- the name of the lake.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, Lake),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE desert (\n `Name` text, -- the name of the desert.\n `Area` real, -- the total area of the desert.\n `Longitude` real, -- Longitude.\n `Latitude` real, -- Latitude. coordinate: (Longitude, Latitude).\n primary key (Name)\n);\n\nCREATE TABLE city (\n `Name` text, -- name of city.\n `Country` text, -- the code of the country where it belongs to.\n `Province` text, -- the name of the province where it belongs to.\n `Population` integer, -- population of the city.\n `Longitude` real, -- geographic longitude.\n `Latitude` real, -- geographic latitude.\n primary key (Name, Province),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE isMember (\n `Country` text, -- No description.\n `Organization` text, -- No description.\n `Type` text, -- No description.\n primary key (Country, Organization)\n);\n\nCREATE TABLE borders (\n `Country1` text, -- a country code.\n `Country2` text, -- a country code.\n `Length` real, -- length of the border between country1 and country2.\n primary key (Country1, Country2)\n);\n\nCREATE TABLE locatedOn (\n `City` text, -- the name of the city.\n `Province` text, -- the province where the city belongs to.\n `Country` text, -- the country code where the city belongs to.\n `Island` text, -- the island it is (maybe only partially) located on.\n primary key (City, Province, Country, Island),\n foreign key (City, Province) references city\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE language (\n `Country` text, -- the country code.\n `Name` text, -- name of the language.\n `Percentage` real, -- percentage of the language in this country. %.\n primary key (Name, Country)\n);\n\nCREATE TABLE mountain (\n `Name` text, -- the name of the mountain.\n `Mountains` text, -- the mountains where it belongs to.\n `Height` real, -- the maximal elevation of the summit of the mountain.\n `Type` text, -- the sea where it finally flows to. (note that at most one out of {river,lake,sea} can be non-null.\n `Longitude` real, -- the length of the river.\n `Latitude` real, -- the longitude of its source.\n primary key (Name)\n);\n\nCREATE TABLE lake (\n `Name` text, -- the name of the lake.\n `Area` real, -- the total area of the lake.\n `Depth` real, -- the depth of the lake.\n `Altitude` real, -- the altitude (above sea level) of the lake.\n `River` text, -- the river that flows out of the lake.\n `Type` text, -- the type of the lake.\n `Longitude` real, -- longitude of lake.\n `Latitude` real, -- latitude of lake.\n primary key (Name)\n);\n\nCREATE TABLE geo_estuary (\n `River` text, -- the name of the river.\n `Country` text, -- the country code where it is located.\n `Province` text, -- the province of this country.\n primary key (Province, Country, River),\n foreign key (Province, Country) references province\n);\n\nCREATE TABLE mountainOnIsland (\n `Mountain` text, -- the name of the mountain.\n `Island` text, -- the name of the island.\n primary key (Mountain, Island)\n);\n\nExternal Knowledge:\nPercentage = count(countries independent 1960) / total num of countries\n\nQuestion:\nWhat percentage of countries became independent during the year 1960?", + "question": "What percentage of countries became independent during the year 1960?", + "evidence": "Percentage = count(countries independent 1960) / total num of countries", + "db_id": "mondial_geo", + "database_path": "../databases/mondial_geo.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Independence) = '1960' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Independence) = '1960' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics", + "source_gold_sql_sha256": "f1d7723193af3a030643fdaca6b64d402c0d1b915719bbb9ce03f2fc7680bcfd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3024", + "domain": "shakespeare", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE chapters (\n `id` integer auto_increment, -- unique id number identifying the chapter.\n `Act` integer, -- An act is a major division of a theatre work, including a play, film, opera, or musical theatre. An act can consist of one or more scenes.\n `Scene` integer, -- A scene is a dramatic part of a story, at a specific time and place, between specific characters.\n `Description` text, -- textual description of the chapter.\n `work_id` integer, -- work id. id number identifying the work.\n primary key (id)\n);\n\nCREATE TABLE paragraphs (\n `id` integer , -- unique id number identifying the paragraphs.\n `ParagraphNum` integer, -- paragraph number. unique id number identifying the paragraph number.\n `PlainText` text, -- Plain Text. main content of the paragraphs.\n `character_id` integer, -- character id. unique id number identifying the mentioned character.\n `chapter_id` integer, -- chapter id. unique id number identifying the related chapter. if number of the paragraphs is > 150, then it means this is a long chapter.\n primary key (id)\n);\n\nCREATE TABLE characters (\n `id` integer, -- unique id number identifying the characters.\n `CharName` text, -- char name. character name.\n `Abbrev` text, -- abbreviation. abbreviation. An abbreviation is a shortened form of a word or phrase.\n `Description` text, -- description of the character.\n primary key (id)\n);\n\nCREATE TABLE works (\n `id` integer, -- unique id number identifying the work.\n `Title` text, -- title of the work. the short title or abbreviated title.\n `LongTitle` text, -- Long Title. full title of the work.\n `Date` integer, -- character id. date of the work.\n `GenreType` text, -- genre type. the type of the genere.\n primary key (id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nDescribe the scene number, act, and title of work which had the description of \"The house of ANTIPHOLUS of Ephesus\" in chapter.", + "question": "Describe the scene number, act, and title of work which had the description of \"The house of ANTIPHOLUS of Ephesus\" in chapter.", + "evidence": "", + "db_id": "shakespeare", + "database_path": "../databases/shakespeare.sqlite", + "gold_sql": "SELECT T2.Act, T2.Scene, T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'The house of ANTIPHOLUS of Ephesus.'", + "source_gold_sql": "SELECT T2.Act, T2.Scene, T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'The house of ANTIPHOLUS of Ephesus.'", + "source_gold_sql_sha256": "a2e22c4c9f8bff43c8d7c849aebb071f7b6a1e93c6ae9e39419408b2f7d31076", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1330", + "domain": "law_episode", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. the id of the episode.\n `stars` integer, -- a number between 1 and 10 indicating how much the viewer enjoyed the episode. The higher the number, the more the episode was enjoyed.\n `votes` integer, -- The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n `percent` real, -- The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. the id of the episode.\n `keyword` text, -- the keyword that is relevant for the episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. the id of the episode to which the credit information pertains.\n `person_id` text, -- person id. the id of the person to which the credit information pertains.\n `category` text, -- the kind of credit being recognized.\n `role` text, -- the role for which the person is being recognized. If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n `credited` text, -- whether the credit was displayed in the credits at the end of the episode. A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\".\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. the unique identifier of the episode.\n `series` text, -- the name of the series.\n `season` integer, -- a number indicating the season of the episode.\n `episode` integer, -- the sequential number of the episode within a specific season.\n `number_in_series` integer, -- number in series. the overall sequence number of episode in the entire series.\n `title` text, -- the title of the episode.\n `summary` text, -- a brief description of what happens in the episode.\n `air_date` date, -- air date. the date the episode was initially broadcast in the United States.\n `episode_image` text, -- episode image. a link to an image from the episode.\n `rating` real, -- the weighted average of the votes received for the episode. The higher rating means the episode has more positive viewer comments.\n `votes` integer, -- the total number of rating votes for the episode.\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique identifier for the award nomination.\n `organization` text, -- the name of the organization that grants the award.\n `year` integer, -- the year of the nomination for the award.\n `award_category` text, -- award category. the class of the award.\n `award` text, -- the specific award.\n `series` text, -- the name of the Law & Order series that has been nominated.\n `episode_id` text, -- episode id. the id of the episode that has been nominated.\n `person_id` text, -- the id of the person that has been nominated.\n `role` text, -- the role that has been nominated.\n `result` text, -- the nomination result. Nominee / Winner. 'Winner' means that the award was actually received.\n primary key (award_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);\n\nCREATE TABLE Person (\n `person_id` text, -- person id. the unique identifier for the person.\n `name` text, -- the name of the person.\n `birthdate` date, -- birth date. the date the person was born. if null, it means this birthdate of the person is not available.\n `birth_name` text, -- birth name. the name parents gave to the person shortly after birth.\n `birth_place` text, -- birth place. the place where a person was born. the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value. the full birth place = birth_country +birth_region +birth_place.\n `birth_region` text, -- birth region. the geographical area describing where a person was born that is larger than the birth place.\n `birth_country` text, -- birth country. the name of the country where the person was born. can ask questions about its corresponding continent: e.g.:. USA --> North America.\n `height_meters` real, -- height meters. how tall the person is in meters.\n `nickname` text, -- the nickname the person goes by.\n primary key (person_id)\n);\n\nExternal Knowledge:\nAmerican refers to birth_country = 'USA'; cast refers to category = 'Cast'; ratio = divide(count(person_id where birth_country = 'USA' and category = 'Cast' and episode = 2), count(person_id where episode = 2))\n\nQuestion:\nAmong all roles on episode 2 of the series, what is the ratio of American casts?", + "question": "Among all roles on episode 2 of the series, what is the ratio of American casts?", + "evidence": "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; ratio = divide(count(person_id where birth_country = 'USA' and category = 'Cast' and episode = 2), count(person_id where episode = 2))", + "db_id": "law_episode", + "database_path": "../databases/law_episode.sqlite", + "gold_sql": "WITH episode_2 AS (\n SELECT DISTINCT person_id, c.category\n FROM Credit AS c\n JOIN Episode as e\n ON c.episode_id = e.episode_id\n WHERE e.episode = 2\n), american_cast_episode_2 AS (\n SELECT DISTINCT p.person_id\n FROM episode_2 e2\n JOIN Person p\n ON p.person_id = e2.person_id\n WHERE e2.category = 'Cast' AND p.birth_country = 'USA'\n) SELECT (SELECT COUNT(*) FROM american_cast_episode_2) * 1.0 / (SELECT COUNT(*) FROM episode_2)", + "source_gold_sql": "WITH episode_2 AS (\n SELECT DISTINCT person_id, c.category\n FROM Credit AS c\n JOIN Episode as e\n ON c.episode_id = e.episode_id\n WHERE e.episode = 2\n), american_cast_episode_2 AS (\n SELECT DISTINCT p.person_id\n FROM episode_2 e2\n JOIN Person p\n ON p.person_id = e2.person_id\n WHERE e2.category = 'Cast' AND p.birth_country = 'USA'\n) SELECT (SELECT COUNT(*) FROM american_cast_episode_2) * 1.0 / (SELECT COUNT(*) FROM episode_2)", + "source_gold_sql_sha256": "8068ed713ea6e276dcc797c12e0a8e98bf52fa06e83af443d375bc08dc9e5ee7", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5466", + "domain": "sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id of the product.\n `Name` text, -- the product name.\n `Price` real, -- the price of the product. unit price. if the price = 0.0, it means this product is free or a gift.\n primary key (ProductID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id of the employee.\n `FirstName` text, -- First Name. the employee's first name.\n `MiddleInitial` text, -- Middle Initial. the employee's middle initial.\n `LastName` text, -- Last Name. the employee's last name.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Sales (\n `SalesID` integer, -- Sales ID. the unique id of the sales.\n `SalesPersonID` integer, -- SalesPerson ID. the unique id of the sale person.\n `CustomerID` integer, -- Customer ID. the unique id of the customer.\n `ProductID` integer, -- Product ID. the unique id of the product.\n `Quantity` integer, -- trading quantity. total price = quantity x Products' Price.\n primary key (SalesID),\n foreign key (SalesPersonID) references Employees (EmployeeID)\n foreign key (CustomerID) references Customers (CustomerID)\n foreign key (ProductID) references Products (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- Customer ID. the unique id of the customer.\n `FirstName` text, -- First Name. the customer's first name.\n `MiddleInitial` text, -- Middle Initial. the customer's middle initial.\n `LastName` text, -- Last Name. the customer's last name.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\nBlade' is name of product; most amount of sales refers to MAX(MULTIPLY(Quantity, Price));\n\nQuestion:\nOf the employees who sold Blade, who has the most amount of sales? Report his or her full name.", + "question": "Of the employees who sold Blade, who has the most amount of sales? Report his or her full name.", + "evidence": "Blade' is name of product; most amount of sales refers to MAX(MULTIPLY(Quantity, Price));", + "db_id": "sales", + "database_path": "../databases/sales.sqlite", + "gold_sql": "SELECT e.FirstName, e.MiddleInitial, e.LastName FROM Employees AS e JOIN Sales AS s ON e.EmployeeID = s.SalesPersonID JOIN Products AS p ON s.ProductID = p.ProductID WHERE p.Name = 'Blade' GROUP BY e.EmployeeID ORDER BY SUM(s.Quantity * p.Price) DESC LIMIT 1", + "source_gold_sql": "SELECT e.FirstName, e.MiddleInitial, e.LastName FROM Employees AS e JOIN Sales AS s ON e.EmployeeID = s.SalesPersonID JOIN Products AS p ON s.ProductID = p.ProductID WHERE p.Name = 'Blade' GROUP BY e.EmployeeID ORDER BY SUM(s.Quantity * p.Price) DESC LIMIT 1", + "source_gold_sql_sha256": "fd183a4de255c4e1136c8d65e980cef527c195e92a270e1ba4662085aaeb5409", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8888", + "domain": "cookbook", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Quantity (\n `quantity_id` integer, -- quantity id. the unique identifier for the quantity.\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `ingredient_id` integer, -- ingredient id. the id of the ingredient.\n `max_qty` real, -- maximum quantity. the max quantity of the ingredient.\n `min_qty` real, -- minimum quantity. the min quantity of the ingredient. If max_qty equals to min_qty, it means that the ingredient must be rationed.\n `unit` text, -- the unit of the ingredient.\n `preparation` text, -- 'No data' means the ingredient doesn't need preprocessing.\n `optional` text, -- whether the ingredient is optional.\n primary key (quantity_id),\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);\n\nCREATE TABLE Nutrition (\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `protein` real, -- the protein content in the recipe.\n `carbo` real, -- the carbo content in the recipe.\n `alcohol` real, -- the alcohol content in the recipe.\n `total_fat` real, -- total fat. the total fat content in the recipe. higher --> higher possibility to gain weight.\n `sat_fat` real, -- saturated fat. the saturated fat content in the recipe. unsaturated fat = total_fat - saturated fat.\n `cholestrl` real, -- cholesterol. the cholesterol content in the recipe.\n `sodium` real, -- the sodium content in the recipe. Salt/Sodium-Free - Less than 5 mg of sodium per serving. Very Low Sodium - 35 mg of sodium or less per serving. Low Sodium -140 mg of sodium or less per serving. Reduced Sodium - At least 25% less sodium than the regular product. Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product. No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated.\n `iron` real, -- the iron content in the recipe. if iron > 20mg, it will lead to. • constipation. • feeling sick. • being sick. • stomach pain. question could mention any of functions listed before.\n `vitamin_c` real, -- vitamin c. the vitamin c content in the recipe. Vitamin C, also known as ascorbic acid, if the VC is higher, it will:. • helping to protect cells and keeping them healthy. • maintaining healthy skin, blood vessels, bones and cartilage. • helping with wound healing. question could mention any of functions listed before.\n `vitamin_a` real, -- vitamin a. the vitamin a content in the recipe. higher --> beneficial to. • helping your body's natural defense against illness and infection (the immune system) work properly. • helping vision in dim light. • keeping skin and the lining of some parts of the body, such as the nose, healthy. question could mention any of functions listed before.\n `fiber` real, -- the fiber a content in the recipe.\n `pcnt_cal_carb` real, -- percentage calculation carbo. percentage of carbo in total nutrient composition.\n `pcnt_cal_fat` real, -- percentage calculation fat. percentage of fat in total nutrient composition.\n `pcnt_cal_prot` real, -- percentage calculation protein. percentage of protein in total nutrient composition.\n `calories` real, -- the calories of the recipe.\n primary key (recipe_id),\n foreign key (recipe_id) references Recipe(recipe_id)\n);\n\nCREATE TABLE Recipe (\n `recipe_id` integer, -- recipe id. the unique identifier for the recipe.\n `title` text, -- the title of the recipe.\n `subtitle` text, -- the subtitle of the recipe.\n `servings` integer, -- the number of people the recipe can serve.\n `yield_unit` text, -- yield unit. the unit of the yield for the recipe.\n `prep_min` integer, -- preparation minute. the preparation minute of the recipe.\n `cook_min` integer, -- cooked minute. the cooked minute of the recipe.\n `stnd_min` integer, -- stand minute. the stand minute of the price. The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min.\n `source` text, -- the source of the recipe.\n `intro` text, -- introduction. the introduction of the recipe.\n `directions` text, -- the directions of the recipe.\n primary key (recipe_id)\n);\n\nCREATE TABLE Ingredient (\n `ingredient_id` integer, -- ingredient id. the unique identifier for the ingredient.\n `category` text, -- the category of the ingredient.\n `name` text, -- the name of the ingredient.\n `plural` text, -- the plural suffix of the ingredient.\n primary key (ingredient_id)\n);\n\nExternal Knowledge:\nsodium is a name of an ingredient; calculation = DIVIDE(SUM(title = 'Lasagne-Spinach Spirals' THEN sodium), SUM(title = 'Beef and Spinach Pita Pockets' THEN sodium))\n\nQuestion:\nHow many times is the sodium content in Lasagne-Spinach Spirals to Beef and Spinach Pita Pockets?", + "question": "How many times is the sodium content in Lasagne-Spinach Spirals to Beef and Spinach Pita Pockets?", + "evidence": "sodium is a name of an ingredient; calculation = DIVIDE(SUM(title = 'Lasagne-Spinach Spirals' THEN sodium), SUM(title = 'Beef and Spinach Pita Pockets' THEN sodium))", + "db_id": "cookbook", + "database_path": "../databases/cookbook.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.title = 'Lasagne-Spinach Spirals' THEN T2.sodium ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Beef and Spinach Pita Pockets' THEN T2.sodium ELSE 0 END) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T1.title = 'Lasagne-Spinach Spirals' THEN T2.sodium ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Beef and Spinach Pita Pockets' THEN T2.sodium ELSE 0 END) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id", + "source_gold_sql_sha256": "4e13bde35dee072456724b96d286e0e004b79d7348f37a4ede108654319707a0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4625", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nWolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';\n\nQuestion:\nAmong the movies directed by Wolfgang Reitherman, how many of them were released in December?", + "question": "Among the movies directed by Wolfgang Reitherman, how many of them were released in December?", + "evidence": "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT COUNT(movie_title) FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(release_date, INSTR(release_date, '-') + 1, 3) = 'Dec' AND T2.director = 'Wolfgang Reitherman'", + "source_gold_sql": "SELECT COUNT(movie_title) FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(release_date, INSTR(release_date, '-') + 1, 3) = 'Dec' AND T2.director = 'Wolfgang Reitherman'", + "source_gold_sql_sha256": "4f8cea529421df665333fb62df84c777b1a2f610ef4f3ec638f84bf08f24874c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6083", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many books were ordered by customer Kandy Adamec?", + "question": "How many books were ordered by customer Kandy Adamec?", + "evidence": "", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Kandy' AND T3.last_name = 'Adamec'", + "source_gold_sql": "SELECT COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Kandy' AND T3.last_name = 'Adamec'", + "source_gold_sql_sha256": "be9fb72aac1212c7136ac018cc75f1da64acb5fc451a75b206290692e68b327e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2579", + "domain": "regional_sales", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Sales Orders (\n `OrderNumber` text, -- Order Number. the unique number identifying the order.\n `Sales Channel` text, -- Sales Channel. • In-Store. • Online. • Distributor. • Wholesale.\n `WarehouseCode` text, -- Warehouse Code. if the warehouse code is the same, it means this product is shipped from the same ware house.\n `ProcuredDate` text, -- Procured Date. date: month/date/year, 17--> 2017.\n `OrderDate` text, -- Order Date.\n `ShipDate` text, -- Ship Date.\n `DeliveryDate` text, -- Delivery Date. the difference \"DeliveryDate - OrderDate\" is smaller, it means faster delivery.\n `CurrencyCode` text, -- Currency Code. USD.\n `_SalesTeamID` integer, -- _Sales Team ID. Sales Team ID.\n `_CustomerID` integer, -- _Customer ID.\n `_StoreID` integer, -- _Store ID.\n `_ProductID` integer, -- _Product ID.\n `Order Quantity` integer, -- Order Quantity. 1 - 8:. higher means order quantity is higher or customer needs more.\n `Discount Applied` real, -- Discount Applied. 0.2: 20% discount.\n `Unit Price` text, -- No description.\n `Unit Cost` text, -- net profit = Unit Price - Unit Cost.\n primary key (OrderNumber)\n);\n\nCREATE TABLE Regions (\n `StateCode` text, -- state code. the unique code identifying the state.\n `State` text, -- full state name.\n `Region` text, -- the region where the state is located in.\n primary key (StateCode)\n);\n\nCREATE TABLE Sales Team (\n `SalesTeamID` integer, -- SalesTeam ID. unique sales team id.\n `Sales Team` text, -- sales team names.\n `Region` text, -- the region where the state is located in.\n primary key (SalesTeamID)\n);\n\nCREATE TABLE Store Locations (\n `StoreID` integer, -- Store ID. unique store id.\n `City Name` text, -- No description.\n `County` text, -- full county name.\n `StateCode` text, -- State Code. state code.\n `State` text, -- full state name.\n `Type` text, -- type of the store. City. Town. CDP (customer data platform). Unified Government. Consolidated Government. Other. Township. Urban County. Borough. Metropolitan Government.\n `Latitude` real, -- Latitude.\n `Longitude` real, -- Longitude. coordinates or detailed position: (Latitude, Longitude).\n `AreaCode` integer, -- Area Code.\n `Population` integer, -- Population.\n `Household Income` integer, -- Household Income.\n `Median Income` integer, -- Median Income.\n `Land Area` integer, -- Land Area.\n `Water Area` integer, -- Water Area.\n `Time Zone` text, -- Time Zone.\n primary key (StoreID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- product id. unique id number representing each product.\n `Product Name` text, -- product name. name of the product.\n primary key (ProductID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` integer, -- customer id. unique id number indicating which customer.\n `Customer Names` text, -- customer names. the name of the customer.\n primary key (CustomerID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList all the order numbers along with its product name for each order under the sales team of 'Douglas Tucker'.", + "question": "List all the order numbers along with its product name for each order under the sales team of 'Douglas Tucker'.", + "evidence": "", + "db_id": "regional_sales", + "database_path": "../databases/regional_sales.sqlite", + "gold_sql": "SELECT DISTINCT T2.OrderNumber, T1.`Product Name` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T3.`Sales Team` = 'Douglas Tucker'", + "source_gold_sql": "SELECT DISTINCT T2.OrderNumber, T1.`Product Name` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T3.`Sales Team` = 'Douglas Tucker'", + "source_gold_sql_sha256": "944cc913adb200a7c28b0972a53970288aa4cb996f5fac0112b9d3a2e6fea1f2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8804", + "domain": "food_inspection", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspections (\n `business_id` integer, -- business id. the unique id of the business.\n `score` integer, -- the inspection score. The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n `date` date, -- the inspection date.\n `type` text, -- the inspection type.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE violations (\n `business_id` integer, -- business id. the unique id of the business.\n `date` date, -- the date of the violation.\n `violation_type_id` text, -- violation type id. the unique type id of the violation.\n `risk_category` text, -- risk category. risk category. High / Moderate / Low risk. High risks have more safety and health hazards than low risks.\n `description` text, -- the description of the violation.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE businesses (\n `business_id` integer, -- business id. the unique id of the business.\n `name` text, -- the name of the eatery.\n `address` text, -- the eatery address.\n `city` text, -- the city where the eatery is located in.\n `postal_code` text, -- postal code. the postal code of the eatery.\n `latitude` real, -- the latitude of the position.\n `longitude` real, -- the longitude of the position. the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}.\n `phone_number` integer, -- phone number. the phone number of the eatery.\n `tax_code` text, -- tax code. the tax code of the eatery.\n `business_certificate` integer, -- business certificate. the business certificate number.\n `application_date` date, -- application date. the application date of the eatery.\n `owner_name` text, -- owner name. the owner's name.\n `owner_address` text, -- owner address. the owner's address.\n `owner_city` text, -- owner city. the city where the owner is located.\n `owner_state` text, -- owner state. the state where the owner is located.\n `owner_zip` text, -- owner zip. the zip code of the owner.\n PRIMARY KEY (business_id)\n);\n\nExternal Knowledge:\neateries in Hayward refer city = 'HAYWARD';\n\nQuestion:\nHow many eateries are located in Hayward?", + "question": "How many eateries are located in Hayward?", + "evidence": "eateries in Hayward refer city = 'HAYWARD';", + "db_id": "food_inspection", + "database_path": "../databases/food_inspection.sqlite", + "gold_sql": "SELECT COUNT(business_id) FROM businesses WHERE city = 'HAYWARD'", + "source_gold_sql": "SELECT COUNT(business_id) FROM businesses WHERE city = 'HAYWARD'", + "source_gold_sql_sha256": "e15a0620b14def6a5b912ab2b0f96098ca908bb56f90e71738c62e9f977fec9d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:889", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nIvy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;\n\nQuestion:\nWhat is the full name of the professor who graduated from an Ivy League School?", + "question": "What is the full name of the professor who graduated from an Ivy League School?", + "evidence": "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT first_name, last_name FROM prof WHERE graduate_from IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' )", + "source_gold_sql": "SELECT first_name, last_name FROM prof WHERE graduate_from IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' )", + "source_gold_sql_sha256": "63bdf1ca4156082d3b3ec061c48813d8b86fb14c3650ffdb44159e95bfde3c7f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8912", + "domain": "cookbook", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Quantity (\n `quantity_id` integer, -- quantity id. the unique identifier for the quantity.\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `ingredient_id` integer, -- ingredient id. the id of the ingredient.\n `max_qty` real, -- maximum quantity. the max quantity of the ingredient.\n `min_qty` real, -- minimum quantity. the min quantity of the ingredient. If max_qty equals to min_qty, it means that the ingredient must be rationed.\n `unit` text, -- the unit of the ingredient.\n `preparation` text, -- 'No data' means the ingredient doesn't need preprocessing.\n `optional` text, -- whether the ingredient is optional.\n primary key (quantity_id),\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);\n\nCREATE TABLE Nutrition (\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `protein` real, -- the protein content in the recipe.\n `carbo` real, -- the carbo content in the recipe.\n `alcohol` real, -- the alcohol content in the recipe.\n `total_fat` real, -- total fat. the total fat content in the recipe. higher --> higher possibility to gain weight.\n `sat_fat` real, -- saturated fat. the saturated fat content in the recipe. unsaturated fat = total_fat - saturated fat.\n `cholestrl` real, -- cholesterol. the cholesterol content in the recipe.\n `sodium` real, -- the sodium content in the recipe. Salt/Sodium-Free - Less than 5 mg of sodium per serving. Very Low Sodium - 35 mg of sodium or less per serving. Low Sodium -140 mg of sodium or less per serving. Reduced Sodium - At least 25% less sodium than the regular product. Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product. No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated.\n `iron` real, -- the iron content in the recipe. if iron > 20mg, it will lead to. • constipation. • feeling sick. • being sick. • stomach pain. question could mention any of functions listed before.\n `vitamin_c` real, -- vitamin c. the vitamin c content in the recipe. Vitamin C, also known as ascorbic acid, if the VC is higher, it will:. • helping to protect cells and keeping them healthy. • maintaining healthy skin, blood vessels, bones and cartilage. • helping with wound healing. question could mention any of functions listed before.\n `vitamin_a` real, -- vitamin a. the vitamin a content in the recipe. higher --> beneficial to. • helping your body's natural defense against illness and infection (the immune system) work properly. • helping vision in dim light. • keeping skin and the lining of some parts of the body, such as the nose, healthy. question could mention any of functions listed before.\n `fiber` real, -- the fiber a content in the recipe.\n `pcnt_cal_carb` real, -- percentage calculation carbo. percentage of carbo in total nutrient composition.\n `pcnt_cal_fat` real, -- percentage calculation fat. percentage of fat in total nutrient composition.\n `pcnt_cal_prot` real, -- percentage calculation protein. percentage of protein in total nutrient composition.\n `calories` real, -- the calories of the recipe.\n primary key (recipe_id),\n foreign key (recipe_id) references Recipe(recipe_id)\n);\n\nCREATE TABLE Recipe (\n `recipe_id` integer, -- recipe id. the unique identifier for the recipe.\n `title` text, -- the title of the recipe.\n `subtitle` text, -- the subtitle of the recipe.\n `servings` integer, -- the number of people the recipe can serve.\n `yield_unit` text, -- yield unit. the unit of the yield for the recipe.\n `prep_min` integer, -- preparation minute. the preparation minute of the recipe.\n `cook_min` integer, -- cooked minute. the cooked minute of the recipe.\n `stnd_min` integer, -- stand minute. the stand minute of the price. The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min.\n `source` text, -- the source of the recipe.\n `intro` text, -- introduction. the introduction of the recipe.\n `directions` text, -- the directions of the recipe.\n primary key (recipe_id)\n);\n\nCREATE TABLE Ingredient (\n `ingredient_id` integer, -- ingredient id. the unique identifier for the ingredient.\n `category` text, -- the category of the ingredient.\n `name` text, -- the name of the ingredient.\n `plural` text, -- the plural suffix of the ingredient.\n primary key (ingredient_id)\n);\n\nExternal Knowledge:\nThe California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium = 0 THEN recipe_id), COUNT(recipe_id)), 100)\n\nQuestion:\nAmong the recipes from The California Tree Fruit Agreement, calculate the percentage of sodium-free recipes.", + "question": "Among the recipes from The California Tree Fruit Agreement, calculate the percentage of sodium-free recipes.", + "evidence": "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium = 0 THEN recipe_id), COUNT(recipe_id)), 100)", + "db_id": "cookbook", + "database_path": "../databases/cookbook.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.sodium = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'The California Tree Fruit Agreement'", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.sodium = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'The California Tree Fruit Agreement'", + "source_gold_sql_sha256": "4b709be9b579d8e80d85961dccabadc0e54a061b5101e2d26fc994adec78de07", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2867", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\n\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))\n\nQuestion:\nWhat is the full name of the team with the fastest growth in winning rate in the 'ABA' league from 1972 to 1973?", + "question": "What is the full name of the team with the fastest growth in winning rate in the 'ABA' league from 1972 to 1973?", + "evidence": "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "SELECT T1.name FROM teams AS T1 INNER JOIN ( SELECT * FROM teams WHERE lgID = 'ABA' AND year = 1972 ) AS T2 ON T1.tmID = T2.tmID WHERE T1.lgID = 'ABA' AND T1.year = 1973 ORDER BY (CAST(T1.won AS REAL) / (T1.won + T1.lost) - (CAST(T2.won AS REAL) / (T2.won + T2.lost))) DESC LIMIT 1", + "source_gold_sql": "SELECT T1.name FROM teams AS T1 INNER JOIN ( SELECT * FROM teams WHERE lgID = 'ABA' AND year = 1972 ) AS T2 ON T1.tmID = T2.tmID WHERE T1.lgID = 'ABA' AND T1.year = 1973 ORDER BY (CAST(T1.won AS REAL) / (T1.won + T1.lost) - (CAST(T2.won AS REAL) / (T2.won + T2.lost))) DESC LIMIT 1", + "source_gold_sql_sha256": "c0b5fe8d2f4e19e7f61b820d08bbd20abb6ff8e08ad84fe31695ec3e89eaf78e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3418", + "domain": "video_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `id` integer, -- the unique identifier of the game genre.\n `genre_name` text, -- the game genre. The game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\n primary key (id)\n);\n\nCREATE TABLE game (\n `id` integer, -- the unique identifier of the game.\n `genre_id` integer, -- genre id. the id of the game genre. If game A and game B have the same genre, the user who likes game A may also like game B.\n `game_name` text, -- game name. the name of the game.\n primary key (id),\n foreign key (genre_id) references genre(id)\n);\n\nCREATE TABLE game_platform (\n `id` integer, -- the unique identifier of the record.\n `game_publisher_id` integer, -- game publisher id. the id of the game publisher.\n `platform_id` integer, -- platform id. the id of the platform.\n `release_year` integer, -- release year. the release year of the game.\n primary key (id),\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n);\n\nCREATE TABLE platform (\n `id` integer, -- the unique identifier of the game platform.\n `platform_name` text, -- the name of the platform. The game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\n primary key (id)\n);\n\nCREATE TABLE region_sales (\n `region_id` integer, -- the id of the region.\n `game_platform_id` integer, -- game platform id. the id of the game platform.\n `num_sales` real, -- number sales. the number of sales in this region. The number of games sold in the region = num_sales * 100000. The game platform with higher num_sales is more popular in the region.\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n);\n\nCREATE TABLE region (\n `id` integer, -- the unique identifier of the region.\n `region_name` text, -- the region name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `publisher_name` text, -- the name of the publisher. The publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players.\n primary key (id)\n);\n\nCREATE TABLE game_publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `game_id` integer, -- game id. the id of the game.\n `publisher_id` integer, -- publisher id. the id of the publisher. If game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\n primary key (id),\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n);\n\nExternal Knowledge:\nMinecraft refers to game_name = 'Minecraft';\n\nQuestion:\nHow many publishers published the Minecraft game?", + "question": "How many publishers published the Minecraft game?", + "evidence": "Minecraft refers to game_name = 'Minecraft';", + "db_id": "video_games", + "database_path": "../databases/video_games.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT gp.publisher_id) FROM `game` AS g JOIN `game_publisher` AS gp ON gp.game_id = g.id WHERE g.game_name = 'Minecraft'", + "source_gold_sql": "SELECT COUNT(DISTINCT gp.publisher_id) FROM `game` AS g JOIN `game_publisher` AS gp ON gp.game_id = g.id WHERE g.game_name = 'Minecraft'", + "source_gold_sql_sha256": "382b38cf3505bf7dfcc9359c54565346aff6bc0f18f7ea0bcaa2cf8ebdf0b4ae", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6990", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\nplayoffs refers to GAMETYPE = 'Playoffs';\n\nQuestion:\nHow many playoffs games did Per Mars participate in?", + "question": "How many playoffs games did Per Mars participate in?", + "evidence": "playoffs refers to GAMETYPE = 'Playoffs';", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT SUM(T2.GP) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.PlayerName = 'Per Mars' AND T2.GAMETYPE = 'Playoffs'", + "source_gold_sql": "SELECT SUM(T2.GP) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.PlayerName = 'Per Mars' AND T2.GAMETYPE = 'Playoffs'", + "source_gold_sql_sha256": "46bb9aeebe90c421e657280f4af9366b7fb3cdb6eae466791221344b1046a568", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:331", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\nsocial number refers to social; most complaints refers to max(count(event.Client_ID))\n\nQuestion:\nWhat is the social number of the person who made the most complaints?", + "question": "What is the social number of the person who made the most complaints?", + "evidence": "social number refers to social; most complaints refers to max(count(event.Client_ID))", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT c.social\nFROM client AS c\nJOIN events AS e ON c.client_id = e.Client_ID\nGROUP BY c.client_id, c.social\nHAVING COUNT(*) = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM events\n GROUP BY Client_ID\n )\n);", + "source_gold_sql": "SELECT c.social\nFROM client AS c\nJOIN events AS e ON c.client_id = e.Client_ID\nGROUP BY c.client_id, c.social\nHAVING COUNT(*) = (\n SELECT MAX(cnt)\n FROM (\n SELECT COUNT(*) AS cnt\n FROM events\n GROUP BY Client_ID\n )\n);", + "source_gold_sql_sha256": "35cef330e36266496b50c4feba28c1896a99f7560b5272020aac3b14fe965aac", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1434", + "domain": "synthea", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE procedures (\n `DATE` date, -- the date of the procedure. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the procedure.\n `DESCRIPTION` text, -- the description of the procedure.\n `REASONCODE` integer, -- reason code. the code of the reason.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the procedure.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE immunizations (\n `DATE` date, -- the date of the immunization. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the immunization.\n `DESCRIPTION` text, -- the description of the immunization.\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE conditions (\n `START` date, -- the start date of the allergy. mm/dd/yy.\n `STOP` date, -- the stop date of the allergy. mm/dd/yy.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the condition.\n `DESCRIPTION` text, -- the description of the patient condition.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);\n\nCREATE TABLE all_prevalences (\n `ITEM` text, -- the prevalent disease.\n `POPULATION TYPE` text, -- population type. the population type - LIVING.\n `OCCURRENCES` integer, -- the number of occurrences.\n `POPULATION COUNT` integer, -- population count. the number of the counted populations.\n `PREVALENCE RATE` real, -- prevalence rate. the prevalence rate. prevalence rate = occurrences / population_count.\n `PREVALENCE PERCENTAGE` real, -- prevalence percentage. the prevalence percentage. prevalence rate = occurrences / population_count * 100.\n primary key (ITEM)\n);\n\nCREATE TABLE encounters (\n `ID` text, -- the unique id of the encounter.\n `DATE` date, -- the date of the encounter. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `CODE` integer, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n primary key (ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE careplans (\n `ID` text, -- the unique id of the care plan.\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. care plan period:. stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` real, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE medications (\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. Time of taking medicine.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the medication.\n `DESCRIPTION` text, -- the description of the medication.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the medication.\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE patients (\n `patient` text, -- the unique id for the patient.\n `birthdate` date, -- birth date. the birth date of the patient.\n `deathdate` date, -- death date. the death date of the patient. • the age of the patient = death year - birth year. • if null, it means this patient is still alive.\n `ssn` text, -- social security number. the social security number of the patient.\n `drivers` text, -- the driver number of the patient. if not, this patient doesn't have driving license.\n `passport` text, -- the passport number. if not, this patient cannot go abroad, vice versa.\n `prefix` text, -- the prefix.\n `first` text, -- the first name.\n `last` text, -- the last name. full name = first + last.\n `suffix` text, -- the suffix of the patient. if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n `maiden` text, -- the maiden name of the patient. Only married women have the maiden name.\n `marital` text, -- the marital status of the patient. • M: married. • S: single.\n `race` text, -- the race of the patient.\n `ethnicity` text, -- the ethnicity of the patient.\n `gender` text, -- the gender of the patient.\n `birthplace` text, -- birth place. the birth place.\n `address` text, -- the specific address.\n primary key (patient)\n);\n\nCREATE TABLE allergies (\n `START` text, -- the start date of the allergy. mm/dd/yy.\n `STOP` text, -- the stop date of the allergy. mm/dd/yy. allergy period = stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the allergy.\n `DESCRIPTION` text, -- the description of the allergy.\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE claims (\n `ID` text, -- the unique id of the claim.\n `PATIENT` text, -- the patient id.\n `BILLABLEPERIOD` date, -- billable period. the start date of the billable. yyyy-mm-dd.\n `ORGANIZATION` text, -- the claim organization.\n `ENCOUNTER` text, -- the medical encounter id.\n `DIAGNOSIS` text, -- the diagnosis.\n `TOTAL` integer, -- the length of the billable period.\n primary key (ID)\n);\n\nCREATE TABLE observations (\n `DATE` date, -- the date of the observation. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` text, -- the code of the observation type.\n `DESCRIPTION` text, -- the description of the observation.\n `VALUE` real, -- the observation value.\n `UNITS` text, -- the units of the observation value. DESCRIPTION + VALUE + UNITS could be a fact:. e.g.: body height of patient xxx is 166.03 cm:. body height is in DESCRIPTION. 166.03 is in VALUE. cm is in UNITS.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nExternal Knowledge:\ncystitis refers to conditions where DESCRIPTION = 'Cystitis';\n\nQuestion:\nList down the first name of patients who have cystitis condition.", + "question": "List down the first name of patients who have cystitis condition.", + "evidence": "cystitis refers to conditions where DESCRIPTION = 'Cystitis';", + "db_id": "synthea", + "database_path": "../databases/synthea.sqlite", + "gold_sql": "SELECT DISTINCT T1.first FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Cystitis'", + "source_gold_sql": "SELECT DISTINCT T1.first FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Cystitis'", + "source_gold_sql_sha256": "9a2bd9dd8839f980e86ea403315a3dcf9850c9f670ea3cf6b388a2bb34717d9f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2071", + "domain": "music_tracker", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE tags (\n `index` integer, -- index.\n `id` integer, -- release identifier which can be matched with id field in the torrents table.\n `tag` text, -- tag.\n primary key (\"index\")\n);\n\nCREATE TABLE torrents (\n `groupName` text, -- release title.\n `totalSnatched` integer, -- number of times the release has been downloaded.\n `artist` text, -- artist / group name.\n `groupYear` integer, -- release year.\n `releaseType` text, -- release type (e.g., album, single, mixtape).\n `groupId` integer, -- Unique release identifier from What.CD. Used to ensure no releases are duplicates.\n `id` integer, -- unique identifier (essentially an index).\n primary key (id)\n);\n\nExternal Knowledge:\nreleaseType = 'single'; downloaded at least 20 refers to totalSnatched ≥ 20; id from 10 to 20 refer to id between 10 and 20; titles refer to groupName;\n\nQuestion:\nIndicates the titles of releases with ids from 10 to 20 and singles downloaded at least 20.", + "question": "Indicates the titles of releases with ids from 10 to 20 and singles downloaded at least 20.", + "evidence": "releaseType = 'single'; downloaded at least 20 refers to totalSnatched ≥ 20; id from 10 to 20 refer to id between 10 and 20; titles refer to groupName;", + "db_id": "music_tracker", + "database_path": "../databases/music_tracker.sqlite", + "gold_sql": "SELECT groupName FROM torrents WHERE totalSnatched >= 20 AND releaseType LIKE 'single' AND id BETWEEN 10 AND 20", + "source_gold_sql": "SELECT groupName FROM torrents WHERE totalSnatched >= 20 AND releaseType LIKE 'single' AND id BETWEEN 10 AND 20", + "source_gold_sql_sha256": "70061006737d453e13e5946c9b8d471073bcf910fc753ac4dca76e810ffca525", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1841", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nteam's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)\n\nQuestion:\nList the first team's name in the match with the highest winning margin.", + "question": "List the first team's name in the match with the highest winning margin.", + "evidence": "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 \nWHERE T1.Win_Margin = (\n SELECT MAX(T3.Win_Margin) FROM Match AS T3 INNER JOIN Team AS T4 ON T4.Team_Id = T3.Team_1)", + "source_gold_sql": "SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 \nWHERE T1.Win_Margin = (\n SELECT MAX(T3.Win_Margin) FROM Match AS T3 INNER JOIN Team AS T4 ON T4.Team_Id = T3.Team_1)", + "source_gold_sql_sha256": "3d460f0fd64ccbebae3b1a2ee6319a78f0e0465f1f582c868572aa571a567124", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9334", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nthe category Travel refers to category.name = 'Travel'\n\nQuestion:\nList the descriptions of movies under the category Travel.", + "question": "List the descriptions of movies under the category Travel.", + "evidence": "the category Travel refers to category.name = 'Travel'", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Travel'", + "source_gold_sql": "SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Travel'", + "source_gold_sql_sha256": "fb6d0048f6bc5e91cd5209a4bf802a449ec02718fa095939278a1f8ad60b6f86", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3357", + "domain": "video_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `id` integer, -- the unique identifier of the game genre.\n `genre_name` text, -- the game genre. The game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\n primary key (id)\n);\n\nCREATE TABLE game (\n `id` integer, -- the unique identifier of the game.\n `genre_id` integer, -- genre id. the id of the game genre. If game A and game B have the same genre, the user who likes game A may also like game B.\n `game_name` text, -- game name. the name of the game.\n primary key (id),\n foreign key (genre_id) references genre(id)\n);\n\nCREATE TABLE game_platform (\n `id` integer, -- the unique identifier of the record.\n `game_publisher_id` integer, -- game publisher id. the id of the game publisher.\n `platform_id` integer, -- platform id. the id of the platform.\n `release_year` integer, -- release year. the release year of the game.\n primary key (id),\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n);\n\nCREATE TABLE platform (\n `id` integer, -- the unique identifier of the game platform.\n `platform_name` text, -- the name of the platform. The game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\n primary key (id)\n);\n\nCREATE TABLE region_sales (\n `region_id` integer, -- the id of the region.\n `game_platform_id` integer, -- game platform id. the id of the game platform.\n `num_sales` real, -- number sales. the number of sales in this region. The number of games sold in the region = num_sales * 100000. The game platform with higher num_sales is more popular in the region.\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n);\n\nCREATE TABLE region (\n `id` integer, -- the unique identifier of the region.\n `region_name` text, -- the region name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `publisher_name` text, -- the name of the publisher. The publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players.\n primary key (id)\n);\n\nCREATE TABLE game_publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `game_id` integer, -- game id. the id of the game.\n `publisher_id` integer, -- publisher id. the id of the publisher. If game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\n primary key (id),\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n);\n\nExternal Knowledge:\nrecord ID 48 refers to game.id = 48\n\nQuestion:\nProvide the release years of record ID 48.", + "question": "Provide the release years of record ID 48.", + "evidence": "record ID 48 refers to game.id = 48", + "db_id": "video_games", + "database_path": "../databases/video_games.sqlite", + "gold_sql": "SELECT DISTINCT T3.release_year FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T1.id = 48", + "source_gold_sql": "SELECT DISTINCT T3.release_year FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T1.id = 48", + "source_gold_sql_sha256": "96edc85093046e2f166b31327a8a3ac3487fd43f0a6722eaf2cea514adc6ebf4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1520", + "domain": "synthea", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE procedures (\n `DATE` date, -- the date of the procedure. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the procedure.\n `DESCRIPTION` text, -- the description of the procedure.\n `REASONCODE` integer, -- reason code. the code of the reason.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the procedure.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE immunizations (\n `DATE` date, -- the date of the immunization. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the immunization.\n `DESCRIPTION` text, -- the description of the immunization.\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE conditions (\n `START` date, -- the start date of the allergy. mm/dd/yy.\n `STOP` date, -- the stop date of the allergy. mm/dd/yy.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the condition.\n `DESCRIPTION` text, -- the description of the patient condition.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);\n\nCREATE TABLE all_prevalences (\n `ITEM` text, -- the prevalent disease.\n `POPULATION TYPE` text, -- population type. the population type - LIVING.\n `OCCURRENCES` integer, -- the number of occurrences.\n `POPULATION COUNT` integer, -- population count. the number of the counted populations.\n `PREVALENCE RATE` real, -- prevalence rate. the prevalence rate. prevalence rate = occurrences / population_count.\n `PREVALENCE PERCENTAGE` real, -- prevalence percentage. the prevalence percentage. prevalence rate = occurrences / population_count * 100.\n primary key (ITEM)\n);\n\nCREATE TABLE encounters (\n `ID` text, -- the unique id of the encounter.\n `DATE` date, -- the date of the encounter. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `CODE` integer, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n primary key (ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE careplans (\n `ID` text, -- the unique id of the care plan.\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. care plan period:. stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` real, -- the code of the care plan.\n `DESCRIPTION` text, -- the description of the care plan.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient needs the care plan.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE medications (\n `START` date, -- the start date of the care plan. yyyy-mm-dd.\n `STOP` date, -- the stop date of the care plan. yyyy-mm-dd. Time of taking medicine.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the medication.\n `DESCRIPTION` text, -- the description of the medication.\n `REASONCODE` integer, -- the reason code.\n `REASONDESCRIPTION` text, -- reason description. the description of the reason why the patient take the medication.\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE patients (\n `patient` text, -- the unique id for the patient.\n `birthdate` date, -- birth date. the birth date of the patient.\n `deathdate` date, -- death date. the death date of the patient. • the age of the patient = death year - birth year. • if null, it means this patient is still alive.\n `ssn` text, -- social security number. the social security number of the patient.\n `drivers` text, -- the driver number of the patient. if not, this patient doesn't have driving license.\n `passport` text, -- the passport number. if not, this patient cannot go abroad, vice versa.\n `prefix` text, -- the prefix.\n `first` text, -- the first name.\n `last` text, -- the last name. full name = first + last.\n `suffix` text, -- the suffix of the patient. if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n `maiden` text, -- the maiden name of the patient. Only married women have the maiden name.\n `marital` text, -- the marital status of the patient. • M: married. • S: single.\n `race` text, -- the race of the patient.\n `ethnicity` text, -- the ethnicity of the patient.\n `gender` text, -- the gender of the patient.\n `birthplace` text, -- birth place. the birth place.\n `address` text, -- the specific address.\n primary key (patient)\n);\n\nCREATE TABLE allergies (\n `START` text, -- the start date of the allergy. mm/dd/yy.\n `STOP` text, -- the stop date of the allergy. mm/dd/yy. allergy period = stop - start.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` integer, -- the code of the allergy.\n `DESCRIPTION` text, -- the description of the allergy.\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nCREATE TABLE claims (\n `ID` text, -- the unique id of the claim.\n `PATIENT` text, -- the patient id.\n `BILLABLEPERIOD` date, -- billable period. the start date of the billable. yyyy-mm-dd.\n `ORGANIZATION` text, -- the claim organization.\n `ENCOUNTER` text, -- the medical encounter id.\n `DIAGNOSIS` text, -- the diagnosis.\n `TOTAL` integer, -- the length of the billable period.\n primary key (ID)\n);\n\nCREATE TABLE observations (\n `DATE` date, -- the date of the observation. yyyy-mm-dd.\n `PATIENT` text, -- the patient id.\n `ENCOUNTER` text, -- the medical encounter id.\n `CODE` text, -- the code of the observation type.\n `DESCRIPTION` text, -- the description of the observation.\n `VALUE` real, -- the observation value.\n `UNITS` text, -- the units of the observation value. DESCRIPTION + VALUE + UNITS could be a fact:. e.g.: body height of patient xxx is 166.03 cm:. body height is in DESCRIPTION. 166.03 is in VALUE. cm is in UNITS.\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);\n\nExternal Knowledge:\nfull names = first, last; Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; in 1948 or later refers to substr(medications.START, 1, 4) > = '1948';\n\nQuestion:\nProvide the full names of patients who were taking Penicillin V Potassium 250 MG in 1948 or later.", + "question": "Provide the full names of patients who were taking Penicillin V Potassium 250 MG in 1948 or later.", + "evidence": "full names = first, last; Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; in 1948 or later refers to substr(medications.START, 1, 4) > = '1948';", + "db_id": "synthea", + "database_path": "../databases/synthea.sqlite", + "gold_sql": "SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' AND strftime('%Y', T2.START) >= '1948'", + "source_gold_sql": "SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' AND strftime('%Y', T2.START) >= '1948'", + "source_gold_sql_sha256": "d1425a7d5eadea1b18aa03fc429d71a3639aba2287e380dbc288692000b8dc97", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1599", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\nshipped orders refers to status = 'shipped'; year(shippedDate) = 2005; year(orderDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber))*100 as percentage;\n\nQuestion:\nOf all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?", + "question": "Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?", + "evidence": "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; year(orderDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber))*100 as percentage;", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN `customerNumber` = 186 THEN 1 ELSE 0 END) AS REAL) * 100.0 / COUNT(*) AS pct\nFROM `orders`\nWHERE `status` = 'Shipped'\n AND `orderDate` BETWEEN '2005-01-01' AND '2005-12-31'\n AND `shippedDate` BETWEEN '2005-01-01' AND '2005-12-31';", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN `customerNumber` = 186 THEN 1 ELSE 0 END) AS REAL) * 100.0 / COUNT(*) AS pct\nFROM `orders`\nWHERE `status` = 'Shipped'\n AND `orderDate` BETWEEN '2005-01-01' AND '2005-12-31'\n AND `shippedDate` BETWEEN '2005-01-01' AND '2005-12-31';", + "source_gold_sql_sha256": "63ef4e1ac4b3b5b444b812ef0b02bf7c33c05520d312e740a370034ba7a85f9e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:970", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nbasic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id\n\nQuestion:\nHow many courses are there for basic or medium undergraduate courses?", + "question": "How many courses are there for basic or medium undergraduate courses?", + "evidence": "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT COUNT(course_id) FROM course WHERE courseLevel = 'Level_300'", + "source_gold_sql": "SELECT COUNT(course_id) FROM course WHERE courseLevel = 'Level_300'", + "source_gold_sql_sha256": "0118d5dc76fdc5f50a5e64f93640a4d5e3898db9c918a8b7fd7d5fc1c9782866", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8634", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\ndomestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'\n\nQuestion:\nOut of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested?", + "question": "Out of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested?", + "evidence": "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Walter' AND T1.alderman_last_name = 'Burnett' AND alderman_name_suffix = 'Jr.' AND T2.domestic = 'TRUE'", + "source_gold_sql": "SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Walter' AND T1.alderman_last_name = 'Burnett' AND alderman_name_suffix = 'Jr.' AND T2.domestic = 'TRUE'", + "source_gold_sql_sha256": "1eda8dc522b9de3464eb109c9ca4abcc60253a69664858f4dd53237ec2590e60", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7148", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nMinimum shipping charge refers to ShipBase; OVERSEAS - DELUXE is name of shipping company\n\nQuestion:\nWhat is the minimum shipping charge for \"OVERSEAS - DELUXE\"?", + "question": "What is the minimum shipping charge for \"OVERSEAS - DELUXE\"?", + "evidence": "Minimum shipping charge refers to ShipBase; OVERSEAS - DELUXE is name of shipping company", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT ShipBase FROM ShipMethod WHERE Name = 'OVERSEAS - DELUXE'", + "source_gold_sql": "SELECT ShipBase FROM ShipMethod WHERE Name = 'OVERSEAS - DELUXE'", + "source_gold_sql_sha256": "d342a43d7d344ae24f62eb300b690e74754f87e7739bb4106a34a8a649b30fdb", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4370", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nbelong to the navy department refers to organ = 'navy';\n\nQuestion:\nHow many students belong to the navy department?", + "question": "How many students belong to the navy department?", + "evidence": "belong to the navy department refers to organ = 'navy';", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT name) FROM enlist WHERE organ = 'navy'", + "source_gold_sql": "SELECT COUNT(DISTINCT name) FROM enlist WHERE organ = 'navy'", + "source_gold_sql_sha256": "57829a61364c0907617d5d2caaf3cf3ab74a9ee1645864fd7e56293daabeaa20", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2392", + "domain": "superstore", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE product (\n `Product ID` text, -- the id of products.\n `Product Name` text, -- the name of products.\n `Category` text, -- the categories of products. • Furniture. • Office Supplies. • Technology.\n `Sub-Category` text, -- the sub-categories of products. • Bookcases. • Chairs. • Furnishings. • Tables. • Appliances. • Art. • Binders. • Envelopes. • Fasteners. • Labels. • Paper. • Storage. • Supplies. • Accessories. • Copiers. • Machines. • Phones.\n `Region` text, -- the region where products are sold. • Central:. • East:. • West:. • South:.\n primary key (\"Product ID\", Region)\n);\n\nCREATE TABLE west_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE central_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE south_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE east_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE people (\n `Customer ID` text, -- the id of the customers.\n `Customer Name` text, -- the name of the customers.\n `Segment` text, -- the segment that the customers belong to. • consumer. • home office: synonym: headquarter. • corporate.\n `Country` text, -- the country of people.\n `City` text, -- the city of people.\n `State` text, -- the state of people. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., New York --> NY.\n `Postal Code` integer, -- the postal code.\n `Region` text, -- the region of people. • Central:. • East:. • West:. • South:.\n primary key (\"Customer ID\", Region)\n);\n\nExternal Knowledge:\ncost above 8000 refers to SUTRACT(Sales, Profit) > 80000\n\nQuestion:\nName the customers from the Eastern region who has an order that costs the superstore above 8000.", + "question": "Name the customers from the Eastern region who has an order that costs the superstore above 8000.", + "evidence": "cost above 8000 refers to SUTRACT(Sales, Profit) > 80000", + "db_id": "superstore", + "database_path": "../databases/superstore.sqlite", + "gold_sql": "WITH high_cost_orders AS (\n SELECT `Order ID`, `Customer ID`\n FROM `east_superstore`\n GROUP BY `Order ID`, `Customer ID`\n HAVING SUM(`Sales` - `Profit`) > 8000\n)\nSELECT DISTINCT p.`Customer Name`\nFROM high_cost_orders h\nJOIN `people` p\n ON h.`Customer ID` = p.`Customer ID` AND p.`Region` = 'East';", + "source_gold_sql": "WITH high_cost_orders AS (\n SELECT `Order ID`, `Customer ID`\n FROM `east_superstore`\n GROUP BY `Order ID`, `Customer ID`\n HAVING SUM(`Sales` - `Profit`) > 8000\n)\nSELECT DISTINCT p.`Customer Name`\nFROM high_cost_orders h\nJOIN `people` p\n ON h.`Customer ID` = p.`Customer ID` AND p.`Region` = 'East';", + "source_gold_sql_sha256": "eba8df45e4e55e1bd5968a62c40f67e829a63d559b611c5213e57039d6177493", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5143", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\nmore than 30000 population in 2020 refers to population_2020 > 30000; representative refers to first_name, last_name\n\nQuestion:\nList all representatives of districts which have more than 30 000 population in 2020.", + "question": "List all representatives of districts which have more than 30 000 population in 2020.", + "evidence": "more than 30000 population in 2020 refers to population_2020 > 30000; representative refers to first_name, last_name", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT c.`first_name`, c.`last_name`\nFROM `congress` AS c\nJOIN `zip_congress` AS zc ON c.`cognress_rep_id` = zc.`district`\nJOIN `zip_data` AS zd ON zc.`zip_code` = zd.`zip_code`\nGROUP BY c.`cognress_rep_id`\nHAVING SUM(zd.`population_2020`) > 30000;", + "source_gold_sql": "SELECT c.`first_name`, c.`last_name`\nFROM `congress` AS c\nJOIN `zip_congress` AS zc ON c.`cognress_rep_id` = zc.`district`\nJOIN `zip_data` AS zd ON zc.`zip_code` = zd.`zip_code`\nGROUP BY c.`cognress_rep_id`\nHAVING SUM(zd.`population_2020`) > 30000;", + "source_gold_sql_sha256": "6222afdb5919cd1baa1b104cc300e795ca2e05adb59af0b1c32ec4b94cb3db0c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8949", + "domain": "human_resources", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE employee (\n `ssn` text, -- social security number. employee's ssn.\n `lastname` text, -- last name. employee's last name.\n `firstname` text, -- first name. employee's first name. employee's full name is firstname lastname .\n `hiredate` text, -- hire date. employee's hire date. yyyy-mm-dd.\n `salary` text, -- employee's salary. the unit is dollar per year.\n `gender` text, -- employee's gender.\n `performance` text, -- employee's performance. Good / Average/ Poor.\n `positionID` integer, -- position id. the unique id for position.\n `locationID` integer, -- location id. the unique id for location.\n primary key (ssn),\n foreign key (locationID) references location(locationID),\n foreign key (positionID) references position(positionID)\n);\n\nCREATE TABLE location (\n `locationID` integer, -- location id. the unique id for location.\n `locationcity` text, -- location city. the location city.\n `address` text, -- the detailed address of the location.\n `state` text, -- the state abbreviation.\n `zipcode` integer, -- zip code. zip code of the location.\n `officephone` text, -- office phone. the office phone number of the location.\n primary key (locationID)\n);\n\nCREATE TABLE position (\n `positionID` integer, -- position id. the unique id for position.\n `positiontitle` text, -- position title. the position title.\n `educationrequired` text, -- education required. the required education year. Generally, more complex work requires more education year.\n `minsalary` text, -- minimum salary. minimum salary of this position.\n `maxsalary` text, -- maximum salary. maximum salary of this position.\n primary key (positionID)\n);\n\nExternal Knowledge:\nAVG(salary); Trainee is a position title; minimum salary refers to minsalary; calculation = DIVIDE(SUBTRACT(AVG(salary), minsalary), minsalary) * 100\n\nQuestion:\nBy what percentage is the average salary of Trainees higher than the minimum salary of this postion?", + "question": "By what percentage is the average salary of Trainees higher than the minimum salary of this postion?", + "evidence": "AVG(salary); Trainee is a position title; minimum salary refers to minsalary; calculation = DIVIDE(SUBTRACT(AVG(salary), minsalary), minsalary) * 100", + "db_id": "human_resources", + "database_path": "../databases/human_resources.sqlite", + "gold_sql": "SELECT 100 * (AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS per FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'", + "source_gold_sql": "SELECT 100 * (AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS per FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'", + "source_gold_sql_sha256": "31887e659cc1fff70deba444a2a934d9c8265b32f3451629089dbd0e1c5478ed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3585", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\narticle \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'\n\nQuestion:\nWhen was the article \"A Formal Approach to Service Component Architecture\" published?", + "question": "When was the article \"A Formal Approach to Service Component Architecture\" published?", + "evidence": "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT Year FROM Paper WHERE Title = 'A Formal Approach to Service Component Architecture'", + "source_gold_sql": "SELECT Year FROM Paper WHERE Title = 'A Formal Approach to Service Component Architecture'", + "source_gold_sql_sha256": "19892b80eb0f3bf172b26415c42e0ea0cba289a2dc6e511d45853bcdb52a8e3e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7923", + "domain": "music_platform_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE categories (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `category` text, -- category of the podcast. This usually represents the topic of the podcast.\n primary key (podcast_id, category)\n);\n\nCREATE TABLE podcasts (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `itunes_id` integer, -- itunes id. The unique id of the itunes.\n `slug` text, -- The slug of the podcast. It usually has the same name with the \"title\" column.\n `itunes_url` text, -- itunes url. The iTunes url of the podcast. Can visit the webpage of the podcast by clicking the itunes_url.\n `title` text, -- The title of the podcast. It usually has a very similar name to the \"slug\" column.\n primary key (podcast_id)\n);\n\nCREATE TABLE reviews (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `title` text, -- The title of the podcast review. This usually is the abstract of the whole review.\n `content` text, -- The content of the podcast review. This usually is the detailed explanation of the podcast review title.\n `rating` integer, -- The rating of the podcast review. Allowed values: 0 to 5. This rating is highly related with \"title\" and \"content\".\n `author_id` text, -- author id. The author id of the podcast review.\n `created_at` text, -- created at. The date and time of the podcast review creation. In the format of \"Date time\". e.g., 2018-05-09T18:14:32-07:00.\n\n);\n\nCREATE TABLE runs (\n `run_at` text, -- run at. The date and time of the podcast review creation.\n `max_rowid` integer, -- max row id. The id of max row of this run.\n `reviews_added` integer, -- reviews added. The number of reviews added in this run.\n\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList all the podcast title and its itunes url under the 'society-culture' category.", + "question": "List all the podcast title and its itunes url under the 'society-culture' category.", + "evidence": "", + "db_id": "music_platform_2", + "database_path": "../databases/music_platform_2.sqlite", + "gold_sql": "SELECT T2.title, T2.itunes_url FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'society-culture'", + "source_gold_sql": "SELECT T2.title, T2.itunes_url FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'society-culture'", + "source_gold_sql_sha256": "8363d273eeda4eda91ed1c24460bf2a18d63f1ddd5f614f81e4943d4a19ed844", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8090", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nUniversity of Orléans refers to university_name = 'University of Orléans';\n\nQuestion:\nShow the id of University of Orléans.", + "question": "Show the id of University of Orléans.", + "evidence": "University of Orléans refers to university_name = 'University of Orléans';", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT id FROM university WHERE university_name = 'University of Orléans'", + "source_gold_sql": "SELECT id FROM university WHERE university_name = 'University of Orléans'", + "source_gold_sql_sha256": "a316e070e909d2c8e93ca31659b59558b53915418e7e11b5da18048cacf3fefd", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8862", + "domain": "cookbook", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Quantity (\n `quantity_id` integer, -- quantity id. the unique identifier for the quantity.\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `ingredient_id` integer, -- ingredient id. the id of the ingredient.\n `max_qty` real, -- maximum quantity. the max quantity of the ingredient.\n `min_qty` real, -- minimum quantity. the min quantity of the ingredient. If max_qty equals to min_qty, it means that the ingredient must be rationed.\n `unit` text, -- the unit of the ingredient.\n `preparation` text, -- 'No data' means the ingredient doesn't need preprocessing.\n `optional` text, -- whether the ingredient is optional.\n primary key (quantity_id),\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);\n\nCREATE TABLE Nutrition (\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `protein` real, -- the protein content in the recipe.\n `carbo` real, -- the carbo content in the recipe.\n `alcohol` real, -- the alcohol content in the recipe.\n `total_fat` real, -- total fat. the total fat content in the recipe. higher --> higher possibility to gain weight.\n `sat_fat` real, -- saturated fat. the saturated fat content in the recipe. unsaturated fat = total_fat - saturated fat.\n `cholestrl` real, -- cholesterol. the cholesterol content in the recipe.\n `sodium` real, -- the sodium content in the recipe. Salt/Sodium-Free - Less than 5 mg of sodium per serving. Very Low Sodium - 35 mg of sodium or less per serving. Low Sodium -140 mg of sodium or less per serving. Reduced Sodium - At least 25% less sodium than the regular product. Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product. No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated.\n `iron` real, -- the iron content in the recipe. if iron > 20mg, it will lead to. • constipation. • feeling sick. • being sick. • stomach pain. question could mention any of functions listed before.\n `vitamin_c` real, -- vitamin c. the vitamin c content in the recipe. Vitamin C, also known as ascorbic acid, if the VC is higher, it will:. • helping to protect cells and keeping them healthy. • maintaining healthy skin, blood vessels, bones and cartilage. • helping with wound healing. question could mention any of functions listed before.\n `vitamin_a` real, -- vitamin a. the vitamin a content in the recipe. higher --> beneficial to. • helping your body's natural defense against illness and infection (the immune system) work properly. • helping vision in dim light. • keeping skin and the lining of some parts of the body, such as the nose, healthy. question could mention any of functions listed before.\n `fiber` real, -- the fiber a content in the recipe.\n `pcnt_cal_carb` real, -- percentage calculation carbo. percentage of carbo in total nutrient composition.\n `pcnt_cal_fat` real, -- percentage calculation fat. percentage of fat in total nutrient composition.\n `pcnt_cal_prot` real, -- percentage calculation protein. percentage of protein in total nutrient composition.\n `calories` real, -- the calories of the recipe.\n primary key (recipe_id),\n foreign key (recipe_id) references Recipe(recipe_id)\n);\n\nCREATE TABLE Recipe (\n `recipe_id` integer, -- recipe id. the unique identifier for the recipe.\n `title` text, -- the title of the recipe.\n `subtitle` text, -- the subtitle of the recipe.\n `servings` integer, -- the number of people the recipe can serve.\n `yield_unit` text, -- yield unit. the unit of the yield for the recipe.\n `prep_min` integer, -- preparation minute. the preparation minute of the recipe.\n `cook_min` integer, -- cooked minute. the cooked minute of the recipe.\n `stnd_min` integer, -- stand minute. the stand minute of the price. The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min.\n `source` text, -- the source of the recipe.\n `intro` text, -- introduction. the introduction of the recipe.\n `directions` text, -- the directions of the recipe.\n primary key (recipe_id)\n);\n\nCREATE TABLE Ingredient (\n `ingredient_id` integer, -- ingredient id. the unique identifier for the ingredient.\n `category` text, -- the category of the ingredient.\n `name` text, -- the name of the ingredient.\n `plural` text, -- the plural suffix of the ingredient.\n primary key (ingredient_id)\n);\n\nExternal Knowledge:\nmost likely to gain weight refers to MAX(total_fat)\n\nQuestion:\nWhat is the title of the recipe that is most likely to gain weight?", + "question": "What is the title of the recipe that is most likely to gain weight?", + "evidence": "most likely to gain weight refers to MAX(total_fat)", + "db_id": "cookbook", + "database_path": "../databases/cookbook.sqlite", + "gold_sql": "SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1", + "source_gold_sql": "SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1", + "source_gold_sql_sha256": "dbe8510ad557c6e3fee680ce0550375d3c2cd334c66daf0caa7466fb2c23b93a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5530", + "domain": "menu", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Dish (\n `id` integer, -- unique id number indicating the dishes.\n `name` text, -- the name of the dish.\n `description` text, -- description of the dish. (no value).\n `menus_appeared` integer, -- menus appeared. how many menus have this dish.\n `times_appeared` integer, -- times appeared. how many times this dish appears in the menu. if times_appeared > menus_appeard: this dish appeared in a menu more than once.\n `first_appeared` integer, -- first appeared. the year that this dish appears first. 1. the year outside of [1851, 2012], it means this data is not correct. 2. if this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical.\n `last_appeared` integer, -- last appeared. the year that this dish appears the last time. 1. the year outside of [1851, 2012], it means this data is not correct. 2. if this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical.\n `lowest_price` real, -- lowest price. the lowest price of the dish. 0: for free.\n `highest_price` real, -- highest price. the highest price of the dish.\n primary key (id)\n);\n\nCREATE TABLE Menu (\n `id` integer, -- the unique number identifying the menu.\n `name` text, -- the name of the menu. if the value is not null or empty, it means this menu has special dishes. otherwise, this menu is general and nothing special.\n `sponsor` text, -- the sponsor of this menu. if the value is null or empyt, it means this meanu is DIY by the restaurant.\n `event` text, -- the event that the menu was created for.\n `venue` text, -- the venue that the menu was created for.\n `place` text, -- the location that the menu was used.\n `physical_description` text, -- physical description. physical description of the menu.\n `occasion` text, -- occasion of the menu.\n `notes` text, -- notes.\n `call_number` text, -- call number. if null: not support for taking out or booking in advance.\n `keywords` text, -- keywords. not useful.\n `language` text, -- language. not useful.\n `date` date, -- the date that this menu was created.\n `location` text, -- the location that the menu was used.\n `location_type` text, -- not useful.\n `currency` text, -- the currency that the menu was used.\n `currency_symbol` text, -- the currency symbol.\n `status` text, -- status of the menu.\n `page_count` integer, -- page count. the number of pages of this menu.\n `dish_count` integer, -- dish count. the number of dishes of this menu.\n primary key (id)\n);\n\nCREATE TABLE MenuPage (\n `id` integer, -- the unique id number indentifying the menupage.\n `menu_id` integer, -- menu id. the id of the menu.\n `page_number` integer, -- page number. the page number.\n `image_id` real, -- image id. the id of the image.\n `full_height` integer, -- full height. full height of the menu page. (mm).\n `full_width` integer, -- full width. full width of the menu page. (mm).\n `uuid` text, -- No description.\n primary key (id),\n foreign key (menu_id) references Menu(id)\n);\n\nCREATE TABLE MenuItem (\n `id` integer, -- the unique id representing the menu item.\n `menu_page_id` integer, -- the id of menu page.\n `price` real, -- the price of this dish (menu item).\n `high_price` real, -- high price. high price of this dish.\n `dish_id` integer, -- the id of the dish.\n `created_at` text, -- created at. the dates when the item was created.\n `updated_at` text, -- updated at. the dates when the item was updated.\n `xpos` real, -- x position. x-axis position of the dish in this menu page.\n `ypos` real, -- y position. y-axis position of the dish in this menu page.\n primary key (id),\n foreign key (dish_id) references Dish(id),\n foreign key (menu_page_id) references MenuPage(id)\n);\n\nExternal Knowledge:\nappeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;\n\nQuestion:\nTally the dishes that have appeared on the menu for more than 100 years.", + "question": "Tally the dishes that have appeared on the menu for more than 100 years.", + "evidence": "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", + "db_id": "menu", + "database_path": "../databases/menu.sqlite", + "gold_sql": "SELECT COUNT(*) AS num_dishes_over_100_years\nFROM `Dish`\nWHERE `first_appeared` BETWEEN 1851 AND 2012\n AND `last_appeared` BETWEEN 1851 AND 2012\n AND (`last_appeared` - `first_appeared`) > 100;", + "source_gold_sql": "SELECT COUNT(*) AS num_dishes_over_100_years\nFROM `Dish`\nWHERE `first_appeared` BETWEEN 1851 AND 2012\n AND `last_appeared` BETWEEN 1851 AND 2012\n AND (`last_appeared` - `first_appeared`) > 100;", + "source_gold_sql_sha256": "dd638a35057ffc028cad94544712a03099a6cd2644ae488864f95952448e61f3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4676", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat are the total grosses for the movies with Jim Cummings as the voice actor? List the movie, too.", + "question": "What are the total grosses for the movies with Jim Cummings as the voice actor? List the movie, too.", + "evidence": "", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT DISTINCT\n T2.`movie_title`,\n T2.`total_gross`\nFROM `voice-actors` AS T1\nJOIN `movies_total_gross` AS T2\n ON T2.`movie_title` = T1.`movie`\nWHERE T1.`voice-actor` = 'Jim Cummings'", + "source_gold_sql": "SELECT DISTINCT\n T2.`movie_title`,\n T2.`total_gross`\nFROM `voice-actors` AS T1\nJOIN `movies_total_gross` AS T2\n ON T2.`movie_title` = T1.`movie`\nWHERE T1.`voice-actor` = 'Jim Cummings'", + "source_gold_sql_sha256": "fdaa981dd56e0e2b91936b70db0d7dd3125b6a059c869761289eef27a19f242d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9329", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nHow many customers have an address in Abu Dhabi city?", + "question": "How many customers have an address in Abu Dhabi city?", + "evidence": "", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT c.`customer_id`) AS num_customers \nFROM `customer` c \nJOIN `address` a ON c.`address_id` = a.`address_id` \nJOIN `city` ci ON a.`city_id` = ci.`city_id` \nWHERE ci.`city` = 'Abu Dhabi';", + "source_gold_sql": "SELECT COUNT(DISTINCT c.`customer_id`) AS num_customers \nFROM `customer` c \nJOIN `address` a ON c.`address_id` = a.`address_id` \nJOIN `city` ci ON a.`city_id` = ci.`city_id` \nWHERE ci.`city` = 'Abu Dhabi';", + "source_gold_sql_sha256": "0b2754e840a9c175ee3472872c39eb6cc5448b53527dd9abd576ee9e53a3166c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3157", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nproject 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'\n\nQuestion:\nName the vendors who provide resources for project 'Lights, Camera, Action!'. List all the item names and unit price for each.", + "question": "Name the vendors who provide resources for project 'Lights, Camera, Action!'. List all the item names and unit price for each.", + "evidence": "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT T1.vendor_name, T1.item_name, T1.item_unit_price FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN essays AS T3 ON T2.projectid = T3.projectid WHERE T3.title = 'Lights, Camera, Action!'", + "source_gold_sql": "SELECT T1.vendor_name, T1.item_name, T1.item_unit_price FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN essays AS T3 ON T2.projectid = T3.projectid WHERE T3.title = 'Lights, Camera, Action!'", + "source_gold_sql_sha256": "b6fe4167ebe0abeec156867a6768e0b06524ed2661aade2ad45c199642ca117f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4156", + "domain": "citeseer", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE paper (\n `paper_id` text, -- paper id. unique string ID of the paper.\n `class_label` text, -- class label.\n primary key (paper_id)\n);\n\nCREATE TABLE cites (\n `cited_paper_id` text, -- cited_paper_id is the ID of the paper being cited.\n `citing_paper_id` text, -- citing_paper_id stands for the paper which contains the citation.\n primary key (cited_paper_id, citing_paper_id)\n);\n\nCREATE TABLE content (\n `paper_id` text, -- paper id. unique string ID of the paper.\n `word_cited_id` text, -- word cited id. rtype. whether each word in the vocabulary is present (indicated by 1) or absent (indicated by 0) in the paper.\n primary key (paper_id, word_cited_id),\n foreign key (paper_id) references paper(paper_id)\n);\n\nExternal Knowledge:\nclassification refers to class_label; class_label = 'DB';\n\nQuestion:\nAmong the papers under DB classification, which papers have the highest number of words cited? List their ids.", + "question": "Among the papers under DB classification, which papers have the highest number of words cited? List their ids.", + "evidence": "classification refers to class_label; class_label = 'DB';", + "db_id": "citeseer", + "database_path": "../databases/citeseer.sqlite", + "gold_sql": "SELECT T1.paper_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T1.paper_id HAVING COUNT(T2.word_cited_id) = (SELECT MAX(cnt) FROM (SELECT COUNT(T4.word_cited_id) AS cnt FROM paper AS T3 INNER JOIN content AS T4 ON T3.paper_id = T4.paper_id WHERE T3.class_label = 'DB' GROUP BY T3.paper_id) AS T5);", + "source_gold_sql": "SELECT T1.paper_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T1.paper_id HAVING COUNT(T2.word_cited_id) = (SELECT MAX(cnt) FROM (SELECT COUNT(T4.word_cited_id) AS cnt FROM paper AS T3 INNER JOIN content AS T4 ON T3.paper_id = T4.paper_id WHERE T3.class_label = 'DB' GROUP BY T3.paper_id) AS T5);", + "source_gold_sql_sha256": "eabe2a48a2eafa4a93f530f73d5679f1a61a14a14703d503cb2950f3914e5380", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5264", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\npercentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE StarRating = 5), COUNT(BrandID) WHERE BrandName = 'River City'), 1.0); 5 star ratings refers to StarRating = 5; River City refers to BrandName = 'River City';\n\nQuestion:\nWhat is the percentage of 5 star ratings River City brand root beer get?", + "question": "What is the percentage of 5 star ratings River City brand root beer get?", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE StarRating = 5), COUNT(BrandID) WHERE BrandName = 'River City'), 1.0); 5 star ratings refers to StarRating = 5; River City refers to BrandName = 'River City';", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.StarRating = 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.StarRating) FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'River City'", + "source_gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.StarRating = 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.StarRating) FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'River City'", + "source_gold_sql_sha256": "0596a7f9a8e3d081c62ee7138a96989b35eac60e50ba822871edeccbe2708b78", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5940", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n\"Žirovnica\" is the city; country refers to country_name\n\nQuestion:\nWhich country does Žirovnica city belong to?", + "question": "Which country does Žirovnica city belong to?", + "evidence": "\"Žirovnica\" is the city; country refers to country_name", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT T1.country_name FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Žirovnica'", + "source_gold_sql": "SELECT T1.country_name FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Žirovnica'", + "source_gold_sql_sha256": "c0ee3af400339ffdb2f28700a153484a99c0f9c66789d88b66c6be7c07faeb8b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:145", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\nhave less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1\n\nQuestion:\nList all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the list.", + "question": "List all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the list.", + "evidence": "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number < 50 AND T1.user_subscriber = 1", + "source_gold_sql": "SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number < 50 AND T1.user_subscriber = 1", + "source_gold_sql_sha256": "8450d50a65da41a1f9261aa9dc7673e6a72f464428e66ccc6b24881f2300b234", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3521", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\npublished in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author\n\nQuestion:\nHow many papers whose authors include Thomas Wiegand were published in 1995?", + "question": "How many papers whose authors include Thomas Wiegand were published in 1995?", + "evidence": "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT COUNT(T2.Title) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995", + "source_gold_sql": "SELECT COUNT(T2.Title) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995", + "source_gold_sql_sha256": "2c8fb9fa1dfdeb62b0ee4d1ccd2f31e7d1212485a1e45480cbe37fa08095676e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9187", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))\n\nQuestion:\nWhat is the full name of the actor who starred in most movies?", + "question": "What is the full name of the actor who starred in most movies?", + "evidence": "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "with actor_sub as (\nSELECT T2.first_name, T2.last_name, count(T1.film_id) AS num \nFROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id \nGROUP BY T2.actor_id, T2.first_name, T2.last_name \n)\n\nSELECT T.first_name, T.last_name FROM actor_sub AS T WHERE T.num = (SELECT max(num) FROM actor_sub)", + "source_gold_sql": "with actor_sub as (\nSELECT T2.first_name, T2.last_name, count(T1.film_id) AS num \nFROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id \nGROUP BY T2.actor_id, T2.first_name, T2.last_name \n)\n\nSELECT T.first_name, T.last_name FROM actor_sub AS T WHERE T.num = (SELECT max(num) FROM actor_sub)", + "source_gold_sql_sha256": "1e8668bcb34ae2677874b7098d5a9b59a1814c675be0aa9780625255b044349a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:163", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\naverage number of number of movies refers to AVG(list_movie_number); user 8516503 refers to user_id = 8516503; rating score of 5 refers to rating_score = 5\n\nQuestion:\nWhat is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.", + "question": "What is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.", + "evidence": "average number of number of movies refers to AVG(list_movie_number); user 8516503 refers to user_id = 8516503; rating score of 5 refers to rating_score = 5", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT\n (SELECT AVG(`list_movie_number`) FROM `lists` WHERE `user_id` = 8516503) AS avg_movies_in_lists,\n (SELECT COUNT(*) FROM `ratings` WHERE `user_id` = 8516503 AND `rating_score` = 5) AS count_rating_5;", + "source_gold_sql": "SELECT\n (SELECT AVG(`list_movie_number`) FROM `lists` WHERE `user_id` = 8516503) AS avg_movies_in_lists,\n (SELECT COUNT(*) FROM `ratings` WHERE `user_id` = 8516503 AND `rating_score` = 5) AS count_rating_5;", + "source_gold_sql_sha256": "e9689d897d8f3ec87d6ce3d80994ca9832abb5eb8f0bbd8d1b3a0ebd959917d3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8664", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\ndomestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'\n\nQuestion:\nList the case numbers of domestic violence crimes reported in Lincoln Square.", + "question": "List the case numbers of domestic violence crimes reported in Lincoln Square.", + "evidence": "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT T2.case_number FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Lincoln Square' AND T2.domestic = 'TRUE'", + "source_gold_sql": "SELECT T2.case_number FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Lincoln Square' AND T2.domestic = 'TRUE'", + "source_gold_sql_sha256": "4edd75afacf3de27840867ed9750c22804f40021d06f900e516cd4f1f941ba08", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6932", + "domain": "ice_hockey_draft", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weight_info (\n `weight_id` integer, -- weight id. the unique weight id.\n `weight_in_kg` integer, -- weight in kg. e.g. 70: -->70 kg.\n `weight_in_lbs` integer, -- weight in lbs.\n primary key (weight_id)\n);\n\nCREATE TABLE height_info (\n `height_id` integer, -- height id. the unique height id.\n `height_in_cm` integer, -- height in cm. e.g. 180 --> the height is 180 cm.\n `height_in_inch` text, -- height in inch.\n primary key (height_id)\n);\n\nCREATE TABLE SeasonStatus (\n `ELITEID` integer, -- ELITE ID. the id number of the players.\n `SEASON` text, -- season when players are playing.\n `TEAM` text, -- which team the player belong to.\n `LEAGUE` text, -- league.\n `GAMETYPE` text, -- GAME TYPE. type of games. • Regular season • playoffs (post season).\n `GP` integer, -- Game Plays. number of games.\n `G` integer, -- Goals in Draft Year.\n `A` integer, -- Assists in Draft Year.\n `P` integer, -- Points in Draft Year. higher --> more valuable.\n `PIM` integer, -- Penalty Minutes. Penalty Minutes in Draft Year. higher --> This player has committed more rule violations.\n `PLUSMINUS` integer, -- Plus Minutes. Goal Differential in Draft Year. Goal Differential.\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);\n\nCREATE TABLE PlayerInfo (\n `ELITEID` integer, -- ELITE ID. the unique number identifying the players who attended the draft.\n `PlayerName` text, -- Player Name. the name of the player.\n `birthdate` text, -- the birthdate of the player.\n `birthyear` date, -- the birth year of the player.\n `birthmonth` integer, -- the birth month of the player.\n `birthday` integer, -- the birthday of the player.\n `birthplace` text, -- the player of the birthplace.\n `nation` text, -- the nation of the player. can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. e.g.: Slovakia --> Europe.\n `height` integer, -- the id number identifying heights.\n `weight` integer, -- the id number identifying weights.\n `position_info` text, -- position information. position information of the player. There are six different positions in hockey:. left wing,. right wing,. center,. left defenseman,. right defenseman. goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n `shoots` text, -- • L: Left-shooted. • R: Right-shooted. • '-': no preference.\n `draftyear` integer, -- draft year.\n `draftround` integer, -- draft round.\n `overall` integer, -- overall orders of draft picks.\n `overallby` text, -- drafted by which team.\n `CSS_rank` integer, -- Central Scouting Service ranking. higher rank refers to higher prospects for the draft.\n `sum_7yr_GP` integer, -- sum 7-year game plays. Total NHL games played in playerÂ’s first 7 years of NHL career. higher --> more attendance in the first 7 years.\n `sum_7yr_TOI` integer, -- sum 7-year time on ice. Total NHL Time on Ice in playerÂ’s first 7 years of NHL career. higher --> more playing time in the first 7 years of career.\n `GP_greater_than_0` text, -- game play greater than 0. Played a game or not in playerÂ’s first 7 years of NHL career. • yes. • no.\n primary key (ELITEID),\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);\n\nExternal Knowledge:\nheight in centimeter refers to height_in_cm; tallest player refers to MAX(height_in_cm); born in Edmonton, Alberta, Canada refers to birthplace = 'Edmonton, AB, CAN';\n\nQuestion:\nWhat is the height in centimeter of the tallest player born in Edmonton, Alberta, Canada?", + "question": "What is the height in centimeter of the tallest player born in Edmonton, Alberta, Canada?", + "evidence": "height in centimeter refers to height_in_cm; tallest player refers to MAX(height_in_cm); born in Edmonton, Alberta, Canada refers to birthplace = 'Edmonton, AB, CAN';", + "db_id": "ice_hockey_draft", + "database_path": "../databases/ice_hockey_draft.sqlite", + "gold_sql": "SELECT T2.height_in_cm FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.birthplace = 'Edmonton, AB, CAN' ORDER BY T2.height_in_cm DESC LIMIT 1", + "source_gold_sql": "SELECT T2.height_in_cm FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.birthplace = 'Edmonton, AB, CAN' ORDER BY T2.height_in_cm DESC LIMIT 1", + "source_gold_sql_sha256": "23c9212c050242f6432b42b68d3b561756a3a035d6a74954a241daa675af154e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6111", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; in May 2010 refers to inspection_date like '2010-05%'; sanitarian refers to title = 'Sanitarian'\n\nQuestion:\nPlease list the full names of the sanitarians who did at least one inspection in May, 2010.", + "question": "Please list the full names of the sanitarians who did at least one inspection in May, 2010.", + "evidence": "full name refers to first_name, last_name; in May 2010 refers to inspection_date like '2010-05%'; sanitarian refers to title = 'Sanitarian'", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y-%m', T2.inspection_date) = '2010-05' AND T1.title = 'Sanitarian'", + "source_gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y-%m', T2.inspection_date) = '2010-05' AND T1.title = 'Sanitarian'", + "source_gold_sql_sha256": "52b394d21d61eea812a68cfd868e6bb4c4edbe064c72ea1f7791c0d736f890e0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4711", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nThe highest total gross refers to MAX(total_gross);\n\nQuestion:\nWhich movie's song title has the highest total gross?", + "question": "Which movie's song title has the highest total gross?", + "evidence": "The highest total gross refers to MAX(total_gross);", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) = (SELECT CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) FROM movies_total_gross INNER JOIN characters USING(movie_title) ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1);", + "source_gold_sql": "SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) = (SELECT CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) FROM movies_total_gross INNER JOIN characters USING(movie_title) ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1);", + "source_gold_sql_sha256": "a7a4d412f7b34e4233606cf17adf061f5c61e84cebcb3697aea06090d4b0931f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5470", + "domain": "menu", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Dish (\n `id` integer, -- unique id number indicating the dishes.\n `name` text, -- the name of the dish.\n `description` text, -- description of the dish. (no value).\n `menus_appeared` integer, -- menus appeared. how many menus have this dish.\n `times_appeared` integer, -- times appeared. how many times this dish appears in the menu. if times_appeared > menus_appeard: this dish appeared in a menu more than once.\n `first_appeared` integer, -- first appeared. the year that this dish appears first. 1. the year outside of [1851, 2012], it means this data is not correct. 2. if this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical.\n `last_appeared` integer, -- last appeared. the year that this dish appears the last time. 1. the year outside of [1851, 2012], it means this data is not correct. 2. if this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical.\n `lowest_price` real, -- lowest price. the lowest price of the dish. 0: for free.\n `highest_price` real, -- highest price. the highest price of the dish.\n primary key (id)\n);\n\nCREATE TABLE Menu (\n `id` integer, -- the unique number identifying the menu.\n `name` text, -- the name of the menu. if the value is not null or empty, it means this menu has special dishes. otherwise, this menu is general and nothing special.\n `sponsor` text, -- the sponsor of this menu. if the value is null or empyt, it means this meanu is DIY by the restaurant.\n `event` text, -- the event that the menu was created for.\n `venue` text, -- the venue that the menu was created for.\n `place` text, -- the location that the menu was used.\n `physical_description` text, -- physical description. physical description of the menu.\n `occasion` text, -- occasion of the menu.\n `notes` text, -- notes.\n `call_number` text, -- call number. if null: not support for taking out or booking in advance.\n `keywords` text, -- keywords. not useful.\n `language` text, -- language. not useful.\n `date` date, -- the date that this menu was created.\n `location` text, -- the location that the menu was used.\n `location_type` text, -- not useful.\n `currency` text, -- the currency that the menu was used.\n `currency_symbol` text, -- the currency symbol.\n `status` text, -- status of the menu.\n `page_count` integer, -- page count. the number of pages of this menu.\n `dish_count` integer, -- dish count. the number of dishes of this menu.\n primary key (id)\n);\n\nCREATE TABLE MenuPage (\n `id` integer, -- the unique id number indentifying the menupage.\n `menu_id` integer, -- menu id. the id of the menu.\n `page_number` integer, -- page number. the page number.\n `image_id` real, -- image id. the id of the image.\n `full_height` integer, -- full height. full height of the menu page. (mm).\n `full_width` integer, -- full width. full width of the menu page. (mm).\n `uuid` text, -- No description.\n primary key (id),\n foreign key (menu_id) references Menu(id)\n);\n\nCREATE TABLE MenuItem (\n `id` integer, -- the unique id representing the menu item.\n `menu_page_id` integer, -- the id of menu page.\n `price` real, -- the price of this dish (menu item).\n `high_price` real, -- high price. high price of this dish.\n `dish_id` integer, -- the id of the dish.\n `created_at` text, -- created at. the dates when the item was created.\n `updated_at` text, -- updated at. the dates when the item was updated.\n `xpos` real, -- x position. x-axis position of the dish in this menu page.\n `ypos` real, -- y position. y-axis position of the dish in this menu page.\n primary key (id),\n foreign key (dish_id) references Dish(id),\n foreign key (menu_page_id) references MenuPage(id)\n);\n\nExternal Knowledge:\ndo not have correct data refers to first_appeared < 1851 or first_appeared > 2012;\n\nQuestion:\nHow many dishes do not have correct data for the year in which it appeared first?", + "question": "How many dishes do not have correct data for the year in which it appeared first?", + "evidence": "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", + "db_id": "menu", + "database_path": "../databases/menu.sqlite", + "gold_sql": "SELECT COUNT(*) FROM Dish WHERE first_appeared < 1851 OR first_appeared > 2012", + "source_gold_sql": "SELECT COUNT(*) FROM Dish WHERE first_appeared < 1851 OR first_appeared > 2012", + "source_gold_sql_sha256": "7120755599941400f821c8dde5a2d8503b4e4456a72ebb891909e1f426054c34", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5688", + "domain": "language_corpus", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE words (\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `word` text, -- The word itself.\n `occurrences` integer, -- The occurrences of the specific word.\n primary key (CREATE)\n);\n\nCREATE TABLE pages (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `page` integer, -- wikipedia page id.\n `revision` integer, -- wikipedia revision page id.\n `title` text, -- The title of this Catalan language Wikipedia page.\n `words` integer, -- number of different words in this page.\n primary key (CREATE)\n);\n\nCREATE TABLE biwords (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `w1st` integer, -- word id of the first word. The word id of the first word of the biwords pair. The value is unique.\n `w2nd` integer, -- word id of the second word. The word id of the second word of the biwords pair. The value is unique.\n `occurrences` integer, -- times of this pair appears in this language/page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE pages_words (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `occurrences` integer, -- times of this word appears into this page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs_words (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language.\n `occurrences` integer, -- repetitions of this word in this language. it's INTEGER and DEFAULT is 0.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs (\n `lid` integer, -- language id. lid=1 means it's the Catalan language.\n `lang` text, -- language. language name. ca means Catalan language.\n `locale` text, -- The locale of the language.\n `pages` integer, -- total pages of Wikipedia in this language.\n `words` integer, -- total number of words in this pages.\n primary key (CREATE)\n);\n\nExternal Knowledge:\nfrom revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700\n\nQuestion:\nList the titles for all Catalan language wikipedia page from revision page id 106600 to 106700.", + "question": "List the titles for all Catalan language wikipedia page from revision page id 106600 to 106700.", + "evidence": "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", + "db_id": "language_corpus", + "database_path": "../databases/language_corpus.sqlite", + "gold_sql": "SELECT title FROM pages WHERE (revision BETWEEN 106600 AND 106700) AND lid = 1", + "source_gold_sql": "SELECT title FROM pages WHERE (revision BETWEEN 106600 AND 106700) AND lid = 1", + "source_gold_sql_sha256": "19a4bffec77c89b856401cfcbfa01ff7735328d28180e0286b06b28d38fc18fe", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7473", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\nobject samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1\n\nQuestion:\nHow many object samples are there in image no.1?", + "question": "How many object samples are there in image no.1?", + "evidence": "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT COUNT(OBJ_SAMPLE_ID) FROM IMG_OBJ WHERE IMG_ID = 1", + "source_gold_sql": "SELECT COUNT(OBJ_SAMPLE_ID) FROM IMG_OBJ WHERE IMG_ID = 1", + "source_gold_sql_sha256": "bf9f25120e62d8e3ebdc0895133ab817f5bff80751066ab4da575ec33bb95d34", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1808", + "domain": "soccer_2016", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Outcome (\n `Outcome_Id` integer, -- outcome id. unique id for outcome.\n `Outcome_Type` text, -- outcome type. type of the outcome.\n primary key (Outcome_Id)\n);\n\nCREATE TABLE Player_Match (\n `Match_Id` integer, -- match id. unique id for match.\n `Player_Id` integer, -- player id. the id of the player.\n `Role_Id` integer, -- role id. the id of the play's role in the match. if a player has multiple roles in a match, it means this player is versatile.\n `Team_Id` integer, -- team id. the id of player's team.\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);\n\nCREATE TABLE Win_By (\n `Win_Id` integer, -- winning id. the unique id for the winning.\n `Win_Type` text, -- winning type. the winning type.\n primary key (Win_Id)\n);\n\nCREATE TABLE Match (\n `Match_Id` integer, -- unique id for match.\n `Team_1` integer, -- team 1. the team id of the first team.\n `Team_2` integer, -- team 2. the team id for the second team.\n `Match_Date` date, -- match date. the date of the match. yyyy-mm-dd.\n `Season_Id` integer, -- season id. the id of the season.\n `Venue_Id` integer, -- venue id. the id of the venue where the match held.\n `Toss_Winner` integer, -- toss winner. the id of the toss winner. The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n `Toss_Decide` integer, -- toss decide. the decision (batting or bowling) made after winning the toss. • field. • bat.\n `Win_Type` integer, -- winning type. the id of the winning type.\n `Win_Margin` integer, -- winning margin. the points of the winning margin. A winning margin bet is a wager on the final result of a game, within a certain range of points.\n `Outcome_type` integer, -- outcome type. the id of the outcome type.\n `Match_Winner` integer, -- match winner. the team id of the match winner.\n `Man_of_the_Match` integer, -- man of the match. the id of the man of the match. In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n primary key (Match_Id),\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);\n\nCREATE TABLE Umpire (\n `Umpire_Id` integer, -- umpire id. the unique id of the umpire.\n `Umpire_Name` text, -- umpire name. umpire's name.\n `Umpire_Country` integer, -- umpire country. the id of the country where the umpire are from.\n primary key (Umpire_Id),\n foreign key (Umpire_Country) references Country(Country_Id)\n);\n\nCREATE TABLE Extra_Runs (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Extra_Type_Id` integer, -- extra type id. Unique Number which Identifies extra type.\n `Extra_Runs` integer, -- extra runs. Number of extra runs.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);\n\nCREATE TABLE Team (\n `Team_Id` integer, -- team id. the unique id for the team.\n `Team_Name` text, -- team name. the team name.\n primary key (Team_Id)\n);\n\nCREATE TABLE Batting_Style (\n `Batting_Id` integer, -- batting id. unique id for batting hand.\n `Batting_hand` text, -- batting hand. the batting hand: left or right.\n primary key (Batting_Id)\n);\n\nCREATE TABLE Out_Type (\n `Out_Id` integer, -- out id. unique id for out type.\n `Out_Name` text, -- out name. out type name.\n primary key (Out_Id)\n);\n\nCREATE TABLE Rolee (\n `Role_Id` integer, -- role id. the unique id for the role.\n `Role_Desc` text, -- role description. the role description.\n primary key (Role_Id)\n);\n\nCREATE TABLE Player (\n `Player_Id` integer, -- player id. the id of the player.\n `Player_Name` text, -- player name. the name of the player.\n `DOB` date, -- date of birth. player's birthday. yyyy-mm-dd.\n `Batting_hand` integer, -- batting hand. the id of the batting hand.\n `Bowling_skill` integer, -- bowling skill. the id of the bowling skill.\n `Country_Name` integer, -- country name. the name of the country where the player is from.\n primary key (Player_Id),\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);\n\nCREATE TABLE Season (\n `Season_Id` integer, -- season id. the unique id for season.\n `Man_of_the_Series` integer, -- man of the series. the player id of man of the series. In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n `Orange_Cap` integer, -- orange cap. the player id who wins the orange cap. The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL).\n `Purple_Cap` integer, -- purple cap. the player id who wins the purple cap. The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL).\n `Season_Year` integer, -- season year. the year of the season.\n primary key (Season_Id)\n);\n\nCREATE TABLE Bowling_Style (\n `Bowling_Id` integer, -- bowling id. unique id for bowling style.\n `Bowling_skill` text, -- bowling skill. the bowling skill.\n primary key (Bowling_Id)\n);\n\nCREATE TABLE Ball_by_Ball (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings. The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n `Team_Batting` integer, -- team batting. Unique Number which Identifies Batting team in a match.\n `Team_Bowling` integer, -- team bowling. Unique Number which Identifies Bowling team in a match.\n `Striker_Batting_Position` integer, -- striker batting position. Unique Number which Identifies the position in which player came into bat.\n `Striker` integer, -- Unique Number which Identifies the player who is on strike for that particular ball.\n `Non_Striker` integer, -- non striker. Unique Number which Identifies the player who is Non-striker for that particular ball.\n `Bowler` integer, -- Unique Number which Identifies the player who is Bowling that particular ball.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Toss_Decision (\n `Toss_Id` integer, -- toss id. the unique id for the toss.\n `Toss_Name` text, -- toss name. the toss decision name.\n primary key (Toss_Id)\n);\n\nCREATE TABLE City (\n `City_Id` integer, -- city id. unique id for city.\n `City_Name` text, -- city name.\n `Country_id` integer, -- country id. id of country.\n primary key (City_Id)\n);\n\nCREATE TABLE Extra_Type (\n `Extra_Id` integer, -- extra id. unique id for extra type.\n `Extra_Name` text, -- extra name. extra type name.\n primary key (Extra_Id)\n);\n\nCREATE TABLE Batsman_Scored (\n `Match_Id` integer, -- match id. Unique Number Which Identifies a match.\n `Over_Id` integer, -- over id. Unique Number which Identifies an over in an Innings.\n `Ball_Id` integer, -- ball id. Unique Number which Identifies a ball in an over.\n `Runs_Scored` integer, -- runs scored. Number of Runs scored by the batsman.\n `Innings_No` integer, -- innings number. Unique Number which Identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);\n\nCREATE TABLE Country (\n `Country_Id` integer, -- country id. unique id for country.\n `Country_Name` text, -- country name.\n primary key (Country_Id),\n foreign key (Country_Id) references Country(Country_Id)\n);\n\nCREATE TABLE Wicket_Taken (\n `Match_Id` integer, -- match id. the id of the match.\n `Over_Id` integer, -- over id. the id of the over in an inning.\n `Ball_Id` integer, -- ball id. the id of the ball in an over.\n `Player_Out` integer, -- player out. the player id who got an out.\n `Kind_Out` integer, -- kind out. the id that represents the out type.\n `Fielders` integer, -- the id of fielders.\n `Innings_No` integer, -- innings number. number which identifies an innings in a match.\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);\n\nCREATE TABLE Venue (\n `Venue_Id` integer, -- venue id. the unique id of the venue.\n `Venue_Name` text, -- venue name. the name of the venue.\n `City_Id` integer, -- city id. the city id where the venue is located in.\n primary key (Venue_Id),\n foreign key (City_Id) references City(City_Id)\n);\n\nExternal Knowledge:\nname of venue refers to Venue_Name; a win margin of 138 points refers to Win_Margin = 138\n\nQuestion:\nGive the name of venue for the game with a win margin of 138 points.", + "question": "Give the name of venue for the game with a win margin of 138 points.", + "evidence": "name of venue refers to Venue_Name; a win margin of 138 points refers to Win_Margin = 138", + "db_id": "soccer_2016", + "database_path": "../databases/soccer_2016.sqlite", + "gold_sql": "SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Win_Margin = 138", + "source_gold_sql": "SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Win_Margin = 138", + "source_gold_sql_sha256": "acbf96e38552a285855a56c2c3691a17bb30ffd62c985f2d58dd1013b3020117", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2435", + "domain": "superstore", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE product (\n `Product ID` text, -- the id of products.\n `Product Name` text, -- the name of products.\n `Category` text, -- the categories of products. • Furniture. • Office Supplies. • Technology.\n `Sub-Category` text, -- the sub-categories of products. • Bookcases. • Chairs. • Furnishings. • Tables. • Appliances. • Art. • Binders. • Envelopes. • Fasteners. • Labels. • Paper. • Storage. • Supplies. • Accessories. • Copiers. • Machines. • Phones.\n `Region` text, -- the region where products are sold. • Central:. • East:. • West:. • South:.\n primary key (\"Product ID\", Region)\n);\n\nCREATE TABLE west_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE central_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE south_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE east_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE people (\n `Customer ID` text, -- the id of the customers.\n `Customer Name` text, -- the name of the customers.\n `Segment` text, -- the segment that the customers belong to. • consumer. • home office: synonym: headquarter. • corporate.\n `Country` text, -- the country of people.\n `City` text, -- the city of people.\n `State` text, -- the state of people. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., New York --> NY.\n `Postal Code` integer, -- the postal code.\n `Region` text, -- the region of people. • Central:. • East:. • West:. • South:.\n primary key (\"Customer ID\", Region)\n);\n\nExternal Knowledge:\nslowest shipping speed refers to \"Ship Mode\" = 'Standard Class'\n\nQuestion:\nHow many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed?", + "question": "How many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed?", + "evidence": "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", + "db_id": "superstore", + "database_path": "../databases/superstore.sqlite", + "gold_sql": "WITH bergman AS (\n SELECT `Customer ID`\n FROM people\n WHERE `Customer Name` = 'Aaron Bergman'\n), all_orders AS (\n SELECT DISTINCT `Order ID`\n FROM central_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM west_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM east_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM south_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n)\nSELECT COUNT(*) AS orders_with_slowest_shipping\nFROM all_orders;", + "source_gold_sql": "WITH bergman AS (\n SELECT `Customer ID`\n FROM people\n WHERE `Customer Name` = 'Aaron Bergman'\n), all_orders AS (\n SELECT DISTINCT `Order ID`\n FROM central_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM west_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM east_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n UNION\n SELECT DISTINCT `Order ID`\n FROM south_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM bergman) AND `Ship Mode` = 'Standard Class'\n)\nSELECT COUNT(*) AS orders_with_slowest_shipping\nFROM all_orders;", + "source_gold_sql_sha256": "bf7c30de34a4c9ac8f0867e71f166e83ff91794572561bbfa0d4efb1a4704f48", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6705", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\norders refer to l_orderkey; shipped in 1998 refers to year(l_shipdate) = 1998;\n\nQuestion:\nHow many orders were shipped in 1998?", + "question": "How many orders were shipped in 1998?", + "evidence": "orders refer to l_orderkey; shipped in 1998 refers to year(l_shipdate) = 1998;", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT `l_orderkey`) FROM `lineitem` WHERE STRFTIME('%Y', `l_shipdate`) = '1998'", + "source_gold_sql": "SELECT COUNT(DISTINCT `l_orderkey`) FROM `lineitem` WHERE STRFTIME('%Y', `l_shipdate`) = '1998'", + "source_gold_sql_sha256": "ae0e659f362f1bc934aa71f8dced235bd736561c13c8f660b62c9a4c1ea48452", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6697", + "domain": "retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `c_custkey` integer, -- customer key. unique id number identifying the customer.\n `c_mktsegment` text, -- customer market segment. the segment of the customer.\n `c_nationkey` integer, -- customer nation key. the nation key number of the customer.\n `c_name` text, -- customer name. name of the customer.\n `c_address` text, -- customer address. address of the customer.\n `c_phone` text, -- customer phone. phone of the customer.\n `c_acctbal` real, -- customer account balance. account balance. if c_acctbal < 0: this account is in debt.\n `c_comment` text, -- customer comment. comment of the customer.\n PRIMARY KEY (c_custkey),\n FOREIGN KEY (c_nationkey) REFERENCES nation (n_nationkey) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE nation (\n `n_nationkey` integer, -- nation key. unique id number identifying the nation.\n `n_name` text, -- nation name. name of the nation.\n `n_regionkey` integer, -- nation region key. region key number of the nation.\n `n_comment` text, -- nation comment. comment description of nation.\n primary key (n_nationkey),\n foreign key (n_regionkey) references region (r_regionkey)\n);\n\nCREATE TABLE part (\n `p_partkey` integer, -- part key. unique id number identifying the part.\n `p_type` text, -- part type. type of part.\n `p_size` integer, -- part size. size number of part. larger number --> larger part.\n `p_brand` text, -- part brand. brand of part.\n `p_name` text, -- part name. name of part.\n `p_container` text, -- part container. container of part.\n `p_mfgr` text, -- part manufacturer. manufacturer of part.\n `p_retailprice` real, -- part retail price. retail price of part.\n `p_comment` text, -- part comment. comment description text of part.\n primary key (p_partkey)\n);\n\nCREATE TABLE lineitem (\n `l_shipdate` date, -- line item ship date. ship date of line item.\n `l_orderkey` integer, -- line item order key. order key number of line item.\n `l_discount` real, -- line item discount. discount of line item. 0.1: 10% off.\n `l_extendedprice` real, -- line item extended price. extended price of line item. full price before discount. discounted price = (l_extendedprice*(1-l_discount)).\n `l_suppkey` integer, -- line item suppkey. suppkey of line item.\n `l_quantity` integer, -- line item quantity. quantity of line item.\n `l_returnflag` text, -- line item return flag. return flag of line item. • “R” ? returned item. • “A” and \"N\": not returned item.\n `l_partkey` integer, -- line item part key. part key of line item.\n `l_linestatus` text, -- line item line status. line status of line item. NOT USEFUL.\n `l_tax` real, -- line item tax. tax of line item. charge = l_extendedprice * (1- l_discount) * (1+ l_tax).\n `l_commitdate` date, -- line item commit date. commit date of line item.\n `l_receiptdate` date, -- line item receipt date. receipt date of line item. freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n `l_shipmode` text, -- line item ship mode. ship mode of line item.\n `l_linenumber` integer, -- line item line number. unique id number identifying the line item.\n `l_shipinstruct` text, -- line item ship instruct. ship instruct of line item.\n `l_comment` text, -- line item comment. comment of line item.\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n);\n\nCREATE TABLE partsupp (\n `ps_partkey` integer, -- part supply part key. unique id number identifying the part key.\n `ps_suppkey` integer, -- part supply supply key. unique id number identifying the supply key.\n `ps_supplycost` real, -- part supply cost. cost number of the part supply. profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n `ps_availqty` integer, -- part supply available quantity. available quantity of the part supply. if ps_availqty < 10 --> closer to OOS (out of stock).\n `ps_comment` text, -- part supply comment. comment description of the part supply.\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n foreign key (ps_suppkey) references supplier (s_suppkey)\n);\n\nCREATE TABLE region (\n `r_regionkey` integer, -- region key. unique id number identifying the region.\n `r_name` text, -- region name. name of the region.\n `r_comment` text, -- region comment. comment description of the region.\n primary key (r_regionkey)\n);\n\nCREATE TABLE orders (\n `o_orderdate` date, -- order date. date of the order. earlier order date --> higher priority in delivery.\n `o_orderkey` integer, -- order key. unique id number identifying the order.\n `o_custkey` integer, -- order customer key. customer key of order.\n `o_orderpriority` text, -- order priority. priority rate of order. A smaller number means a higher priority: 0-Urgent.\n `o_shippriority` integer, -- order ship priority. ship priority of order. NOT USEFUL.\n `o_clerk` text, -- order clerk. clerk of order.\n `o_orderstatus` text, -- order status. status of order. NOT USEFUL.\n `o_totalprice` real, -- order total price. total price of the order.\n `o_comment` text, -- order comment. comment description of order.\n primary key (o_orderkey),\n foreign key (o_custkey) references customer (c_custkey)\n);\n\nCREATE TABLE supplier (\n `s_suppkey` integer, -- supply key. unique id number identifying the supply.\n `s_nationkey` integer, -- supplier nation key. nation key of the supply.\n `s_comment` text, -- supplier comment. comment description of the comment.\n `s_name` text, -- supplier name. name of the supplier.\n `s_address` text, -- supplier address. address of the supplier.\n `s_phone` text, -- supplier phone. phone number of the supplier.\n `s_acctbal` real, -- supplier account balance. account balance of the supplier. if c_acctbal < 0: this account is in debt.\n primary key (s_suppkey),\n foreign key (s_nationkey) references nation (n_nationkey)\n);\n\nExternal Knowledge:\nMULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderpriority = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';\n\nQuestion:\nClerk#000000936 dealt with a \"Not Specified\" order on 1995/3/13, what was the charge for the part of the order shipped by truck?", + "question": "Clerk#000000936 dealt with a \"Not Specified\" order on 1995/3/13, what was the charge for the part of the order shipped by truck?", + "evidence": "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderpriority = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", + "db_id": "retails", + "database_path": "../databases/retails.sqlite", + "gold_sql": "SELECT SUM(l_extendedprice * (1 - l_discount) * (1 + l_tax)) AS charge\nFROM orders\nJOIN lineitem ON o_orderkey = l_orderkey\nWHERE o_clerk = 'Clerk#000000936'\n AND o_orderdate = '1995-03-13'\n AND o_orderpriority = '4-NOT SPECIFIED'\n AND l_shipmode = 'TRUCK';", + "source_gold_sql": "SELECT SUM(l_extendedprice * (1 - l_discount) * (1 + l_tax)) AS charge\nFROM orders\nJOIN lineitem ON o_orderkey = l_orderkey\nWHERE o_clerk = 'Clerk#000000936'\n AND o_orderdate = '1995-03-13'\n AND o_orderpriority = '4-NOT SPECIFIED'\n AND l_shipmode = 'TRUCK';", + "source_gold_sql_sha256": "753f89d7f71a9d290db0f1c716e3dc5e98f9aea0b8f717cc38abb84d63d26e02", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2164", + "domain": "world_development_indicators", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE SeriesNotes (\n `Seriescode` text, -- Series code. code identifying the series.\n `Year` text, -- year.\n `Description` text, -- Description of series.\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);\n\nCREATE TABLE Indicators (\n `CountryName` text, -- Country code. code identifying unique countries.\n `CountryCode` text, -- Series code. Series code of countries.\n `IndicatorName` text, -- Indicator Name. indicator name.\n `IndicatorCode` text, -- Indicator Code. indicator code.\n `Year` integer, -- year.\n `Value` integer, -- value.\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Footnotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Year` text, -- Year.\n `Description` text, -- Description of country footnotes.\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE CountryNotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Description` text, -- description.\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Series (\n `SeriesCode` text, -- Series Code. unique code identifying series.\n `Topic` text, -- topic of series.\n `IndicatorName` text, -- Indicator Name.\n `ShortDefinition` text, -- Short Definition. Short Definition of series.\n `LongDefinition` text, -- Long Definition. Long Definition of series.\n `UnitOfMeasure` text, -- Unit Of Measure.\n `Periodicity` text, -- No description.\n `BasePeriod` text, -- Base Period. a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production.\n `OtherNotes` integer, -- Other Notes.\n `AggregationMethod` text, -- Aggregation Method.\n `LimitationsAndExceptions` text, -- Limitations And Exceptions.\n `NotesFromOriginalSource` text, -- Notes From Original Source.\n `GeneralComments` text, -- General Comments.\n `Source` text, -- source of this data.\n `StatisticalConceptAndMethodology` text, -- Statistical Concept And Methodology.\n `DevelopmentRelevance` text, -- Development Relevance.\n `RelatedSourceLinks` text, -- Related Source Links.\n `OtherWebLinks` integer, -- Other Web Links.\n `RelatedIndicators` integer, -- Related Indicators.\n `LicenseType` text, -- License Type.\n primary key (SeriesCode)\n);\n\nCREATE TABLE Country (\n `CountryCode` text, -- Country Code. unique code identifying countries.\n `ShortName` text, -- Short Name. Short names of countries.\n `TableName` text, -- Table Name. table names of countries.\n `LongName` text, -- Long Name. long or full name of countries.\n `Alpha2Code` text, -- Alpha to Code. 2 digit code of countries.\n `CurrencyUnit` text, -- Currency Unit. Currency Unit used in this country.\n `SpecialNotes` text, -- Special Notes.\n `Region` text, -- region that country belongs to.\n `IncomeGroup` text, -- Income Group. income level of countries.\n `Wb2Code` text, -- world bank to code.\n `NationalAccountsBaseYear` text, -- National Accounts Base Year. the year used as the base period for constant price calculations in the country's national accounts.\n `NationalAccountsReferenceYear` text, -- National Accounts Reference Year.\n `SnaPriceValuation` text, -- SNA Price Valuation.\n `LendingCategory` text, -- Lending Category. Lending category. • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n `OtherGroups` text, -- Other groups. other groups. • HIPC: Heavily Indebted Poor Countries. • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n `SystemOfNationalAccounts` text, -- System Of National Accounts.\n `AlternativeConversionFactor` text, -- Alternative Conversion Factor. Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method.\n `PppSurveyYear` text, -- purchasing power parity survey year.\n `BalanceOfPaymentsManualInUse` text, -- Balance Of Payments Manual In Use.\n `ExternalDebtReportingStatus` text, -- External Debt Reporting Status. • Actual. • Preliminary. • Estimate. commonsense reasoning:. If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished. if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished.\n `SystemOfTrade` text, -- System Of Trade.\n `GovernmentAccountingConcept` text, -- Government Accounting Concept.\n `ImfDataDisseminationStandard` text, -- International Monetory Fund Data Dissemination Standard. IMF Standards for Data Dissemination.\n `LatestPopulationCensus` text, -- Latest Population Census.\n `LatestHouseholdSurvey` text, -- Latest Household Survey.\n `SourceOfMostRecentIncomeAndExpenditureData` text, -- Source Of Most Recent Income And Expenditure Data.\n `VitalRegistrationComplete` text, -- Vital Registration Complete.\n `LatestAgriculturalCensus` text, -- Latest Agricultural Census.\n `LatestIndustrialData` integer, -- Latest Industrial Data.\n `LatestTradeData` integer, -- Latest Trade Data.\n `LatestWaterWithdrawalData` integer, -- Latest Water Withdrawal Data.\n primary key (CountryCode)\n);\n\nExternal Knowledge:\ndo not have special notes implies SpecialNotes are NULL;\n\nQuestion:\nHow many of the countries do not have special notes?", + "question": "How many of the countries do not have special notes?", + "evidence": "do not have special notes implies SpecialNotes are NULL;", + "db_id": "world_development_indicators", + "database_path": "../databases/world_development_indicators.sqlite", + "gold_sql": "SELECT COUNT(LongName) FROM Country WHERE SpecialNotes = ''", + "source_gold_sql": "SELECT COUNT(LongName) FROM Country WHERE SpecialNotes = ''", + "source_gold_sql_sha256": "e57784824c909db160fc3ab367494f22e697ac7b53cbcc2c8d141e68a533011a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5826", + "domain": "airline", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Airports (\n `Code` text, -- IATA code of the air airports.\n `Description` text, -- the description of airports.\n primary key (Code)\n);\n\nCREATE TABLE Airlines (\n `FL_DATE` text, -- flight date.\n `OP_CARRIER_AIRLINE_ID` integer, -- operator carrier airline id.\n `TAIL_NUM` text, -- tail number. plane's tail number.\n `OP_CARRIER_FL_NUM` integer, -- operator carrier flight number.\n `ORIGIN_AIRPORT_ID` integer, -- origin airport id.\n `ORIGIN_AIRPORT_SEQ_ID` integer, -- origin airport sequence id.\n `ORIGIN_CITY_MARKET_ID` integer, -- origin city market id.\n `ORIGIN` text, -- airport of origin. • the origin city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `DEST_AIRPORT_ID` integer, -- destination airport id. ID of the destination airport.\n `DEST_AIRPORT_SEQ_ID` integer, -- destination airport sequence id.\n `DEST_CITY_MARKET_ID` integer, -- destination city market id.\n `DEST` text, -- destination. Destination airport. • the dest city could be inferred by this code:. you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia. to quickly check.\n `CRS_DEP_TIME` integer, -- scheduled local departure time.\n `DEP_TIME` integer, -- departure time. Flight departure time. stored as the integer.\n `DEP_DELAY` integer, -- Departure delay. Departure delay indicator. in minutes. • if this value is positive: it means this flight delays; if the value is negative, it means this flight departs in advance (-4). • if this value <= 0, it means this flight departs on time.\n `DEP_DELAY_NEW` integer, -- departure delay new. not useful.\n `ARR_TIME` integer, -- arrival time. Flight arrival time.\n `ARR_DELAY` integer, -- arrival delay. arrival delay time. in minutes. • if this value is positive: it means this flight will arrives late (delay); If the value is negative, this flight arrives earlier than scheduled. (-4). • if this value <= 0, it means this flight arrives on time.\n `ARR_DELAY_NEW` integer, -- arrival delay new. not useful.\n `CANCELLED` integer, -- Flight cancellation indicator.\n `CANCELLATION_CODE` text, -- cancellation code. C--> A: more serious reasons lead to this cancellation.\n `CRS_ELAPSED_TIME` integer, -- scheduled elapsed time.\n `ACTUAL_ELAPSED_TIME` integer, -- actual elapsed time. if ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME: this flight is faster than scheduled; if ACTUAL_ELAPSED_TIME > CRS_ELAPSED_TIME: this flight is slower than scheduled.\n `CARRIER_DELAY` integer, -- carrier delay. minutes.\n `WEATHER_DELAY` integer, -- weather delay. delay caused by the wheather problem. minutes.\n `NAS_DELAY` integer, -- National Aviavtion System delay. delay, in minutes, attributable to the National Aviation System. minutes.\n `SECURITY_DELAY` integer, -- security delay. delay attribute to security. minutes.\n `LATE_AIRCRAFT_DELAY` integer, -- late aircraft delay. delay attribute to late aircraft. minutes.\n FOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n FOREIGN KEY (DEST) REFERENCES Airports(Code),\n FOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code)\n);\n\nCREATE TABLE Air Carriers (\n `Code` integer, -- the code of the air carriers.\n `Description` text, -- the description of air carriers.\n primary key (Code)\n);\n\nExternal Knowledge:\non 2018/8/1 refers to FL_DATE = '2018/8/1';  delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;\n\nQuestion:\nFor the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?", + "question": "For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?", + "evidence": "on 2018/8/1 refers to FL_DATE = '2018/8/1';  delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", + "db_id": "airline", + "database_path": "../databases/airline.sqlite", + "gold_sql": "WITH dest_delay AS (SELECT DEST, DEP_DELAY FROM Airlines WHERE FL_DATE = '2018/8/1')\nSELECT T1.Description FROM Airports AS T1 INNER JOIN dest_delay AS T2 ON T1.Code = T2.DEST WHERE T2.DEP_DELAY = (SELECT MAX(DEP_DELAY) FROM dest_delay)", + "source_gold_sql": "WITH dest_delay AS (SELECT DEST, DEP_DELAY FROM Airlines WHERE FL_DATE = '2018/8/1')\nSELECT T1.Description FROM Airports AS T1 INNER JOIN dest_delay AS T2 ON T1.Code = T2.DEST WHERE T2.DEP_DELAY = (SELECT MAX(DEP_DELAY) FROM dest_delay)", + "source_gold_sql_sha256": "95e9be79fde13d20c88f95a3cb5e7dc158c88bbbfab62ddd6d8c72836815d7d6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:755", + "domain": "movie", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movie (\n `MovieID` integer, -- movie id. the unique id for the movie.\n `Title` text, -- the title of the movie.\n `MPAA Rating` text, -- motion picture association of america rating. MPAA rating of the movie. MPAA rating is the movie rating for parents to use as a guide to determine the appropriateness of a film's content for children and teenagers. • rated G: General audiences – All ages admitted. • rated PG: Parental guidance suggested – Some material may not be suitable for pre-teenagers. • rated R: Restricted – Under 17 requires accompanying parent or adult guardian. • rated X: No one under 17 admitted.\n `Budget` integer, -- the budget of the movie. the unit is dollar.\n `Gross` integer, -- the gross of the movie.\n `Release Date` text, -- release date. yyyy-mm-dd.\n `Genre` text, -- the genre of the movie.\n `Runtime` integer, -- the runtime of the movie.\n `Rating` real, -- the rating of the movie. 0.0 - 10.0. Higher ratings mean higher quality and better response.\n `Rating Count` integer, -- rating count. the number of the ratings.\n `Summary` text, -- the summary of the movie.\n primary key (MovieID)\n);\n\nCREATE TABLE characters (\n `MovieID` integer, -- movie id. the unique id for the movie.\n `ActorID` integer, -- actor id. the unique id for the actor.\n `Character Name` text, -- character name. the name of the character.\n `creditOrder` integer, -- credit order. order of the character in the credit list.\n `pay` text, -- the salary of the character.\n `screentime` text, -- the screentime of the character. Screentime is directly proportional to the importance of the characters.\n primary key (MovieID, ActorID),\n foreign key (ActorID) references actor(ActorID),\n foreign key (MovieID) references movie(MovieID)\n);\n\nCREATE TABLE actor (\n `ActorID` integer, -- actor id. the unique id for the actor.\n `Name` text, -- actor's name.\n `Date of Birth` date, -- date of birth. actor's birth date.\n `Birth City` text, -- birth city. actor's birth city.\n `Birth Country` text, -- birth country. actor's birth country.\n `Height (Inches)` integer, -- height inches. actor's height. the unit is inch.\n `Biography` text, -- actor's biography.\n `Gender` text, -- actor's gender.\n `Ethnicity` text, -- actor's ethnicity.\n `NetWorth` text, -- actor's networth. The actor with more networth is richer.\n primary key (ActorID)\n);\n\nExternal Knowledge:\nNo.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'\n\nQuestion:\nWho played the No.2 character in the credit list of the movie \"American Hustle\"? List the name of the actor.", + "question": "Who played the No.2 character in the credit list of the movie \"American Hustle\"? List the name of the actor.", + "evidence": "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", + "db_id": "movie", + "database_path": "../databases/movie.sqlite", + "gold_sql": "SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'American Hustle' AND T2.creditOrder = '2'", + "source_gold_sql": "SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'American Hustle' AND T2.creditOrder = '2'", + "source_gold_sql_sha256": "b6c4758844fdc79f04ad02a95ac0566d04e1616ea813e60695d4d185e9e8c15a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8837", + "domain": "food_inspection", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspections (\n `business_id` integer, -- business id. the unique id of the business.\n `score` integer, -- the inspection score. The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n `date` date, -- the inspection date.\n `type` text, -- the inspection type.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE violations (\n `business_id` integer, -- business id. the unique id of the business.\n `date` date, -- the date of the violation.\n `violation_type_id` text, -- violation type id. the unique type id of the violation.\n `risk_category` text, -- risk category. risk category. High / Moderate / Low risk. High risks have more safety and health hazards than low risks.\n `description` text, -- the description of the violation.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE businesses (\n `business_id` integer, -- business id. the unique id of the business.\n `name` text, -- the name of the eatery.\n `address` text, -- the eatery address.\n `city` text, -- the city where the eatery is located in.\n `postal_code` text, -- postal code. the postal code of the eatery.\n `latitude` real, -- the latitude of the position.\n `longitude` real, -- the longitude of the position. the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}.\n `phone_number` integer, -- phone number. the phone number of the eatery.\n `tax_code` text, -- tax code. the tax code of the eatery.\n `business_certificate` integer, -- business certificate. the business certificate number.\n `application_date` date, -- application date. the application date of the eatery.\n `owner_name` text, -- owner name. the owner's name.\n `owner_address` text, -- owner address. the owner's address.\n `owner_city` text, -- owner city. the city where the owner is located.\n `owner_state` text, -- owner state. the state where the owner is located.\n `owner_zip` text, -- owner zip. the zip code of the owner.\n PRIMARY KEY (business_id)\n);\n\nExternal Knowledge:\neateries which got inspection score under 50 refer to business_id where score < 50;\n\nQuestion:\nList the names and business certificates of the eateries which got inspection score under 50.", + "question": "List the names and business certificates of the eateries which got inspection score under 50.", + "evidence": "eateries which got inspection score under 50 refer to business_id where score < 50;", + "db_id": "food_inspection", + "database_path": "../databases/food_inspection.sqlite", + "gold_sql": "SELECT DISTINCT b.`name`, b.`business_certificate`\nFROM `businesses` b\nJOIN `inspections` i ON b.`business_id` = i.`business_id`\nWHERE i.`score` < 50;", + "source_gold_sql": "SELECT DISTINCT b.`name`, b.`business_certificate`\nFROM `businesses` b\nJOIN `inspections` i ON b.`business_id` = i.`business_id`\nWHERE i.`score` < 50;", + "source_gold_sql_sha256": "d3f39db714da0188d6b7d00f6d6510fcf3ce23c706e598398bc490cd92baa47f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2230", + "domain": "world_development_indicators", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE SeriesNotes (\n `Seriescode` text, -- Series code. code identifying the series.\n `Year` text, -- year.\n `Description` text, -- Description of series.\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);\n\nCREATE TABLE Indicators (\n `CountryName` text, -- Country code. code identifying unique countries.\n `CountryCode` text, -- Series code. Series code of countries.\n `IndicatorName` text, -- Indicator Name. indicator name.\n `IndicatorCode` text, -- Indicator Code. indicator code.\n `Year` integer, -- year.\n `Value` integer, -- value.\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Footnotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Year` text, -- Year.\n `Description` text, -- Description of country footnotes.\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE CountryNotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Description` text, -- description.\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Series (\n `SeriesCode` text, -- Series Code. unique code identifying series.\n `Topic` text, -- topic of series.\n `IndicatorName` text, -- Indicator Name.\n `ShortDefinition` text, -- Short Definition. Short Definition of series.\n `LongDefinition` text, -- Long Definition. Long Definition of series.\n `UnitOfMeasure` text, -- Unit Of Measure.\n `Periodicity` text, -- No description.\n `BasePeriod` text, -- Base Period. a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production.\n `OtherNotes` integer, -- Other Notes.\n `AggregationMethod` text, -- Aggregation Method.\n `LimitationsAndExceptions` text, -- Limitations And Exceptions.\n `NotesFromOriginalSource` text, -- Notes From Original Source.\n `GeneralComments` text, -- General Comments.\n `Source` text, -- source of this data.\n `StatisticalConceptAndMethodology` text, -- Statistical Concept And Methodology.\n `DevelopmentRelevance` text, -- Development Relevance.\n `RelatedSourceLinks` text, -- Related Source Links.\n `OtherWebLinks` integer, -- Other Web Links.\n `RelatedIndicators` integer, -- Related Indicators.\n `LicenseType` text, -- License Type.\n primary key (SeriesCode)\n);\n\nCREATE TABLE Country (\n `CountryCode` text, -- Country Code. unique code identifying countries.\n `ShortName` text, -- Short Name. Short names of countries.\n `TableName` text, -- Table Name. table names of countries.\n `LongName` text, -- Long Name. long or full name of countries.\n `Alpha2Code` text, -- Alpha to Code. 2 digit code of countries.\n `CurrencyUnit` text, -- Currency Unit. Currency Unit used in this country.\n `SpecialNotes` text, -- Special Notes.\n `Region` text, -- region that country belongs to.\n `IncomeGroup` text, -- Income Group. income level of countries.\n `Wb2Code` text, -- world bank to code.\n `NationalAccountsBaseYear` text, -- National Accounts Base Year. the year used as the base period for constant price calculations in the country's national accounts.\n `NationalAccountsReferenceYear` text, -- National Accounts Reference Year.\n `SnaPriceValuation` text, -- SNA Price Valuation.\n `LendingCategory` text, -- Lending Category. Lending category. • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n `OtherGroups` text, -- Other groups. other groups. • HIPC: Heavily Indebted Poor Countries. • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n `SystemOfNationalAccounts` text, -- System Of National Accounts.\n `AlternativeConversionFactor` text, -- Alternative Conversion Factor. Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method.\n `PppSurveyYear` text, -- purchasing power parity survey year.\n `BalanceOfPaymentsManualInUse` text, -- Balance Of Payments Manual In Use.\n `ExternalDebtReportingStatus` text, -- External Debt Reporting Status. • Actual. • Preliminary. • Estimate. commonsense reasoning:. If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished. if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished.\n `SystemOfTrade` text, -- System Of Trade.\n `GovernmentAccountingConcept` text, -- Government Accounting Concept.\n `ImfDataDisseminationStandard` text, -- International Monetory Fund Data Dissemination Standard. IMF Standards for Data Dissemination.\n `LatestPopulationCensus` text, -- Latest Population Census.\n `LatestHouseholdSurvey` text, -- Latest Household Survey.\n `SourceOfMostRecentIncomeAndExpenditureData` text, -- Source Of Most Recent Income And Expenditure Data.\n `VitalRegistrationComplete` text, -- Vital Registration Complete.\n `LatestAgriculturalCensus` text, -- Latest Agricultural Census.\n `LatestIndustrialData` integer, -- Latest Industrial Data.\n `LatestTradeData` integer, -- Latest Trade Data.\n `LatestWaterWithdrawalData` integer, -- Latest Water Withdrawal Data.\n primary key (CountryCode)\n);\n\nExternal Knowledge:\naverage number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980\n\nQuestion:\nWhat is the average number of passengers carried via air transport per year by Bulgaria between 1970 to 1980? Indicate the country's system of trade.", + "question": "What is the average number of passengers carried via air transport per year by Bulgaria between 1970 to 1980? Indicate the country's system of trade.", + "evidence": "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", + "db_id": "world_development_indicators", + "database_path": "../databases/world_development_indicators.sqlite", + "gold_sql": "SELECT AVG(T1.Value), T2.SystemOfTrade FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Air transport, passengers carried' AND T1.Year >= 1970 AND T1.Year < 1981 AND T1.CountryName = 'Bulgaria'", + "source_gold_sql": "SELECT AVG(T1.Value), T2.SystemOfTrade FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Air transport, passengers carried' AND T1.Year >= 1970 AND T1.Year < 1981 AND T1.CountryName = 'Bulgaria'", + "source_gold_sql_sha256": "012c57c91c0b4b58c79931d54a85aaba08551f0640ed2510858580215b911b44", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9316", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n'Sasebo' is a city\n\nQuestion:\nWhich country does Sasebo belong to?", + "question": "Which country does Sasebo belong to?", + "evidence": "'Sasebo' is a city", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo'", + "source_gold_sql": "SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo'", + "source_gold_sql_sha256": "446e27a62d0af2c1e0c81bf4150af2ba9697a15e727035e72f54ad9fa8670cf4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6275", + "domain": "coinmarketcap", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE coins (\n `id` integer, -- unique id number identifying coins.\n `name` text, -- name of coins.\n `slug` text, -- slug names of coins.\n `symbol` text, -- symbol of names of coins.\n `status` text, -- status of coins. commonsense reasoning:. • active: this coin is active and available for transactions. • untracked: this coin cannot be tracked. • inactive: this coin is not available for transactions. • extinct: this coin has been disappeared.\n `category` text, -- category of coins. commonsense reasoning:. • token:. • coin:.\n `description` text, -- description of coins.\n `subreddit` text, -- name of coins on reddit.\n `notice` text, -- notice if any.\n `tags` text, -- tags of coins.\n `tag_names` text, -- tag names of coins.\n `website` text, -- website introduction of coins.\n `platform_id` integer, -- platform id. id number of the platform.\n `date_added` text, -- date added. the added date.\n `date_launched` text, -- date lanched. lanched date.\n primary key (id)\n);\n\nCREATE TABLE historical (\n `date` date, -- transaction date.\n `coin_id` integer, -- id number referring to coins.\n `cmc_rank` integer, -- coinmarketcap rank. CMC rank is a metric used by CoinMarketCap to rank the relative popularity of different cryptocurrencies.\n `market_cap` real, -- Market capitalization. Market capitalization refers to how much a coin is worth as determined by the coin market. dollars. market cap (latest trade price x circulating supply).\n `price` real, -- how much is a coin. dollars.\n `open` real, -- the price at which a cryptocurrency (coin) opens at a time period. dollars. commonsense reasoning:. if null or empty, it means this coins has not opened yet today.\n `high` real, -- highest price. dollars.\n `low` real, -- lowest price. commonsense reasoning:. 1. It's the best time to purchase this coin. 2. users can make the max profit today by computation: high - low.\n `close` real, -- the price at which a cryptocurrency (coin) closes at a time period, for example at the end of the day.\n `time_high` text, -- the time to achieve highest price.\n `time_low` text, -- the time to achieve lowest price.\n `volume_24h` real, -- the total value of cryptocurrency coined traded in the past 24 hours.\n `percent_change_1h` real, -- percent change 1h. price percentage change in the first hour. The change is the difference (in percent) between the price now compared to the price around this time 1 hours ago.\n `percent_change_24h` real, -- percent change 24h. price percentage change in the first 24 hours. The change is the difference (in percent) between the price now compared to the price around this time 24 hours ago.\n `percent_change_7d` real, -- percent change 7d. price percentage change in the first 7 days. The change is the difference (in percent) between the price now compared to the price around this time 7 days ago.\n `circulating_supply` real, -- circulating supply. the best approximation of the number of coins that are circulating in the market and in the general public's hands.\n `total_supply` real, -- total supply. the total amount of coins in existence right now.\n `max_supply` real, -- max supply. Max Supply is the best approximation of the maximum amount of coins that will ever exist in the lifetime of the cryptocurrency. commonsense reasoning:. the number of coins verifiably burned so far = max_supply - total_supply.\n `num_market_pairs` integer, -- number market pairs. number of market pairs across all exchanges trading each currency. commonsense reasoning:. active coins that have gone inactive can easily be identified as having a num_market_pairs of 0.\n\n);\n\nExternal Knowledge:\naverage price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013\n\nQuestion:\nWhat was the average price of a Bitcoin in the year 2013?", + "question": "What was the average price of a Bitcoin in the year 2013?", + "evidence": "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", + "db_id": "coinmarketcap", + "database_path": "../databases/coinmarketcap.sqlite", + "gold_sql": "SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE STRFTIME('%Y', T2.date) = '2013' AND T1.name = 'Bitcoin'", + "source_gold_sql": "SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE STRFTIME('%Y', T2.date) = '2013' AND T1.name = 'Bitcoin'", + "source_gold_sql_sha256": "6c45fd19c0664f8aaeef5cbd26c93bd433ca5b6a677d3379d21f8e1c3ce58b05", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7821", + "domain": "world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE CountryLanguage (\n `CountryCode` text, -- Country Code. The unique code for country.\n `Language` text, -- Country language.\n `IsOfficial` text, -- Is Official. Information on whether the language is official in a given country. T / F.\n `Percentage` real, -- Percentage of language use.\n PRIMARY KEY (CountryCode,Language),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE City (\n `ID` integer, -- the unique id for the city.\n `Name` text, -- the name of the city.\n `CountryCode` text, -- Country Code. the country code of the country that the city is belonged.\n `District` text, -- the district where the city locates.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n primary key (ID),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE Country (\n `Code` text, -- the unique country code of the country.\n `Name` text, -- the country name.\n `Continent` text, -- the continent that the country locates.\n `Region` text, -- the region that the country locates.\n `SurfaceArea` real, -- Surface Area. the surface area of the country.\n `IndepYear` integer, -- Independence Year. the year that the country declared independence.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n `LifeExpectancy` real, -- Life Expectancy. the life expectancy at birth of the country. Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change.\n `GNP` real, -- Gross National Product. the GNP of the country. GNP measures the total monetary value of the output produced by a country's residents.\n `GNPOld` real, -- Gross National Product Old. Gross national product - old value.\n `LocalName` text, -- Local Name. The country's local name.\n `GovernmentForm` text, -- Government Form. The country's goverment form. Republic: governmentform contains \"Republic\".\n `HeadOfState` text, -- Head Of State. The head of state full name.\n `Capital` integer, -- The country's capital. if the capital is null, it means this country doesn't have a city where a region's government is located.\n `Code2` text, -- The second country code.\n PRIMARY KEY (Code)\n);\n\nExternal Knowledge:\naverage population = AVG(Population);\n\nQuestion:\nCalculate the average population per city in Karnataka district.", + "question": "Calculate the average population per city in Karnataka district.", + "evidence": "average population = AVG(Population);", + "db_id": "world", + "database_path": "../databases/world.sqlite", + "gold_sql": "SELECT AVG(`Population`) FROM `City` WHERE `District` = 'Karnataka'", + "source_gold_sql": "SELECT AVG(`Population`) FROM `City` WHERE `District` = 'Karnataka'", + "source_gold_sql_sha256": "30e8d58597bb662c15d0bebde02e13cd1761eed063d5d085a6f481325bd02b77", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2980", + "domain": "shakespeare", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE chapters (\n `id` integer auto_increment, -- unique id number identifying the chapter.\n `Act` integer, -- An act is a major division of a theatre work, including a play, film, opera, or musical theatre. An act can consist of one or more scenes.\n `Scene` integer, -- A scene is a dramatic part of a story, at a specific time and place, between specific characters.\n `Description` text, -- textual description of the chapter.\n `work_id` integer, -- work id. id number identifying the work.\n primary key (id)\n);\n\nCREATE TABLE paragraphs (\n `id` integer , -- unique id number identifying the paragraphs.\n `ParagraphNum` integer, -- paragraph number. unique id number identifying the paragraph number.\n `PlainText` text, -- Plain Text. main content of the paragraphs.\n `character_id` integer, -- character id. unique id number identifying the mentioned character.\n `chapter_id` integer, -- chapter id. unique id number identifying the related chapter. if number of the paragraphs is > 150, then it means this is a long chapter.\n primary key (id)\n);\n\nCREATE TABLE characters (\n `id` integer, -- unique id number identifying the characters.\n `CharName` text, -- char name. character name.\n `Abbrev` text, -- abbreviation. abbreviation. An abbreviation is a shortened form of a word or phrase.\n `Description` text, -- description of the character.\n primary key (id)\n);\n\nCREATE TABLE works (\n `id` integer, -- unique id number identifying the work.\n `Title` text, -- title of the work. the short title or abbreviated title.\n `LongTitle` text, -- Long Title. full title of the work.\n `Date` integer, -- character id. date of the work.\n `GenreType` text, -- genre type. the type of the genere.\n primary key (id)\n);\n\nExternal Knowledge:\nAct No.2 refers to Act = '2'; Scene No.2  refers to Scene = '2'; Midsummer Night's Dream refers to Title = 'Midsummer Night''s Dream'\n\nQuestion:\nGive the description for the Act No.2, Scene No.2 of Midsummer Night's Dream.", + "question": "Give the description for the Act No.2, Scene No.2 of Midsummer Night's Dream.", + "evidence": "Act No.2 refers to Act = '2'; Scene No.2  refers to Scene = '2'; Midsummer Night's Dream refers to Title = 'Midsummer Night''s Dream'", + "db_id": "shakespeare", + "database_path": "../databases/shakespeare.sqlite", + "gold_sql": "SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = '2' AND T2.Scene = '2' AND T1.Title = 'Midsummer Night''s Dream'", + "source_gold_sql": "SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = '2' AND T2.Scene = '2' AND T1.Title = 'Midsummer Night''s Dream'", + "source_gold_sql_sha256": "8316e8ae9ddeabf45ef87c4d16882eb1c44a855fca74baddebab8dce121730e0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3218", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\ndonor \"000eebf28658900e63b538cf8a73afbd\" refers to donor_acctid = '000eebf28658900e63b538cf8a73afbd'; highest poverty level refers to poverty_level = 'highest poverty';\n\nQuestion:\nAmong the schools donated by donor \"000eebf28658900e63b538cf8a73afbd\",how many schools whose poverty level are highest?", + "question": "Among the schools donated by donor \"000eebf28658900e63b538cf8a73afbd\",how many schools whose poverty level are highest?", + "evidence": "donor \"000eebf28658900e63b538cf8a73afbd\" refers to donor_acctid = '000eebf28658900e63b538cf8a73afbd'; highest poverty level refers to poverty_level = 'highest poverty';", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.schoolid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.poverty_level = 'highest poverty' AND T2.donor_acctid = '000eebf28658900e63b538cf8a73afbd'", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.schoolid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.poverty_level = 'highest poverty' AND T2.donor_acctid = '000eebf28658900e63b538cf8a73afbd'", + "source_gold_sql_sha256": "0ce635b07d410931e589b7cb0cccd5feb03e8693c90e95b280999b081609c866", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2362", + "domain": "superstore", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE product (\n `Product ID` text, -- the id of products.\n `Product Name` text, -- the name of products.\n `Category` text, -- the categories of products. • Furniture. • Office Supplies. • Technology.\n `Sub-Category` text, -- the sub-categories of products. • Bookcases. • Chairs. • Furnishings. • Tables. • Appliances. • Art. • Binders. • Envelopes. • Fasteners. • Labels. • Paper. • Storage. • Supplies. • Accessories. • Copiers. • Machines. • Phones.\n `Region` text, -- the region where products are sold. • Central:. • East:. • West:. • South:.\n primary key (\"Product ID\", Region)\n);\n\nCREATE TABLE west_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE central_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE south_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE east_superstore (\n `Row ID` integer, -- row id. the unique id for rows.\n `Order ID` text, -- order id. the unique identifier for the order.\n `Order Date` date, -- order date. the date of the order. yyyy-mm-dd.\n `Ship Date` date, -- ship date. the date of the shipment. yyyy-mm-dd. 'shipment time' refers to the time interval between order_date and ship_date.\n `Ship Mode` text, -- ship mode. the ship mode of the order. First Class / Second Class / Standard Class. Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n `Customer ID` text, -- customer id. the id of the customer.\n `Region` text, -- region of the customer's address.\n `Product ID` text, -- product id. the id of the product.\n `Sales` real, -- the sales of the product.\n `Quantity` integer, -- the quantity of the product.\n `Discount` real, -- the discount of the product. original price = sales / (1- discount).\n `Profit` real, -- the profit that the company got by selling the product. total cost of products = sales / (1- discount) * quantity - profit. deficiency: if the value is negative.\n primary key (\"Row),\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);\n\nCREATE TABLE people (\n `Customer ID` text, -- the id of the customers.\n `Customer Name` text, -- the name of the customers.\n `Segment` text, -- the segment that the customers belong to. • consumer. • home office: synonym: headquarter. • corporate.\n `Country` text, -- the country of people.\n `City` text, -- the city of people.\n `State` text, -- the state of people. please mention its full name in the question, by referring to. https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. e.g., New York --> NY.\n `Postal Code` integer, -- the postal code.\n `Region` text, -- the region of people. • Central:. • East:. • West:. • South:.\n primary key (\"Customer ID\", Region)\n);\n\nExternal Knowledge:\nDarren Powers is the \"Customer Name\"; name of the product refers to \"Product Name\"; recently refers to MAX(\"Order Date\")\n\nQuestion:\nWhat are the names of the products that were ordered recently by Darren Powers?", + "question": "What are the names of the products that were ordered recently by Darren Powers?", + "evidence": "Darren Powers is the \"Customer Name\"; name of the product refers to \"Product Name\"; recently refers to MAX(\"Order Date\")", + "db_id": "superstore", + "database_path": "../databases/superstore.sqlite", + "gold_sql": "WITH all_orders AS (SELECT `Order Date`, `Product ID`, `Region` FROM central_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM east_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM west_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM south_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') ) SELECT p.`Product Name` FROM all_orders ao JOIN product p ON p.`Product ID` = ao.`Product ID` AND p.`Region` = ao.`Region` WHERE ao.`Order Date` = ( SELECT MAX(`Order Date`) FROM all_orders );", + "source_gold_sql": "WITH all_orders AS (SELECT `Order Date`, `Product ID`, `Region` FROM central_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM east_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM west_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') UNION ALL SELECT `Order Date`, `Product ID`, `Region` FROM south_superstore WHERE `Customer ID` IN (SELECT `Customer ID` FROM people WHERE `Customer Name` = 'Darren Powers') ) SELECT p.`Product Name` FROM all_orders ao JOIN product p ON p.`Product ID` = ao.`Product ID` AND p.`Region` = ao.`Region` WHERE ao.`Order Date` = ( SELECT MAX(`Order Date`) FROM all_orders );", + "source_gold_sql_sha256": "c1fbbb5e7756ebc0286e0b12b428065fdb4d0253f5492b636452d2622c51e31b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1120", + "domain": "talkingdata", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE app_all (\n `app_id` integer, -- No description.\n PRIMARY KEY (app_id)\n);\n\nCREATE TABLE sample_submission (\n `device_id` integer, -- No description.\n `F23-` real, -- No description.\n `F24-26` real, -- No description.\n `F27-28` real, -- No description.\n `F29-32` real, -- No description.\n `F33-42` real, -- No description.\n `F43+` real, -- No description.\n `M22-` real, -- No description.\n `M23-26` real, -- No description.\n `M27-28` real, -- No description.\n `M29-31` real, -- No description.\n `M32-38` real, -- No description.\n `M39+` real, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE phone_brand_device_model2 (\n `device_id` integer, -- device id. the id number of the device.\n `phone_brand` text, -- phone brand. phone_brand has duplicated values since some device models belong to the same brand.\n `device_model` text, -- device model. phone_brand has duplicated values since some device models belong to the same brand.\n PRIMARY KEY (device_id,phone_brand,device_model)\n);\n\nCREATE TABLE gender_age_test (\n `device_id` integer, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE app_events_relevant (\n `event_id` integer, -- No description.\n `app_id` integer, -- No description.\n `is_installed` integer, -- No description.\n `is_active` integer, -- No description.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events_relevant (event_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE label_categories (\n `label_id` integer, -- label id. unique id of label.\n `category` text, -- category of the label.\n PRIMARY KEY (label_id)\n);\n\nCREATE TABLE gender_age (\n `device_id` integer, -- device id. unique number of devices.\n `gender` text, -- gender of the user who uses this device.\n `age` integer, -- age of the user who uses this device. • M: male; • F: female.\n `group` text, -- group of the ages.\n PRIMARY KEY (device_id),\n FOREIGN KEY (device_id) REFERENCES phone_brand_device_model2 (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_labels (\n `app_id` integer, -- app id. id of the app user.\n `label_id` integer, -- label id. id of labels represents which behavior category that each user belongs to.\n FOREIGN KEY (label_id) REFERENCES label_categories (label_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE gender_age_train (\n `device_id` integer, -- No description.\n `gender` text, -- No description.\n `age` integer, -- No description.\n `group` text, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE events (\n `event_id` integer, -- event id. unique id number referring to the event.\n `device_id` integer, -- device id. id number referring the device.\n `timestamp` datetime, -- the time of the event.\n `longitude` real, -- longitude. the location / coordinate = (longitude, latitude).\n `latitude` real, -- latitude.\n PRIMARY KEY (event_id)\n);\n\nCREATE TABLE events_relevant (\n `event_id` integer, -- No description.\n `device_id` integer, -- No description.\n `timestamp` datetime, -- No description.\n `longitude` real, -- No description.\n `latitude` real, -- No description.\n PRIMARY KEY (event_id),\n FOREIGN KEY (device_id) REFERENCES gender_age (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_events (\n `event_id` integer, -- event id. the id of events.\n `app_id` integer, -- app id. the id of app users. each app_id represents for an user.\n `is_installed` integer, -- is installed. whether this app is installed or not. • 0: no. • 1: yes: installed.\n `is_active` integer, -- is active. whether this user is active or not.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events (event_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nGive the number of device models for \"中兴\" phone brand.", + "question": "Give the number of device models for \"中兴\" phone brand.", + "evidence": "", + "db_id": "talkingdata", + "database_path": "../databases/talkingdata.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT device_model) FROM phone_brand_device_model2 WHERE phone_brand = '中兴';", + "source_gold_sql": "SELECT COUNT(DISTINCT device_model) FROM phone_brand_device_model2 WHERE phone_brand = '中兴';", + "source_gold_sql_sha256": "c206e9ea89b73276da915b14c4172d7704a675582c36467468c4fd0623e7373f", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4973", + "domain": "olympics", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE noc_region (\n `id` integer, -- the unique identifier of the noc region.\n `noc` text, -- the NOC code of the region. A NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world.\n `region_name` text, -- region name. the name of the region.\n primary key (id)\n);\n\nCREATE TABLE sport (\n `id` integer, -- the unique identifier of the sport.\n `sport_name` text, -- sport name. the name of the sport.\n primary key (id)\n);\n\nCREATE TABLE games (\n `id` integer, -- the unique identifier of the game.\n `games_year` integer, -- games year. the year of the game.\n `games_name` text, -- games name. the name of the game. games_name is 'games_year season'.\n `season` text, -- the season of the game. The Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\n primary key (id)\n);\n\nCREATE TABLE games_city (\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `city_id` integer, -- city id. the id of the city that held the game. Maps to city(id).\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n);\n\nCREATE TABLE person (\n `id` integer, -- the unique identifier of the person.\n `full_name` text, -- full name. the full name of the person. A person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name.\n `gender` text, -- the gender of the person. M stands for male and F stands for female.\n `height` integer, -- the height of the person.\n `weight` integer, -- the weight of the person. The unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing.\n primary key (id)\n);\n\nCREATE TABLE event (\n `id` integer, -- the unique identifier of the event.\n `sport_id` integer, -- sport id. the id of the sport. Maps to sport(id). There may be different events for the same sport in Olympics.\n `event_name` text, -- event name. the name of the event.\n primary key (id),\n foreign key (sport_id) references sport(id)\n);\n\nCREATE TABLE person_region (\n `person_id` integer, -- the id of the person. Maps to person(id).\n `region_id` integer, -- the id of the noc region. Maps to noc_region(id).\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n);\n\nCREATE TABLE medal (\n `id` integer, -- the unique identifier of the metal.\n `medal_name` text, -- medal name. the name of the medal.\n primary key (id)\n);\n\nCREATE TABLE games_competitor (\n `id` integer, -- the unique identifier of the record.\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `person_id` integer, -- person id. the id of the person. Maps to person(id). The times a person participated in the Olympics games could be calculated by grouping by person_id.\n `age` integer, -- the age of the person when he/she participated in the game. If person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\n primary key (id),\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n);\n\nCREATE TABLE city (\n `id` integer, -- the unique identifier of the city.\n `city_name` text, -- city name. the name of the city.\n primary key (id)\n);\n\nCREATE TABLE competitor_event (\n `event_id` integer, -- event id. the id of the event. Maps to event(id).\n `competitor_id` integer, -- competitor id. the id of the competitor. Maps to games_competitor(id). The number of competitors who participated in a specific event could be calculated by grouping by event_id.\n `medal_id` integer, -- medal id. the id of the medal. Maps to medal(id). For a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place.\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n);\n\nExternal Knowledge:\nathletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';\n\nQuestion:\nHow many athletes participated in the 2014 Winter Olympics?", + "question": "How many athletes participated in the 2014 Winter Olympics?", + "evidence": "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", + "db_id": "olympics", + "database_path": "../databases/olympics.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2014 Winter'", + "source_gold_sql": "SELECT COUNT(DISTINCT T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2014 Winter'", + "source_gold_sql_sha256": "fd8c79f8d143d9b2ca45a5be7b6e06b4e32befb927edb64841dd912116b57c62", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9019", + "domain": "bike_share_1", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trip (\n `id` integer, -- No description.\n `duration` integer, -- The duration of the trip in seconds. duration = end_date - start_date.\n `start_date` text, -- start date.\n `start_station_name` text, -- start station name. The name of the start station. It represents the station name the bike borrowed from.\n `start_station_id` integer, -- start station id. The ID of the start station.\n `end_date` text, -- end date.\n `end_station_name` text, -- end station name. The name of the end station. It represents the station name the bike returned to.\n `end_station_id` integer, -- end station id. The ID of the end station.\n `bike_id` integer, -- bike id. The ID of the bike.\n `subscription_type` text, -- subscription type. Allowed input: Subscriber, Customer.\n `zip_code` integer, -- zip code.\n primary key (id)\n);\n\nCREATE TABLE weather (\n `date` text, -- No description.\n `max_temperature_f` integer, -- max temperature in Fahrenheit degree. It represents the hottest temperature.\n `mean_temperature_f` integer, -- mean temperature in Fahrenheit degree.\n `min_temperature_f` integer, -- min temperature in Fahrenheit degree. It represents the coldest temperature.\n `max_dew_point_f` integer, -- max dew point in Fahrenheit degree.\n `mean_dew_point_f` integer, -- mean dew point in Fahrenheit degree.\n `min_dew_point_f` integer, -- min dew point in Fahrenheit degree.\n `max_humidity` integer, -- max humidity.\n `mean_humidity` integer, -- mean humidity.\n `min_humidity` integer, -- min humidity.\n `max_sea_level_pressure_inches` real, -- max sea level pressure in inches.\n `mean_sea_level_pressure_inches` real, -- mean sea level pressure in inches.\n `min_sea_level_pressure_inches` real, -- min sea level pressure in inches.\n `max_visibility_miles` integer, -- max visibility in miles.\n `mean_visibility_miles` integer, -- mean visibility in miles.\n `min_visibility_miles` integer, -- min visibility in miles.\n `max_wind_Speed_mph` integer, -- max wind Speed in mph.\n `mean_wind_speed_mph` integer, -- mean wind Speed in mph.\n `max_gust_speed_mph` integer, -- max gust Speed in mph.\n `precipitation_inches` text, -- precipitation in inches.\n `cloud_cover` integer, -- cloud cover.\n `events` text, -- Allowed input: [null], Rain, other.\n `wind_dir_degrees` integer, -- wind direction degrees.\n `zip_code` text, -- zip code.\n\n);\n\nCREATE TABLE station (\n `id` integer, -- unique ID for each station.\n `name` text, -- Station name.\n `lat` real, -- latitude. Can represent the location of the station when combined with longitude.\n `long` real, -- longitude. Can represent the location of the station when combined with. latitude.\n `dock_count` integer, -- dock count. number of bikes the station can hold.\n `city` text, -- No description.\n `installation_date` text, -- installation date.\n primary key (id)\n);\n\nCREATE TABLE status (\n `station_id` integer, -- station id.\n `bikes_available` integer, -- number of available bikes. 0 means no bike can be borrowed.\n `docks_available` integer, -- number of available docks. 0 means no bike can be returned to this station.\n `time` text, -- No description.\n\n);\n\nExternal Knowledge:\nroute implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);\n\nQuestion:\nWhat is the route that has the longest duration? Indicate the start and end station names and their cities.", + "question": "What is the route that has the longest duration? Indicate the start and end station names and their cities.", + "evidence": "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", + "db_id": "bike_share_1", + "database_path": "../databases/bike_share_1.sqlite", + "gold_sql": "SELECT tr.start_station_name,\n s_start.city AS start_city,\n tr.end_station_name,\n s_end.city AS end_city\nFROM trip tr\nJOIN station s_start ON s_start.id = tr.start_station_id\nJOIN station s_end ON s_end.id = tr.end_station_id\nWHERE tr.duration = (SELECT MAX(duration) FROM trip);", + "source_gold_sql": "SELECT tr.start_station_name,\n s_start.city AS start_city,\n tr.end_station_name,\n s_end.city AS end_city\nFROM trip tr\nJOIN station s_start ON s_start.id = tr.start_station_id\nJOIN station s_end ON s_end.id = tr.end_station_id\nWHERE tr.duration = (SELECT MAX(duration) FROM trip);", + "source_gold_sql_sha256": "ddbe3a3f72eb457c6c2cfb6d66052f99c1ea16383e158186be92dac56a9efd3b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7746", + "domain": "hockey", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE GoaliesSC (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` integer, -- Games played.\n `Min` integer, -- Minutes. Minutes of appearance.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `T` integer, -- Ties.\n `SHO` integer, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE ScoringSup (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `year` integer, -- No description.\n `PPA` text, -- Power play assists.\n `SHA` text, -- Shorthanded assists.\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Coaches (\n `coachID` text, -- coach ID. number identifying coaches.\n `year` integer, -- In which year did the coach teach this team.\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `stint` integer, -- stint.\n `notes` text, -- note if needed. noted information.\n `g` integer, -- games. number of games.\n `w` integer, -- wins. number of wins.\n `l` integer, -- loses. number of loses.\n `t` integer, -- ties. number of ties.\n `postg` text, -- post-season games. number of post-season games.\n `postw` text, -- post-season wins. number of post-season wins.\n `postl` text, -- post-season loses. number of post-season loses.\n `postt` text, -- post-season ties. number of post-season ties.\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE Teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `franchID` text, -- Franchise ID.\n `confID` text, -- Conference ID. see abbrev.csv for details.\n `divID` text, -- Division ID. see abbrev.csv for details.\n `rank` integer, -- Final standing.\n `playoff` text, -- playoff results.\n `G` integer, -- games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- Overtime losses.\n `Pts` integer, -- points.\n `SoW` text, -- Shootout wins.\n `SoL` text, -- Shootout loses.\n `GF` integer, -- Goals for.\n `GA` integer, -- Goals against. goals against.\n `name` text, -- Full team name.\n `PIM` text, -- Penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes). A bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances. power play percentage (PP%) = PPG / PPC.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID)\n);\n\nCREATE TABLE AwardsCoaches (\n `coachID` text, -- coach ID. string ID of the coach.\n `award` text, -- awards that the coach achieve.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- No description.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE AwardsMisc (\n `name` text, -- unique name of awards.\n `ID` text, -- id number of players or coaches, etc.\n `award` text, -- awarder. not useful.\n `year` integer, -- year of the award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed. noted information.\n primary key (name)\n);\n\nCREATE TABLE TeamsHalf (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `half` integer, -- First or second half of season.\n `rank` integer, -- Final standing for the half.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against. goal against.\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE abbrev (\n `Type` text, -- type of hockey games.\n `Code` text, -- abbreviated codes.\n `Fullname` text, -- full names of code.\n primary key (Type, Code)\n);\n\nCREATE TABLE ScoringSC (\n `playerID` text, -- id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `pos` text, -- position.\n `GP` integer, -- Games played.\n `G` integer, -- Goals. goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE CombinedShutouts (\n `year` integer, -- year.\n `month` integer, -- month.\n `date` integer, -- day. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `oppID` text, -- opposite team ID. Team ID of opponent.\n `R/P` text, -- regular / postseason. R\" for regular season, or \"P\" for postseason.\n `IDgoalie1` text, -- ID of goalie 1. ID of first goalie.\n `IDgoalie2` text, -- ID of goalie 2. ID of second goalie.\n foreign key (IDgoalie1) references Master (playerID)\n foreign key (IDgoalie2) references Master (playerID)\n);\n\nCREATE TABLE TeamSplits (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `hW` integer, -- home wins.\n `hL` integer, -- home loses.\n `hT` integer, -- home ties.\n `hOTL` text, -- Home overtime losses.\n `rW` integer, -- Road wins.\n `rL` integer, -- Road loses.\n `rT` integer, -- Road ties.\n `rOTL` text, -- road overtime loses.\n `SepW` text, -- September wins.\n `SepL` text, -- September loses.\n `SepT` text, -- September ties.\n `SepOL` text, -- September overtime loses.\n `OctW` text, -- October wins.\n `OctL` text, -- October loses.\n `OctT` text, -- October ties.\n `OctOL` text, -- October overtime loses.\n `NovW` text, -- November wins.\n `NovL` text, -- November loses.\n `NovT` text, -- November ties.\n `NovOL` text, -- November overtime loses.\n `DecW` text, -- December wins.\n `DecL` text, -- December loses.\n `DecT` text, -- December ties.\n `DecOL` text, -- December overtime loses.\n `JanW` integer, -- January wins.\n `JanL` integer, -- January loses.\n `JanT` integer, -- January ties.\n `JanOL` text, -- January overtime loses.\n `FebW` integer, -- February wins.\n `FebL` integer, -- February loses.\n `FebT` integer, -- February ties.\n `FebOL` text, -- February overtime loses.\n `MarW` text, -- March wins.\n `MarL` text, -- March loses.\n `MarT` text, -- March ties.\n `MarOL` text, -- March overtime loses.\n `AprW` text, -- April wins.\n `AprL` text, -- April loses.\n `AprT` text, -- April ties.\n `AprOL` text, -- April overtime loses.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE SeriesPost (\n `year` integer, -- year.\n `round` text, -- round. see abbrev.csv for details.\n `series` text, -- series. used for the NHL designations.\n `tmIDWinner` text, -- Team ID of winner.\n `lgIDWinner` text, -- League ID of winner.\n `tmIDLoser` text, -- Team ID of loser. Team ID of winner.\n `lgIDLoser` text, -- league id of loser.\n `W` integer, -- number of wins of the winner.\n `L` integer, -- number of loses of the winner.\n `T` integer, -- number of ties.\n `GoalsWinner` integer, -- goals for winner.\n `GoalsLoser` integer, -- goals for loser.\n `note` note, -- note. Note: EX = exhibition, ND = no decision, TG = total-goals series.\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n);\n\nCREATE TABLE Master (\n `playerID` text, -- id number identifying the player.\n `coachID` text, -- coach ID. coach id number. if a person has both playerID and coachID, it means this person becomes coach after retirement.\n `hofID` text, -- hall of fame id.\n `firstName` text, -- first name.\n `lastName` text, -- last name.\n `nameNote` text, -- name note. note about name.\n `nameGiven` text, -- name given. Given name.\n `nameNick` text, -- Nickname. (multiple entries separated by \"/\").\n `height` text, -- height.\n `weight` text, -- weight.\n `shootCatch` text, -- shoot catch. Shooting hand (or catching hand for goalies). Shooting hand (or catching hand for goalies). L: left hand. R: right hand. if null or 'empty', it means this player is good at both left and right hand.\n `legendsID` text, -- legends ID. ID at Legends Of Hockey.\n `ihdbID` text, -- Internet Hockey Database ID. ID at the Internet Hockey Database.\n `hrefID` text, -- Hockey-Reference.com ID. ID at Hockey-Reference.com.\n `firstNHL` text, -- First NHL season.\n `lastNHL` text, -- Last NHL season.\n `firstWHA` text, -- First WHA season.\n `lastWHA` text, -- Last WHA season.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `birthYear` text, -- birth Year.\n `birthMon` text, -- birth Month.\n `birthDay` text, -- birth Day. the entire / detail birth date in this table is \"year\" / \"month\" / \"date\".\n `birthCountry` text, -- birth Country.\n `birthState` text, -- birth State.\n `birthCity` text, -- birth city.\n `deathYear` text, -- death year.\n `deathMon` text, -- death month.\n `deathDay` text, -- death day.\n `deathCountry` text, -- death country.\n `deathState` text, -- death state.\n `deathCity` text, -- death city.\n foreign key (coachID) references Coaches (coachID)\n);\n\nCREATE TABLE TeamsPost (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n `BenchMinor` text, -- Bench minors (minutes).\n `PPG` text, -- Power play goals.\n `PPC` text, -- Power play chances.\n `SHA` text, -- Shorthanded goals against.\n `PKG` text, -- Power play goals against.\n `PKC` text, -- Penalty kill chances.\n `SHF` text, -- Shorthanded goals for.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE AwardsPlayers (\n `playerID` text, -- player id. string ID of players. unique string ID of the player.\n `award` text, -- award name.\n `year` integer, -- year of award.\n `lgID` text, -- league ID. league abbreviated name.\n `note` text, -- note if needed.\n `pos` text, -- position. position of players. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger).\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE HOF (\n `year` integer, -- year of hall of fame.\n `hofID` text, -- hall of fame id.\n `name` text, -- name.\n `category` text, -- category.\n primary key (hofID)\n);\n\nCREATE TABLE GoaliesShootout (\n `playerID` integer, -- No description.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` text, -- stint.\n `tmID` integer, -- team ID. team abbreviated name.\n `W` integer, -- Wins.\n `L` integer, -- Loses.\n `SA` integer, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `GA` integer, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamVsTeam (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `oppID` text, -- opponent ID.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `OTL` text, -- overtime loses.\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (oppID, year) references Teams (tmID, year)\n);\n\nCREATE TABLE Scoring (\n `playerID` text, -- player ID.\n `year` integer, -- play year.\n `stint` integer, -- Stint (order of appearance in a season).\n `tmID` text, -- team id.\n `lgID` text, -- league id.\n `pos` text, -- position. LW: left winger. RW: right winger. C: center. G: goalie. D: defenseman. W: winger. F: forward. the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger). some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman.\n `GP` integer, -- game played.\n `G` integer, -- goals.\n `A` integer, -- assists.\n `Pts` integer, -- points.\n `PIM` integer, -- Penalty minutes.\n `+/-` text, -- Plus / minus. The plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against. In another words, higher \"+ / -\" means more importance to the team, lower means less importance.\n `PPG` text, -- Power play goals. When a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\n `PPA` text, -- Power play assists.\n `SHG` text, -- Shorthanded goals. Sometimes the team with fewer players on the ice known as the short-handed team will score a goal.\n `SHA` text, -- Shorthanded assists.\n `GWG` text, -- Game-winning goals. A game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score. if a player gets more GWG, it means this player is more trustworthy in the critical moment.\n `GTG` text, -- Game-tying goals. A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score.\n `SOG` text, -- Shots on goal. a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n `PostGP` text, -- Postseason games played.\n `PostG` text, -- Postseason goals.\n `PostA` text, -- Postseason assists.\n `PostPts` text, -- Postseason points.\n `PostPIM` text, -- Postseason penalty minutes.\n `Post+/-` text, -- Postseason Plus / minus.\n `PostPPG` text, -- Postseason power play goals.\n `PostPPA` text, -- Postseason power play assists.\n `PostSHG` text, -- Postseason Shorthanded goals.\n `PostSHA` text, -- Postseason Shorthanded assists.\n `PostGWG` text, -- Postseason game-winning goals.\n `PostSOG` text, -- Postseason shots on goal.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE TeamsSC (\n `year` integer, -- year.\n `lgID` text, -- league ID. league ID number.\n `tmID` text, -- team ID.\n `G` integer, -- Games.\n `W` integer, -- wins.\n `L` integer, -- loses.\n `T` integer, -- ties.\n `GF` integer, -- goals for.\n `GA` integer, -- goals against.\n `PIM` text, -- penalty minutes.\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n);\n\nCREATE TABLE ScoringShootout (\n `playerID` text, -- player id. id number identifying the player. number identifying the player.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- stint.\n `tmID` text, -- team ID. team abbreviated name.\n `S` integer, -- shots.\n `G` integer, -- goals.\n `GDG` integer, -- game deciding goals.\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nCREATE TABLE Goalies (\n `playerID` text, -- id number identifying the player. number identifying players.\n `year` integer, -- year. 2005-06 listed as \"2005\".\n `stint` integer, -- order of appearance in a season. the entire date in this table is \"year\" / \"month\" / \"date\".\n `tmID` text, -- team ID. team abbreviated name.\n `lgID` text, -- league ID. league abbreviated name.\n `GP` text, -- Games played.\n `Min` text, -- Minutes. Minutes of appearance.\n `W` text, -- wins.\n `L` text, -- loses.\n `T/OL` text, -- Ties / overtime losses.\n `ENG` text, -- Empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `SHO` text, -- Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `GA` text, -- Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `SA` text, -- Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n `PostGP` text, -- Postseason games played.\n `PostMin` text, -- Postseason minutes.\n `PostW` text, -- Postseason wins.\n `PostL` text, -- Postseason loses.\n `PostT` text, -- Postseason ties.\n `PostENG` text, -- Postseason empty net goals. An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered �empty\".\n `PostSHO` text, -- Postseason Shutouts. In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n `PostGA` text, -- Postseason Goals against. �Goals Against� are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n `PostSA` text, -- Postseason Shots against. �Shot Against� are the number of shots recorded while the goalie is on the ice.\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n foreign key (playerID) references Master (playerID)\n);\n\nExternal Knowledge:\ntemporary coached refers to notes = 'interim'; number of loss refers to L (to add)\n\nQuestion:\nIn 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.", + "question": "In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.", + "evidence": "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", + "db_id": "hockey", + "database_path": "../databases/hockey.sqlite", + "gold_sql": "SELECT SUM(T1.l), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.notes = 'interim' AND T1.year = '1997' AND T2.name = 'Tampa Bay Lightning' GROUP BY T1.coachID", + "source_gold_sql": "SELECT SUM(T1.l), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.notes = 'interim' AND T1.year = '1997' AND T2.name = 'Tampa Bay Lightning' GROUP BY T1.coachID", + "source_gold_sql_sha256": "39b0b2a172e56cdaab421bd9c964da6a86fcdb59e642a863a8d2bbab1f442745", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3938", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\n10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'\n\nQuestion:\nWhat city does the business have a business hour from 10 am to 12 pm on Sunday?", + "question": "What city does the business have a business hour from 10 am to 12 pm on Sunday?", + "evidence": "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time LIKE '10AM' AND T2.closing_time LIKE '12PM' AND T3.day_of_week LIKE 'Sunday'", + "source_gold_sql": "SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time LIKE '10AM' AND T2.closing_time LIKE '12PM' AND T3.day_of_week LIKE 'Sunday'", + "source_gold_sql_sha256": "5ca1929ab4728ffe3d673f012d148c6b4368908fb9feccba597c606a89a80083", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7495", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\nwhite objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915\n\nQuestion:\nHow many white objects are there in image no.2347915?", + "question": "How many white objects are there in image no.2347915?", + "evidence": "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 2347915", + "source_gold_sql": "SELECT SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 2347915", + "source_gold_sql_sha256": "f7466f07fa35158038f0f1f2239538cb27fefbd85862cb4c658da2c5263c8123", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7286", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nsalable product refers to FinishedGoodsFlag = 1; over 1 reviews refers to count(comments)>1\n\nQuestion:\nPlease list the names of the products that get over 1 review and are salable.", + "question": "Please list the names of the products that get over 1 review and are salable.", + "evidence": "salable product refers to FinishedGoodsFlag = 1; over 1 reviews refers to count(comments)>1", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT p.`Name`\nFROM `Product` p\nJOIN `ProductReview` pr ON pr.`ProductID` = p.`ProductID`\nWHERE p.`FinishedGoodsFlag` = 1\nGROUP BY p.`ProductID`, p.`Name`\nHAVING COUNT(*) > 1;", + "source_gold_sql": "SELECT p.`Name`\nFROM `Product` p\nJOIN `ProductReview` pr ON pr.`ProductID` = p.`ProductID`\nWHERE p.`FinishedGoodsFlag` = 1\nGROUP BY p.`ProductID`, p.`Name`\nHAVING COUNT(*) > 1;", + "source_gold_sql_sha256": "970626a4f1909146de819a42bfc8134b0dcc66076c4eb90c5c2840fe5029def1", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:668", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nlanguage of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;\n\nQuestion:\nWhat is the language of method number 28 that can be found in the repository number 3?", + "question": "What is the language of method number 28 that can be found in the repository number 3?", + "evidence": "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 28 AND T1.RepoId = 3", + "source_gold_sql": "SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 28 AND T1.RepoId = 3", + "source_gold_sql_sha256": "6f6f9f4367a94381d11ba067328f3b5aa4e4e0847d6f9ead4b68370e43943767", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:934", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\ndifficulty of the course refers to diff;\n\nQuestion:\nWhat are the distinct difficulties of the courses in which a student with level of intelligence of 5 got an A grade?", + "question": "What are the distinct difficulties of the courses in which a student with level of intelligence of 5 got an A grade?", + "evidence": "difficulty of the course refers to diff;", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT DISTINCT T3.diff FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' AND T1.intelligence = 5", + "source_gold_sql": "SELECT DISTINCT T3.diff FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' AND T1.intelligence = 5", + "source_gold_sql_sha256": "e3d6b94b308a790d8eee8599509311fe375cc2ea46425d07fc3703ec5567a473", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6056", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\npublished in 2017 refers to Substr(publication_date,1, 4) = '2017'\n\nQuestion:\nHow many books were published in 2017?", + "question": "How many books were published in 2017?", + "evidence": "published in 2017 refers to Substr(publication_date,1, 4) = '2017'", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT COUNT(*) FROM book WHERE STRFTIME('%Y', publication_date) = '2017'", + "source_gold_sql": "SELECT COUNT(*) FROM book WHERE STRFTIME('%Y', publication_date) = '2017'", + "source_gold_sql_sha256": "4479fe8d6b68e27cdfc8e9acd13a5ecbca34670607a1f929e5ae5ced7f1e7887", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1006", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nstudent refers to advisedBy.p_id; most number in advisor refers to max(count(p_id_dummy))\n\nQuestion:\nDescribe the year in program and in phase status for the student with most number in advisor.", + "question": "Describe the year in program and in phase status for the student with most number in advisor.", + "evidence": "student refers to advisedBy.p_id; most number in advisor refers to max(count(p_id_dummy))", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT T2.yearsInProgram, T2.inPhase FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id GROUP BY T1.p_id ORDER BY COUNT(*) DESC LIMIT 1", + "source_gold_sql": "SELECT T2.yearsInProgram, T2.inPhase FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id GROUP BY T1.p_id ORDER BY COUNT(*) DESC LIMIT 1", + "source_gold_sql_sha256": "9568060b79b33a5c6b6d79c1890cdaa4ccf423bb6f61cbaf1d932120bfc81e62", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:637", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nsolution refers to SolutionId;\n\nQuestion:\nHow many methods with solutions with path 'maravillas_linq-to-delicious\\tasty.sln'?", + "question": "How many methods with solutions with path 'maravillas_linq-to-delicious\\tasty.sln'?", + "evidence": "solution refers to SolutionId;", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious\\tasty.sln'", + "source_gold_sql": "SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious\\tasty.sln'", + "source_gold_sql_sha256": "13d5d15195be9ba6bbd42e4e75160e7efc6951d2c5a54c056157b4c3d66f5963", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:900", + "domain": "cs_semester", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id representing the course.\n `name` text, -- name of the course.\n `credit` integer, -- credit of the course. higher means more important.\n `diff` integer, -- difficulty. difficulty of the course. higher --> more difficult. smaller --> less difficult.\n primary key (course_id)\n);\n\nCREATE TABLE RA (\n `student_id` integer, -- student id. the id numbe representing each student.\n `capability` integer, -- the capability of student on research. (Evaluated by the professor). higher --> higher research ability / capability.\n `prof_id` integer, -- professor id. professor who advises this student. this value may be repetitive since one professor may advise many students in this semester. if a professor advise > 2 students in this semester, it means this professor's research work is heavy. or: this professor's popularity on research is higher.\n `salary` text, -- the salary of this student. med: average salary. high: higher salary than others. low: lower salary. free: unpaid RA.\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE prof (\n `prof_id` integer, -- professor id. unique id for professors.\n `gender` text, -- gender of the professor.\n `first_name` text, -- first name. the first name of the professor.\n `last_name` text, -- last name. the last name of the professor. full name: first name, last name.\n `email` text, -- email of the professor.\n `popularity` integer, -- popularity of the professor. higher --> more popular.\n `teachingability` integer, -- teaching ability. the teaching ability of the professor. higher --> more teaching ability, his / her lectures may have better quality.\n `graduate_from` text, -- graduate from. the school where the professor graduated from.\n primary key (prof_id)\n);\n\nCREATE TABLE registration (\n `course_id` integer, -- course id. the id of courses.\n `student_id` integer, -- student id. the id of students.\n `grade` text, -- the grades that the students acquire in this course. • A: excellent -- 4. • B: good -- 3. • C: fair -- 2. • D: poorly pass -- 1. • null or empty: this student fails to pass this course. • gpa of students for this semester = sum (credits x grade) / sum (credits).\n `sat` integer, -- satisfying degree. student satisfaction with the course.\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);\n\nCREATE TABLE student (\n `student_id` integer, -- student id. the unique id to identify students.\n `f_name` text, -- first name. the first name of the student.\n `l_name` text, -- last name. the last name of the student. full name: f_name, l_name.\n `phone_number` text, -- phone number.\n `email` text, -- email.\n `intelligence` integer, -- intelligence of the student. higher --> more intelligent.\n `gpa` real, -- graduate point average. gpa.\n `type` text, -- type of the student. • TPG: taught postgraduate student(master). • RPG: research postgraduate student (master). • UG: undergraduate student(bachelor). both TPG and RPG are students pursuing a masterÂ’s degree; UG are students pursuing the bachelor degree.\n primary key (student_id)\n);\n\nExternal Knowledge:\nlower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;\n\nQuestion:\nWhat are the names of the courses that the students with the lowest intelligence are least satisfied with?", + "question": "What are the names of the courses that the students with the lowest intelligence are least satisfied with?", + "evidence": "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", + "db_id": "cs_semester", + "database_path": "../databases/cs_semester.sqlite", + "gold_sql": "SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.sat = 1 AND T1.intelligence = 1", + "source_gold_sql": "SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.sat = 1 AND T1.intelligence = 1", + "source_gold_sql_sha256": "84412bd89c3486f29e0d5c7bdf362bec0357e02eb2082e2a29e589ba339b6f97", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1651", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\nPay in total refers to SUM(amount);\n\nQuestion:\nHow much did customer 103 pay in total?", + "question": "How much did customer 103 pay in total?", + "evidence": "Pay in total refers to SUM(amount);", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT SUM(t.amount) FROM payments t WHERE t.customerNumber = '103'", + "source_gold_sql": "SELECT SUM(t.amount) FROM payments t WHERE t.customerNumber = '103'", + "source_gold_sql_sha256": "a25363bdff30d2182d3b585f377cb10121cb367d3addea806a80adbaaafb08a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2556", + "domain": "app_store", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE playstore (\n `App` text, -- Application name.\n `Category` text, -- Category the app belongs to. FAMILY 18%. GAME 11%. Other (7725) 71%.\n `Rating` real, -- Overall user rating of the app (as when scraped).\n `Reviews` integer, -- Number of user reviews for the app (as when scraped).\n `Size` text, -- Size of the app (as when scraped). Varies with device 16%. 11M 2%. Other (8948) 83%.\n `Installs` text, -- Number of user downloads/installs for the app (as when scraped). 1,000,000+ 15%. 10,000,000+ 12%. Other (8010) 74%.\n `Type` text, -- Paid or Free. Only has 'Paid' and 'Free'. Free 93%. Paid 7%.\n `Price` text, -- Price of the app (as when scraped). 0 93%. $0.99 1%. Other (653) 6%. Free means the price is 0.\n `Content Rating` text, -- Age group the app is targeted at - Children / Mature 21+ / Adult. Everyone 80%. Teen 11%. Other (919) 8%. According to Wikipedia, the different age groups are defined as:. Children: age<12~13. Teen: 13~19. Adult/Mature: 21+.\n `Genres` text, -- An app can belong to multiple genres (apart from its main category). Tools 8%. Entertainment 6%. Other (9376) 86%.\n\n);\n\nCREATE TABLE user_reviews (\n `App` text, -- Name of app.\n `Translated_Review` text, -- User review (Preprocessed and translated to English). nan 42%. Good 0%. Other (37185) 58%.\n `Sentiment` text, -- Overall user rating of the app (as when scraped). Positive: user holds positive attitude towards this app. Negative: user holds positive attitude / critizes on this app. Neural: user holds neural attitude. nan: user doesn't comment on this app.\n `Sentiment_Polarity` text, -- Sentiment Polarity. Sentiment polarity score. • score >= 0.5 it means pretty positive or pretty like this app. • 0 <= score < 0.5: it means user mildly likes this app. • -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude. • score <-0.5: it means this user dislikes this app pretty much.\n `Sentiment_Subjectivity` text, -- Sentiment Subjectivity. Sentiment subjectivity score. more subjectivity refers to less objectivity, vice versa.\n\n);\n\nExternal Knowledge:\npercentage = DIVIDE(COUNT(app that has a 4.7 rating and has more positive sentiment than negative sentiment), COUNT(app that has a 4.7 rating))*100 as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';\n\nQuestion:\nAmong all apps with 4.7 ratings, what is the percentage of application having more positives sentiment than negative sentiment?", + "question": "Among all apps with 4.7 ratings, what is the percentage of application having more positives sentiment than negative sentiment?", + "evidence": "percentage = DIVIDE(COUNT(app that has a 4.7 rating and has more positive sentiment than negative sentiment), COUNT(app that has a 4.7 rating))*100 as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", + "db_id": "app_store", + "database_path": "../databases/app_store.sqlite", + "gold_sql": "WITH posneg AS (\n SELECT `App`,\n SUM(CASE WHEN `Sentiment` = 'Positive' THEN 1 ELSE 0 END) AS pos_cnt,\n SUM(CASE WHEN `Sentiment` = 'Negative' THEN 1 ELSE 0 END) AS neg_cnt\n FROM `user_reviews`\n GROUP BY `App`\n),\napps AS (\n SELECT DISTINCT `App`\n FROM `playstore`\n WHERE `Rating` = 4.7\n)\nSELECT 100.0 * SUM(CASE WHEN COALESCE(pos_cnt,0) > COALESCE(neg_cnt,0) THEN 1 ELSE 0 END)\n / COUNT(*) AS percentage\nFROM apps\nLEFT JOIN posneg USING (`App`);", + "source_gold_sql": "WITH posneg AS (\n SELECT `App`,\n SUM(CASE WHEN `Sentiment` = 'Positive' THEN 1 ELSE 0 END) AS pos_cnt,\n SUM(CASE WHEN `Sentiment` = 'Negative' THEN 1 ELSE 0 END) AS neg_cnt\n FROM `user_reviews`\n GROUP BY `App`\n),\napps AS (\n SELECT DISTINCT `App`\n FROM `playstore`\n WHERE `Rating` = 4.7\n)\nSELECT 100.0 * SUM(CASE WHEN COALESCE(pos_cnt,0) > COALESCE(neg_cnt,0) THEN 1 ELSE 0 END)\n / COUNT(*) AS percentage\nFROM apps\nLEFT JOIN posneg USING (`App`);", + "source_gold_sql_sha256": "665d6bdedfaaaf1fe5d0b74541da840fe5fb77b4177d9b26a48a15017aeb53f2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6374", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\nmost ordered refers to max(SUM(Quantity)); product refers to ProductID\n\nQuestion:\nWhat is the most ordered products by customers?", + "question": "What is the most ordered products by customers?", + "evidence": "most ordered refers to max(SUM(Quantity)); product refers to ProductID", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "with sub as (SELECT od.`ProductID`, SUM(od.`Quantity`) as num\nFROM `OrderDetails` od \nGROUP BY od.`ProductID`\nORDER BY SUM(od.`Quantity`) DESC\n)\nSELECT ProductID FROM sub where num = (SELECT max(num) FROM sub)", + "source_gold_sql": "with sub as (SELECT od.`ProductID`, SUM(od.`Quantity`) as num\nFROM `OrderDetails` od \nGROUP BY od.`ProductID`\nORDER BY SUM(od.`Quantity`) DESC\n)\nSELECT ProductID FROM sub where num = (SELECT max(num) FROM sub)", + "source_gold_sql_sha256": "e5ca97209dc9d97a3378d22a75cbbe88671fb31dd836ccae76a21fb09a0977ed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1741", + "domain": "restaurant", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE geographic (\n `city` text, -- the city.\n `county` text, -- country. the country the city belongs to.\n `region` text, -- corresponding regions.\n primary key (city)\n);\n\nCREATE TABLE location (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `street_num` integer, -- street number. the street number of the restaurant.\n `street_name` text, -- street name. the street name of the restaurant.\n `city` text, -- the city where the restaurant is located in.\n primary key (id_restaurant),\n foreign key (city) references geographic (city)\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n);\n\nCREATE TABLE generalinfo (\n `id_restaurant` integer, -- id restaurant. the unique id for the restaurant.\n `label` text, -- the label of the restaurant.\n `food_type` text, -- food type. the food type.\n `city` text, -- the city where the restaurant is located in.\n `review` real, -- the review of the restaurant. the review rating is from 0.0 to 5.0. The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n primary key (id_restaurant),\n foreign key (city) references geographic(city)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList restaurant ids located in Danville city.", + "question": "List restaurant ids located in Danville city.", + "evidence": "", + "db_id": "restaurant", + "database_path": "../databases/restaurant.sqlite", + "gold_sql": "SELECT id_restaurant FROM location WHERE city LIKE 'Danville'", + "source_gold_sql": "SELECT id_restaurant FROM location WHERE city LIKE 'Danville'", + "source_gold_sql_sha256": "9971886a8529a3c10b4849db68ea6e180e18874047723543eb1a05017243637a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:176", + "domain": "book_publishing_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE jobs (\n `job_id` integer, -- job id. unique id number identifying the jobs.\n `job_desc` text, -- job description. staff should be mentioned.\n `min_lvl` integer, -- min level. min job level.\n `max_lvl` integer, -- max level. max job level. level range for jobs mentioned in job_desc is (min_lvl, max_lvl).\n primary key (job_id)\n);\n\nCREATE TABLE pub_info (\n `pub_id` text, -- publication id. unique id number identifying publications.\n `logo` blob, -- logo of publications.\n `pr_info` text, -- publisher's information.\n primary key (pub_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE sales (\n `stor_id` text, -- store id. id number identifying stores.\n `ord_num` text, -- order number. id number identifying the orders.\n `ord_date` datetime, -- order date. the date of the order.\n `qty` integer, -- quantity. quantity of sales.\n `payterms` text, -- payments.\n `title_id` text, -- title id. id number identifying titles.\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n foreign key (title_id) references titles(title_id)\n);\n\nCREATE TABLE publishers (\n `pub_id` text, -- publisher id. unique id number identifying publisher.\n `pub_name` text, -- publisher name.\n `city` text, -- No description.\n `state` text, -- No description.\n `country` text, -- No description.\n primary key (pub_id)\n);\n\nCREATE TABLE titleauthor (\n `au_id` text, -- author id.\n `title_id` text, -- title id.\n `au_ord` integer, -- author ordering.\n `royaltyper` integer, -- royaltyper.\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n foreign key (title_id) references titles (title_id)\n);\n\nCREATE TABLE employee (\n `emp_id` text, -- employee id. unique number identifying employees.\n `fname` text, -- first name. first name of employees.\n `minit` text, -- middle name.\n `lname` text, -- last name.\n `job_id` integer, -- job id. number identifying jobs.\n `job_lvl` integer, -- job level. higher value means job level is higher.\n `pub_id` text, -- publisher id. id number identifying publishers.\n `hire_date` datetime, -- hire date.\n primary key (emp_id),\n foreign key (job_id) references jobs(job_id)\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE titles (\n `title_id` text, -- title id.\n `title` text, -- title.\n `type` text, -- type of titles.\n `pub_id` text, -- publisher id.\n `price` real, -- price.\n `advance` real, -- pre-paid amount.\n `royalty` integer, -- royalty.\n `ytd_sales` integer, -- year to date sales.\n `notes` text, -- notes if any. had better understand notes contents and put some of them into questions if any.\n `pubdate` datetime, -- publication date.\n primary key (title_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE authors (\n `au_id` text, -- author id. unique number identifying authors.\n `au_lname` text, -- author last name.\n `au_fname` text, -- author first name.\n `phone` text, -- phone number.\n `address` text, -- address.\n `city` text, -- city.\n `state` text, -- state.\n `zip` text, -- zip code.\n `contract` text, -- contract status. 0: not on the contract. 1: on the contract.\n primary key (au_id)\n);\n\nCREATE TABLE stores (\n `stor_id` text, -- store id. unique id number of stores.\n `stor_name` text, -- store name.\n `stor_address` text, -- store address.\n `city` text, -- city name.\n `state` text, -- state code.\n `zip` text, -- zip code.\n primary key (stor_id)\n);\n\nCREATE TABLE discounts (\n `discounttype` text, -- discount type.\n `stor_id` text, -- store id.\n `lowqty` integer, -- low quantity. low quantity (quantity floor). The minimum quantity to enjoy the discount.\n `highqty` integer, -- high quantity. high quantity (max quantity). The maximum quantity to enjoy the discount.\n `discount` real, -- No description.\n foreign key (stor_id) references stores(stor_id)\n);\n\nCREATE TABLE roysched (\n `title_id` text, -- unique id number identifying title.\n `lorange` integer, -- low range.\n `hirange` integer, -- high range.\n `royalty` integer, -- royalty.\n foreign key (title_id) references titles(title_id)\n);\n\nExternal Knowledge:\nqty is abbreviation for quantity; sales of quantity more than 20 refers to qty>20; store refers to stor_name\n\nQuestion:\nList all titles with total sales of quantity more than 20 and store located in the CA state.", + "question": "List all titles with total sales of quantity more than 20 and store located in the CA state.", + "evidence": "qty is abbreviation for quantity; sales of quantity more than 20 refers to qty>20; store refers to stor_name", + "db_id": "book_publishing_company", + "database_path": "../databases/book_publishing_company.sqlite", + "gold_sql": "SELECT DISTINCT T1.title FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T2.stor_id = T3.stor_id WHERE T3.state = 'CA' GROUP BY T1.title_id HAVING SUM(T2.qty) > 20", + "source_gold_sql": "SELECT DISTINCT T1.title FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T2.stor_id = T3.stor_id WHERE T3.state = 'CA' GROUP BY T1.title_id HAVING SUM(T2.qty) > 20", + "source_gold_sql_sha256": "c3e3c11069874aeaa29383f879c2cfb752a93e5bbb713a36823999dfc66fbfed", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6004", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\naddress refers to street_name, city; received the most orders refers to Max(count(dest_address_id))\n\nQuestion:\nWhat is the address that received the most orders?", + "question": "What is the address that received the most orders?", + "evidence": "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT T2.street_name, T2.city FROM cust_order AS T1 INNER JOIN address AS T2 ON T1.dest_address_id = T2.address_id\n GROUP BY T2.address_id, T2.street_number, T2.street_name, T2.city ORDER BY COUNT(T1.dest_address_id) DESC LIMIT 1", + "source_gold_sql": "SELECT T2.street_name, T2.city FROM cust_order AS T1 INNER JOIN address AS T2 ON T1.dest_address_id = T2.address_id\n GROUP BY T2.address_id, T2.street_number, T2.street_name, T2.city ORDER BY COUNT(T1.dest_address_id) DESC LIMIT 1", + "source_gold_sql_sha256": "70fed195e70115ef94bcd8b54ebe7acafc9bddc7e5f43fde42e9099437c11b29", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5714", + "domain": "language_corpus", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE words (\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `word` text, -- The word itself.\n `occurrences` integer, -- The occurrences of the specific word.\n primary key (CREATE)\n);\n\nCREATE TABLE pages (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `page` integer, -- wikipedia page id.\n `revision` integer, -- wikipedia revision page id.\n `title` text, -- The title of this Catalan language Wikipedia page.\n `words` integer, -- number of different words in this page.\n primary key (CREATE)\n);\n\nCREATE TABLE biwords (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `w1st` integer, -- word id of the first word. The word id of the first word of the biwords pair. The value is unique.\n `w2nd` integer, -- word id of the second word. The word id of the second word of the biwords pair. The value is unique.\n `occurrences` integer, -- times of this pair appears in this language/page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE pages_words (\n `pid` integer, -- page id. page id of Wikipedia about Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language. The value is unique.\n `occurrences` integer, -- times of this word appears into this page.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs_words (\n `lid` integer, -- language id. lid=1 means it's Catalan language.\n `wid` integer, -- word id. The word id of the Catalan language.\n `occurrences` integer, -- repetitions of this word in this language. it's INTEGER and DEFAULT is 0.\n primary key (PRIMARY)\n);\n\nCREATE TABLE langs (\n `lid` integer, -- language id. lid=1 means it's the Catalan language.\n `lang` text, -- language. language name. ca means Catalan language.\n `locale` text, -- The locale of the language.\n `pages` integer, -- total pages of Wikipedia in this language.\n `words` integer, -- total number of words in this pages.\n primary key (CREATE)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat are the occurrence of word \"del\" in title \"Any anomalístic\"?", + "question": "What are the occurrence of word \"del\" in title \"Any anomalístic\"?", + "evidence": "", + "db_id": "language_corpus", + "database_path": "../databases/language_corpus.sqlite", + "gold_sql": "SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'del' AND T3.title = 'Any anomalístic'", + "source_gold_sql": "SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'del' AND T3.title = 'Any anomalístic'", + "source_gold_sql_sha256": "5fc2acb273335d7d60a4e430f01feea3142912c1e60fcbeb2aa83b83ab0c2cc2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:503", + "domain": "movies_4", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `genre_id` integer, -- genre id. the unique identifier of the genre.\n `genre_name` text, -- the genre.\n primary key (genre_id)\n);\n\nCREATE TABLE movie (\n `movie_id` integer, -- movie id. the unique identifier of the movie.\n `title` text, -- the title of the movie.\n `budget` integer, -- the budget for the movie. If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n `homepage` text, -- the homepage of the movie.\n `overview` text, -- the overview of the movie.\n `popularity` real, -- the popularity of the movie. If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n `release_date` date, -- release date. the release date of the movie.\n `revenue` integer, -- the revenue of the movie. A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n `runtime` integer, -- the runtime of the movie.\n `movie_status` text, -- the status of the movie. The only value of this column is 'Released'.\n `tagline` text, -- the tagline of the movie.\n `vote_average` real, -- vote average. the average vote for the movie. A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n `vote_count` integer, -- vote count. the vote count for the movie. If a movie has a higher vote average and vote count, it means that it has been well-received by audiences and critics. A higher vote count means that more people have rated the movie, which can indicate a greater level of interest in the film.\n primary key (movie_id)\n);\n\nCREATE TABLE movie_cast (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `person_id` integer, -- person id. the id of the person. Maps to person(person_id).\n `character_name` text, -- character name. the character name.\n `gender_id` integer, -- gender id. the id of the cast's gender. Maps to gender(gender_id).\n `cast_order` integer, -- cast order. the cast order of the cast. The cast order of a movie or television show refers to the sequence in which the actors and actresses are listed in the credits. This order is typically determined by the relative importance of each actor's role in the production, with the main actors and actresses appearing first, followed by the supporting cast and extras.\n foreign key (gender_id) references gender(gender_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);\n\nCREATE TABLE person (\n `person_id` integer, -- person id. the unique identifier of the person.\n `person_name` text, -- person name. the name of the person.\n primary key (person_id)\n);\n\nCREATE TABLE department (\n `department_id` integer, -- department id. the unique identifier of the department.\n `department_name` text, -- department name. the name of the department.\n primary key (department_id)\n);\n\nCREATE TABLE gender (\n `gender_id` integer, -- gender id. the unique identifier of the gender.\n `gender` text, -- the gender. female/ male/ unspecified.\n primary key (gender_id)\n);\n\nCREATE TABLE keyword (\n `keyword_id` integer, -- keyword id. the unique identifier of the keyword.\n `keyword_name` text, -- keyword name. the keyword.\n primary key (keyword_id)\n);\n\nCREATE TABLE movie_keywords (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `keyword_id` integer, -- keyword id. the id of the movie keyword. Maps to keyword(keyword_id). A movie may have many keywords. Audience could get the genre of the movie according to the movie keywords.\n\n);\n\nCREATE TABLE movie_languages (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `language_id` integer, -- language id. the id of the movie language. Maps to language(language_id).\n `language_role_id` integer, -- language role id. the id of the role's language.\n foreign key (language_id) references language(language_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (language_role_id) references language_role(role_id)\n);\n\nCREATE TABLE movie_genres (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `genre_id` integer, -- genre id. the id of the movie genre. Maps to genre(genre_id).\n foreign key (genre_id) references genre(genre_id),\n foreign key (movie_id) references movie(movie_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_iso_code` text, -- country iso code. the ISO code. ISO codes are typically used to identify countries and their subdivisions, and there are different types of ISO codes depending on the specific application. Here we use ISO 3166 code to identify countries.\n `country_name` text, -- country name. the name of the country.\n primary key (country_id)\n);\n\nCREATE TABLE language_role (\n `role_id` integer, -- role id. the unique identifier of the language id.\n `language_role` text, -- language role. the language role. In the context of language roles in a movie or other audio-visual production, \"original\" and \"spoken\" refer to the languages in which the movie was originally produced, and the languages spoken by the characters in the movie, respectively.\n primary key (role_id)\n);\n\nCREATE TABLE movie_company (\n `movie_id` integer, -- movie id. the id of the movie. Maps to movie(movie_id).\n `company_id` integer, -- company id. the id of the company that produced the movie. Maps to production_company(company_id). If movies with different movie_id have the same company_id, it means these movies were made by the same company.\n\n);\n\nCREATE TABLE movie_crew (\n `movie_id` integer, -- movie id. the id of the movie that the crew worked for. Maps to movie(movie_id).\n `person_id` integer, -- person id. the id of the crew. Maps to person(person_id).\n `department_id` integer, -- department id. the id of the crew's department. Maps to department(department_id).\n `job` text, -- the job of the crew. A movie may involve several crews with the same job title.\n foreign key (department_id) references department(department_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);\n\nCREATE TABLE production_country (\n `movie_id` integer, -- mivie id. the unique identifier of the movie.\n `country_id` integer, -- country id. the id of the country.\n foreign key (country_id) references country(country_id),\n foreign key (movie_id) references movie(movie_id)\n);\n\nCREATE TABLE language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the code of the language. Here we use ISO 639 codes to identify the language.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE production_company (\n `company_id` integer, -- company id. the unique identifier of the company.\n `company_name` text, -- company name. the name of the company.\n primary key (company_id)\n);\n\nExternal Knowledge:\nID of the production company refers to company_id; movie \"Gladiator\" refers to title = 'Gladiator'\n\nQuestion:\nWhat is the ID of the production company which produced the movie \"Gladiator\"?", + "question": "What is the ID of the production company which produced the movie \"Gladiator\"?", + "evidence": "ID of the production company refers to company_id; movie \"Gladiator\" refers to title = 'Gladiator'", + "db_id": "movies_4", + "database_path": "../databases/movies_4.sqlite", + "gold_sql": "SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Gladiator'", + "source_gold_sql": "SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Gladiator'", + "source_gold_sql_sha256": "4b19bec4db54eec5d18415ea095884d8eee00f2785135a3ff4c8a9d03ccb0992", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7580", + "domain": "image_and_language", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE ATT_CLASSES (\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. the unique attribute class ids.\n `ATT_CLASS` text, -- ATTRIBUTE CLASS. the corresponding classes for attributes.\n primary key (ATT_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ_ATT (\n `IMG_ID` integer, -- IMAGE ID. id number of each image.\n `ATT_CLASS_ID` integer, -- ATTRIBUTE CLASS ID. attribute class number for image. if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. object sample id. • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects. • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE OBJ_CLASSES (\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. unique id number identifying object classes.\n `OBJ_CLASS` text, -- OBJECT CLASS. the explanation about object classes.\n primary key (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_OBJ (\n `IMG_ID` integer, -- IMAGE ID. the id representing images.\n `OBJ_SAMPLE_ID` integer, -- OBJECT SAMPLE ID. the id of the object sample.\n `OBJ_CLASS_ID` integer, -- OBJECT CLASS ID. the id indicating class of the objects.\n `X` integer, -- x coordinate.\n `Y` integer, -- y coordinate.\n `W` integer, -- width of the bounding box of the object.\n `H` integer, -- height of the bounding box of the object. bounding box of the object: (x, y, W, H).\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);\n\nCREATE TABLE IMG_REL (\n `IMG_ID` integer, -- IMAGE ID. the image id.\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the prediction relationship class between objects. if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n `OBJ1_SAMPLE_ID` integer, -- OBJECT1 SAMPLE ID. the sample id of the first object.\n `OBJ2_SAMPLE_ID` integer, -- OBJECT2 SAMPLE ID. the sample id of the second object. if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);\n\nCREATE TABLE PRED_CLASSES (\n `PRED_CLASS_ID` integer, -- PREDICTION CLASS ID. the unique prediction id for the class.\n `PRED_CLASS` text, -- PREDICTION CLASS. the caption for the prediction class id.\n primary key (PRED_CLASS_ID)\n);\n\nExternal Knowledge:\nimages refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;\n\nQuestion:\nHow many images have a total of 10 attribute classes?", + "question": "How many images have a total of 10 attribute classes?", + "evidence": "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", + "db_id": "image_and_language", + "database_path": "../databases/image_and_language.sqlite", + "gold_sql": "SELECT COUNT(*) FROM ( SELECT `IMG_ID` FROM `IMG_OBJ_ATT` GROUP BY `IMG_ID` HAVING COUNT(DISTINCT `ATT_CLASS_ID`) = 10 ) AS t", + "source_gold_sql": "SELECT COUNT(*) FROM ( SELECT `IMG_ID` FROM `IMG_OBJ_ATT` GROUP BY `IMG_ID` HAVING COUNT(DISTINCT `ATT_CLASS_ID`) = 10 ) AS t", + "source_gold_sql_sha256": "3dfc6e88ec34ff2e9f2dd73b9edf0276f8c48e07465a48fcc9aaabd2f7758fc9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7267", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nproduct is purchased refers to MakeFlag = 0; women's refers to Style = 'W'; ProductSubcategoryID = 'Tights';\n\nQuestion:\nWhat are the names of the vendors to which the company purchased its women's tights products?", + "question": "What are the names of the vendors to which the company purchased its women's tights products?", + "evidence": "product is purchased refers to MakeFlag = 0; women's refers to Style = 'W'; ProductSubcategoryID = 'Tights';", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT DISTINCT T4.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN ProductSubcategory AS T3 ON T1.ProductSubcategoryID = T3.ProductSubcategoryID INNER JOIN Vendor AS T4 ON T2.BusinessEntityID = T4.BusinessEntityID WHERE T1.MakeFlag = 0 AND T1.Style = 'W' AND T3.Name = 'Tights'", + "source_gold_sql": "SELECT DISTINCT T4.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN ProductSubcategory AS T3 ON T1.ProductSubcategoryID = T3.ProductSubcategoryID INNER JOIN Vendor AS T4 ON T2.BusinessEntityID = T4.BusinessEntityID WHERE T1.MakeFlag = 0 AND T1.Style = 'W' AND T3.Name = 'Tights'", + "source_gold_sql_sha256": "3d980ad9fda58cb56f3fb3c1d637d52e27dc3391fcbfe0512f2e1c2804e58cd8", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3995", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\non Sunday refers to day_of_week = 'Sunday'; low check-in at 10AM refers to label_time_10 = 'Low'\n\nQuestion:\nHow many business have low check-in on Sunday at 10AM?", + "question": "How many business have low check-in on Sunday at 10AM?", + "evidence": "on Sunday refers to day_of_week = 'Sunday'; low check-in at 10AM refers to label_time_10 = 'Low'", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(T2.business_id) FROM Days AS T1 INNER JOIN Checkins AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.label_time_10 = 'Low'", + "source_gold_sql": "SELECT COUNT(T2.business_id) FROM Days AS T1 INNER JOIN Checkins AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.label_time_10 = 'Low'", + "source_gold_sql_sha256": "50aae835f59925049aa1a3b7bee22ac9aaeb320d09f09b5bb64b4e928f5d8e2b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1007", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nadvised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'\n\nQuestion:\nList down the advised student IDs and IDs of employing professor in faculty.", + "question": "List down the advised student IDs and IDs of employing professor in faculty.", + "evidence": "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT T1.p_id, T2.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id_dummy = T2.p_id WHERE hasPosition = 'Faculty_eme'", + "source_gold_sql": "SELECT T1.p_id, T2.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id_dummy = T2.p_id WHERE hasPosition = 'Faculty_eme'", + "source_gold_sql_sha256": "15f8247431976cfe2f510e94e81037a0a4079930ab9cb11019896f94a0ceed26", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9149", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\n\"UPRISING UPTOWN\" is the title of film\n\nQuestion:\nTell the special features of the film Uprising Uptown.", + "question": "Tell the special features of the film Uprising Uptown.", + "evidence": "\"UPRISING UPTOWN\" is the title of film", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT special_features FROM film WHERE title = 'UPRISING UPTOWN'", + "source_gold_sql": "SELECT special_features FROM film WHERE title = 'UPRISING UPTOWN'", + "source_gold_sql_sha256": "e0161362eb53245ddc00b39a7dce391d05f5cc392bf5d1a0f120a131e0c8dbfa", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3675", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\n'ICCI' is the ShortName of conference; URL refer to HomePage\n\nQuestion:\nList out the full name and URL link of ICCI?", + "question": "List out the full name and URL link of ICCI?", + "evidence": "'ICCI' is the ShortName of conference; URL refer to HomePage", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT FullName, HomePage FROM Conference WHERE ShortName = 'ICCI'", + "source_gold_sql": "SELECT FullName, HomePage FROM Conference WHERE ShortName = 'ICCI'", + "source_gold_sql_sha256": "2333548d0416d9c490f762c3242ad0d1ddc995f3bc84fcaf5fa10c650708fc61", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4537", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nhave absent from school refers to month >= 1;\n\nQuestion:\nHow many students have absent from school?", + "question": "How many students have absent from school?", + "evidence": "have absent from school refers to month >= 1;", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT COUNT(name) FROM longest_absense_from_school WHERE month >= 1", + "source_gold_sql": "SELECT COUNT(name) FROM longest_absense_from_school WHERE month >= 1", + "source_gold_sql_sha256": "399a9a83740908132e6a9f321e39c2bbb9a59000acd9ea4b201354d925a06b55", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:196", + "domain": "book_publishing_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE jobs (\n `job_id` integer, -- job id. unique id number identifying the jobs.\n `job_desc` text, -- job description. staff should be mentioned.\n `min_lvl` integer, -- min level. min job level.\n `max_lvl` integer, -- max level. max job level. level range for jobs mentioned in job_desc is (min_lvl, max_lvl).\n primary key (job_id)\n);\n\nCREATE TABLE pub_info (\n `pub_id` text, -- publication id. unique id number identifying publications.\n `logo` blob, -- logo of publications.\n `pr_info` text, -- publisher's information.\n primary key (pub_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE sales (\n `stor_id` text, -- store id. id number identifying stores.\n `ord_num` text, -- order number. id number identifying the orders.\n `ord_date` datetime, -- order date. the date of the order.\n `qty` integer, -- quantity. quantity of sales.\n `payterms` text, -- payments.\n `title_id` text, -- title id. id number identifying titles.\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n foreign key (title_id) references titles(title_id)\n);\n\nCREATE TABLE publishers (\n `pub_id` text, -- publisher id. unique id number identifying publisher.\n `pub_name` text, -- publisher name.\n `city` text, -- No description.\n `state` text, -- No description.\n `country` text, -- No description.\n primary key (pub_id)\n);\n\nCREATE TABLE titleauthor (\n `au_id` text, -- author id.\n `title_id` text, -- title id.\n `au_ord` integer, -- author ordering.\n `royaltyper` integer, -- royaltyper.\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n foreign key (title_id) references titles (title_id)\n);\n\nCREATE TABLE employee (\n `emp_id` text, -- employee id. unique number identifying employees.\n `fname` text, -- first name. first name of employees.\n `minit` text, -- middle name.\n `lname` text, -- last name.\n `job_id` integer, -- job id. number identifying jobs.\n `job_lvl` integer, -- job level. higher value means job level is higher.\n `pub_id` text, -- publisher id. id number identifying publishers.\n `hire_date` datetime, -- hire date.\n primary key (emp_id),\n foreign key (job_id) references jobs(job_id)\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE titles (\n `title_id` text, -- title id.\n `title` text, -- title.\n `type` text, -- type of titles.\n `pub_id` text, -- publisher id.\n `price` real, -- price.\n `advance` real, -- pre-paid amount.\n `royalty` integer, -- royalty.\n `ytd_sales` integer, -- year to date sales.\n `notes` text, -- notes if any. had better understand notes contents and put some of them into questions if any.\n `pubdate` datetime, -- publication date.\n primary key (title_id),\n foreign key (pub_id) references publishers(pub_id)\n);\n\nCREATE TABLE authors (\n `au_id` text, -- author id. unique number identifying authors.\n `au_lname` text, -- author last name.\n `au_fname` text, -- author first name.\n `phone` text, -- phone number.\n `address` text, -- address.\n `city` text, -- city.\n `state` text, -- state.\n `zip` text, -- zip code.\n `contract` text, -- contract status. 0: not on the contract. 1: on the contract.\n primary key (au_id)\n);\n\nCREATE TABLE stores (\n `stor_id` text, -- store id. unique id number of stores.\n `stor_name` text, -- store name.\n `stor_address` text, -- store address.\n `city` text, -- city name.\n `state` text, -- state code.\n `zip` text, -- zip code.\n primary key (stor_id)\n);\n\nCREATE TABLE discounts (\n `discounttype` text, -- discount type.\n `stor_id` text, -- store id.\n `lowqty` integer, -- low quantity. low quantity (quantity floor). The minimum quantity to enjoy the discount.\n `highqty` integer, -- high quantity. high quantity (max quantity). The maximum quantity to enjoy the discount.\n `discount` real, -- No description.\n foreign key (stor_id) references stores(stor_id)\n);\n\nCREATE TABLE roysched (\n `title_id` text, -- unique id number identifying title.\n `lorange` integer, -- low range.\n `hirange` integer, -- high range.\n `royalty` integer, -- royalty.\n foreign key (title_id) references titles(title_id)\n);\n\nExternal Knowledge:\nEditor or Auditor are job description which refers to job_desc; percentage = DIVIDE(count(job_desc = 'Editor' or job_desc = 'Designer'), count(emp_id))*100\n\nQuestion:\nCalculate the percentage of the employees who are Editor or Designer?", + "question": "Calculate the percentage of the employees who are Editor or Designer?", + "evidence": "Editor or Auditor are job description which refers to job_desc; percentage = DIVIDE(count(job_desc = 'Editor' or job_desc = 'Designer'), count(emp_id))*100", + "db_id": "book_publishing_company", + "database_path": "../databases/book_publishing_company.sqlite", + "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id", + "source_gold_sql": "SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id", + "source_gold_sql_sha256": "96d58057a226406ea8fc8441e1042eb09bf4597ed3e2d3c8527e83bc9b6aa75b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8150", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nitem no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; exceed 100 refers to units > 100; average wind speed exceeded 10 refers to avgspeed > 10\n\nQuestion:\nPlease list the dates on which the sale of item no.5 in store no.3 exceeded 100 and the average wind speed exceeded 10.", + "question": "Please list the dates on which the sale of item no.5 in store no.3 exceeded 100 and the average wind speed exceeded 10.", + "evidence": "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; exceed 100 refers to units > 100; average wind speed exceeded 10 refers to avgspeed > 10", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT DISTINCT s.`date`\nFROM `sales_in_weather` AS s\nJOIN `relation` AS r ON r.`store_nbr` = s.`store_nbr`\nJOIN `weather` AS w ON w.`station_nbr` = r.`station_nbr`\n AND w.`date` = s.`date`\nWHERE s.`store_nbr` = 3\n AND s.`item_nbr` = 5\n AND s.`units` > 100\n AND w.`avgspeed` > 10;", + "source_gold_sql": "SELECT DISTINCT s.`date`\nFROM `sales_in_weather` AS s\nJOIN `relation` AS r ON r.`store_nbr` = s.`store_nbr`\nJOIN `weather` AS w ON w.`station_nbr` = r.`station_nbr`\n AND w.`date` = s.`date`\nWHERE s.`store_nbr` = 3\n AND s.`item_nbr` = 5\n AND s.`units` > 100\n AND w.`avgspeed` > 10;", + "source_gold_sql_sha256": "02aae5acc67ca69f638378c127c71aa337f0ad4fd4449eda1fdd85734527b860", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4448", + "domain": "student_loan", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE enlist (\n `name` text, -- the name of the enlisted students.\n `organ` text, -- organization. the organization that the student enlisted in.\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE enrolled (\n `name` text, -- No description.\n `school` text, -- No description.\n `month` integer, -- No description.\n PRIMARY KEY (name,school),\n FOREIGN KEY (name) REFERENCES person (name) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE unemployed (\n `name` text, -- student who is unemployed.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE disabled (\n `name` text, -- the name of the disabled students.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE person (\n `name` text, -- student's name.\n primary key (\"name\")\n);\n\nCREATE TABLE longest_absense_from_school (\n `name` text, -- student's name.\n `month` integer, -- the duration of absence. 0 means that the student has never been absent.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE male (\n `name` text, -- student's name who are male. the students who are not in this list are female.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE bool (\n `name` text, -- No description.\n primary key (\"name\")\n);\n\nCREATE TABLE filed_for_bankrupcy (\n `name` text, -- student name who filed for bankruptcy.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n);\n\nCREATE TABLE no_payment_due (\n `name` text, -- student's name.\n `bool` text, -- whether the student has payment dues. • neg: the student doesn't have payment due. • pos: the student has payment due.\n primary key (\"name\"),\n foreign key (\"name\") references person (\"name\")\n foreign key (bool) references bool (\"name\")\n);\n\nExternal Knowledge:\nenlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'\n\nQuestion:\nSum up the number of students enlisted in foreign legion, peace corps, or army.", + "question": "Sum up the number of students enlisted in foreign legion, peace corps, or army.", + "evidence": "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", + "db_id": "student_loan", + "database_path": "../databases/student_loan.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT name) FROM enlist WHERE organ IN ('army', 'peace_corps', 'foreign_legion')", + "source_gold_sql": "SELECT COUNT(DISTINCT name) FROM enlist WHERE organ IN ('army', 'peace_corps', 'foreign_legion')", + "source_gold_sql_sha256": "3f4e60ba264d920f27ff3f596d74a677810e59528875ca29d0059634d3295be2", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5340", + "domain": "beer_factory", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE rootbeerreview (\n `CustomerID` integer, -- customer id. the id of the customer.\n `BrandID` integer, -- brand id. the id of the brand.\n `StarRating` integer, -- star rating. the star rating of the root beer. root beer with higher star rating has higher market evaluation and acceptance.\n `ReviewDate` date, -- review date. the review date. yyyy-mm-dd.\n `Review` text, -- the specific review content.\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nCREATE TABLE geolocation (\n `LocationID` integer, -- location id. the id of the location.\n `Latitude` real, -- the latitude of the location.\n `Longitude` real, -- the longitude of the location. precise location / coordinate = POINT(latitude, longitude).\n primary key (LocationID),\n foreign key (LocationID) references location(LocationID)\n);\n\nCREATE TABLE customers (\n `CustomerID` integer, -- customer id. the unique id for the customer.\n `First` text, -- first name. the first name of the customer.\n `Last` text, -- last name. the last name of the customer.\n `StreetAddress` text, -- street address. the address of the customer.\n `City` text, -- the city where the customer lives.\n `State` text, -- the state code. please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971. and mention its corresponding state name in the question. i.e. New York-- NY.\n `ZipCode` integer, -- zip code. the zip code.\n `Email` text, -- the customer's email.\n `PhoneNumber` text, -- phone number. the customer's phone number.\n `FirstPurchaseDate` date, -- first purchase date. the first purchase date of the customer. yyyy-mm-dd.\n `SubscribedToEmailList` text, -- subscribed to email list. whether the customer subscribe to the email list. 'true' means the user permits the company to send regular emails to them.\n `Gender` text, -- the customer's gender.\n primary key (CustomerID)\n);\n\nCREATE TABLE location (\n `LocationID` integer, -- location id. the unique id for the location.\n `LocationName` text, -- location name. the name of the location.\n `StreetAddress` text, -- street address. the street address.\n `City` text, -- the city where the location locates.\n `State` text, -- the state code.\n `ZipCode` integer, -- zip code. the zip code of the location.\n primary key (LocationID),\n foreign key (LocationID) references geolocation(LocationID)\n);\n\nCREATE TABLE transaction (\n `TransactionID` integer, -- transaction id. the unique id for the transaction.\n `CreditCardNumber` integer, -- credit card number. the number of the credit card used for payment.\n `CustomerID` integer, -- customer id. the customer id.\n `TransactionDate` date, -- transaction date. the transaction date. yyyy-mm-dd.\n `CreditCardType` text, -- credit card type. the credit card type.\n `LocationID` integer, -- location id. the location id of the selling company.\n `RootBeerID` integer, -- root beer id. the root beer id.\n `PurchasePrice` real, -- purchase price. the unit purchase price of the root beer. us dollars.\n primary key (TransactionID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);\n\nCREATE TABLE rootbeerbrand (\n `BrandID` integer, -- brand id. the unique id for the brand.\n `BrandName` text, -- brand name. the brand name.\n `FirstBrewedYear` integer, -- first brewed year. the first brewed year of the brand. brand with earlier first brewed year has a much longer brewed history.\n `BreweryName` text, -- brewery name. the brewery name.\n `City` text, -- the city where the brewery locates.\n `State` text, -- the state code.\n `Country` text, -- the country where the brewery locates. can find its corresponding continent. e.g., U.S.--> North America.\n `Description` text, -- the description of the brand.\n `CaneSugar` text, -- cane sugar. whether the drink contains cane sugar.\n `CornSyrup` text, -- corn syrup. whether the drink contains the corn syrup.\n `Honey` text, -- whether the drink contains the honey. if the beer has honey, it means this beer is sweeter or has sweetness.\n `ArtificialSweetener` text, -- artificial sweetener. whether the drink contains the artificial sweetener. if the beer has artificial sweetener, it means this beer is sweeter or has sweetness.\n `Caffeinated` text, -- whether the drink is caffeinated.\n `Alcoholic` text, -- whether the drink is alcoholic.\n `AvailableInCans` text, -- available in cans. whether the drink is available in cans.\n `AvailableInBottles` text, -- available in bottles. whether the drink is available in bottles.\n `AvailableInKegs` text, -- available in kegs. whether the drink is available in kegs.\n `Website` text, -- the website of the brand.\n `FacebookPage` text, -- facebook page. the facebook page of the brand. if not, it means this brand doesn't advertise on facebook.\n `Twitter` text, -- the twitter of the brand. if not, it means this brand doesn't advertise on twitter.\n `WholesaleCost` real, -- wholesale cost. the wholesale cost.\n `CurrentRetailPrice` real, -- current retail price. the current retail price. The unit profit available to wholesalers = current retail price - wholesale cost.\n primary key (BrandID)\n);\n\nCREATE TABLE rootbeer (\n `RootBeerID` integer, -- root beer id. the unique id for the root beer.\n `BrandID` integer, -- brandid. the brand id.\n `ContainerType` text, -- container type. the type of the container.\n `LocationID` integer, -- location id. the location id of the selling company.\n `PurchaseDate` date, -- purchase date. the purchase date of the root beer.\n primary key (RootBeerID),\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);\n\nExternal Knowledge:\nCalifornia refers to State = 'CA';\n\nQuestion:\nHow many transactions have been made to purchase a root beer brand from California?", + "question": "How many transactions have been made to purchase a root beer brand from California?", + "evidence": "California refers to State = 'CA';", + "db_id": "beer_factory", + "database_path": "../databases/beer_factory.sqlite", + "gold_sql": "SELECT COUNT(T3.RootBeerID) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.State = 'CA'", + "source_gold_sql": "SELECT COUNT(T3.RootBeerID) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.State = 'CA'", + "source_gold_sql_sha256": "172d8b9478e8d9a3f8b03e259c6d6f18077517d3b33116b8950b563b843da54e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4725", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nadventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);\n\nQuestion:\nName the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.", + "question": "Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.", + "evidence": "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "WITH hero_gross AS (\n SELECT T2.hero, CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) gross\n FROM movies_total_gross AS T1 \n INNER JOIN characters AS T2 \n ON T1.movie_title = T2.movie_title \n WHERE T1.genre = 'Adventure'\n) SELECT hero FROM hero_gross WHERE gross = (SELECT MAX(gross) FROM hero_gross)", + "source_gold_sql": "WITH hero_gross AS (\n SELECT T2.hero, CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) gross\n FROM movies_total_gross AS T1 \n INNER JOIN characters AS T2 \n ON T1.movie_title = T2.movie_title \n WHERE T1.genre = 'Adventure'\n) SELECT hero FROM hero_gross WHERE gross = (SELECT MAX(gross) FROM hero_gross)", + "source_gold_sql_sha256": "998b395f250797e32784849153225177e79e3c3aeedaf065e516bbb7b6e3e9bf", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3303", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\nproject \"Too Close for Comfort\" refers to title = 'Too Close for Comfort'; grade refers to grade_level\n\nQuestion:\nFor what grade was the project \"Too Close for Comfort\" for?", + "question": "For what grade was the project \"Too Close for Comfort\" for?", + "evidence": "project \"Too Close for Comfort\" refers to title = 'Too Close for Comfort'; grade refers to grade_level", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT T1.grade_level FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Too Close for Comfort'", + "source_gold_sql": "SELECT T1.grade_level FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Too Close for Comfort'", + "source_gold_sql_sha256": "7b788eb1f4809f0c020e630fee3dc2ad843890b7407a9a8077732d68196bf0d4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:62", + "domain": "movie_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movie_id` integer, -- ID related to the movie on Mubi.\n `movie_title` text, -- Name of the movie.\n `movie_release_year` integer, -- Release year of the movie.\n `movie_url` text, -- URL to the movie page on Mubi.\n `movie_title_language` text, -- By default, the title is in English. Only contains one value which is 'en'.\n `movie_popularity` integer, -- Number of Mubi users who love this movie.\n `movie_image_url` text, -- Image URL to the movie on Mubi.\n `director_id` text, -- ID related to the movie director on Mubi.\n `director_name` text, -- Full Name of the movie director.\n `director_url` text, -- URL to the movie director page on Mubi.\n primary key (movie_id)\n);\n\nCREATE TABLE ratings (\n `movie_id` integer, -- Movie ID related to the rating.\n `rating_id` integer, -- Rating ID on Mubi.\n `rating_url` text, -- URL to the rating on Mubi.\n `rating_score` integer, -- Rating score ranging from 1 (lowest) to 5 (highest). The score is proportional to the user's liking. The higher the score is, the more the user likes the movie.\n `rating_timestamp_utc` text, -- Timestamp for the movie rating made by the user on Mubi.\n `critic` text, -- Critic made by the user rating the movie. If value = \"None\", the user did not write a critic when rating the movie.\n `critic_likes` integer, -- Number of likes related to the critic made by the user rating the movie.\n `critic_comments` integer, -- Number of comments related to the critic made by the user rating the movie.\n `user_id` integer, -- ID related to the user rating the movie.\n `user_trialist` integer, -- whether user was a tralist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- No description.\n `user_eligible_for_trial` integer, -- No description.\n `user_has_payment_method` integer, -- No description.\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);\n\nCREATE TABLE ratings_users (\n `user_id` integer, -- ID related to the user rating the movie.\n `rating_date_utc` text, -- Rating date for the movie rating. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a trialist when he rated the movie. 1 = the user was a trialist when he rated the movie. 0 = the user was not a trialist when he rated the movie.\n `user_subscriber` integer, -- whether the user was a subscriber when he rated the movie. 1 = the user was a subscriber when he rated the movie. 0 = the user was not a subscriber when he rated the movie.\n `user_avatar_image_url` text, -- URL to the user profile image on Mubi.\n `user_cover_image_url` text, -- URL to the user profile cover image on Mubi.\n `user_eligible_for_trial` integer, -- whether the user was eligible for trial when he rated the movie. 1 = the user was eligible for trial when he rated the movie. 0 = the user was not eligible for trial when he rated the movie.\n `user_has_payment_method` integer, -- whether the user was a paying subscriber when he rated the movie. 1 = the user was a paying subscriber when he rated the movie. 0 = the user was not a paying subscriber when he rated.\n\n);\n\nCREATE TABLE lists_users (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_update_date_utc` text, -- Last update date for the list. YYYY-MM-DD.\n `list_creation_date_utc` text, -- Creation date for the list. YYYY-MM-DD.\n `user_trialist` integer, -- whether the user was a tralist when he created the list. 1 = the user was a trialist when he created the list. 0 = the user was not a trialist when he created the list.\n `user_subscriber` integer, -- whether the user was a subscriber when he created the list. 1 = the user was a subscriber when he created the list. 0 = the user was not a subscriber when he created the list.\n `user_avatar_image_url` text, -- User profile image URL on Mubi.\n `user_cover_image_url` text, -- User profile cover image URL on Mubi.\n `user_eligible_for_trial` text, -- whether the user was eligible for trial when he created the list. 1 = the user was eligible for trial when he created the list. 0 = the user was not eligible for trial when he created the list.\n `user_has_payment_method` text, -- whether the user was a paying subscriber when he created the list. 1 = the user was a paying subscriber when he created the list. 0 = the user was not a paying subscriber when he created the list.\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);\n\nCREATE TABLE lists (\n `user_id` integer, -- ID related to the user who created the list.\n `list_id` integer, -- ID of the list on Mubi.\n `list_title` text, -- Name of the list.\n `list_movie_number` integer, -- Number of movies added to the list.\n `list_update_timestamp_utc` text, -- Last update timestamp for the list.\n `list_creation_timestamp_utc` text, -- Creation timestamp for the list.\n `list_followers` integer, -- Number of followers on the list.\n `list_url` text, -- URL to the list page on Mubi.\n `list_comments` integer, -- Number of comments on the list.\n `list_description` text, -- List description made by the user.\n `list_cover_image_url` text, -- No description.\n `list_first_image_url` text, -- No description.\n `list_second_image_url` text, -- No description.\n `list_third_image_url` text, -- No description.\n primary key (list_id)\n);\n\nExternal Knowledge:\nuser 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;\n\nQuestion:\nWhat's the description of user 85981819's movie list with the most followers?", + "question": "What's the description of user 85981819's movie list with the most followers?", + "evidence": "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", + "db_id": "movie_platform", + "database_path": "../databases/movie_platform.sqlite", + "gold_sql": "SELECT T1.list_description FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 AND T1.list_followers = (SELECT MAX(T3.list_followers) FROM lists AS T3 INNER JOIN lists_users AS T4 ON T3.list_id = T4.list_id AND T3.user_id = T4.user_id WHERE T3.user_id = 85981819)", + "source_gold_sql": "SELECT T1.list_description FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 AND T1.list_followers = (SELECT MAX(T3.list_followers) FROM lists AS T3 INNER JOIN lists_users AS T4 ON T3.list_id = T4.list_id AND T3.user_id = T4.user_id WHERE T3.user_id = 85981819)", + "source_gold_sql_sha256": "3633844c7a9c8ed43a20594dd6ebd3cbf394f1f327b6a941c2dce63872c7feee", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3592", + "domain": "authors", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Author (\n `Id` integer, -- Id of the author.\n `Name` text, -- Author Name.\n `Affiliation` text, -- Organization name with which the author is affiliated. the name of an organization with which an author can be affiliated.\n primary key (Id)\n);\n\nCREATE TABLE Journal (\n `Id` integer, -- Journal Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of journal.\n primary key (Id)\n);\n\nCREATE TABLE Paper (\n `Id` integer, -- Id of the paper.\n `Title` text, -- Title of the paper.\n `Year` integer, -- Year of the paper. commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published.\n `ConferenceId` integer, -- Conference Id in which paper was published.\n `JournalId` integer, -- Journal Id in which paper was published. commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint.\n `Keyword` text, -- Keywords of the paper. commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n primary key (Id),\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);\n\nCREATE TABLE Conference (\n `Id` integer, -- Conference Id.\n `ShortName` text, -- Short name.\n `FullName` text, -- Full name.\n `HomePage` text, -- Homepage URL of conference.\n primary key (Id)\n);\n\nCREATE TABLE PaperAuthor (\n `PaperId` integer, -- Paper Id.\n `AuthorId` integer, -- Author Id. commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n `Name` text, -- Author Name (as written on paper).\n `Affiliation` text, -- Author Affiliation (as written on paper). the name of an organization with which an author can be affiliated.\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);\n\nExternal Knowledge:\npaper that was written by Cheng Huang refers to Name = 'Cheng Huang'; affiliated with Microsoft refers to Affiliation LIKE '%Microsoft%'\n\nQuestion:\nWhat are the distinct titles of the paper that were written by Cheng Huang and affiliated with Microsoft?", + "question": "What are the distinct titles of the paper that were written by Cheng Huang and affiliated with Microsoft?", + "evidence": "paper that was written by Cheng Huang refers to Name = 'Cheng Huang'; affiliated with Microsoft refers to Affiliation LIKE '%Microsoft%'", + "db_id": "authors", + "database_path": "../databases/authors.sqlite", + "gold_sql": "SELECT DISTINCT `Title` FROM `Paper` AS p JOIN `PaperAuthor` AS pa ON pa.`PaperId` = p.`Id` WHERE pa.`Name` = 'Cheng Huang' AND pa.`Affiliation` LIKE '%Microsoft%';", + "source_gold_sql": "SELECT DISTINCT `Title` FROM `Paper` AS p JOIN `PaperAuthor` AS pa ON pa.`PaperId` = p.`Id` WHERE pa.`Name` = 'Cheng Huang' AND pa.`Affiliation` LIKE '%Microsoft%';", + "source_gold_sql_sha256": "0edcfe853f4e8915da41b73bca7763aa426b762aa6c3adacc22e7c4d0a7813cc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:302", + "domain": "retail_complains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE client (\n `client_id` text, -- client id. unique id client number.\n `sex` text, -- sex of client.\n `day` integer, -- day of the birthday.\n `month` integer, -- month of the birthday.\n `year` integer, -- year when is born.\n `age` integer, -- age. teenager: 13-19. adult: 19-65. elder: > 65.\n `social` text, -- social number. ssn: us id number for each person.\n `first` text, -- first name.\n `middle` text, -- middle name.\n `last` text, -- last name.\n `phone` text, -- phone number.\n `email` text, -- email. google email / account: @gamil.com. microsoft email / account: xxx@outlook.com.\n `address_1` text, -- address 1.\n `address_2` text, -- address 2. entire address = (address_1, address_2).\n `city` text, -- city.\n `state` text, -- state code.\n `zipcode` integer, -- zipcode.\n `district_id` integer, -- district id. district id number.\n primary key (client_id),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE state (\n `StateCode` text, -- No description.\n `State` text, -- No description.\n `Region` text, -- No description.\n primary key (StateCode)\n);\n\nCREATE TABLE callcenterlogs (\n `Date received` date, -- complaint date.\n `Complaint ID` text, -- unique id number representing each complaint.\n `rand client` text, -- client id.\n `phonefinal` text, -- phone final. final phone number.\n `vru+line` text, -- voice response unit line.\n `call_id` integer, -- call id. id number identifying the call.\n `priority` integer, -- priority of the complaint. 0, 1, 2,. null: not available,. higher: -> higher priority,. -> more serious/urgent complaint.\n `type` text, -- type of complaint.\n `outcome` text, -- the outcome of processing of complaints.\n `server` text, -- server.\n `ser_start` text, -- server start. server start time. HH:MM:SS.\n `ser_exit` text, -- server exit. server exit time.\n `ser_time` text, -- server time. longer server time referring to more verbose/longer complaint.\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);\n\nCREATE TABLE reviews (\n `Date` date, -- No description.\n `Stars` integer, -- No description.\n `Reviews` text, -- No description.\n `Product` text, -- No description.\n `district_id` integer, -- No description.\n primary key (\"Date\"),\n foreign key (district_id) references district(district_id)\n);\n\nCREATE TABLE events (\n `Date received` date, -- Date received.\n `Product` text, -- complaining about which product.\n `Sub-product` text, -- sub product if exists. detailed product.\n `Issue` text, -- problems leading to this complaints.\n `Sub-issue` text, -- sub problems leading to this complaints if exists. more detailed issue.\n `Consumer complaint narrative` text, -- Consumer complaint narrative.\n `Tags` text, -- tags of client.\n `Consumer consent provided?` text, -- Tags Consumer consent provided?. whether the tags labeled under permission of the clients. • null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. • if the value is not empty: customers provide the consent for this tag.\n `Submitted via` text, -- Submitted via.\n `Date sent to company` text, -- Date sent to company. delay of the complaints = 'Date sent to company'.\n `Company response to consumer` text, -- Company response to consumer.\n `Timely response?` text, -- whether the response of the company is timely.\n `Consumer disputed?` text, -- whether the consumer dispute about the response from the company.\n `Complaint ID` text, -- id number indicating which complaint.\n `Client_ID` text, -- Client ID. id number indicating which client.\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);\n\nCREATE TABLE district (\n `district_id` integer, -- district id. unique id number representing district.\n `city` text, -- city.\n `state_abbrev` text, -- state abbreviated code.\n `division` text, -- division.\n primary key (district_id),\n foreign key (state_abbrev) references state(StateCode)\n);\n\nExternal Knowledge:\nmale refers to sex = 'Male';\n\nQuestion:\nHow many male clients born in the year 1977 were given priority 0 in their complaints?", + "question": "How many male clients born in the year 1977 were given priority 0 in their complaints?", + "evidence": "male refers to sex = 'Male';", + "db_id": "retail_complains", + "database_path": "../databases/retail_complains.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.client_id) \nFROM client AS T1\nJOIN callcenterlogs AS T2 ON T1.`client_id` = T2.`rand client`\nWHERE T1.sex = 'Male'\n AND T1.year = 1977\n AND T2.priority = 0;", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.client_id) \nFROM client AS T1\nJOIN callcenterlogs AS T2 ON T1.`client_id` = T2.`rand client`\nWHERE T1.sex = 'Male'\n AND T1.year = 1977\n AND T2.priority = 0;", + "source_gold_sql_sha256": "d2ba5c0106ae704bf765d7e7b1afd00969efc1381dabadb27f3006b87efa959e", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:971", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nID of all professors refers to person.p_id where professor = 1; not faculty member refers to hasPosition = 0; courses refers to taughtBy.course_id\n\nQuestion:\nList the ID of all professors who are not faculty member along with the courses taught by him/her.", + "question": "List the ID of all professors who are not faculty member along with the courses taught by him/her.", + "evidence": "ID of all professors refers to person.p_id where professor = 1; not faculty member refers to hasPosition = 0; courses refers to taughtBy.course_id", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT T2.p_id, T2.course_id FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition = 0", + "source_gold_sql": "SELECT T2.p_id, T2.course_id FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition = 0", + "source_gold_sql_sha256": "affdc240e893f8f2ea9f375187a9da3e18af0b36461853f25dbc35262f11de09", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5918", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\n\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300\n\nQuestion:\nAmong the books published by publisher \"Thomas Nelson\", how many of them have over 300 pages?", + "question": "Among the books published by publisher \"Thomas Nelson\", how many of them have over 300 pages?", + "evidence": "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Thomas Nelson' AND T1.num_pages > 300", + "source_gold_sql": "SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Thomas Nelson' AND T1.num_pages > 300", + "source_gold_sql_sha256": "9b48fbfb08e4c11e44c9a878e9dd1472e9195f09145b11173ef374e20739f031", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8203", + "domain": "sales_in_weather", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE weather (\n `station_nbr` integer, -- station number. the id of weather stations.\n `date` date, -- date.\n `tmax` integer, -- temperature max. max temperature.\n `tmin` integer, -- temperature min. min temperature. temperature range / difference = tmax - tmin.\n `tavg` integer, -- temperature average. average temperature.\n `depart` integer, -- departure from normal. Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal. • if the value is positive: the temperature is above the 30-year normal,. • if the value is negative: the temperature is below the 30-year normal,.\n `dewpoint` integer, -- dew point. The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n `wetbulb` integer, -- wet bulb. • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n `heat` integer, -- calculated heating degree.\n `cool` integer, -- calculated cooling degree.\n `sunrise` text, -- calculated sunrise.\n `sunset` text, -- calculated sunset.\n `codesum` text, -- code summarization. code summarization for the weather. • PY SPRAY. • SQ SQUALL. • DR LOW DRIFTING. • SH SHOWER. • FZ FREEZING. • MI SHALLOW. • PR PARTIAL. • BC PATCHES. • BL BLOWING. • VC VICINITY. • - LIGHT. • + HEAVY. • \"NO SIGN\" MODERATE.\n `snowfall` real, -- snowfall. snowfall (inches AND tenths).\n `preciptotal` real, -- precipitation total. inches (240hr period ending at indicated local standard time).\n `stnpressure` real, -- station pressure.\n `sealevel` real, -- sea level.\n `resultspeed` real, -- resultant speed. resultant wind speed.\n `resultdir` integer, -- resultant direction. resultant wind direction. who degree.\n `avgspeed` real, -- average speed. average wind speed. if avgspeed is larger: much more wind.\n primary key (station_nbr, date)\n);\n\nCREATE TABLE sales_in_weather (\n `date` date, -- the date of sales.\n `store_nbr` integer, -- store number.\n `item_nbr` integer, -- item number. item / product number.\n `units` integer, -- the quantity sold of an item on a given day.\n primary key (store_nbr, date, item_nbr)\n);\n\nCREATE TABLE relation (\n `store_nbr` integer, -- store number. the id of stores.\n `station_nbr` integer, -- station number. the id of weather stations.\n primary key (store_nbr),\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);\n\nExternal Knowledge:\nlowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'\n\nQuestion:\nWhat is the lowest minimum temperature recorded in store 16 on January 2012?", + "question": "What is the lowest minimum temperature recorded in store 16 on January 2012?", + "evidence": "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", + "db_id": "sales_in_weather", + "database_path": "../databases/sales_in_weather.sqlite", + "gold_sql": "SELECT MIN(tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 16 AND T1.`date` LIKE '%2012-01%'", + "source_gold_sql": "SELECT MIN(tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 16 AND T1.`date` LIKE '%2012-01%'", + "source_gold_sql_sha256": "81096fb850f1db7eaac00900c3d0ed010d56d1423dc297d646c0565ee593efca", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1020", + "domain": "computer_student", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE course (\n `course_id` integer, -- course id. unique id number identifying courses.\n `courseLevel` text, -- course level. • Level_300: basic or medium undergraduate courses. • Level_400: high-level or harder undergraduate course. • Level_500: professional or master/graduate courses.\n primary key (course_id)\n);\n\nCREATE TABLE person (\n `p_id` integer, -- person ID. the unique number identifying each person.\n `professor` integer, -- whether the person is a professor. 1: professor. 0: student.\n `student` integer, -- whether the person is a student. 0: professor. 1: student.\n `hasPosition` text, -- has position. whether the person has a position in the faculty. 0: the person is not a faculty member. Common Sense evidence:. faculty_aff: affiliated faculty. faculty_eme: faculty employee.\n `inPhase` text, -- in phase. the phase of qualification the person is undergoing. 0: the person is not undergoing the phase of qualification.\n `yearsInProgram` text, -- years in program. the year of the program the person is at. 0: the person is not in any programs. Common Sense evidence:. yearX means the person is on the Xth year of the program.\n primary key (p_id)\n);\n\nCREATE TABLE taughtBy (\n `course_id` integer, -- course ID. the identification number identifying each course.\n `p_id` integer, -- person ID. the identification number identifying each person.\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);\n\nCREATE TABLE advisedBy (\n `p_id` integer, -- person id. id number identifying each person.\n `p_id_dummy` integer, -- person id dummy. the id number identifying the advisor.\n primary key (p_id, p_id_dummy),\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);\n\nExternal Knowledge:\nprofessor refers to taughtBy.p_id; highest number of professional or master/graduate courses refers to max(count(taughtBy.course_id)) where courseLevel = 'Level_500'\n\nQuestion:\nWhich professors teach the highest number of professional or master/graduate courses?", + "question": "Which professors teach the highest number of professional or master/graduate courses?", + "evidence": "professor refers to taughtBy.p_id; highest number of professional or master/graduate courses refers to max(count(taughtBy.course_id)) where courseLevel = 'Level_500'", + "db_id": "computer_student", + "database_path": "../databases/computer_student.sqlite", + "gold_sql": "SELECT tb.p_id FROM taughtBy tb JOIN course c ON c.course_id = tb.course_id WHERE c.courseLevel = 'Level_500' GROUP BY tb.p_id HAVING COUNT(*) = ( SELECT MAX(cnt) FROM ( SELECT COUNT(*) AS cnt FROM taughtBy tb2 JOIN course c2 ON c2.course_id = tb2.course_id WHERE c2.courseLevel = 'Level_500' GROUP BY tb2.p_id))", + "source_gold_sql": "SELECT tb.p_id FROM taughtBy tb JOIN course c ON c.course_id = tb.course_id WHERE c.courseLevel = 'Level_500' GROUP BY tb.p_id HAVING COUNT(*) = ( SELECT MAX(cnt) FROM ( SELECT COUNT(*) AS cnt FROM taughtBy tb2 JOIN course c2 ON c2.course_id = tb2.course_id WHERE c2.courseLevel = 'Level_500' GROUP BY tb2.p_id))", + "source_gold_sql_sha256": "00f2f699084bf2cb5dc59ee2b069752e059ee0546310c203df6fe573073a25ac", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3454", + "domain": "video_games", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE genre (\n `id` integer, -- the unique identifier of the game genre.\n `genre_name` text, -- the game genre. The game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\n primary key (id)\n);\n\nCREATE TABLE game (\n `id` integer, -- the unique identifier of the game.\n `genre_id` integer, -- genre id. the id of the game genre. If game A and game B have the same genre, the user who likes game A may also like game B.\n `game_name` text, -- game name. the name of the game.\n primary key (id),\n foreign key (genre_id) references genre(id)\n);\n\nCREATE TABLE game_platform (\n `id` integer, -- the unique identifier of the record.\n `game_publisher_id` integer, -- game publisher id. the id of the game publisher.\n `platform_id` integer, -- platform id. the id of the platform.\n `release_year` integer, -- release year. the release year of the game.\n primary key (id),\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n);\n\nCREATE TABLE platform (\n `id` integer, -- the unique identifier of the game platform.\n `platform_name` text, -- the name of the platform. The game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\n primary key (id)\n);\n\nCREATE TABLE region_sales (\n `region_id` integer, -- the id of the region.\n `game_platform_id` integer, -- game platform id. the id of the game platform.\n `num_sales` real, -- number sales. the number of sales in this region. The number of games sold in the region = num_sales * 100000. The game platform with higher num_sales is more popular in the region.\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n);\n\nCREATE TABLE region (\n `id` integer, -- the unique identifier of the region.\n `region_name` text, -- the region name.\n primary key (id)\n);\n\nCREATE TABLE publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `publisher_name` text, -- the name of the publisher. The publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players.\n primary key (id)\n);\n\nCREATE TABLE game_publisher (\n `id` integer, -- the unique identifier of the game publisher.\n `game_id` integer, -- game id. the id of the game.\n `publisher_id` integer, -- publisher id. the id of the publisher. If game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\n primary key (id),\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n);\n\nExternal Knowledge:\nhow many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';\n\nQuestion:\nHow many games were sold on PS3 platform in Japan?", + "question": "How many games were sold on PS3 platform in Japan?", + "evidence": "how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", + "db_id": "video_games", + "database_path": "../databases/video_games.sqlite", + "gold_sql": "SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3'", + "source_gold_sql": "SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3'", + "source_gold_sql_sha256": "ebd04f11251bab4e4f09538313553cd797a81c1e8d808db644a907d982dd607c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5211", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\nthe highest population in year 2020 refers to MAX(SUM(population_2020));\n\nQuestion:\nProvide the aliases of the cities with the highest population in year 2020.", + "question": "Provide the aliases of the cities with the highest population in year 2020.", + "evidence": "the highest population in year 2020 refers to MAX(SUM(population_2020));", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.city HAVING SUM(T2.population_2020) = ( SELECT SUM(population_2020) FROM zip_data GROUP BY city ORDER BY SUM(population_2020) DESC LIMIT 1 )", + "source_gold_sql": "SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.city HAVING SUM(T2.population_2020) = ( SELECT SUM(population_2020) FROM zip_data GROUP BY city ORDER BY SUM(population_2020) DESC LIMIT 1 )", + "source_gold_sql_sha256": "d9851e7372e21dda9bde68b65168901739bcc8dc8526ac2331d79467162f152a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8756", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nmost crowded ward refers to Max(Population)\n\nQuestion:\nWhat is the ward ID of the most crowded ward?", + "question": "What is the ward ID of the most crowded ward?", + "evidence": "most crowded ward refers to Max(Population)", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1", + "source_gold_sql": "SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1", + "source_gold_sql_sha256": "8a0c9b2904dc277fb1dd6f72fbc409dd8cf66b2ac7c97521d67db94f49018df0", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6483", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\n\"Pavlova, Ltd.\" is the SupplierName; products refers to ProductName\n\nQuestion:\nList the products whose supplier is 'Pavlova, Ltd.' Please include the product name and ID.", + "question": "List the products whose supplier is 'Pavlova, Ltd.' Please include the product name and ID.", + "evidence": "\"Pavlova, Ltd.\" is the SupplierName; products refers to ProductName", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "SELECT p.ProductName, p.`ProductID`\nFROM `Products` AS p\nJOIN `Suppliers` AS s ON p.`SupplierID` = s.`SupplierID`\nWHERE s.`SupplierName` = 'Pavlova, Ltd.';", + "source_gold_sql": "SELECT p.ProductName, p.`ProductID`\nFROM `Products` AS p\nJOIN `Suppliers` AS s ON p.`SupplierID` = s.`SupplierID`\nWHERE s.`SupplierName` = 'Pavlova, Ltd.';", + "source_gold_sql_sha256": "9c960320c077aa52e5a635af7c78c5b8ac89e94912199dbe43da739234e78c32", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7942", + "domain": "music_platform_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE categories (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `category` text, -- category of the podcast. This usually represents the topic of the podcast.\n primary key (podcast_id, category)\n);\n\nCREATE TABLE podcasts (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `itunes_id` integer, -- itunes id. The unique id of the itunes.\n `slug` text, -- The slug of the podcast. It usually has the same name with the \"title\" column.\n `itunes_url` text, -- itunes url. The iTunes url of the podcast. Can visit the webpage of the podcast by clicking the itunes_url.\n `title` text, -- The title of the podcast. It usually has a very similar name to the \"slug\" column.\n primary key (podcast_id)\n);\n\nCREATE TABLE reviews (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `title` text, -- The title of the podcast review. This usually is the abstract of the whole review.\n `content` text, -- The content of the podcast review. This usually is the detailed explanation of the podcast review title.\n `rating` integer, -- The rating of the podcast review. Allowed values: 0 to 5. This rating is highly related with \"title\" and \"content\".\n `author_id` text, -- author id. The author id of the podcast review.\n `created_at` text, -- created at. The date and time of the podcast review creation. In the format of \"Date time\". e.g., 2018-05-09T18:14:32-07:00.\n\n);\n\nCREATE TABLE runs (\n `run_at` text, -- run at. The date and time of the podcast review creation.\n `max_rowid` integer, -- max row id. The id of max row of this run.\n `reviews_added` integer, -- reviews added. The number of reviews added in this run.\n\n);\n\nExternal Knowledge:\narts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))\n\nQuestion:\nOf the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?", + "question": "Of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?", + "evidence": "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", + "db_id": "music_platform_2", + "database_path": "../databases/music_platform_2.sqlite", + "gold_sql": "WITH counts AS (\n SELECT `category`, COUNT(*) AS cnt\n FROM `categories`\n WHERE `category` IN ('arts-books', 'arts-design')\n GROUP BY `category`\n)\nSELECT\n (SELECT `category` FROM counts ORDER BY cnt DESC LIMIT 1) AS `has more podcasts`,\n ABS(\n (SELECT cnt FROM counts WHERE `category` = 'arts-books') -\n (SELECT cnt FROM counts WHERE `category` = 'arts-design')\n ) AS `difference`;", + "source_gold_sql": "WITH counts AS (\n SELECT `category`, COUNT(*) AS cnt\n FROM `categories`\n WHERE `category` IN ('arts-books', 'arts-design')\n GROUP BY `category`\n)\nSELECT\n (SELECT `category` FROM counts ORDER BY cnt DESC LIMIT 1) AS `has more podcasts`,\n ABS(\n (SELECT cnt FROM counts WHERE `category` = 'arts-books') -\n (SELECT cnt FROM counts WHERE `category` = 'arts-design')\n ) AS `difference`;", + "source_gold_sql_sha256": "6e6b1447ec0f6c3381c0e8603e2f62fb178ac3a2d1db2c312881b1052e3f437c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5017", + "domain": "olympics", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE noc_region (\n `id` integer, -- the unique identifier of the noc region.\n `noc` text, -- the NOC code of the region. A NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world.\n `region_name` text, -- region name. the name of the region.\n primary key (id)\n);\n\nCREATE TABLE sport (\n `id` integer, -- the unique identifier of the sport.\n `sport_name` text, -- sport name. the name of the sport.\n primary key (id)\n);\n\nCREATE TABLE games (\n `id` integer, -- the unique identifier of the game.\n `games_year` integer, -- games year. the year of the game.\n `games_name` text, -- games name. the name of the game. games_name is 'games_year season'.\n `season` text, -- the season of the game. The Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\n primary key (id)\n);\n\nCREATE TABLE games_city (\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `city_id` integer, -- city id. the id of the city that held the game. Maps to city(id).\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n);\n\nCREATE TABLE person (\n `id` integer, -- the unique identifier of the person.\n `full_name` text, -- full name. the full name of the person. A person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name.\n `gender` text, -- the gender of the person. M stands for male and F stands for female.\n `height` integer, -- the height of the person.\n `weight` integer, -- the weight of the person. The unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing.\n primary key (id)\n);\n\nCREATE TABLE event (\n `id` integer, -- the unique identifier of the event.\n `sport_id` integer, -- sport id. the id of the sport. Maps to sport(id). There may be different events for the same sport in Olympics.\n `event_name` text, -- event name. the name of the event.\n primary key (id),\n foreign key (sport_id) references sport(id)\n);\n\nCREATE TABLE person_region (\n `person_id` integer, -- the id of the person. Maps to person(id).\n `region_id` integer, -- the id of the noc region. Maps to noc_region(id).\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n);\n\nCREATE TABLE medal (\n `id` integer, -- the unique identifier of the metal.\n `medal_name` text, -- medal name. the name of the medal.\n primary key (id)\n);\n\nCREATE TABLE games_competitor (\n `id` integer, -- the unique identifier of the record.\n `games_id` integer, -- games id. the id of the game. Maps to games(id).\n `person_id` integer, -- person id. the id of the person. Maps to person(id). The times a person participated in the Olympics games could be calculated by grouping by person_id.\n `age` integer, -- the age of the person when he/she participated in the game. If person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\n primary key (id),\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n);\n\nCREATE TABLE city (\n `id` integer, -- the unique identifier of the city.\n `city_name` text, -- city name. the name of the city.\n primary key (id)\n);\n\nCREATE TABLE competitor_event (\n `event_id` integer, -- event id. the id of the event. Maps to event(id).\n `competitor_id` integer, -- competitor id. the id of the competitor. Maps to games_competitor(id). The number of competitors who participated in a specific event could be calculated by grouping by event_id.\n `medal_id` integer, -- medal id. the id of the medal. Maps to medal(id). For a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place.\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n);\n\nExternal Knowledge:\nDIVIDE(COUNT(id where height > 175), COUNT(id))*100 as percentage where region_name = 'Vanuatu';\n\nQuestion:\nWhat is the percentage of athletes from Vanuatu who are taller than 175 and have recorded weight?", + "question": "What is the percentage of athletes from Vanuatu who are taller than 175 and have recorded weight?", + "evidence": "DIVIDE(COUNT(id where height > 175), COUNT(id))*100 as percentage where region_name = 'Vanuatu';", + "db_id": "olympics", + "database_path": "../databases/olympics.sqlite", + "gold_sql": "SELECT 100.0 * COUNT(DISTINCT CASE WHEN p.height > 175 THEN p.id END) /\n COUNT(DISTINCT CASE WHEN p.height <> 0 THEN p.id END) AS percentage\nFROM noc_region nr\nJOIN person_region pr ON pr.region_id = nr.id\nJOIN person p ON p.id = pr.person_id\nWHERE nr.region_name = 'Vanuatu';", + "source_gold_sql": "SELECT 100.0 * COUNT(DISTINCT CASE WHEN p.height > 175 THEN p.id END) /\n COUNT(DISTINCT CASE WHEN p.height <> 0 THEN p.id END) AS percentage\nFROM noc_region nr\nJOIN person_region pr ON pr.region_id = nr.id\nJOIN person p ON p.id = pr.person_id\nWHERE nr.region_name = 'Vanuatu';", + "source_gold_sql_sha256": "3f5f54ee631e3c0796e4281a6dbf0464a29d9b4e6027a6d720419c388511becc", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4147", + "domain": "citeseer", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE paper (\n `paper_id` text, -- paper id. unique string ID of the paper.\n `class_label` text, -- class label.\n primary key (paper_id)\n);\n\nCREATE TABLE cites (\n `cited_paper_id` text, -- cited_paper_id is the ID of the paper being cited.\n `citing_paper_id` text, -- citing_paper_id stands for the paper which contains the citation.\n primary key (cited_paper_id, citing_paper_id)\n);\n\nCREATE TABLE content (\n `paper_id` text, -- paper id. unique string ID of the paper.\n `word_cited_id` text, -- word cited id. rtype. whether each word in the vocabulary is present (indicated by 1) or absent (indicated by 0) in the paper.\n primary key (paper_id, word_cited_id),\n foreign key (paper_id) references paper(paper_id)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nList all words cited in the AI class label.", + "question": "List all words cited in the AI class label.", + "evidence": "", + "db_id": "citeseer", + "database_path": "../databases/citeseer.sqlite", + "gold_sql": "SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'", + "source_gold_sql": "SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'", + "source_gold_sql_sha256": "d60b91a2436cac0388dfded0cf6e53126f9e150278171909ee31a4367533e329", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:9246", + "domain": "movie_3", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE film_text (\n `film_id` integer, -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n primary key (film_id)\n);\n\nCREATE TABLE customer (\n `customer_id` integer, -- country id. unique id number identifying the country.\n `store_id` integer, -- store id. unique id number identifying the store.\n `first_name` text, -- first name. First name of the customer.\n `last_name` text, -- last name. Last name of the customer.\n `email` text, -- Email address of the customer.\n `address_id` integer , -- address id. Address id number of the customer.\n `active` integer, -- Wether the customer is active or not. 1: active. 0: not active.\n `create_date` datetime, -- create date. The date when the record is created.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (customer_id)\n);\n\nCREATE TABLE inventory (\n `inventory_id` integer , -- inventory id. unique id number identifying the inventory.\n `film_id` integer , -- film id. unique id number identifying the film.\n `store_id` integer, -- store id. id of the store.\n `last_update` datetime, -- last update. the last update time of the film.\n primary key (inventory_id)\n);\n\nCREATE TABLE rental (\n `rental_id` integer , -- rental id. unique id number identifying the rental.\n `rental_date` datetime, -- rental date. date when the rental occurs.\n `inventory_id` integer , -- inventory id. id number identifying the inventory.\n `customer_id` integer , -- customer id. id number identifying the customer.\n `return_date` datetime, -- return date. date when the rental returns.\n `staff_id` integer , -- staff id. id number identifying the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (rental_id)\n);\n\nCREATE TABLE staff (\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor. full name = (first name, last name).\n `address_id` integer, -- address id. id number identifying the address.\n `picture` blob, -- picture of the staff.\n `email` text, -- email of the staff.\n `store_id` integer , -- store id. id number identifying the store.\n `active` integer, -- Whether the staff is active or not. 1: active. 0: not active.\n `username` text, -- username to login the staff.\n `password` text, -- password to login the staff.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (staff_id)\n);\n\nCREATE TABLE film_category (\n `film_id` integer, -- film id. unique id number identifying the film.\n `category_id` integer, -- category id. id number identifying the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id, category_id)\n);\n\nCREATE TABLE film (\n `film_id` integer , -- film id. unique id number identifying the film.\n `title` text, -- title of the film.\n `description` text, -- main content of the film.\n `release_year` text, -- release year. the year when the film is released.\n `language_id` integer , -- language id. the language id of the film.\n `original_language_id` integer , -- original language id. the original language id of the film.\n `rental_duration` integer, -- rental duration. how long this film can be rent at once. days. price / day = rental_rate / retal_duration.\n `rental_rate` real, -- rental rate. the rate of renting this film. higher -> expensive.\n `length` integer, -- Duration time of the film screening. minutes.\n `replacement_cost` real, -- replacement cost. cost of replacing this film.\n `rating` text, -- The Motion Picture Association film rating. G ?General Audiences. PG ? Parental Guidance Suggested. PG-13 ? Parents Strongly Cautioned. R ? Restricted. NC-17 ? Adults Only.\n `special_features` text, -- special features. features of this film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (film_id)\n);\n\nCREATE TABLE film_actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `film_id` integer , -- film id. id number identifying the film.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id, film_id)\n);\n\nCREATE TABLE payment (\n `payment_id` integer , -- payment id. unique id number identifying the payment.\n `customer_id` integer , -- customer id. unique id number identifying the customer.\n `staff_id` integer , -- staff id. unique id number identifying the staff.\n `rental_id` integer, -- rental id. unique id number identifying the rental.\n `amount` real, -- unique id number identifying the amount.\n `payment_date` datetime, -- payment date. the date when the payment ocurs.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (payment_id)\n);\n\nCREATE TABLE category (\n `category_id` integer , -- category id. unique id number identifying the category.\n `name` text, -- name of the category.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (category_id)\n);\n\nCREATE TABLE country (\n `country_id` integer , -- country id. unique id number identifying the country.\n `country` text, -- the name of the country. number identifying the country. • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...). • Asia: (Afghanistan, Armenia, Azerbaijan,. Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...). • Oceania (American Samoa, Australia, French Polynesia...). • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...). • South America (Argentina, Bolivia, Brazil, Chile,. Colombia, Ecuador, French Guiana....). • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...). details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent. question can mention i.e., Europe instead of Austria, etc.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (country_id)\n);\n\nCREATE TABLE store (\n `store_id` integer , -- store id. unique id number identifying the store.\n `manager_staff_id` integer , -- manager staff id. id number identifying the manager staff.\n `address_id` integer , -- address id. id number identifying the address.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (store_id)\n);\n\nCREATE TABLE actor (\n `actor_id` integer , -- actor id. unique id number identifying the actor.\n `first_name` text, -- first name. First name of the actor.\n `last_name` text, -- last name. Last name of the actor.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (actor_id)\n);\n\nCREATE TABLE city (\n `city_id` integer , -- city id. unique id number identifying the city.\n `city` text, -- name of the city.\n `country_id` integer , -- country id. number identifying the country which the city belongs to.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (city_id)\n);\n\nCREATE TABLE address (\n `address_id` integer , -- address id. unique id number identifying the address.\n `address` text, -- The first address line.\n `address2` text, -- address 2. the second address line. address2 is the additional address if any.\n `district` text, -- No description.\n `city_id` integer unsigned, -- No description.\n `postal_code` text, -- postal code. a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n `phone` text, -- phone number.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (address_id)\n);\n\nCREATE TABLE language (\n `language_id` integer , -- language id. unique id number identifying the language.\n `name` text, -- name of the language.\n `last_update` datetime, -- last update. The time of the latest update.\n primary key (language_id)\n);\n\nExternal Knowledge:\nmovies with the most price per day refers to MAX(rental_rate / rental_duration)\n\nQuestion:\nPlease list the titles of the top ten movies with the most price per day in descending order of price per day.", + "question": "Please list the titles of the top ten movies with the most price per day in descending order of price per day.", + "evidence": "movies with the most price per day refers to MAX(rental_rate / rental_duration)", + "db_id": "movie_3", + "database_path": "../databases/movie_3.sqlite", + "gold_sql": "SELECT title FROM film WHERE rental_rate / rental_duration >= (SELECT rental_rate / rental_duration FROM film ORDER BY rental_rate / rental_duration DESC LIMIT 1 OFFSET 9)", + "source_gold_sql": "SELECT title FROM film WHERE rental_rate / rental_duration >= (SELECT rental_rate / rental_duration FROM film ORDER BY rental_rate / rental_duration DESC LIMIT 1 OFFSET 9)", + "source_gold_sql_sha256": "cf1a68f38dfe2074b02a95620927f32c625a198fe9bd96120578b62aa77e9052", + "gold_sql_overridden": false, + "grading_method": "subset,=,10", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:665", + "domain": "codebase_comments", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Repo (\n `Id` integer, -- unique id to identify repositories.\n `Url` text, -- github address of repository.\n `Stars` integer, -- stars this repository has received.\n `Forks` integer, -- forks that the repository has received.\n `Watchers` integer, -- how many watchers of this repository.\n `ProcessedTime` integer, -- Processed Time. how much processed time of downloading this repository.\n primary key (Id)\n);\n\nCREATE TABLE Solution (\n `Id` integer, -- unique id to identify this solution.\n `RepoId` integer, -- id of repository.\n `Path` test, -- path of this solution.\n `ProcessedTime` integer, -- processed time.\n `WasCompiled` integer, -- whether this solution needs to be compiled or not.\n primary key (Id)\n);\n\nCREATE TABLE Method (\n `Id` integer, -- unique id number. that identifies methods.\n `Name` text, -- name of methods. the second part is the task of this method. delimited by \".\".\n `FullComment` text, -- Full Comment. full comment of this method.\n `Summary` text, -- summary of the method.\n `ApiCalls` text, -- Api Calls. linearized sequenced of API calls.\n `CommentIsXml` integer, -- CommentIs Xml. whether the comment is XML format or not. 0: the comment for this method is not XML format. 1: the comment for this method is XML format.\n `SampledAt` integer, -- Sampled At. the time of sampling.\n `SolutionId` integer, -- Solution Id. id number of solutions.\n `Lang` text, -- Language. language code of method.\n `NameTokenized` text, -- Name Tokenized. tokenized name.\n primary key (Id)\n);\n\nCREATE TABLE MethodParameter (\n `Id` integer, -- unique id number identifying method parameters.\n `MethodId` text, -- Method Id.\n `Type` text, -- type of the method.\n `Name` text, -- name of the method. if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n primary key (Id)\n);\n\nExternal Knowledge:\nlink refers to Url; well-known repository refers to MAX(Watchers);\n\nQuestion:\nPlease provide a link to the most well-known repository's Github address.", + "question": "Please provide a link to the most well-known repository's Github address.", + "evidence": "link refers to Url; well-known repository refers to MAX(Watchers);", + "db_id": "codebase_comments", + "database_path": "../databases/codebase_comments.sqlite", + "gold_sql": "SELECT Url FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo )", + "source_gold_sql": "SELECT Url FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo )", + "source_gold_sql_sha256": "608e83f46fe40fda8928cae6a5427bcd9a994ab219477e8542c69b7ed46a5d9a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2857", + "domain": "professional_basketball", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE series_post (\n `id` integer, -- unique number of this record.\n `year` integer, -- year.\n `round` text, -- round. known abbreviations:. F:final. SF: semi-final. QF:quater-final 1/4. DF:division-final. DSF:division semi-final.\n `series` text, -- not useful.\n `tmIDWinner` text, -- team id winner.\n `lgIDWinner` text, -- league id winner.\n `tmIDLoser` text, -- team id loser.\n `lgIDLoser` text, -- league id loser.\n `W` integer, -- wins.\n `L` integer, -- loses.\n primary key (id),\n foreign key (tmIDWinner, year) references teams (tmID, year)\n foreign key (tmIDLoser, year) references teams (tmID, year)\n);\n\nCREATE TABLE teams (\n `year` integer, -- year.\n `lgID` text, -- league ID. league name. main categories:. NBA, ABA.\n `tmID` text, -- team ID. team id. abbreviated name.\n `franchID` text, -- not useful.\n `confID` text, -- not useful.\n `divID` text, -- division ID.\n `rank` integer, -- rank. less is better.\n `confRank` integer, -- not useful.\n `playoff` text, -- another name: post season. for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend.\n `name` text, -- full name of the team.\n `o_fgm` integer, -- offense field goal made. how many offense field goal made by this team in this season.\n `o_ftm` integer, -- offense free throw made. how many offense free throw made by this team in this season.\n `o_pts` integer, -- offense points.\n `d_pts` integer, -- defense points.\n `homeWon` integer, -- home wins. wins in the home.\n `homeLost` integer, -- home loses. loses in the home.\n `awayWon` integer, -- away wins. wins in the away.\n `awayLost` integer, -- away loses. loses in the away.\n `won` integer, -- total wins of this team in this year.\n `lost` integer, -- total losts of this team in this year.\n `games` integer, -- total number of games that this team played in this year (season).\n `arena` text, -- arena. null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas.\n primary key (year, tmID)\n);\n\nCREATE TABLE players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `useFirst` text, -- use first name. not useful.\n `firstName` text, -- the first name of the player.\n `middleName` text, -- the middle name of the player.\n `lastName` text, -- the last name of the player.\n `nameGiven` text, -- not useful.\n `fullGivenName` text, -- not useful.\n `nameSuffix` text, -- the suffix name of the player.\n `nameNick` text, -- nick name.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard. some player can have two positions simultaneously.\n `firstseason` integer, -- nothing special.\n `lastseason` integer, -- nothing special.\n `height` real, -- inch.\n `weight` integer, -- lb. null or empty means it doesn't have this information.\n `college` text, -- college. null or empty means it doesn't have this information. which colledge does this player graduate from.\n `collegeOther` text, -- the college that transferred from. some players may have the record of transferring from other colleges.\n `birthDate` date, -- birthdate.\n `birthCity` text, -- birthcity. null / empty refers to not recorded.\n `birthState` text, -- birth state.\n `birthCountry` text, -- birth country.\n `highSchool` text, -- high school. null / empty refers to not recorded.\n `hsCity` text, -- high school city. null / empty refers to not recorded.\n `hsState` text, -- high school state. null / empty refers to not recorded.\n `hsCountry` text, -- high school country. null / empty refers to not recorded.\n `deathDate` date, -- deathdate. 0000-00-00 means this player is still alive. within clear date:. 2011-11-10, which means this guy was died on \"2011-11-10\".\n `race` text, -- B:black,. W: white. null or empty: nothing.\n primary key (playerID)\n);\n\nCREATE TABLE awards_players (\n `playerID` text, -- ID number identifying the unique number of the player.\n `award` text, -- the name of the award.\n `year` integer, -- the time of this award.\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- notification. null refers to that no special things.\n `pos` text, -- position. the position of the player. C: Center. F: Forward. G: Guard.\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n);\n\nCREATE TABLE draft (\n `id` integer, -- the unique number to determine one row of the data.\n `draftYear` integer, -- which year does this draft happens.\n `draftRound` integer, -- the Round number of this draft. If the value is 0, it means that there is no draft in this year. 1 refers that this player was picked in the first round.\n `draftSelection` integer, -- league ID. the position that the player was picked. 0:This signifies that it doesn't contain the draft information of this player. 7:this player was selected in the 7th position in this round. draftRound: 1; draftSelection: 7. represents: this player was selected in the round 1, 7th position.\n `draftOverall` integer, -- draft overall rank. The player's overall draft position for the year. this is the overall draft rank of the player.\n `tmID` text, -- team ID. team name. abbreviated name.\n `firstName` text, -- the first name of the player.\n `lastName` text, -- the last name of the player.\n `suffixName` text, -- the suffix name of the player.\n `playerID` text, -- ID number identifying the unique number of the player.\n `draftFrom` text, -- the university that the drafted players come from. the name of the university.\n `lgID` text, -- league ID. the league name. mainly categories: \"NBA\" & \"ABA\".\n primary key (id),\n foreign key (tmID, draftYear) references teams (tmID, year)\n);\n\nCREATE TABLE players_teams (\n `id` integer, -- the unique number to identify this record.\n `playerID` text, -- ID number identifying the unique number of the player.\n `year` integer, -- year.\n `stint` integer, -- the period of the time player spent played for this team.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- No description.\n `GP` integer, -- game presentatons. game presentatons (attendance). min: 0, max: 82. if this number is equal to 82, means full attendance.\n `GS` integeer, -- game starting. min: 0, max: 82,. when GP = GS, it means that this player plays as the stating lineup fully.\n `minutes` integer, -- minutes.\n `points` integer, -- points.\n `oRebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `dRebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offense and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `PF` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fgAttempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fgMade` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ftAttempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ftMade` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `threeAttempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `threeMade` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n `PostGP` integer, -- post season game presentations. 0: this player doesn't present in the post season (playoffs).\n `PostGS` integer, -- post season game starting.\n `PostMinutes` integer, -- post season minutes.\n `PostPoints` integer, -- post season points.\n `PostoRebounds` integer, -- post season offense rebounds. null or empty refers to none. 1: 1 offense rebounds in the post season.\n `PostdRebounds` integer, -- post season defense rebounds. null or empty refers to none. 1: 1 defense rebounds in the post season.\n `PostRebounds` integer, -- post season defense rebounds. null or empty refers to none. 3: 3 rebounds in the post season totally.\n `PostAssists` integer, -- post season assistants. null or empty refers to none. 1: 1 assistance in the post season.\n `PostSteals` integer, -- post season steals. null or empty refers to none. 1: 1 offense steals in the post season.\n `PostBlocks` integer, -- post season blocks. null or empty refers to none. 1: 1 block in the post season.\n `PostTurnovers` integer, -- post season turnovers. null or empty refers to none. 1: 1 turnover in the post season.\n `PostPF` integer, -- post season personal fouls. null or empty refers to none. 1: 2 personal fouls in the post season.\n `PostfgAttempted` integer, -- post season field goal attempted. null or empty refers to none. 1: 1 field goal attempts in the post season.\n `PostfgMade` integer, -- post season field goal made. null or empty refers to none. 1: 1 field goal made in the post season.\n `PostftAttempted` integer, -- post season field free throw attempted. null or empty refers to none. 1: 1 free throw attempts in the post season.\n `PostftMade` integer, -- post season free throw made. null or empty refers to none. 1: 1 free throw made in the post season.\n `PostthreeAttempted` integer, -- post season three point attempted. null or empty refers to none. 1: 1 three point attempts in the post season.\n `PostthreeMade` integer, -- post season three point made. null or empty refers to none. 1: 1 three point made in the post season.\n `note` text, -- No description.\n primary key (id),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE coaches (\n `coachID` text, -- ID number identifying the unique number of the coach.\n `year` integer, -- No description.\n `tmID` text, -- team ID. team name. abbreviated name.\n `lgID` text, -- league ID. league name. mainly categories: \"NBA\" & \"ABA\".\n `stint` integer, -- the period of the time coaching this team.\n `won` integer, -- the number of won games. 0: no wins.\n `lost` integer, -- the number of lost games. 0: win all the games.\n `post_wins` integer, -- post season wins. the number of games won in the post-season (playoffs) games. 0: no wins. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n `post_losses` integer, -- post season losses. the number of games lost in the post-season (playoffs) games. 0: win all the games. If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n);\n\nCREATE TABLE awards_coaches (\n `id` integer, -- id of this row of data.\n `year` integer, -- which year did the coach receive the honor?\n `coachID` text, -- id number of the coaches.\n `award` text, -- the award names. mainly categories: \"NBA\" & \"ABA\".\n `lgID` text, -- league ID. the name of the league. mainly categories: \"NBA\" & \"ABA\".\n `note` text, -- special notification. null\" refers to that no special things.\n primary key (id),\n foreign key (coachID, year) references coaches (coachID, year)\n);\n\nCREATE TABLE player_allstar (\n `playerID` text, -- ID number identifying the unique number of the player.\n `first_name` text, -- the first name of the player.\n `last_name` text, -- the last name of the player.\n `season_id` integer, -- the id number of the season.\n `conference` text, -- which conference that players belong to. two categories: west; east.\n `league_id` text, -- league ID. the league name. two categories: NBA; ABA.\n `games_played` integer, -- how many all star games that this player played in this season. mostly it's 1.\n `minutes` integer, -- minutes of attendance. 18:played in 18 minutes.\n `points` integer, -- points. 19: get 19 pointsï¼›. null --> doesn't get points.\n `o_rebounds` integer, -- offense rebounds. empty or null refers to none offense rebounds,. 1: one offense rebound.\n `d_rebounds` integer, -- defense rebounds. empty or null refers to none defense rebounds,. 1: one defense rebound.\n `rebounds` integer, -- total rebounds. empty or null refers to none total rebounds,. 3: totally gets 3 rebounds including offence and defense rebounds. commensense evidence:. total rebounds = offense rebounds + defense rebounds.\n `assists` integer, -- assistants. null or empty refers to none. 2: 2 assistants.\n `steals` integer, -- steals. null or empty refers to none. 2: 2 steals.\n `blocks` integer, -- blocks. null or empty refers to none. 2: 2 blocks.\n `turnovers` integer, -- turnovers. null or empty refers to none. 2: 2 turnovers.\n `personal_fouls` integer, -- personal fouls. null or empty refers to none. 2: 2 personal fouls.\n `fg_attempted` integer, -- field goal attempted. null or empty refers to none. 2: 2 field goal attempts.\n `fg_made` integer, -- field goal made. null or empty refers to none. 2: 2 field goal made.\n `ft_attempted` integer, -- free throw attempted. null or empty refers to none. 2: 2 free throw attempts.\n `ft_made` integer, -- free throw made. null or empty refers to none. 2: 2 free throw made.\n `three_attempted` integer, -- three point attempted. null or empty refers to none. 2: 2 three point attempts.\n `three_made` integer, -- three point made. null or empty refers to none. 2: 2 three point made.\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n);\n\nExternal Knowledge:\nshortest player refers to Min(height); black players refers to race = 'B'\n\nQuestion:\nPlease list the top three shortest black players.", + "question": "Please list the top three shortest black players.", + "evidence": "shortest player refers to Min(height); black players refers to race = 'B'", + "db_id": "professional_basketball", + "database_path": "../databases/professional_basketball.sqlite", + "gold_sql": "SELECT firstName, lastName FROM players WHERE race = 'B' AND height > 0 ORDER BY height ASC LIMIT 3", + "source_gold_sql": "SELECT firstName, lastName FROM players WHERE race = 'B' AND height > 0 ORDER BY height ASC LIMIT 3", + "source_gold_sql_sha256": "db66c6bbafdf502246483af9dfdffd984251d6c0be9e865a4982c6c5b5a0c534", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2275", + "domain": "movielens", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE movies (\n `movieid` integer, -- movie id. unique identifier number of movies.\n `year` integer, -- 4: newest; 1: oldest. higher value means newer published date.\n `isEnglish` text, -- is English.\n `country` text, -- country.\n `runningtime` integer, -- No description.\n primary key (movieid)\n);\n\nCREATE TABLE u2base (\n `userid` integer, -- user id. identifier number of users.\n `movieid` integer, -- movie id. identifier number of movie.\n `rating` text, -- ratings of movies. higher value refers to higher satisfactory, each value is the rating of movies left by users.\n primary key (userid, movieid)\n);\n\nCREATE TABLE movies2directors (\n `movieid` integer, -- movie id. identifier number of movies.\n `directorid` integer, -- director id. identifier number of directors.\n `genre` text, -- genre of movies.\n primary key (movieid, directorid)\n);\n\nCREATE TABLE actors (\n `actorid` integer, -- actor id. unique identificator number of actors.\n `a_gender` text, -- actor gender. M: male; F: female.\n `a_quality` integer, -- actor quality. higher is better, lower is the worse.\n primary key (actorid)\n);\n\nCREATE TABLE movies2actors (\n `movieid` integer, -- movie id. identifier number of movies.\n `actorid` integer, -- actor id. identifier number of actors.\n `cast_num` integer, -- cast number.\n primary key (movieid, actorid)\n);\n\nCREATE TABLE directors (\n `directorid` integer, -- director id. unique identification number of actors directors.\n `d_quality` integer, -- director quality. higher value is better, lower is the worse.\n `avg_revenue` integer, -- average revenue. higher value is the higher, lower is the lower.\n primary key (directorid)\n);\n\nCREATE TABLE users (\n `userid` integer, -- user id. unique identifier number of users.\n `age` text, -- 1: 1-18 years old; 18: 18-25 years old; 25: 25-35 years old; 35: 35-45 years old; 45: 45-50 years old; 50: 50-56 years old; 56: over 56 years old.\n `u_gender` text, -- user gender. M / F: Male / Female.\n `occupation` text, -- occupation.\n primary key (userid)\n);\n\nExternal Knowledge:\nThe audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'\n\nQuestion:\nWhat is the difference of female and male audiences in number who viewed horror movies?", + "question": "What is the difference of female and male audiences in number who viewed horror movies?", + "evidence": "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", + "db_id": "movielens", + "database_path": "../databases/movielens.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN gender = 'F' THEN 1 WHEN gender = 'M' THEN -1 END) AS diff FROM ( SELECT DISTINCT u.userid id, u.u_gender gender FROM users u JOIN u2base ub ON ub.userid = u.userid JOIN movies2directors md ON md.movieid = ub.movieid WHERE md.genre = 'Horror' ) t", + "source_gold_sql": "SELECT SUM(CASE WHEN gender = 'F' THEN 1 WHEN gender = 'M' THEN -1 END) AS diff FROM ( SELECT DISTINCT u.userid id, u.u_gender gender FROM users u JOIN u2base ub ON ub.userid = u.userid JOIN movies2directors md ON md.movieid = ub.movieid WHERE md.genre = 'Horror' ) t", + "source_gold_sql_sha256": "67bc927d9598f62269707760426fc022f16be2e08e7fae61d95982063dad7959", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7976", + "domain": "music_platform_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE categories (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `category` text, -- category of the podcast. This usually represents the topic of the podcast.\n primary key (podcast_id, category)\n);\n\nCREATE TABLE podcasts (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `itunes_id` integer, -- itunes id. The unique id of the itunes.\n `slug` text, -- The slug of the podcast. It usually has the same name with the \"title\" column.\n `itunes_url` text, -- itunes url. The iTunes url of the podcast. Can visit the webpage of the podcast by clicking the itunes_url.\n `title` text, -- The title of the podcast. It usually has a very similar name to the \"slug\" column.\n primary key (podcast_id)\n);\n\nCREATE TABLE reviews (\n `podcast_id` text, -- podcast id. The unique id of the podcast.\n `title` text, -- The title of the podcast review. This usually is the abstract of the whole review.\n `content` text, -- The content of the podcast review. This usually is the detailed explanation of the podcast review title.\n `rating` integer, -- The rating of the podcast review. Allowed values: 0 to 5. This rating is highly related with \"title\" and \"content\".\n `author_id` text, -- author id. The author id of the podcast review.\n `created_at` text, -- created at. The date and time of the podcast review creation. In the format of \"Date time\". e.g., 2018-05-09T18:14:32-07:00.\n\n);\n\nCREATE TABLE runs (\n `run_at` text, -- run at. The date and time of the podcast review creation.\n `max_rowid` integer, -- max row id. The id of max row of this run.\n `reviews_added` integer, -- reviews added. The number of reviews added in this run.\n\n);\n\nExternal Knowledge:\n\"Planet Money\" is the title of podcast\n\nQuestion:\nHow many reviews does \"Planet Money\" have?", + "question": "How many reviews does \"Planet Money\" have?", + "evidence": "\"Planet Money\" is the title of podcast", + "db_id": "music_platform_2", + "database_path": "../databases/music_platform_2.sqlite", + "gold_sql": "SELECT COUNT(T2.podcast_id) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Planet Money'", + "source_gold_sql": "SELECT COUNT(T2.podcast_id) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Planet Money'", + "source_gold_sql_sha256": "fddd374c5fd383bed7d1889602ec9f2b4703b7885506d514caea901b5554138b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5995", + "domain": "books", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE customer (\n `customer_id` integer, -- customer id. the unique identifier of the customer.\n `first_name` text, -- first name. the first name of the customer.\n `last_name` text, -- last name. the last name of the customer. A person's full name is the first name, middle name (if applicable), and last name.\n `email` text, -- the email of the customer.\n primary key (customer_id)\n);\n\nCREATE TABLE cust_order (\n `order_id` integer , -- order id. the unique identifier of the customer order.\n `order_date` datetime, -- order date. the date of the order.\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_Id). The number of orders ordered by the customer = the show-up times of the relative customer id in the table.\n `shipping_method_id` integer, -- shipping method id. the id of the shipping method. Maps to shipping_method(method_id).\n `dest_address_id` integer, -- destination address id. the id of the destination address. Maps to address(address_id).\n primary key (order_id)\n);\n\nCREATE TABLE shipping_method (\n `method_id` integer, -- method id. the unique identifier of the method.\n `method_name` text, -- method name. the method name.\n `cost` real, -- the cost of the shipping method. The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n primary key (method_id)\n);\n\nCREATE TABLE book_author (\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `author_id` integer, -- author id. the id of the author. Maps to author(author_id). Books with the same author id are written by the same author.\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);\n\nCREATE TABLE book_language (\n `language_id` integer, -- language id. the unique identifier of the language.\n `language_code` text, -- language code. the language code. A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n `language_name` text, -- language name. the language name.\n primary key (language_id)\n);\n\nCREATE TABLE order_status (\n `status_id` integer, -- status id. the unique identifier of the order status.\n `status_value` text, -- status value. the status value. The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n primary key (status_id)\n);\n\nCREATE TABLE address_status (\n `status_id` integer, -- status id. the unique identifier of the status.\n `address_status` text, -- address status. the status of the address. • active: the address is still in use. • inactive: the address is not in use anymore.\n primary key (status_id)\n);\n\nCREATE TABLE author (\n `author_id` integer, -- author id. the unique identifier of the author.\n `author_name` text, -- author name. the name of the author.\n primary key (author_id)\n);\n\nCREATE TABLE publisher (\n `publisher_id` integer, -- publisher id. the unique identifier of the publisher.\n `publisher_name` text, -- publisher name. the name of the publisher.\n primary key (publisher_id)\n);\n\nCREATE TABLE country (\n `country_id` integer, -- country id. the unique identifier of the country.\n `country_name` text, -- country name. the country name.\n primary key (country_id)\n);\n\nCREATE TABLE order_line (\n `line_id` integer , -- line id. the unique identifier of the order line.\n `order_id` integer, -- order id. the id of the order. Maps to cust_order(order_id).\n `book_id` integer, -- book id. the id of the book. Maps to book(book_id).\n `price` real, -- the price of the order. Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n primary key (line_id)\n);\n\nCREATE TABLE customer_address (\n `customer_id` integer, -- customer id. the id of the customer. Maps to customer(customer_id).\n `address_id` integer, -- address id. the id of the address. Maps to address(address_id).\n `status_id` integer, -- status id. the id of the address status. A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);\n\nCREATE TABLE address (\n `address_id` integer, -- address id. the unique identifier of the address.\n `street_number` text, -- street number. the street number of the address. The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n `street_name` text, -- street name. the street name.\n `city` text, -- the city where the address belongs.\n `country_id` integer, -- country id. the id of the country where the address belongs. Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'.\n primary key (address_id),\n foreign key (country_id) references country(country_id)\n);\n\nCREATE TABLE order_history (\n `history_id` integer , -- history id. the unique identifier of the order history.\n `order_id` integer, -- the id of the order. Maps to cust_order(order_id).\n `status_id` integer, -- status id. the id of the order. Maps to order_status(status_id). The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n `status_date` datetime, -- status date. the date of the status updated.\n primary key (history_id)\n);\n\nCREATE TABLE book (\n `book_id` integer, -- book id. the unique identifier of the book.\n `title` text, -- the title of the book.\n `isbn13` text, -- the International Standard Book Number of the book. An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n `language_id` integer, -- language id. the id of the book language. Maps to book_language (language_id).\n `num_pages` integer, -- number pages. the number of the pages.\n `publication_date` date, -- publication date. the publication date of the book. The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n `publisher_id` integer, -- the id of the publisher. Maps to publisher (publisher_id).\n primary key (book_id),\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);\n\nExternal Knowledge:\nlanguage written in refers to language_name; rarest refers to Min(Count(book_id))\n\nQuestion:\nWhich language is the rarest among all the books?", + "question": "Which language is the rarest among all the books?", + "evidence": "language written in refers to language_name; rarest refers to Min(Count(book_id))", + "db_id": "books", + "database_path": "../databases/books.sqlite", + "gold_sql": "WITH language_frequency AS (SELECT language_name, COUNT(*) cnt FROM book JOIN book_language USING(language_id) GROUP BY language_name)\nSELECT language_name FROM language_frequency WHERE cnt = (SELECT MIN(cnt) FROM language_frequency)", + "source_gold_sql": "WITH language_frequency AS (SELECT language_name, COUNT(*) cnt FROM book JOIN book_language USING(language_id) GROUP BY language_name)\nSELECT language_name FROM language_frequency WHERE cnt = (SELECT MIN(cnt) FROM language_frequency)", + "source_gold_sql_sha256": "3c0581c2625ea4694ce704873fc8a63052c75df0725379537be4645a6affe66b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7847", + "domain": "world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE CountryLanguage (\n `CountryCode` text, -- Country Code. The unique code for country.\n `Language` text, -- Country language.\n `IsOfficial` text, -- Is Official. Information on whether the language is official in a given country. T / F.\n `Percentage` real, -- Percentage of language use.\n PRIMARY KEY (CountryCode,Language),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE City (\n `ID` integer, -- the unique id for the city.\n `Name` text, -- the name of the city.\n `CountryCode` text, -- Country Code. the country code of the country that the city is belonged.\n `District` text, -- the district where the city locates.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n primary key (ID),\n FOREIGN KEY (CountryCode) REFERENCES Country (Code)\n);\n\nCREATE TABLE Country (\n `Code` text, -- the unique country code of the country.\n `Name` text, -- the country name.\n `Continent` text, -- the continent that the country locates.\n `Region` text, -- the region that the country locates.\n `SurfaceArea` real, -- Surface Area. the surface area of the country.\n `IndepYear` integer, -- Independence Year. the year that the country declared independence.\n `Population` integer, -- the number of the population in the area. more population --> more crowded.\n `LifeExpectancy` real, -- Life Expectancy. the life expectancy at birth of the country. Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change.\n `GNP` real, -- Gross National Product. the GNP of the country. GNP measures the total monetary value of the output produced by a country's residents.\n `GNPOld` real, -- Gross National Product Old. Gross national product - old value.\n `LocalName` text, -- Local Name. The country's local name.\n `GovernmentForm` text, -- Government Form. The country's goverment form. Republic: governmentform contains \"Republic\".\n `HeadOfState` text, -- Head Of State. The head of state full name.\n `Capital` integer, -- The country's capital. if the capital is null, it means this country doesn't have a city where a region's government is located.\n `Code2` text, -- The second country code.\n PRIMARY KEY (Code)\n);\n\nExternal Knowledge:\nCyprus is a name of Country;\n\nQuestion:\nHow many languages are used in Cyprus?", + "question": "How many languages are used in Cyprus?", + "evidence": "Cyprus is a name of Country;", + "db_id": "world", + "database_path": "../databases/world.sqlite", + "gold_sql": "SELECT SUM(CASE WHEN T1.Name = 'Cyprus' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode", + "source_gold_sql": "SELECT SUM(CASE WHEN T1.Name = 'Cyprus' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode", + "source_gold_sql_sha256": "8d9207f330092b431c851fd60f233cdde0de8b73bbe1a5793905990f54ee5f4c", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8091", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\nnumber of students refers to num_students; in 2013 refers to year = 2013\n\nQuestion:\nFor the university id 268, show its number of students in 2013.", + "question": "For the university id 268, show its number of students in 2013.", + "evidence": "number of students refers to num_students; in 2013 refers to year = 2013", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013", + "source_gold_sql": "SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013", + "source_gold_sql_sha256": "d59d3fc09d0eeeb5304298a6edb50185f0bfed09d1006e4beb4db93fb2b63c89", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8682", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nreported on the street refers to location_description = 'STREET'; community area with highest number of crime refers to Max(Count(location_description)); community area refers to community_area_name\n\nQuestion:\nWhich community area has the highest number of crimes reported on the street?", + "question": "Which community area has the highest number of crimes reported on the street?", + "evidence": "reported on the street refers to location_description = 'STREET'; community area with highest number of crime refers to Max(Count(location_description)); community area refers to community_area_name", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT CA.`community_area_name` FROM `Community_Area` AS CA JOIN `Crime` AS C ON C.`community_area_no` = CA.`community_area_no` WHERE C.`location_description` = 'STREET' GROUP BY CA.`community_area_name` HAVING COUNT(*) = ( SELECT MAX(crime_count) FROM ( SELECT COUNT(*) AS crime_count FROM `Crime` AS C2 JOIN `Community_Area` AS CA2 ON C2.`community_area_no` = CA2.`community_area_no` WHERE C2.`location_description` = 'STREET' GROUP BY CA2.`community_area_name` ) AS CrimeCounts );", + "source_gold_sql": "SELECT CA.`community_area_name` FROM `Community_Area` AS CA JOIN `Crime` AS C ON C.`community_area_no` = CA.`community_area_no` WHERE C.`location_description` = 'STREET' GROUP BY CA.`community_area_name` HAVING COUNT(*) = ( SELECT MAX(crime_count) FROM ( SELECT COUNT(*) AS crime_count FROM `Crime` AS C2 JOIN `Community_Area` AS CA2 ON C2.`community_area_no` = CA2.`community_area_no` WHERE C2.`location_description` = 'STREET' GROUP BY CA2.`community_area_name` ) AS CrimeCounts );", + "source_gold_sql_sha256": "0d40d89db278ab87fc41a833c85fbacb1beb4141bfb923246772bdc51a451822", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7153", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat is the product ID No.793's model name?", + "question": "What is the product ID No.793's model name?", + "evidence": "", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT T2.Name FROM Product AS T1 INNER JOIN ProductModel AS T2 ON T1.ProductModelID = T2.ProductModelID WHERE T1.ProductID = 793", + "source_gold_sql": "SELECT T2.Name FROM Product AS T1 INNER JOIN ProductModel AS T2 ON T1.ProductModelID = T2.ProductModelID WHERE T1.ProductID = 793", + "source_gold_sql_sha256": "342bcaef33cbd28ab40754e3961ebeccb54059230e4df483092de8798227bd01", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:2153", + "domain": "world_development_indicators", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE SeriesNotes (\n `Seriescode` text, -- Series code. code identifying the series.\n `Year` text, -- year.\n `Description` text, -- Description of series.\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);\n\nCREATE TABLE Indicators (\n `CountryName` text, -- Country code. code identifying unique countries.\n `CountryCode` text, -- Series code. Series code of countries.\n `IndicatorName` text, -- Indicator Name. indicator name.\n `IndicatorCode` text, -- Indicator Code. indicator code.\n `Year` integer, -- year.\n `Value` integer, -- value.\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Footnotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Year` text, -- Year.\n `Description` text, -- Description of country footnotes.\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE CountryNotes (\n `Countrycode` text, -- Country code. code identifying unique countries.\n `Seriescode` text, -- Series code. Series code of countries.\n `Description` text, -- description.\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);\n\nCREATE TABLE Series (\n `SeriesCode` text, -- Series Code. unique code identifying series.\n `Topic` text, -- topic of series.\n `IndicatorName` text, -- Indicator Name.\n `ShortDefinition` text, -- Short Definition. Short Definition of series.\n `LongDefinition` text, -- Long Definition. Long Definition of series.\n `UnitOfMeasure` text, -- Unit Of Measure.\n `Periodicity` text, -- No description.\n `BasePeriod` text, -- Base Period. a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production.\n `OtherNotes` integer, -- Other Notes.\n `AggregationMethod` text, -- Aggregation Method.\n `LimitationsAndExceptions` text, -- Limitations And Exceptions.\n `NotesFromOriginalSource` text, -- Notes From Original Source.\n `GeneralComments` text, -- General Comments.\n `Source` text, -- source of this data.\n `StatisticalConceptAndMethodology` text, -- Statistical Concept And Methodology.\n `DevelopmentRelevance` text, -- Development Relevance.\n `RelatedSourceLinks` text, -- Related Source Links.\n `OtherWebLinks` integer, -- Other Web Links.\n `RelatedIndicators` integer, -- Related Indicators.\n `LicenseType` text, -- License Type.\n primary key (SeriesCode)\n);\n\nCREATE TABLE Country (\n `CountryCode` text, -- Country Code. unique code identifying countries.\n `ShortName` text, -- Short Name. Short names of countries.\n `TableName` text, -- Table Name. table names of countries.\n `LongName` text, -- Long Name. long or full name of countries.\n `Alpha2Code` text, -- Alpha to Code. 2 digit code of countries.\n `CurrencyUnit` text, -- Currency Unit. Currency Unit used in this country.\n `SpecialNotes` text, -- Special Notes.\n `Region` text, -- region that country belongs to.\n `IncomeGroup` text, -- Income Group. income level of countries.\n `Wb2Code` text, -- world bank to code.\n `NationalAccountsBaseYear` text, -- National Accounts Base Year. the year used as the base period for constant price calculations in the country's national accounts.\n `NationalAccountsReferenceYear` text, -- National Accounts Reference Year.\n `SnaPriceValuation` text, -- SNA Price Valuation.\n `LendingCategory` text, -- Lending Category. Lending category. • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n `OtherGroups` text, -- Other groups. other groups. • HIPC: Heavily Indebted Poor Countries. • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n `SystemOfNationalAccounts` text, -- System Of National Accounts.\n `AlternativeConversionFactor` text, -- Alternative Conversion Factor. Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method.\n `PppSurveyYear` text, -- purchasing power parity survey year.\n `BalanceOfPaymentsManualInUse` text, -- Balance Of Payments Manual In Use.\n `ExternalDebtReportingStatus` text, -- External Debt Reporting Status. • Actual. • Preliminary. • Estimate. commonsense reasoning:. If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished. if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished.\n `SystemOfTrade` text, -- System Of Trade.\n `GovernmentAccountingConcept` text, -- Government Accounting Concept.\n `ImfDataDisseminationStandard` text, -- International Monetory Fund Data Dissemination Standard. IMF Standards for Data Dissemination.\n `LatestPopulationCensus` text, -- Latest Population Census.\n `LatestHouseholdSurvey` text, -- Latest Household Survey.\n `SourceOfMostRecentIncomeAndExpenditureData` text, -- Source Of Most Recent Income And Expenditure Data.\n `VitalRegistrationComplete` text, -- Vital Registration Complete.\n `LatestAgriculturalCensus` text, -- Latest Agricultural Census.\n `LatestIndustrialData` integer, -- Latest Industrial Data.\n `LatestTradeData` integer, -- Latest Trade Data.\n `LatestWaterWithdrawalData` integer, -- Latest Water Withdrawal Data.\n primary key (CountryCode)\n);\n\nExternal Knowledge:\nlower earning countries refer to IncomeGroup = 'Low income';\n\nQuestion:\nList out the country code of lower earning countries", + "question": "List out the country code of lower earning countries", + "evidence": "lower earning countries refer to IncomeGroup = 'Low income';", + "db_id": "world_development_indicators", + "database_path": "../databases/world_development_indicators.sqlite", + "gold_sql": "SELECT DISTINCT CountryCode FROM Country AS T1 WHERE T1.IncomeGroup = 'Low income'", + "source_gold_sql": "SELECT DISTINCT CountryCode FROM Country AS T1 WHERE T1.IncomeGroup = 'Low income'", + "source_gold_sql_sha256": "5d6fbbc8c1b08b106a33fd5028bc71a97039aea8db6308fd0cb2c70db0bbbe07", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1065", + "domain": "talkingdata", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE app_all (\n `app_id` integer, -- No description.\n PRIMARY KEY (app_id)\n);\n\nCREATE TABLE sample_submission (\n `device_id` integer, -- No description.\n `F23-` real, -- No description.\n `F24-26` real, -- No description.\n `F27-28` real, -- No description.\n `F29-32` real, -- No description.\n `F33-42` real, -- No description.\n `F43+` real, -- No description.\n `M22-` real, -- No description.\n `M23-26` real, -- No description.\n `M27-28` real, -- No description.\n `M29-31` real, -- No description.\n `M32-38` real, -- No description.\n `M39+` real, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE phone_brand_device_model2 (\n `device_id` integer, -- device id. the id number of the device.\n `phone_brand` text, -- phone brand. phone_brand has duplicated values since some device models belong to the same brand.\n `device_model` text, -- device model. phone_brand has duplicated values since some device models belong to the same brand.\n PRIMARY KEY (device_id,phone_brand,device_model)\n);\n\nCREATE TABLE gender_age_test (\n `device_id` integer, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE app_events_relevant (\n `event_id` integer, -- No description.\n `app_id` integer, -- No description.\n `is_installed` integer, -- No description.\n `is_active` integer, -- No description.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events_relevant (event_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE label_categories (\n `label_id` integer, -- label id. unique id of label.\n `category` text, -- category of the label.\n PRIMARY KEY (label_id)\n);\n\nCREATE TABLE gender_age (\n `device_id` integer, -- device id. unique number of devices.\n `gender` text, -- gender of the user who uses this device.\n `age` integer, -- age of the user who uses this device. • M: male; • F: female.\n `group` text, -- group of the ages.\n PRIMARY KEY (device_id),\n FOREIGN KEY (device_id) REFERENCES phone_brand_device_model2 (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_labels (\n `app_id` integer, -- app id. id of the app user.\n `label_id` integer, -- label id. id of labels represents which behavior category that each user belongs to.\n FOREIGN KEY (label_id) REFERENCES label_categories (label_id) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (app_id) REFERENCES app_all (app_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE gender_age_train (\n `device_id` integer, -- No description.\n `gender` text, -- No description.\n `age` integer, -- No description.\n `group` text, -- No description.\n PRIMARY KEY (device_id)\n);\n\nCREATE TABLE events (\n `event_id` integer, -- event id. unique id number referring to the event.\n `device_id` integer, -- device id. id number referring the device.\n `timestamp` datetime, -- the time of the event.\n `longitude` real, -- longitude. the location / coordinate = (longitude, latitude).\n `latitude` real, -- latitude.\n PRIMARY KEY (event_id)\n);\n\nCREATE TABLE events_relevant (\n `event_id` integer, -- No description.\n `device_id` integer, -- No description.\n `timestamp` datetime, -- No description.\n `longitude` real, -- No description.\n `latitude` real, -- No description.\n PRIMARY KEY (event_id),\n FOREIGN KEY (device_id) REFERENCES gender_age (device_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE app_events (\n `event_id` integer, -- event id. the id of events.\n `app_id` integer, -- app id. the id of app users. each app_id represents for an user.\n `is_installed` integer, -- is installed. whether this app is installed or not. • 0: no. • 1: yes: installed.\n `is_active` integer, -- is active. whether this user is active or not.\n PRIMARY KEY (event_id,app_id),\n FOREIGN KEY (event_id) REFERENCES events (event_id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nDescribe the device user gender and age of the event ID of 15251.", + "question": "Describe the device user gender and age of the event ID of 15251.", + "evidence": "", + "db_id": "talkingdata", + "database_path": "../databases/talkingdata.sqlite", + "gold_sql": "SELECT T1.gender, T1.age FROM gender_age AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T2.event_id = 15251", + "source_gold_sql": "SELECT T1.gender, T1.age FROM gender_age AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T2.event_id = 15251", + "source_gold_sql_sha256": "95b9e7bd8a5f4b8adfc27a9fccc4b6b8b66fed21f7aa13be5ff1ab2b891b04c5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:708", + "domain": "trains", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE trains (\n `id` integer, -- the unique id representing the trains.\n `direction` text, -- the direction of trains that are running. • east; • west;\n PRIMARY KEY (id)\n);\n\nCREATE TABLE cars (\n `id` integer, -- the unique id number representing the cars.\n `train_id` integer, -- train id. the counterpart id for trains that the cars belong to.\n `position` integer, -- postion id of cars in the trains. 1-4:. 1: head car. 4: tail car.\n `shape` text, -- shape of the cars. • rectangle. • bucket. • u_shaped. • hexagon. • elipse. regular shape:. rectangle, u_shaped, hexagon.\n `len` text, -- length. length of the cars. • short. • long.\n `sides` text, -- sides of the cars. • not_double. • double.\n `roof` text, -- roof of the cars. • none: the roof is open. • peaked. • flat. • arc. • jagged.\n `wheels` integer, -- wheels of the cars. • 2:. • 3:.\n `load_shape` text, -- load shape. • circle. • hexagon. • triangle. • rectangle. • diamond.\n `load_num` integer, -- load number. 0-3:. • 0: empty load. • 3: full load.\n PRIMARY KEY (id),\n FOREIGN KEY (train_id) REFERENCES trains (id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nExternal Knowledge:\ncalculation = DIVIDE(count(id), count(train_id))\n\nQuestion:\nWhat is the average number of cars on trains that run in the east direction?", + "question": "What is the average number of cars on trains that run in the east direction?", + "evidence": "calculation = DIVIDE(count(id), count(train_id))", + "db_id": "trains", + "database_path": "../databases/trains.sqlite", + "gold_sql": "SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'", + "source_gold_sql": "SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'", + "source_gold_sql_sha256": "9cbe23db543c68596fcb818b5b3c47da6d6b6f13ff15b1709b77a8c95ca27058", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8543", + "domain": "software_company", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE mailings3 (\n `REFID` integer, -- REFERENCE ID. unique id number identifying the customer.\n `REF_DATE` datetime, -- REFERENCE DATE. indicating the date when the mailing was sent.\n `RESPONSE` text, -- Actual response to the marketing incentive email. • True. • False. 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no.\n primary key (REFID)\n);\n\nCREATE TABLE Demog (\n `GEOID` integer, -- GEOGRAPHIC ID. unique geographic identifier.\n `INHABITANTS_K` real, -- INHABITANTS (THOUSANDS). number of inhabitants. the unit is K (thousands).\n `INCOME_K` real, -- INCOME (THOUSANDS). average income per inhabitant per month. the unit is dollar, it indicates the average income per inhabitant per month. some computation like: total income per year = INHABITANTS_K x INCOME_K x 12.\n `A_VAR1` real, -- No description.\n `A_VAR2` real, -- No description.\n `A_VAR3` real, -- No description.\n `A_VAR4` real, -- No description.\n `A_VAR5` real, -- No description.\n `A_VAR6` real, -- No description.\n `A_VAR7` real, -- No description.\n `A_VAR8` real, -- No description.\n `A_VAR9` real, -- No description.\n `A_VAR10` real, -- No description.\n `A_VAR11` real, -- No description.\n `A_VAR12` real, -- No description.\n `A_VAR13` real, -- No description.\n `A_VAR14` real, -- No description.\n `A_VAR15` real, -- No description.\n `A_VAR16` real, -- No description.\n `A_VAR17` real, -- No description.\n `A_VAR18` real, -- No description.\n primary key (GEOID)\n);\n\nCREATE TABLE Mailings1_2 (\n `REFID` integer, -- REFERENCE ID. unique id number identifying the customer.\n `REF_DATE` datetime, -- REFERENCE DATE. indicating the date when the mailing was sent.\n `RESPONSE` text, -- Response to the incentive mailing that marketing department sent. • True. • False. 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no.\n primary key (REFID)\n);\n\nCREATE TABLE Sales (\n `EVENTID` integer, -- EVENT ID. unique id of event (sales).\n `REFID` integer, -- REFERENCE ID. Reference to customer ID.\n `EVENT_DATE` datetime, -- EVENT DATE. date of sales.\n `AMOUNT` real, -- amount of sales.\n primary key (EVENTID)\n);\n\nCREATE TABLE Customers (\n `ID` integer, -- the unique number identifying the customer.\n `SEX` text, -- the sex of the customer.\n `MARITAL_STATUS` text, -- MARITAL STATUS. � Never-married. � Married-civ-spouse. � Divorced. � Widowed. � Other. \"Married-civ-spouse\", \"Divorced\", \"Widowed\" mean customer has been married.\n `GEOID` integer, -- GEOGRAPHIC ID. geographic identifier.\n `EDUCATIONNUM` integer, -- EDUCATION NUMBER. the level of education. higher education number refers to higher education.\n `OCCUPATION` text, -- occupation of customers.\n `age` integer, -- age of customers. � teenager: 13-19 years old. � elder: people aged over 65.\n primary key (ID)\n);\n\nExternal Knowledge:\nwidowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5; income refers to INCOME_K\n\nQuestion:\nAmong the widowed female customers, give the income of those who has an level of education of 5 and below.", + "question": "Among the widowed female customers, give the income of those who has an level of education of 5 and below.", + "evidence": "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5; income refers to INCOME_K", + "db_id": "software_company", + "database_path": "../databases/software_company.sqlite", + "gold_sql": "SELECT d.`INCOME_K`\nFROM `Customers` c\nJOIN `Demog` d ON c.`GEOID` = d.`GEOID`\nWHERE c.`SEX` = 'Female'\n AND c.`MARITAL_STATUS` = 'Widowed'\n AND c.`EDUCATIONNUM` <= 5;", + "source_gold_sql": "SELECT d.`INCOME_K`\nFROM `Customers` c\nJOIN `Demog` d ON c.`GEOID` = d.`GEOID`\nWHERE c.`SEX` = 'Female'\n AND c.`MARITAL_STATUS` = 'Widowed'\n AND c.`EDUCATIONNUM` <= 5;", + "source_gold_sql_sha256": "4f9036560f979e8e13602cace39f76c90f424f928c1af7d07fe6b6825eb21f12", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8921", + "domain": "cookbook", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Quantity (\n `quantity_id` integer, -- quantity id. the unique identifier for the quantity.\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `ingredient_id` integer, -- ingredient id. the id of the ingredient.\n `max_qty` real, -- maximum quantity. the max quantity of the ingredient.\n `min_qty` real, -- minimum quantity. the min quantity of the ingredient. If max_qty equals to min_qty, it means that the ingredient must be rationed.\n `unit` text, -- the unit of the ingredient.\n `preparation` text, -- 'No data' means the ingredient doesn't need preprocessing.\n `optional` text, -- whether the ingredient is optional.\n primary key (quantity_id),\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);\n\nCREATE TABLE Nutrition (\n `recipe_id` integer, -- recipe id. the id of the recipe.\n `protein` real, -- the protein content in the recipe.\n `carbo` real, -- the carbo content in the recipe.\n `alcohol` real, -- the alcohol content in the recipe.\n `total_fat` real, -- total fat. the total fat content in the recipe. higher --> higher possibility to gain weight.\n `sat_fat` real, -- saturated fat. the saturated fat content in the recipe. unsaturated fat = total_fat - saturated fat.\n `cholestrl` real, -- cholesterol. the cholesterol content in the recipe.\n `sodium` real, -- the sodium content in the recipe. Salt/Sodium-Free - Less than 5 mg of sodium per serving. Very Low Sodium - 35 mg of sodium or less per serving. Low Sodium -140 mg of sodium or less per serving. Reduced Sodium - At least 25% less sodium than the regular product. Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product. No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated.\n `iron` real, -- the iron content in the recipe. if iron > 20mg, it will lead to. • constipation. • feeling sick. • being sick. • stomach pain. question could mention any of functions listed before.\n `vitamin_c` real, -- vitamin c. the vitamin c content in the recipe. Vitamin C, also known as ascorbic acid, if the VC is higher, it will:. • helping to protect cells and keeping them healthy. • maintaining healthy skin, blood vessels, bones and cartilage. • helping with wound healing. question could mention any of functions listed before.\n `vitamin_a` real, -- vitamin a. the vitamin a content in the recipe. higher --> beneficial to. • helping your body's natural defense against illness and infection (the immune system) work properly. • helping vision in dim light. • keeping skin and the lining of some parts of the body, such as the nose, healthy. question could mention any of functions listed before.\n `fiber` real, -- the fiber a content in the recipe.\n `pcnt_cal_carb` real, -- percentage calculation carbo. percentage of carbo in total nutrient composition.\n `pcnt_cal_fat` real, -- percentage calculation fat. percentage of fat in total nutrient composition.\n `pcnt_cal_prot` real, -- percentage calculation protein. percentage of protein in total nutrient composition.\n `calories` real, -- the calories of the recipe.\n primary key (recipe_id),\n foreign key (recipe_id) references Recipe(recipe_id)\n);\n\nCREATE TABLE Recipe (\n `recipe_id` integer, -- recipe id. the unique identifier for the recipe.\n `title` text, -- the title of the recipe.\n `subtitle` text, -- the subtitle of the recipe.\n `servings` integer, -- the number of people the recipe can serve.\n `yield_unit` text, -- yield unit. the unit of the yield for the recipe.\n `prep_min` integer, -- preparation minute. the preparation minute of the recipe.\n `cook_min` integer, -- cooked minute. the cooked minute of the recipe.\n `stnd_min` integer, -- stand minute. the stand minute of the price. The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min.\n `source` text, -- the source of the recipe.\n `intro` text, -- introduction. the introduction of the recipe.\n `directions` text, -- the directions of the recipe.\n primary key (recipe_id)\n);\n\nCREATE TABLE Ingredient (\n `ingredient_id` integer, -- ingredient id. the unique identifier for the ingredient.\n `category` text, -- the category of the ingredient.\n `name` text, -- the name of the ingredient.\n `plural` text, -- the plural suffix of the ingredient.\n primary key (ingredient_id)\n);\n\nExternal Knowledge:\naverage vitamin C refers to AVG(vitamin_c); all cakes refers to title LIKE '%cake%'\n\nQuestion:\nWhat is the average vitamin C amount of all cakes?", + "question": "What is the average vitamin C amount of all cakes?", + "evidence": "average vitamin C refers to AVG(vitamin_c); all cakes refers to title LIKE '%cake%'", + "db_id": "cookbook", + "database_path": "../databases/cookbook.sqlite", + "gold_sql": "SELECT AVG(T1.vitamin_c) FROM Nutrition AS T1 INNER JOIN Recipe AS T2 ON T2.recipe_id = T1.recipe_id WHERE T2.title LIKE '%cake%'", + "source_gold_sql": "SELECT AVG(T1.vitamin_c) FROM Nutrition AS T1 INNER JOIN Recipe AS T2 ON T2.recipe_id = T1.recipe_id WHERE T2.title LIKE '%cake%'", + "source_gold_sql_sha256": "bd725688d46d124e1c8a7e123663fcea70420cc062608d960031bc4744be16c6", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:3235", + "domain": "donor", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE projects (\n `projectid` text, -- project id. project's unique identifier.\n `teacher_acctid` text, -- teacher's unique identifier (teacher that created a project).\n `schoolid` text, -- school's identifier (school where teacher works).\n `school_ncesid` text, -- school national center for education statistics id. Public National Center for Ed Statistics id.\n `school_latitude` real, -- school latitude. latitude of school.\n `school_longitude` real, -- school longitude. longitude of school.\n `school_city` text, -- school city. city where the school is located.\n `school_state` text, -- school state. state where the school is located.\n `school_zip` integer, -- school zip. zipcode of school.\n `school_metro` text, -- school metro. metro where the school is located.\n `school_district` text, -- school district. district where the school is located.\n `school_county` text, -- school county. country where the school is located.\n `school_charter` text, -- school charter. whether it is a public charter school or not (no private schools in the dataset).\n `school_magnet` text, -- school magnet. whether a public magnet school or not.\n `school_year_round` text, -- school year round. whether it is a public year round school or not.\n `school_nlns` text, -- school Nonleafy Normal Stature. whether it is a public Nonleafy Normal Stature school or not.\n `school_kipp` text, -- school Knowledge Is Power Program. whether it is a public Knowledge Power Program school or not.\n `school_charter_ready_promise` text, -- school charter ready promise. whether it is a public ready promise school or not.\n `teacher_prefix` text, -- teacher prefix. teacher's gender. if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n `teacher_teach_for_america` text, -- teachers teach for america. Teach for America or not.\n `teacher_ny_teaching_fellow` text, -- teacher_new_york_teaching_fellow. New York teaching fellow or not. • t: true. • f: false. if true: it means that this teacher is a New York teacher.\n `primary_focus_subject` text, -- primary focus subject. main subject for which project materials are intended.\n `primary_focus_area` text, -- primary focus area. main subject area for which project materials are intended.\n `secondary_focus_subject` text, -- secondary focus subject. secondary subject.\n `secondary_focus_area` text, -- secondary focus area. secondary subject area.\n `resource_type` text, -- resource type. main type of resources requested by a project.\n `poverty_level` text, -- poverty level. school's poverty level. highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%.\n `grade_level` text, -- grade level. grade level for which project materials are intended.\n `fulfillment_labor_materials` real, -- fulfillment labor materials. cost of fulfillment. higher means higher cost, or need more labors.\n `total_price_excluding_optional_support` real, -- total price excluding optional support. project cost excluding optional tip that donors give to DonorsChoose.org while funding a project.\n `total_price_including_optional_support` real, -- total price including optional support. project cost including optional tip that donors give to DonorsChoose.org while funding a project. cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support.\n `students_reached` integer, -- students reached. number of students impacted by a project (if funded).\n `eligible_double_your_impact_match` text, -- eligible double your impact match. project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney).\n `eligible_almost_home_match` text, -- eligible almost home match. project was eligible for a $100 boost offer by a corporate partner.\n `date_posted` date, -- date posted. data a project went live on the site.\n primary key (projectid)\n);\n\nCREATE TABLE essays (\n `projectid` text, -- project id. unique project identifier.\n `teacher_acctid` text, -- teacher acctid. teacher id that created a project.\n `title` text, -- title of the project.\n `short_description` text, -- short description. short description of a project.\n `need_statement` text, -- need statement. need statement of a project.\n `essay` text, -- complete project essay.\n\n);\n\nCREATE TABLE resources (\n `resourceid` text, -- resource id. unique resource id.\n `projectid` text, -- project id. project id that requested resources for a classroom.\n `vendorid` integer, -- vendor id. vendor id that supplies resources to a project.\n `vendor_name` text, -- vendor name.\n `project_resource_type` text, -- project resource type. type of resource.\n `item_name` text, -- item name. resource name.\n `item_number` text, -- item number. resource item identifier.\n `item_unit_price` real, -- item unit price. unit price of the resource.\n `item_quantity` integer, -- item quantity. number of a specific item requested by a teacher.\n primary key (resourceid),\n foreign key (projectid) references projects(projectid)\n);\n\nCREATE TABLE donations (\n `donationid` text, -- donation id. unique donation identifier.\n `projectid` text, -- project id. project identifier that received the donation.\n `donor_acctid` text, -- donor accid. donor that made a donation.\n `donor_city` text, -- donor city. donation city.\n `donor_state` text, -- donor state. donation state.\n `donor_zip` text, -- donor zip. donation zip code.\n `is_teacher_acct` text, -- is teacher acct. whether donor is also a teacher. • f: false, it means this donor is not a teacher. • t: true, it means this donor is a teacher.\n `donation_timestamp` datetime, -- donation timestamp. the time of donation.\n `donation_to_project` real, -- donation to project. amount to project, excluding optional support (tip).\n `donation_optional_support` real, -- donation optional support. amount of optional support.\n `donation_total` real, -- donation total. donated amount. donated amount = donation_to_project + donation_optional_support.\n `dollar_amount` text, -- dollar amount. donated amount in US dollars.\n `donation_included_optional_support` text, -- donation included optional support. whether optional support (tip) was included for DonorsChoose.org. • f: false, optional support (tip) was not included for DonorsChoose.org. • t: true, optional support (tip) was included for DonorsChoose.org.\n `payment_method` text, -- payment method. what card/payment option was used.\n `payment_included_acct_credit` text, -- payment included acct credit. whether a portion of a donation used account credits redemption. • f: false, a portion of a donation didn't use account credits redemption. • t: true, a portion of a donation used account credits redemption.\n `payment_included_campaign_gift_card` text, -- payment included campaign gift card. whether a portion of a donation included corporate sponsored gift card. • f: false, a portion of a donation included corporate sponsored gift card. • t: true, a portion of a donation included corporate sponsored gift card.\n `payment_included_web_purchased_gift_card` text, -- payment included web purchased gift card. whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you). • f: false. • t: true.\n `` text, -- No description.\n `payment_was_promo_matched` text, -- payment was promo matched. whether a donation was matched 1-1 with corporate funds. • f: false, a donation was not matched 1-1 with corporate funds. • t: true, a donation was matched 1-1 with corporate funds.\n `via_giving_page` text, -- via giving page. donation given via a giving / campaign page (example: Mustaches for Kids).\n `for_honoree` text, -- for honoree. donation made for an honoree. • f: false, this donation is not made for an honoree. • t: true, this donation is made for an honoree.\n `donation_message` text, -- donation message. donation comment/message.\n primary key (donationid),\n foreign key (projectid) references projects(projectid)\n);\n\nExternal Knowledge:\n(none)\n\nQuestion:\nWhat are the titles for the projects that got the donation message as \"Donation on behalf of Matt Carpenter because I'm a strong believer in education.\"?", + "question": "What are the titles for the projects that got the donation message as \"Donation on behalf of Matt Carpenter because I'm a strong believer in education.\"?", + "evidence": "", + "db_id": "donor", + "database_path": "../databases/donor.sqlite", + "gold_sql": "SELECT T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_message LIKE 'Donation on behalf of Matt Carpenter because I''m a strong believer in education.'", + "source_gold_sql": "SELECT T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_message LIKE 'Donation on behalf of Matt Carpenter because I''m a strong believer in education.'", + "source_gold_sql_sha256": "5acc22f4a06473f71344bcb17fe0cf83fbc327081cea36bb5584b97f5c3651ca", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:1566", + "domain": "car_retails", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE orderdetails (\n `orderNumber` integer, -- order number.\n `productCode` text, -- product code.\n `quantityOrdered` integer, -- quantity ordered.\n `priceEach` real, -- price for each. total price = quantityOrdered x priceEach.\n `orderLineNumber` integer, -- order Line Number.\n primary key (orderNumber, productCode)\n);\n\nCREATE TABLE offices (\n `officeCode` text, -- office code. unique ID of the office.\n `city` text, -- No description.\n `phone` text, -- phone number.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `state` text, -- No description.\n `country` text, -- country.\n `postalCode` text, -- postalCode.\n `territory` text, -- territory.\n primary key (officeCode)\n);\n\nCREATE TABLE payments (\n `customerNumber` integer, -- customer number.\n `checkNumber` text, -- check Number.\n `paymentDate` date, -- payment Date.\n `amount` real, -- amount.\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE products (\n `productCode` text, -- product code. unique product code.\n `productName` text, -- product name.\n `productLine` text, -- product line. product line name.\n `productScale` text, -- product scale.\n `productVendor` text, -- product vendor.\n `productDescription` text, -- product description.\n `quantityInStock` integer, -- quantity in stock.\n `buyPrice` real, -- buy price. buy price from vendors.\n `MSRP` real, -- Manufacturer Suggested Retail Price. expected profits: msrp - buyPrice.\n primary key (productCode),\n foreign key (productLine) references productlines(productLine)\n);\n\nCREATE TABLE employees (\n `employeeNumber` integer, -- Employee Number. unique string ID of the employees.\n `lastName` text, -- last name. last name of employees.\n `firstName` text, -- first name. first name of employees.\n `extension` text, -- extension number.\n `email` text, -- email.\n `officeCode` text, -- office code. office code of the employees.\n `reportsTo` integer, -- reports to. represents for organization structure such as who reports to whom. \"reportsTO\" is the leader of the \"employeeNumber\".\n `jobTitle` text, -- job title.\n primary key (employeeNumber),\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);\n\nCREATE TABLE customers (\n `customerNumber` integer, -- customer number. unique id number of customer.\n `customerName` text, -- customer name. the name when the customer registered.\n `contactLastName` text, -- contact last name.\n `contactFirstName` text, -- contact first name.\n `phone` text, -- phone.\n `addressLine1` text, -- addressLine1.\n `addressLine2` text, -- addressLine2. addressLine1 + addressLine2 = entire address.\n `city` text, -- city.\n `state` text, -- state.\n `postalCode` text, -- postalCode.\n `country` text, -- country.\n `salesRepEmployeeNumber` integer, -- sales representative employee number.\n `creditLimit` real, -- credit limit.\n primary key (customerNumber),\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);\n\nCREATE TABLE orders (\n `orderNumber` integer, -- order number. unique order number.\n `orderDate` date, -- order date.\n `requiredDate` date, -- required Date.\n `shippedDate` date, -- shipped date. shipped Date.\n `status` text, -- status.\n `comments` text, -- comments.\n `customerNumber` integer, -- customer number.\n primary key (orderNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);\n\nCREATE TABLE productlines (\n `productLine` text, -- product line. unique product line name.\n `textDescription` text, -- text description.\n `htmlDescription` text, -- html description.\n `image` blob, -- image.\n primary key (productLine)\n);\n\nExternal Knowledge:\nUSA is a country; total amount payment refers to SUM(amount);\n\nQuestion:\nPlease calculate the total payment amount of customers who come from the USA.", + "question": "Please calculate the total payment amount of customers who come from the USA.", + "evidence": "USA is a country; total amount payment refers to SUM(amount);", + "db_id": "car_retails", + "database_path": "../databases/car_retails.sqlite", + "gold_sql": "SELECT SUM(T1.amount) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.country = 'USA'", + "source_gold_sql": "SELECT SUM(T1.amount) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.country = 'USA'", + "source_gold_sql_sha256": "3718ed1028f608359efa6efafe6734f45dfb13fb173e7191e9dae6079b91caef", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7424", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nEmployees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;\n\nQuestion:\nAmong all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?", + "question": "Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?", + "evidence": "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT COUNT(DISTINCT T1.`BusinessEntityID`)\nFROM `EmployeeDepartmentHistory` AS T1\nJOIN `Person` AS T2 ON T1.`BusinessEntityID` = T2.`BusinessEntityID`\nJOIN `Department` AS T3 ON T1.`DepartmentID` = T3.`DepartmentID`\nWHERE T3.`Name` = 'Engineering'\n AND T2.`EmailPromotion` = 0;", + "source_gold_sql": "SELECT COUNT(DISTINCT T1.`BusinessEntityID`)\nFROM `EmployeeDepartmentHistory` AS T1\nJOIN `Person` AS T2 ON T1.`BusinessEntityID` = T2.`BusinessEntityID`\nJOIN `Department` AS T3 ON T1.`DepartmentID` = T3.`DepartmentID`\nWHERE T3.`Name` = 'Engineering'\n AND T2.`EmailPromotion` = 0;", + "source_gold_sql_sha256": "9f2d46254d29b77bde35e65a00d86c7e2665e1a118159d105619005062b2f61a", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:5183", + "domain": "address", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE avoid (\n `zip_code` integer, -- zip code. the zip code of the bad alias.\n `bad_alias` text, -- bad alias. the bad alias.\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE area_code (\n `zip_code` integer, -- zip code. the zip code of the area.\n `area_code` integer, -- area code. the code of the area.\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE CBSA (\n `CBSA` integer, -- the code of the cbsa officer.\n `CBSA_name` text, -- cbsa name. the name and the position of the cbsa officer.\n `CBSA_type` text, -- cbsa type. the office type of the officer.\n primary key (CBSA)\n);\n\nCREATE TABLE zip_congress (\n `zip_code` integer, -- zip code. the zip code of the district.\n `district` text, -- the district.\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nCREATE TABLE zip_data (\n `zip_code` integer, -- zip code. the zip code of the postal point.\n `city` text, -- the city where the postal point locates.\n `state` text, -- the state of the city.\n `multi_county` text, -- multi county. whether the county that the city belongs to is multi_county. The meaning of multi_county is consisting of or involving multiple countries.\n `type` text, -- the type of the postal point.\n `organization` text, -- the organization to which the postal point belongs. 'No data' means the postal point is not affiliated with any organization.\n `time_zone` text, -- time zone. the time zone of the postal point location.\n `daylight_savings` text, -- daylight savings. whether the location implements daylight savings. Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n `latitude` real, -- the latitude of the postal point location.\n `longitude` real, -- the longitude of the postal point location.\n `elevation` integer, -- the elevation of the postal point location.\n `state_fips` integer, -- state fips. state-level FIPS code.\n `county_fips` integer, -- county fips. county-level FIPS code. FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n `region` text, -- the region where the postal point locates.\n `division` text, -- the division of the organization.\n `population_2020` integer, -- population 2020. the population of the residential area in 2020. 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n `population_2010` integer, -- population 2010. the population of the residential area in 2010.\n `households` integer, -- the number of the households in the residential area.\n `avg_house_value` integer, -- average house value. the average house value in the residential area.\n `avg_income_per_household` integer, -- average income per household. the average income per household in the residential area.\n `persons_per_household` real, -- persons per household. the number of persons per household residential area.\n `white_population` integer, -- white population. the population of white people in the residential area.\n `black_population` integer, -- black population. the population of black people in the residential area.\n `hispanic_population` integer, -- Hispanic population. the population of Hispanic people in the residential area.\n `asian_population` integer, -- Asian population. the population of Asian people in the residential area.\n `american_indian_population` integer, -- American Indian population. the population of American Indian people in the residential area.\n `hawaiian_population` integer, -- Hawaiian population. the population of Hawaiian people in the residential area.\n `other_population` integer, -- other population. the population of other races in the residential area.\n `male_population` integer, -- male population. the population of males in the residential area.\n `female_population` integer, -- female population. the population of females in the residential area.\n `median_age` real, -- median age. the median age of the residential area. gender ratio in the residential area = male_population / female_population if female_population != 0.\n `male_median_age` real, -- male median age. the male median age in the residential area.\n `female_median_age` real, -- female median age. the female median age in the residential area.\n `residential_mailboxes` integer, -- residential mailboxes. the number of residential mailboxes in the residential area.\n `business_mailboxes` integer, -- business mailboxes. the number of business mailboxes in the residential area.\n `total_delivery_receptacles` integer, -- total delivery receptacles. the total number of delivery receptacles.\n `businesses` integer, -- the number of businesses in the residential area.\n `1st_quarter_payroll` integer, -- 1st quarter payroll. the total wages reported in the 1st quarter payroll report of the residential area.\n `annual_payroll` integer, -- annual payroll. the total wages reported in the annual payroll report of the residential area.\n `employees` integer, -- the number of employees in the residential area. Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n `water_area` real, -- water area. the water area of the residential area.\n `land_area` real, -- land area. the land area of the residential area.\n `single_family_delivery_units` integer, -- single-family delivery units. the number of single-family delivery units in the residential area.\n `multi_family_delivery_units` integer, -- multi-family delivery units. the number of single-family delivery units in the residential area. A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n `total_beneficiaries` integer, -- total beneficiaries. the total number of beneficiaries of the postal service. multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time.\n `retired_workers` integer, -- retired workers. the number of retired workers in the residential area.\n `disabled_workers` integer, -- disable workers. the number of disabled workers in the residential area.\n `parents_and_widowed` integer, -- parents and widowed. the number of parents and widowed in the residential area.\n `spouses` integer, -- the number of spouses in the residential area.\n `children` integer, -- the number of children in the residential area.\n `over_65` integer, -- over 65. the number of people whose age is over 65 in the residential area.\n `monthly_benefits_all` integer, -- monthly benefits all. all benefit payments by month. no. of over_65 can refer to elders. Higher means more elders. if the ratio: over_65 / children is higher: the aging is more serious.\n `monthly_benefits_retired_workers` integer, -- monthly benefits retired workers. monthly benefit payments for retired workers. usd.\n `monthly_benefits_widowed` integer, -- monthly benefits widowed. monthly benefit payments for retired workers.\n `CBSA` integer, -- the code of the cbsa officer.\n primary key (zip_code),\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);\n\nCREATE TABLE state (\n `abbreviation` text, -- the abbreviation of the state name.\n `name` text, -- the state name.\n primary key (abbreviation)\n);\n\nCREATE TABLE congress (\n `cognress_rep_id` text, -- congress representative id. the representative id of congress representatives.\n `first_name` text, -- first name. the first name of the congress representative.\n `last_name` text, -- last name. the last name of the congress representative.\n `CID` text, -- the unique identifier for the congress representative.\n `party` text, -- the party of the representative.\n `state` text, -- the state that the representative is from.\n `abbreviation` text, -- the abbreviation of the state.\n `House` text, -- the house that the representative is from.\n `District` integer, -- the id of the district that the representative represents. The state is divided into different districts. The districts under the same state will be numbered uniformly. 'NA' means that the state is not divided into districts.\n `land_area` real, -- land area. the land area of the district.\n primary key (cognress_rep_id),\n foreign key (abbreviation) references state(abbreviation)\n);\n\nCREATE TABLE country (\n `zip_code` integer, -- zip code. the zip code of the state in the country.\n `county` text, -- county. the county.\n `state` text, -- the state of the county.\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);\n\nCREATE TABLE alias (\n `zip_code` integer, -- zip code. the zip code of the alias.\n `alias` text, -- the alias of the city.\n primary key (zip_code),\n foreign key (zip_code) references zip_data(zip_code)\n);\n\nExternal Knowledge:\npopulation of Wilcox County in 2010 refers to SUM(population_2010) where county = 'WILCOX' and state = GA;\n\nQuestion:\nWhat was the population of Wilcox County, Georgia in 2010?", + "question": "What was the population of Wilcox County, Georgia in 2010?", + "evidence": "population of Wilcox County in 2010 refers to SUM(population_2010) where county = 'WILCOX' and state = GA;", + "db_id": "address", + "database_path": "../databases/address.sqlite", + "gold_sql": "SELECT SUM(`population_2010`)\nFROM `country` c\nJOIN `zip_data` z ON c.`zip_code` = z.`zip_code`\nWHERE c.`county` = 'WILCOX' AND c.`state` = 'GA';", + "source_gold_sql": "SELECT SUM(`population_2010`)\nFROM `country` c\nJOIN `zip_data` z ON c.`zip_code` = z.`zip_code`\nWHERE c.`county` = 'WILCOX' AND c.`state` = 'GA';", + "source_gold_sql_sha256": "22021c62defacda1845e814daf99266681e8ea00e9507ac1304c09fc782f4cc5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6588", + "domain": "retail_world", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE OrderDetails (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `ProductID` integer, -- Product ID. the unique id for products.\n `Quantity` integer, -- the quantity of the ordered products.\n `OrderDetailID` text, -- order detail id. id of the order detail.\n primary key (OrderDetailID),\n FOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n FOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);\n\nCREATE TABLE Orders (\n `OrderID` integer, -- Order ID. the unique id for orders.\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `OrderDate` datetime, -- Order Date. the order date.\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n primary key (OrderID),\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);\n\nCREATE TABLE Products (\n `ProductID` integer, -- Product ID. the unique id for products.\n `ProductName` text, -- Product Name. the name of the product.\n `SupplierID` integer, -- Supplier ID. the unique id for supplier.\n `CategoryID` integer, -- Category ID. the unique id for the product category.\n `Price` real, -- the price.\n `Unit` text, -- Unit. the unit of the product.\n primary key (ProductID),\n FOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n FOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);\n\nCREATE TABLE Employees (\n `EmployeeID` integer, -- Employee ID. the unique id for employees.\n `LastName` text, -- Last Name. the employee's last name.\n `FirstName` text, -- First Name. the employee's first name. the employee's full name is 'first_name last_name'.\n `BirthDate` datetime, -- Birth Date. the birth date of the employee.\n `Photo` blob, -- the photo of the employee.\n `Notes` text, -- some additional information of the employee.\n primary key (EmployeeID)\n);\n\nCREATE TABLE Categories (\n `CategoryID` integer, -- Category ID. the unique id for the category.\n `CategoryName` text, -- Category Name. the category name.\n `Description` text, -- the detailed description of the category.\n primary key (CategoryID)\n);\n\nCREATE TABLE Suppliers (\n `SupplierID` integer, -- Supplier ID. the unique id for suppliers.\n `SupplierName` text, -- Supplier Name. the supplier name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the supplier.\n `City` text, -- the city where the supplier is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n `Phone` text, -- the phone number.\n primary key (SupplierID)\n);\n\nCREATE TABLE Customers (\n `CustomerID` text, -- Customer ID. the unique id for customers.\n `CustomerName` text, -- Customer Name. the customer name.\n `ContactName` text, -- Contact Name. the contact person's name representing the company.\n `Address` text, -- the address of the customer.\n `City` text, -- the city where the customer is located.\n `PostalCode` text, -- Postal Code. the postal code.\n `Country` text, -- the country.\n primary key (CustomerID)\n);\n\nCREATE TABLE Shippers (\n `ShipperID` integer, -- Shipper ID. the unique id for shippers.\n `ShipperName` text, -- Shipper Name. the shipped company name.\n `Phone` text, -- the phone of the company.\n primary key (ShipperID)\n);\n\nExternal Knowledge:\ncustomers refers to CustomerName;\n\nQuestion:\nHow many customers are there in the city of London?", + "question": "How many customers are there in the city of London?", + "evidence": "customers refers to CustomerName;", + "db_id": "retail_world", + "database_path": "../databases/retail_world.sqlite", + "gold_sql": "SELECT COUNT(*)\nFROM `Customers`\nWHERE `City` = 'London';", + "source_gold_sql": "SELECT COUNT(*)\nFROM `Customers`\nWHERE `City` = 'London';", + "source_gold_sql_sha256": "ff1c5f2f67ef031edae93bc93813b56edb45e2a6a254ad099dedff15898a8e34", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4103", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\nbusinesses have more than 1 attribute refers to COUNT(attribute_value) > 1\n\nQuestion:\nHow many businesses have more than 1 attribute?", + "question": "How many businesses have more than 1 attribute?", + "evidence": "businesses have more than 1 attribute refers to COUNT(attribute_value) > 1", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT COUNT(*)\nFROM (\n SELECT `business_id`\n FROM `Business_Attributes`\n GROUP BY `business_id`\n HAVING COUNT(*) > 1\n);", + "source_gold_sql": "SELECT COUNT(*)\nFROM (\n SELECT `business_id`\n FROM `Business_Attributes`\n GROUP BY `business_id`\n HAVING COUNT(*) > 1\n);", + "source_gold_sql_sha256": "8bbf4cc391eed0716bf4c417e61411cbe97a1c48b771502be518d29b35643430", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4622", + "domain": "disney", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE revenue (\n `Year` integer, -- The year the movie was released.\n `Studio Entertainment[NI 1]` real, -- The studio entertainment segment of the Walt Disney Company.\n `Disney Consumer Products[NI 2]` real, -- The consumer products segment of the Walt Disney Company.\n `Disney Interactive[NI 3][Rev 1]` integer, -- The interactive segment of the Walt Disney Company.\n `Walt Disney Parks and Resorts` real, -- The parks and resorts segment of the Walt Disney Company.\n `Disney Media Networks` text, -- The media networks segment of the Walt Disney Company.\n `Total` integer, -- The total box office gross for the movie.\n primary key (Year)\n);\n\nCREATE TABLE voice-actors (\n `character` text, -- The unique name of the character.\n `voice-actor` text, -- The name of the voice actor.\n `movie` text, -- The name of the movie.\n primary key (character),\n foreign key (movie) references characters(movie_title)\n);\n\nCREATE TABLE director (\n `name` text, -- unique movie name.\n `director` text, -- the name of the director. one director may have multiple movies. more movies --> this director is more productive.\n primary key (name),\n foreign key (name) references characters(movie_title)\n);\n\nCREATE TABLE characters (\n `movie_title` text, -- movie title. unique title of the movie.\n `release_date` text, -- release date. The release date of the movie.\n `hero` text, -- The main character of the movie. round role.\n `villian` text, -- The villain of the movie. a character whose evil actions or motives are important to the plot.\n `song` text, -- A song associated with the movie.\n primary key (movie_title),\n foreign key (hero) references \"voice-actors\"(character)\n);\n\nCREATE TABLE movies_total_gross (\n `movie_title` text, -- movie title.\n `release_date` text, -- release date.\n `genre` text, -- genre of the movie.\n `MPAA_rating` text, -- Motion Picture Association of America rating. Motion Picture Association of America of the disney movie. • G: general audience. • PG: mature audiences or parental guidance suggested. • R: restricted: no children under 17 allowed without parents or adult guardians. • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13. movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management. if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null.\n `total_gross` text, -- total gross. The total gross of the movie. more total_gross--> more popular movie.\n `inflation_adjusted_gross` text, -- inflation adjusted gross. The inflation-adjusted gross of the movie. estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross.\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);\n\nExternal Knowledge:\nIf 'Studio Entertainment[NI 1]' > 'Disney Media Networks' then Studio Entertainment[NI 1] else Disney Media Networks where Year = 1998;\n\nQuestion:\nIn which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?", + "question": "In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?", + "evidence": "If 'Studio Entertainment[NI 1]' > 'Disney Media Networks' then Studio Entertainment[NI 1] else Disney Media Networks where Year = 1998;", + "db_id": "disney", + "database_path": "../databases/disney.sqlite", + "gold_sql": "SELECT CASE\n WHEN CAST(`Studio Entertainment[NI 1]` AS REAL) > CAST(`Disney Media Networks` AS REAL)\n THEN 'Studio Entertainment'\n ELSE 'Disney Media Networks'\n END AS bigger_segment\nFROM `revenue`\nWHERE `Year` = 1998;", + "source_gold_sql": "SELECT CASE\n WHEN CAST(`Studio Entertainment[NI 1]` AS REAL) > CAST(`Disney Media Networks` AS REAL)\n THEN 'Studio Entertainment'\n ELSE 'Disney Media Networks'\n END AS bigger_segment\nFROM `revenue`\nWHERE `Year` = 1998;", + "source_gold_sql_sha256": "b554e17d6206c9b67e4e46d7c0f2faa56bd9826db7d3d2844a5cb8d42df0bf46", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8835", + "domain": "food_inspection", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspections (\n `business_id` integer, -- business id. the unique id of the business.\n `score` integer, -- the inspection score. The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n `date` date, -- the inspection date.\n `type` text, -- the inspection type.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE violations (\n `business_id` integer, -- business id. the unique id of the business.\n `date` date, -- the date of the violation.\n `violation_type_id` text, -- violation type id. the unique type id of the violation.\n `risk_category` text, -- risk category. risk category. High / Moderate / Low risk. High risks have more safety and health hazards than low risks.\n `description` text, -- the description of the violation.\n FOREIGN KEY (business_id) REFERENCES businesses (business_id)\n);\n\nCREATE TABLE businesses (\n `business_id` integer, -- business id. the unique id of the business.\n `name` text, -- the name of the eatery.\n `address` text, -- the eatery address.\n `city` text, -- the city where the eatery is located in.\n `postal_code` text, -- postal code. the postal code of the eatery.\n `latitude` real, -- the latitude of the position.\n `longitude` real, -- the longitude of the position. the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}.\n `phone_number` integer, -- phone number. the phone number of the eatery.\n `tax_code` text, -- tax code. the tax code of the eatery.\n `business_certificate` integer, -- business certificate. the business certificate number.\n `application_date` date, -- application date. the application date of the eatery.\n `owner_name` text, -- owner name. the owner's name.\n `owner_address` text, -- owner address. the owner's address.\n `owner_city` text, -- owner city. the city where the owner is located.\n `owner_state` text, -- owner state. the state where the owner is located.\n `owner_zip` text, -- owner zip. the zip code of the owner.\n PRIMARY KEY (business_id)\n);\n\nExternal Knowledge:\nowners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';\n\nQuestion:\nWho were the owners of eateries which had highest health hazard by improper cooking time or temperatures?", + "question": "Who were the owners of eateries which had highest health hazard by improper cooking time or temperatures?", + "evidence": "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", + "db_id": "food_inspection", + "database_path": "../databases/food_inspection.sqlite", + "gold_sql": "SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.description = 'Improper cooking time or temperatures'", + "source_gold_sql": "SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.description = 'Improper cooking time or temperatures'", + "source_gold_sql_sha256": "7de3bceff147530027f39b5c6196b31d3a8ff2bad49efc4767c329a96c1aaee9", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8749", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nbeat of 532 refers to beat = 532; happened in the Yard refers to location_description = 'YARD'; district commander refers to commander\n\nQuestion:\nList down the district's commander associated with the crime that happened at the yard and has a beat of 532.", + "question": "List down the district's commander associated with the crime that happened at the yard and has a beat of 532.", + "evidence": "beat of 532 refers to beat = 532; happened in the Yard refers to location_description = 'YARD'; district commander refers to commander", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.location_description = 'YARD' AND T1.beat = 532", + "source_gold_sql": "SELECT T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.location_description = 'YARD' AND T1.beat = 532", + "source_gold_sql_sha256": "ecc1cdd4fc7bd2561a8bed3e73eb0ab3c3ddb70249688ad8de2f19a07aab551b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4315", + "domain": "simpson_episodes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Character_Award (\n `award_id` integer, -- award id. A unique identifier for the award.\n `character` text, -- the name of the awarded character.\n foreign key (award_id) references Award(award_id)\n);\n\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `stars` integer, -- the star score of the episode. 1-10. Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n `votes` integer, -- the number of votes of the star score.\n `percent` real, -- the percent of the vote number of the star score. percent = the number of votes for the star / the total amount of votes for all stars.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `keyword` text, -- the keywords of episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `category` text, -- the category of the credit.\n `person` text, -- the name of cast and crew members.\n `role` text, -- the role of the person.\n `credited` text, -- whether the person is credited. true/ false. • true: The person is included in the credit list. • false: The person isn't included in the credit list.\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `season` integer, -- the season of the episode.\n `episode` integer, -- the episode number of the episode.\n `number_in_series` integer, -- number in series. the number in series.\n `title` text, -- the title of the episode.\n `summary` text, -- the summary of the episode.\n `air_date` text, -- air date. the air date of the episode. YYYY-MM-DD.\n `episode_image` text, -- episode image. the image of episode.\n `rating` real, -- the rating of episode. 0.0 - 10.0. Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0. • average: 5.0 < rating <= 7.0. • bad: 0.0 < rating <= 5.0. not bad: average, excellent.\n `votes` integer, -- the votes of episode. Higher votes mean more audience supports (or popular).\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique id for the award.\n `organization` text, -- the organization that holds the award.\n `year` integer, -- year of award.\n `award_category` text, -- the category of the award.\n `award` text, -- the name of the award.\n `person` text, -- the person who gets the award.\n `role` text, -- the role of the honoree.\n `episode_id` text, -- episode id. S stands for 'Season' and E stands for 'Episode'.\n `season` text, -- the season of the awarded work.\n `song` text, -- the theme song of the awarded work.\n `result` text, -- the final award result. • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award.\n primary key (award_id),\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Person (\n `name` text, -- the name of the crew.\n `birthdate` text, -- birth date. the birth date of the crew. YYYY-MM-DD.\n `birth_name` text, -- birth name. the birth name of the crew.\n `birth_place` text, -- birth place. the birth place of the crew.\n `birth_region` text, -- birth region. the birth region of the crew.\n `birth_country` text, -- birth country. the birth country of the crew.\n `height_meters` real, -- height meters. the height of the crew. the unit is meter.\n `nickname` text, -- the nickname of the crew.\n primary key (name)\n);\n\nExternal Knowledge:\nfrom Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'\n\nQuestion:\nWhat is the average heights of crew members from Animation Department?", + "question": "What is the average heights of crew members from Animation Department?", + "evidence": "from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'", + "db_id": "simpson_episodes", + "database_path": "../databases/simpson_episodes.sqlite", + "gold_sql": "SELECT AVG(height_meters) FROM ( SELECT DISTINCT P.name, P.height_meters FROM Person AS P JOIN Credit AS C ON P.name = C.person WHERE C.category = 'Animation Department' AND P.height_meters IS NOT NULL )", + "source_gold_sql": "SELECT AVG(height_meters) FROM ( SELECT DISTINCT P.name, P.height_meters FROM Person AS P JOIN Credit AS C ON P.name = C.person WHERE C.category = 'Animation Department' AND P.height_meters IS NOT NULL )", + "source_gold_sql_sha256": "934428705c417b93ccea66137a3a77900e7ef80ddb59c784108e308807e2cb6b", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:7349", + "domain": "works_cycles", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE PurchaseOrderHeader (\n `PurchaseOrderID` integer, -- Purchase Order ID. The unique id number identifying purchase order.\n `RevisionNumber` integer, -- Revision Number. Incremental number to track changes to the purchase order over time.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `EmployeeID` integer, -- Employee ID. Employee who created the purchase order.\n `VendorID` integer, -- Vendor ID. Vendor with whom the purchase order is placed.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `OrderDate` datetime, -- Order Date. Purchase order creation date. Default: getdate().\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `SubTotal` real, -- Purchase order subtotal. Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor. Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0)).\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PurchaseOrderID),\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);\n\nCREATE TABLE CountryRegion (\n `CountryRegionCode` text, -- Country Region Code. The unique id number identifying Country Region ISO standard code for countries and regions.\n `Name` text, -- Country or region name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode)\n);\n\nCREATE TABLE EmailAddress (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person associated with this email address.\n `EmailAddressID` integer, -- Email Address ID. The ID of this email address.\n `EmailAddress` text, -- Email Address. The E-mail address for the person.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BillOfMaterials (\n `BillOfMaterialsID` integer, -- bill of materials id. The unique number identifying bill of materials. Primary key for BillOfMaterials records. Identity / Auto increment column.\n `ProductAssemblyID` integer, -- product assembly id. Parent product identification number.\n `ComponentID` integer, -- component ID. Component identification number.\n `StartDate` datetime, -- start date. Date the component started being used in the assembly item.\n `EndDate` datetime, -- end date. Date the component stopped being used in the assembly item. 1. assembly item duration = (EndDate - StartDate). 2. if EndDate is null, it means the assembly item doesn't finish (still going on).\n `UnitMeasureCode` text, -- unit measure code. Standard code identifying the unit of measure for the quantity.\n `BOMLevel` integer, -- bill of materials level. Indicates the depth the component is from its parent (column2)(AssemblyID).\n `PerAssemblyQty` real, -- per assembly quantity. Quantity of the component needed to create the assembly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BillOfMaterialsID)\n);\n\nCREATE TABLE BusinessEntity (\n `BusinessEntityID` integer, -- business entity id. Unique number of identifying business entity. Primary key for all customers, vendors, and employees. Identity / Auto increment column.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID)\n);\n\nCREATE TABLE EmployeeDepartmentHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `DepartmentID` integer, -- DepartmentI D. Department in which the employee worked including currently.\n `ShiftID` integer, -- Shift ID. Identifies which 8-hour shift the employee works.\n `StartDate` date, -- Start Date. Date the employee started working in the department.\n `EndDate` date, -- End Date. Date the employee ended working in the department.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);\n\nCREATE TABLE PhoneNumberType (\n `PhoneNumberTypeID` integer, -- Phone Number Type ID. The id number identifying the telephone number type records.\n `Name` text, -- Phone Number. Name of the telephone number type.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (PhoneNumberTypeID)\n);\n\nCREATE TABLE SalesOrderDetail (\n `SalesOrderID` integer, -- No description.\n `SalesOrderDetailID` integer, -- No description.\n `CarrierTrackingNumber` text, -- No description.\n `OrderQty` integer, -- No description.\n `ProductID` integer, -- No description.\n `SpecialOfferID` integer, -- No description.\n `UnitPrice` real, -- No description.\n `UnitPriceDiscount` real, -- No description.\n `LineTotal` real, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated.\n primary key (SalesOrderDetailID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);\n\nCREATE TABLE SalesTaxRate (\n `SalesTaxRateID` integer, -- Sales Tax Rate ID. Unique id number identifying sales tax records.\n `StateProvinceID` integer, -- State Province ID. id number identifying state province.\n `TaxType` integer, -- Tax Type. 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.\n `TaxRate` real, -- Tax Rate. Tax rate amount.\n `Name` text, -- Tax rate description. if there's \"+\" in the value, it means this sales are charged by multiple types of tax.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesTaxRateID),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);\n\nCREATE TABLE Shift (\n `ShiftID` integer, -- The unique number identifying the shift.\n `Name` text, -- Shift description.\n `StartTime` text, -- Start Time. Shift start time.\n `EndTime` text, -- End Time. Shift end time.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShiftID)\n);\n\nCREATE TABLE ProductDocument (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `DocumentNode` text, -- Document Node. The hierarchy id number identifying the Document node. Document identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);\n\nCREATE TABLE BusinessEntityContact (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the Business Entity ID.\n `PersonID` integer, -- Person ID. The id number identifying the Person ID.\n `ContactTypeID` integer, -- Contact Type ID. The id number identifying the contact type ID.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Department (\n `DepartmentID` integer, -- Department ID. The unique id number identifying the department.\n `Name` text, -- Name of the department.\n `GroupName` text, -- Group Name. Name of the group to which the department belongs.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DepartmentID)\n);\n\nCREATE TABLE Location (\n `LocationID` integer, -- Location ID. The unique id number identifying the job candidates.\n `Name` text, -- Location description.\n `CostRate` real, -- Cost Rate. Standard hourly cost of the manufacturing location. Default: 0.00.\n `Availability` real, -- Work capacity (in hours) of the manufacturing location. Default: 0.00.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (LocationID)\n);\n\nCREATE TABLE WorkOrder (\n `WorkOrderID` integer, -- Work Order ID. The unique id number identifying work order.\n `ProductID` integer, -- Product ID. Product identification number.\n `OrderQty` integer, -- Order Quantity. Product quantity to build.\n `StockedQty` integer, -- Stocked Quantity. Quantity built and put in inventory. Computed: isnull([OrderQty]-[ScrappedQty],(0)).\n `ScrappedQty` integer, -- Scrapped Quantity. Quantity that failed inspection.\n `StartDate` datetime, -- Start Date. Work order start date.\n `EndDate` datetime, -- End Date. Work order end date.\n `DueDate` datetime, -- Due Date. Work order due date.\n `ScrapReasonID` integer, -- Scrap Reason ID. Reason for inspection failure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);\n\nCREATE TABLE Product (\n `ProductID` integer, -- Product ID. The unique id number identifying the product.\n `Name` text, -- Name of the product.\n `ProductNumber` text, -- Product Number. The unique product identification number.\n `MakeFlag` integer, -- Make Flag. The source of product make. 0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1.\n `FinishedGoodsFlag` integer, -- Finished Goods Flag. Whether the product is salable or not. 0 = Product is not a salable item. 1 = Product is salable. Default: 1.\n `Color` text, -- Color. Product color.\n `SafetyStockLevel` integer, -- Safety Stock Level. The minimum inventory quantity.\n `ReorderPoint` integer, -- Reorder Point. Inventory level that triggers a purchase order or work order.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ListPrice` real, -- List Price. Selling price. profit = ListPrice - StandardCost.\n `Size` text, -- Product size.\n `SizeUnitMeasureCode` text, -- Size Unit Measure Code. Unit of measure for Size column.\n `WeightUnitMeasureCode` text, -- Weight Unit Measure Code. Unit of measure for Weight column.\n `Weight` real, -- Product weight.\n `DaysToManufacture` integer, -- Days To Manufacture. Number of days required to manufacture the product.\n `ProductLine` text, -- Product Line. Product Routine. R = Road, M = Mountain, T = Touring, S = Standard.\n `Class` text, -- Product quality class. H = High, M = Medium, L = Low.\n `Style` text, -- Style. W = Womens, M = Mens, U = Universal.\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Product is a member of this product subcategory.\n `ProductModelID` integer, -- Product Model ID. Product is a member of this product model.\n `SellStartDate` datetime, -- Sell Start Date. Date the product was available for sale.\n `SellEndDate` datetime, -- Sell End Date. Date the product was no longer available for sale.\n `DiscontinuedDate` datetime, -- Discontinued Date. Date the product was discontinued.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID)\n);\n\nCREATE TABLE SalesReason (\n `SalesReasonID` integer, -- The unique number identifying SalesReason records.\n `Name` text, -- Sales reason description.\n `ReasonType` text, -- Category the sales reason belongs to.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesReasonID)\n);\n\nCREATE TABLE ProductCategory (\n `ProductCategoryID` integer, -- Product Category ID. The unique id number identifying the product category.\n `Name` text, -- Category description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductCategoryID)\n);\n\nCREATE TABLE SalesPersonQuotaHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Sales person identification number.\n `QuotaDate` datetime, -- Quota Date. Sales quota date.\n `SalesQuota` real, -- Sales Quota. Sales quota amount.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE ProductProductPhoto (\n `ProductID` integer, -- Product ID. Product identification number.\n `ProductPhotoID` integer, -- Product Photo ID. Product photo identification number.\n `Primary` integer, -- Whether this photo is the principal image or not. 0 = Photo is not the principal image. 1 = Photo is the principal image. staff can mention \"principal\" in the question in order to make the question more realistic.\n `ModifiedDate` datetime, -- Modified Date.\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);\n\nCREATE TABLE Employee (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the employee.\n `NationalIDNumber` text, -- National ID Number. The national identification number such as a social security number.\n `LoginID` text, -- Login ID. Network login.\n `OrganizationNode` text, -- Organization Node. Where the employee is located in corporate hierarchy. Default: newid().\n `OrganizationLevel` integer, -- Organization Level. The depth of the employee in the corporate hierarchy. Computed: [OrganizationNode].[GetLevel]().\n `JobTitle` text, -- Job Title. Work title such as Buyer or Sales Representative.\n `BirthDate` date, -- Birth Date. Date of birth.\n `MaritalStatus` text, -- Marital Status. Whether this employee is married or not. M = Married, S = Single.\n `Gender` text, -- The gender of this employee. M = Male, F = Female.\n `HireDate` date, -- Hire Date. The employee was hired on this date.\n `SalariedFlag` integer, -- Salaried Flag. Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\n `VacationHours` integer, -- Vacation Hours. The number of available vacation hours.\n `SickLeaveHours` integer, -- Sick Leave Hours. The number of available sick leave hours.\n `CurrentFlag` integer, -- Current Flag. Whether this employee is active or not. 0 = Inactive, 1 = Active.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE BusinessEntityAddress (\n `BusinessEntityID` integer , -- Business Entity ID. Number identifying the business entity.\n `AddressID` integer, -- Address ID. Number identifying the address.\n `AddressTypeID` integer, -- Address Type ID. Number identifying the address type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE CountryRegionCurrency (\n `CountryRegionCode` text, -- Country Region Code. The id number identifying Country Region ISO standard code for countries and regions.\n `CurrencyCode` text, -- Currency Code. ISO standard currency code.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);\n\nCREATE TABLE UnitMeasure (\n `UnitMeasureCode` text, -- Unit Measure Code. The unique identifying numbers for measure.\n `Name` text, -- Unit of measure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (UnitMeasureCode)\n);\n\nCREATE TABLE ProductCostHistory (\n `ProductID` integer, -- Product ID. The id number identifying the product.\n `StartDate` date, -- Start Date. Product cost start date.\n `EndDate` date, -- End Date. Product cost end date.\n `StandardCost` real, -- Standard Cost. Standard cost of the product.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE EmployeePayHistory (\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number.\n `RateChangeDate` datetime, -- Rate Change Date. Date the change in pay is effective.\n `Rate` real, -- Salary hourly rate.\n `PayFrequency` integer, -- Pay Frequency. Pay Frequency. 1 = Salary received monthly, 2 = Salary received biweekly.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, RateChangeDate)\n);\n\nCREATE TABLE Document (\n `DocumentNode` text, -- Document Node. The unique hierarchy id identifying the document nodes.\n `DocumentLevel` integer, -- Document Level. Depth in the document hierarchy. Computed: [DocumentNode].[GetLevel]().\n `Title` text, -- Title of the document.\n `Owner` integer, -- Employee who controls the document.\n `FolderFlag` integer, -- Folder Flag. The type of the folders. 0 = This is a folder, 1 = This is a document. Default: 0.\n `FileName` text, -- File Name. Uniquely identifying the record. Used to support a merge replication sample. File name of the document.\n `FileExtension` text, -- File Extension. File extension indicating the document type.\n `Revision` text, -- Revision number of the document.\n `ChangeNumber` integer, -- Change Number. Engineering change approval number.\n `Status` integer, -- Status of document processing. 1 = Pending approval, 2 = Approved, 3 = Obsolete.\n `DocumentSummary` text, -- Document Summary. Document abstract. if no document Summary: it means this document is private.\n `Document` blob, -- Complete document.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (DocumentNode)\n);\n\nCREATE TABLE CurrencyRate (\n `CurrencyRateID` integer, -- Currency Rate ID. The unique id number identifying the currency rate record.\n `CurrencyRateDate` datetime, -- Currency Rate Date. Date and time the exchange rate was obtained.\n `FromCurrencyCode` text, -- From Currency Code. Exchange rate was converted from this currency code.\n `ToCurrencyCode` text, -- Exchange rate was converted to this currency code.\n `AverageRate` real, -- Average Rate. Average exchange rate for the day.\n `EndOfDayRate` real, -- End Of Day Rate. Final exchange rate for the day.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyRateID)\n);\n\nCREATE TABLE ProductPhoto (\n `ProductPhotoID` integer, -- Product Photo ID. unique id number identifying the products.\n `ThumbNailPhoto` blob, -- Thumb Nail Photo. Small image of the product. The size of small images. \"80x49 GIF image 3.07 kB\". \"3.07\" represents the size of images, \"GIF\" refers to type of images like JPEG, GIF, etc.\n `ThumbnailPhotoFileName` text, -- Thumbnail Photo File Name. Small image file name.\n `LargePhoto` blob, -- large photo. Large image of the product.\n `LargePhotoFileName` text, -- Large Photo File Name. Large image file name. similar to ThumbNailPhoto.\n `ModifiedDate` datetime, -- Modified Date. Date and time the record was last updated.\n primary key (ProductPhotoID)\n);\n\nCREATE TABLE ProductReview (\n `ProductReviewID` integer, -- Product Review ID. The unique id numbers identifying product reviews.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReviewerName` text, -- Reviewer Name. The name of reviewer.\n `ReviewDate` datetime, -- Review Date. Date review was submitted. Default: getdate().\n `EmailAddress` text, -- Email Address. Reviewer's e-mail address.\n `Rating` integer, -- Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.\n `Comments` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductReviewID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SalesOrderHeaderSalesReason (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `SalesReasonID` integer, -- Sales Reason ID. The id number for sales reasons.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);\n\nCREATE TABLE ContactType (\n `ContactTypeID` integer, -- Contact Type ID. The unique id number identifying the contact type ID.\n `Name` text, -- Contact type description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ContactTypeID)\n);\n\nCREATE TABLE ProductDescription (\n `ProductDescriptionID` integer, -- Product Description ID. The unique id number identifying the product description.\n `Description` text, -- Description of the product.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductDescriptionID)\n);\n\nCREATE TABLE SalesPerson (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the business entity.\n `TerritoryID` integer, -- Territory ID. Territory currently assigned to.\n `SalesQuota` real, -- Sales Quota. Projected yearly sales.\n `Bonus` real, -- Bonus due if quota is met. if bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\n `CommissionPct` real, -- Commission percentage. Commission percent received per sale.\n `SalesYTD` real, -- sales year to date. Sales total year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales total of previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Password (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PasswordHash` text, -- Password Hash. Password for the e-mail account.\n `PasswordSalt` text, -- Password Salt. Random value concatenated with the password string before the password is hashed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE ProductVendor (\n `ProductID` integer, -- Product ID. The id number identifying the products.\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the business entities.\n `AverageLeadTime` integer, -- Average Lead Time. The average span of time between placing an order with the vendor and receiving the purchased product. in days.\n `StandardPrice` real, -- Standard Price. The vendor's usual selling price.\n `LastReceiptCost` real, -- Last Receipt Cost. The selling price when last purchased. profit on net can be computed by LastReceiptCost - StandardPrice.\n `LastReceiptDate` datetime, -- Last Receipt Date. Date the product was last received by the vendor.\n `MinOrderQty` integer, -- Min Order Quantity. The maximum quantity that should be ordered.\n `MaxOrderQty` integer, -- Max Order Quantity. The minimum quantity that should be ordered.\n `OnOrderQty` integer, -- On Order Quantity. The quantity currently on order. if it's equal to 0, it means \"out of stock\".\n `UnitMeasureCode` text, -- Unit Measure Code. The product's unit of measure.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);\n\nCREATE TABLE ShoppingCartItem (\n `ShoppingCartItemID` integer, -- Shopping CartItem ID. The unique id number identifying the shopping cart item records.\n `ShoppingCartID` text, -- Shopping Cart ID. Shopping cart identification number.\n `Quantity` integer, -- Product quantity ordered. Default: 1.\n `ProductID` integer, -- Product ID. Product ordered.\n `DateCreated` datetime, -- Date Created. Date the time the record was created. Default: getdate().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShoppingCartItemID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE JobCandidate (\n `JobCandidateID` integer, -- Job Candidate ID. The unique id number identifying the job candidates.\n `BusinessEntityID` integer, -- Business Entity ID. Employee identification number if applicant was hired.\n `Resume` text, -- R�sum� in XML format.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (JobCandidateID)\n);\n\nCREATE TABLE ProductListPriceHistory (\n `ProductID` integer, -- Product ID. Product identification number.\n `StartDate` date, -- Start Date. List price start date.\n `EndDate` date, -- End Date. List price end date.\n `ListPrice` real, -- Product list price.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ScrapReason (\n `ScrapReasonID` integer, -- Scrap Reason ID. The unique number identifying for ScrapReason records.\n `Name` text, -- Failure description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ScrapReasonID)\n);\n\nCREATE TABLE ProductSubcategory (\n `ProductSubcategoryID` integer, -- Product Subcategory ID. Unique id number identifying the subcategory of products.\n `ProductCategoryID` integer, -- Product Category ID. Product category identification number.\n `Name` text, -- Subcategory description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductSubcategoryID),\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);\n\nCREATE TABLE ShipMethod (\n `ShipMethodID` integer, -- Ship Method ID. The unique number for ShipMethod records.\n `Name` text, -- Shipping company name.\n `ShipBase` real, -- Ship Base. Minimum shipping charge.\n `ShipRate` real, -- Ship Rate. Shipping charge per pound.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ShipMethodID)\n);\n\nCREATE TABLE PurchaseOrderDetail (\n `PurchaseOrderID` integer, -- Purchase Order ID. Purchase order number.\n `PurchaseOrderDetailID` integer, -- Purchase Orde rDetail ID. Unique purchase detail order.\n `DueDate` datetime, -- Due Date. Date the product is expected to be received.\n `OrderQty` integer, -- Order Quantity. Quantity ordered.\n `ProductID` integer, -- Product ID. The id number identifying products.\n `UnitPrice` real, -- Unit Price. Vendor's selling price of a single product.\n `LineTotal` real, -- Line Total. Per product subtotal. Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00)).\n `ReceivedQty` real, -- Quantity actually received from the vendor.\n `RejectedQty` real, -- No description.\n `StockedQty` real, -- No description.\n `ModifiedDate` real, -- No description.\n primary key (PurchaseOrderDetailID),\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE ProductModelProductDescriptionCulture (\n `ProductModelID` integer, -- Product Model ID. The id number identifying the product model.\n `ProductDescriptionID` integer, -- Product Description ID. Product description identification number.\n `CultureID` text, -- Culture ID. Culture identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);\n\nCREATE TABLE SalesTerritoryHistory (\n `BusinessEntityID` integer, -- Business Entity ID. The sales representative.\n `TerritoryID` integer, -- Territory ID. Territory identification number.\n `StartDate` datetime, -- Start Date. Date the sales representive started work in the territory.\n `EndDate` datetime, -- End Date. Date the sales representative left work in the territory.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);\n\nCREATE TABLE Vendor (\n `BusinessEntityID` integer, -- The unique number identifying Vendor records.\n `AccountNumber` text, -- Vendor account (identification) number.\n `Name` text, -- Company name.\n `CreditRating` integer, -- Rating of credit. 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. 1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\n `PreferredVendorStatus` integer, -- Preferred Vendor Status. 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\n `ActiveFlag` integer, -- Active Flag. Vendor URL. 0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1.\n `PurchasingWebServiceURL` text, -- Purchasing Web Service URL.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE AddressType (\n `AddressTypeID` integer, -- address type id. Unique numbers identifying address type records. Primary key for AddressType records. Identity / Auto increment column.\n `Name` text, -- Address type description.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressTypeID)\n);\n\nCREATE TABLE StateProvince (\n `StateProvinceID` integer, -- State Province ID. The unique number for StateProvince records.\n `StateProvinceCode` text, -- State Province Code. ISO standard state or province code.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `IsOnlyStateProvinceFlag` integer, -- Is Only State Province Flag. 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. Default: 1. To ask whether the StateProvinceCode exists or not.\n `Name` text, -- State or province description.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the state or province is located.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (StateProvinceID)\n);\n\nCREATE TABLE WorkOrderRouting (\n `WorkOrderID` integer, -- The id number of work order.\n `ProductID` integer, -- The id number identifying products.\n `OperationSequence` integer, -- Operation Sequence. Indicates the manufacturing process sequence.\n `LocationID` integer, -- Location ID. Manufacturing location where the part is processed.\n `ScheduledStartDate` datetime, -- Scheduled Start Date. Planned manufacturing start date.\n `ScheduledEndDate` datetime, -- Scheduled End Date. Planned manufacturing end date.\n `ActualStartDate` datetime, -- Actual Start Date. Actual start date.\n `ActualEndDate` datetime, -- Actual end date.\n `ActualResourceHrs` real, -- Actual Resource Hours. Number of manufacturing hours used.\n `PlannedCost` real, -- Planned Cost. Estimated manufacturing cost.\n `ActualCost` real, -- Actual manufacturing cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE PersonCreditCard (\n `BusinessEntityID` integer, -- Business Entity ID. The id number identifying the person.\n `CreditCardID` integer, -- Credit Card ID. Credit card identification number.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);\n\nCREATE TABLE Person (\n `BusinessEntityID` integer, -- Business Entity ID. The unique id number identifying the person.\n `PersonType` text, -- Person Type. The type of person. Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact.\n `NameStyle` integer, -- Name Style. Name Style. 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0.\n `Title` text, -- A courtesy title.\n `FirstName` text, -- First Name. First name of the person. Default: getdate().\n `MiddleName` text, -- Middle Name. Middle name or middle initial of the person.\n `LastName` text, -- Last Name. Last name of the person.\n `Suffix` text, -- Surname suffix.\n `EmailPromotion` integer, -- Email Promotion. Email Promotion. 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0.\n `AdditionalContactInfo` text, -- Additional Contact Info. Additional contact information about the person stored in xml format.\n `Demographics` text, -- Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);\n\nCREATE TABLE SalesTerritory (\n `TerritoryID` integer, -- The unique id number for SalesTerritory records.\n `Name` text, -- Sales territory description.\n `CountryRegionCode` text, -- Country Region Code. ISO standard country or region code.\n `Group` text, -- Geographic area to which the sales territory belong.\n `SalesYTD` real, -- Sales Year to Date. Sales in the territory year to date.\n `SalesLastYear` real, -- Sales Last Year. Sales in the territory the previous year.\n `CostYTD` real, -- Cost Year to Date. Business costs in the territory year to date.\n `CostLastYear` real, -- Cost Last Year. Business costs in the territory the previous year.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TerritoryID),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);\n\nCREATE TABLE SpecialOfferProduct (\n `SpecialOfferID` integer, -- Special Offer ID. The id for SpecialOfferProduct records.\n `ProductID` integer, -- Product ID. Product identification number.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE SpecialOffer (\n `SpecialOfferID` integer, -- Special Offer ID. The unique id number identifying the special offer.\n `Description` text, -- Discount description.\n `DiscountPct` real, -- Discount precentage. Discount percentage.\n `Type` text, -- Discount type category.\n `Category` text, -- Group the discount applies to such as Reseller or Customer.\n `StartDate` datetime, -- Start Date. Discount start date.\n `EndDate` datetime, -- End Date. Discount end date. promotion date = EndDate - StartDate.\n `MinQty` integer, -- Min Quality. Minimum discount percent allowed.\n `MaxQty` integer, -- Max Quality. Maximum discount percent allowed.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SpecialOfferID)\n);\n\nCREATE TABLE Currency (\n `CurrencyCode` text, -- Currency Code. The unique id string identifying the currency.\n `Name` text, -- Currency name.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CurrencyCode)\n);\n\nCREATE TABLE ProductInventory (\n `ProductID` integer, -- Product ID. Product identification number.\n `LocationID` integer, -- Location ID. Inventory location identification number. Document identification number.\n `Shelf` text, -- Storage compartment within an inventory location.\n `Bin` integer, -- Storage container on a shelf in an inventory location.\n `Quantity` integer, -- Quantity of products in the inventory location. Default: 0.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);\n\nCREATE TABLE Store (\n `BusinessEntityID` integer, -- Business Entity ID. The unique number identifying business entity.\n `Name` text, -- Name of the store.\n `SalesPersonID` integer, -- Sales Person ID. ID of the sales person assigned to the customer.\n `Demographics` text, -- Demographic information about the store such as the number of employees, annual sales and store type.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (BusinessEntityID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);\n\nCREATE TABLE SalesOrderHeader (\n `SalesOrderID` integer, -- Sales Order ID. The id number of sales order.\n `RevisionNumber` integer, -- No description.\n `OrderDate` datetime, -- Order Date.\n `DueDate` datetime, -- No description.\n `ShipDate` datetime, -- Ship Date. Estimated shipment date from the vendor.\n `Status` integer, -- Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1.\n `OnlineOrderFlag` integer, -- No description.\n `SalesOrderNumber` text, -- No description.\n `PurchaseOrderNumber` text, -- No description.\n `AccountNumber` text, -- No description.\n `CustomerID` integer, -- No description.\n `SalesPersonID` integer, -- No description.\n `TerritoryID` integer, -- No description.\n `BillToAddressID` integer, -- No description.\n `ShipToAddressID` integer, -- No description.\n `ShipMethodID` integer, -- Ship Method ID. Shipping method.\n `CreditCardID` integer, -- No description.\n `CreditCardApprovalCode` text, -- No description.\n `CurrencyRateID` integer, -- No description.\n `SubTotal` real, -- No description.\n `TaxAmt` real, -- Tax Amount. Tax amount.\n `Freight` real, -- Shipping cost.\n `TotalDue` real, -- Total Due. Total due to vendor.\n `Comment` text, -- No description.\n `rowguid` text, -- No description.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (SalesOrderID)\n);\n\nCREATE TABLE CreditCard (\n `CreditCardID` integer, -- Credit Card ID. The unique id number identifying the credit card.\n `CardType` text, -- Card Type. Credit card name.\n `CardNumber` text, -- Card Number. Credit card number.\n `ExpMonth` integer, -- Expiration Month. Credit card expiration month.\n `ExpYear` integer, -- Expiration Year. Credit card expiration year.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CreditCardID)\n);\n\nCREATE TABLE TransactionHistoryArchive (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID)\n);\n\nCREATE TABLE TransactionHistory (\n `TransactionID` integer, -- Transaction ID. The unique id number identifying TransactionHistory records.\n `ProductID` integer, -- Product ID. Product identification number.\n `ReferenceOrderID` integer, -- Reference Order ID. Purchase order, sales order, or work order identification number.\n `ReferenceOrderLineID` integer, -- Reference Order Line ID. Line number associated with the purchase order, sales order, or work order.\n `TransactionDate` datetime, -- Transaction Date. Date and time of the transaction.\n `TransactionType` text, -- Transaction Type. Type of transaction records. W = WorkOrder, S = SalesOrder, P = PurchaseOrder.\n `Quantity` integer, -- Product quantity.\n `ActualCost` real, -- Actual Cost. Product cost.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (TransactionID),\n foreign key (ProductID) references Product(ProductID)\n);\n\nCREATE TABLE Customer (\n `CustomerID` integer, -- Customer ID. The unique id number identifying the customer.\n `PersonID` integer, -- Person ID. The id number identifying the person.\n `StoreID` integer, -- Store ID. The id number identifying the store / bussiness entity.\n `TerritoryID` integer, -- Territory ID. ID of the territory in which the customer is located.\n `AccountNumber` text, -- Account Number. Unique number identifying the customer assigned by the accounting system. Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'').\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CustomerID),\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);\n\nCREATE TABLE ProductModel (\n `ProductModelID` integer, -- Product Model ID. The unique id number identifying the product model.\n `Name` text, -- Product model description.\n `CatalogDescription` text, -- Catalog Description. Detailed product catalog information in xml format.\n `Instructions` text, -- Manufacturing instructions in xml format.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (ProductModelID)\n);\n\nCREATE TABLE Address (\n `AddressID` integer, -- address id. Unique id number identifying the address. Primary key for Address records. Identity / Auto increment column.\n `AddressLine1` text, -- address line 1. First street address line.\n `AddressLine2` text, -- address line 2. Second street address line. 1. total address = (AddressLine1+AddressLine2). 2. if AddressLine2 is not null, it means the address is too long.\n `City` text, -- Name of the city.\n `StateProvinceID` integer, -- state province id. Identification number for the state or province.\n `PostalCode` text, -- postal code. Postal code for the street address.\n `SpatialLocation` text, -- spatial location. Latitude and longitude of this address.\n `rowguid` text, -- Uniquely identifying the record. Used to support a merge replication sample. Default: newid().\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (AddressID)\n);\n\nCREATE TABLE Culture (\n `CultureID` text, -- Culture ID. The unique id string identifying the language in which AdventrueWorks data is stored.\n `Name` text, -- Name of the language.\n `ModifiedDate` datetime, -- modified date. Date and time the record was last updated. Default: getdate().\n primary key (CultureID)\n);\n\nExternal Knowledge:\nnot preferable refers to PreferredVendorStatus = 0; still work refers to ActiveFlag = 1;\n\nQuestion:\nHow many vendors does Adventure Works still work with but are not preferable?", + "question": "How many vendors does Adventure Works still work with but are not preferable?", + "evidence": "not preferable refers to PreferredVendorStatus = 0; still work refers to ActiveFlag = 1;", + "db_id": "works_cycles", + "database_path": "../databases/works_cycles.sqlite", + "gold_sql": "SELECT COUNT(BusinessEntityID) FROM Vendor WHERE PreferredVendorStatus = 0 AND ActiveFlag = 1", + "source_gold_sql": "SELECT COUNT(BusinessEntityID) FROM Vendor WHERE PreferredVendorStatus = 0 AND ActiveFlag = 1", + "source_gold_sql_sha256": "7ec599a4c70e38e4122e930d563f3e498470856290bc8df1a2ecc28180c5b7a3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4198", + "domain": "simpson_episodes", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Character_Award (\n `award_id` integer, -- award id. A unique identifier for the award.\n `character` text, -- the name of the awarded character.\n foreign key (award_id) references Award(award_id)\n);\n\nCREATE TABLE Vote (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `stars` integer, -- the star score of the episode. 1-10. Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n `votes` integer, -- the number of votes of the star score.\n `percent` real, -- the percent of the vote number of the star score. percent = the number of votes for the star / the total amount of votes for all stars.\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Keyword (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `keyword` text, -- the keywords of episode.\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Credit (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `category` text, -- the category of the credit.\n `person` text, -- the name of cast and crew members.\n `role` text, -- the role of the person.\n `credited` text, -- whether the person is credited. true/ false. • true: The person is included in the credit list. • false: The person isn't included in the credit list.\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);\n\nCREATE TABLE Episode (\n `episode_id` text, -- episode id. A unique identifier for episodes.\n `season` integer, -- the season of the episode.\n `episode` integer, -- the episode number of the episode.\n `number_in_series` integer, -- number in series. the number in series.\n `title` text, -- the title of the episode.\n `summary` text, -- the summary of the episode.\n `air_date` text, -- air date. the air date of the episode. YYYY-MM-DD.\n `episode_image` text, -- episode image. the image of episode.\n `rating` real, -- the rating of episode. 0.0 - 10.0. Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0. • average: 5.0 < rating <= 7.0. • bad: 0.0 < rating <= 5.0. not bad: average, excellent.\n `votes` integer, -- the votes of episode. Higher votes mean more audience supports (or popular).\n primary key (episode_id)\n);\n\nCREATE TABLE Award (\n `award_id` integer, -- award id. the unique id for the award.\n `organization` text, -- the organization that holds the award.\n `year` integer, -- year of award.\n `award_category` text, -- the category of the award.\n `award` text, -- the name of the award.\n `person` text, -- the person who gets the award.\n `role` text, -- the role of the honoree.\n `episode_id` text, -- episode id. S stands for 'Season' and E stands for 'Episode'.\n `season` text, -- the season of the awarded work.\n `song` text, -- the theme song of the awarded work.\n `result` text, -- the final award result. • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award.\n primary key (award_id),\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);\n\nCREATE TABLE Person (\n `name` text, -- the name of the crew.\n `birthdate` text, -- birth date. the birth date of the crew. YYYY-MM-DD.\n `birth_name` text, -- birth name. the birth name of the crew.\n `birth_place` text, -- birth place. the birth place of the crew.\n `birth_region` text, -- birth region. the birth region of the crew.\n `birth_country` text, -- birth country. the birth country of the crew.\n `height_meters` real, -- height meters. the height of the crew. the unit is meter.\n `nickname` text, -- the nickname of the crew.\n primary key (name)\n);\n\nExternal Knowledge:\nmore than 950 votes refers to votes > 950; in 2009 refers to year = 2009; number of episode = Count(episode_id); nominated refers to result = 'Nominee'; percentage = Divide(Count(award = 'Outstanding Voice-Over Performance'), Count(episode_id)) * 100\n\nQuestion:\nAmong the episode that get more than 950 votes, calculate the percentageo of the episodes that were nominated for the 'Outstanding Voice-Over Performance Award in 2009'?", + "question": "Among the episode that get more than 950 votes, calculate the percentageo of the episodes that were nominated for the 'Outstanding Voice-Over Performance Award in 2009'?", + "evidence": "more than 950 votes refers to votes > 950; in 2009 refers to year = 2009; number of episode = Count(episode_id); nominated refers to result = 'Nominee'; percentage = Divide(Count(award = 'Outstanding Voice-Over Performance'), Count(episode_id)) * 100", + "db_id": "simpson_episodes", + "database_path": "../databases/simpson_episodes.sqlite", + "gold_sql": "WITH high_votes AS (\n SELECT episode_id\n FROM Episode\n WHERE votes > 950\n), nominated AS (\n SELECT DISTINCT episode_id\n FROM Award\n WHERE year = 2009\n AND award = 'Outstanding Voice-Over Performance'\n AND result = 'Nominee'\n)\nSELECT \n 100.0 * (SELECT COUNT(*) FROM nominated WHERE episode_id IN (SELECT episode_id FROM high_votes)) /\n (SELECT COUNT(*) FROM high_votes) AS percentage;", + "source_gold_sql": "WITH high_votes AS (\n SELECT episode_id\n FROM Episode\n WHERE votes > 950\n), nominated AS (\n SELECT DISTINCT episode_id\n FROM Award\n WHERE year = 2009\n AND award = 'Outstanding Voice-Over Performance'\n AND result = 'Nominee'\n)\nSELECT \n 100.0 * (SELECT COUNT(*) FROM nominated WHERE episode_id IN (SELECT episode_id FROM high_votes)) /\n (SELECT COUNT(*) FROM high_votes) AS percentage;", + "source_gold_sql_sha256": "c44003143d63523e318b4d4e4fef1da80192c336a4f7262e8f92a8729585d626", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:6156", + "domain": "food_inspection_2", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE inspection (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `inspection_date` date, -- inspection date. the date of the inspection. yyyy-mm-dd.\n `inspection_type` text s, -- inspection type. the type of the inspection.\n `results` text, -- the inspection results. • Pass. • Pass w/ Conditions. • Fail. • Out of Business. • Business Not Located. • No Entry. • Not Ready. the quality is verified: Pass + Pass w/ Conditions.\n `employee_id` integer, -- employee id. the id of the employee who is responsible for the inspection.\n `license_no` integer, -- license number. the license number of the facility that is inspected.\n `followup_to` integer, -- followup to. the id of inspections that this inspection is following up. 'No data' means the inspection has no followup. if followup_to has value:. • it's the parent inspection id, and this value represents child inspection id. • the entire inspection: followup_to + inspection_id.\n primary key (inspection_id),\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);\n\nCREATE TABLE establishment (\n `license_no` integer, -- license number. the license number of the facility.\n `dba_name` text, -- doing business as name. the dba name of the facility. DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n `aka_name` text, -- as know as name. the aka name of the facility. the aka name is used to indicate another name that a person or thing has or uses.\n `facility_type` text, -- facility type. the facility type. can ask some questions about its categories, for i.e.:. • \"Restaurant\" and \"Cafeteria\" refers to restaurants. • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks.\n `risk_level` integer, -- risk level. the risk level of the facility. Facilities with higher risk level have more serious food safety issues.\n `address` text, -- physical street address of the facility.\n `city` text, -- city of the facility's address.\n `state` text, -- state of the facility's address.\n `zip` integer, -- postal code of the facility's address.\n `latitude` real, -- the latitude of the facility.\n `longitude` real, -- the longitude of the facility. location = POINT(latitude, longitude).\n `ward` integer, -- the ward number of the facility. Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details.\n primary key (license_no)\n);\n\nCREATE TABLE employee (\n `employee_id` integer, -- employee id. the unique id for the employee.\n `first_name` text, -- first name. first name of the employee.\n `last_name` text, -- last name. last name of the employee. full name: first name + last_name.\n `address` text, -- physical street address of the employee.\n `city` text, -- city of the employee's address.\n `state` text, -- state of the customer's address.\n `zip` integer, -- postal code of the employee's address.\n `phone` text, -- telephone number to reach the customer.\n `title` text, -- career title of the employee. • Sanitarian. • Supervisor. • Division Manager.\n `salary` integer, -- the salary of the employee. us dollars / year. monthly salary: salary / 12.\n `supervisor` integer, -- the employee id of the employee's supervisor.\n primary key (employee_id),\n foreign key (supervisor) references employee(employee_id)\n);\n\nCREATE TABLE inspection_point (\n `point_id` integer, -- point id. the unique id for the inspection point.\n `Description` text, -- the specific description of the inspection results.\n `category` text, -- the inspection category.\n `code` text, -- the sanitary operating requirement code. Each code stands for an operating requirement.\n `fine` integer, -- the fines for food safety problems. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `point_level` text, -- point level. Critical / Serious/ Minor.\n primary key (point_id)\n);\n\nCREATE TABLE violation (\n `inspection_id` integer, -- inspection id. the unique id for the inspection.\n `point_id` integer, -- point id. the inspection point id.\n `fine` integer, -- the fine of the violation. The fine of more serious food safety problems will be higher. • Minor: 100. • Serious: 250. • Critical: 500.\n `inspector_comment` text, -- the comment of the inspector.\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);\n\nExternal Knowledge:\nfull name refers to first_name, last_name; the highest amount of fine refers to max(sum(fine))\n\nQuestion:\nWhat are the full names of the employee who gave the highest amount of fine of all time?", + "question": "What are the full names of the employee who gave the highest amount of fine of all time?", + "evidence": "full name refers to first_name, last_name; the highest amount of fine refers to max(sum(fine))", + "db_id": "food_inspection_2", + "database_path": "../databases/food_inspection_2.sqlite", + "gold_sql": "SELECT e.`first_name`, e.`last_name` FROM employee AS e WHERE e.`employee_id` in ( SELECT i.`employee_id` FROM inspection AS i JOIN violation AS v ON v.`inspection_id` = i.`inspection_id` GROUP BY i.`employee_id` HAVING SUM(v.fine) = ( SELECT MAX(TotalFines) FROM ( SELECT i2.`employee_id`, SUM(v2.fine) AS TotalFines FROM inspection AS i2 JOIN violation AS v2 ON v2.`inspection_id` = i2.`inspection_id` GROUP BY i2.`employee_id` ) AS EmployeeFines ) );", + "source_gold_sql": "SELECT e.`first_name`, e.`last_name` FROM employee AS e WHERE e.`employee_id` in ( SELECT i.`employee_id` FROM inspection AS i JOIN violation AS v ON v.`inspection_id` = i.`inspection_id` GROUP BY i.`employee_id` HAVING SUM(v.fine) = ( SELECT MAX(TotalFines) FROM ( SELECT i2.`employee_id`, SUM(v2.fine) AS TotalFines FROM inspection AS i2 JOIN violation AS v2 ON v2.`inspection_id` = i2.`inspection_id` GROUP BY i2.`employee_id` ) AS EmployeeFines ) );", + "source_gold_sql_sha256": "d3bc8655c1bf811eeb4f21af1f7c59d38403516ec7d1d25c51329061a8083d62", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:4057", + "domain": "public_review_platform", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Reviews (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `review_stars` integer, -- review stars. review on this business. 5 – Great experience. 4 – Good experience. 3 – Average experience. 2 – Bad experience. 1 - Terrible experience.\n `review_votes_funny` text, -- review votes funny. the amount of funny votes that the user received for the review. If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n `review_votes_useful` text, -- review votes useful. how many useful votes that the user received for the review.\n `review_votes_cool` text, -- review votes cool. how many cool votes that the user received for the review.\n `review_length` text, -- review length. The length of the review written by the user.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Compliments (\n `compliment_id` integer, -- compliment id.\n `compliment_type` text, -- compliment type.\n primary key (compliment_id)\n);\n\nCREATE TABLE Business_Attributes (\n `attribute_id` integer, -- attribute id. id number identifying the attribute.\n `business_id` integer, -- business id. id number identifying the business.\n `attribute_value` text, -- attribute value. sort of the attributes for each business. “None”, “No” or “FALSE” means the business does not have the attribute.\n primary key (attribute_id, business_id)\n);\n\nCREATE TABLE Business_Categories (\n `business_id` integer, -- business id. id number identifying the business.\n `category_id` integer, -- category id. id number identifying the categories.\n primary key (business_id, category_id)\n);\n\nCREATE TABLE Attributes (\n `attribute_id` integer, -- attribute id. unique number identifying the attribute.\n `attribute_name` text, -- attribute name. the name of the attribute.\n primary key (attribute_id)\n);\n\nCREATE TABLE Users_Compliments (\n `compliment_id` integer, -- compliment id. the id number indicating the compliment.\n `user_id` integer, -- user id. the id number indicating the user.\n `number_of_compliments` text, -- number of compliments. how many compliments a user has received from other users. more number_of_compliments indicates this user is more welcome or he / she is high-quality user.\n primary key (compliment_id, user_id)\n);\n\nCREATE TABLE Business (\n `business_id` integer, -- business id. unique number identifying the business.\n `active` text, -- whether the business is still actively running until now. commonsense reasoning:. � \"True\": the business is still running. � \"False\": the business is closed or not running now.\n `city` text, -- The city where the business is located.\n `state` text, -- The state where the business is located.\n `stars` real, -- ratings of the business. 5 � Great experience. 4 � Good experience. 3 � Average experience. 2 � Bad experience. 1 - Terrible experience. � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa.\n `review_count` text, -- review count. the total number of reviews the users have written for a business. � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n primary key (business_id)\n);\n\nCREATE TABLE Users (\n `user_id` integer, -- user id. the unique id number identifying which user.\n `user_yelping_since_year` integer, -- user yelping since year. the time when the user join Yelp.\n `user_average_stars` real, -- user average stars. the average ratings of all review.\n `user_votes_funny` text, -- user votes funny. total number of funny votes sent by the user.\n `user_votes_useful` text, -- user votes useful. how many useful votes created by the user.\n `user_votes_cool` text, -- user votes cool. how many cool votes created by the user.\n `user_review_count` text, -- user review count. total number of reviews the user has written.\n `user_fans` text, -- user fans. total number of fans / followers the user has. Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n primary key (user_id)\n);\n\nCREATE TABLE Tips (\n `business_id` integer, -- business id. the number identifying the business.\n `user_id` integer, -- user id. the number identifying the user who comments on this business.\n `likes` integer, -- Likes. how many likes of this tips. more likes mean this tip is more valuable.\n `tip_length` text, -- tip length. length of the tip.\n primary key (business_id, user_id)\n);\n\nCREATE TABLE Elite (\n `user_id` integer, -- user id. id number identifying the users.\n `year_id` integer, -- year id. id number identifying the year.\n primary key (user_id, year_id)\n);\n\nCREATE TABLE Checkins (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `label_time_0` text, -- indicates times of checkins on a business. label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n `label_time_1` text, -- No description.\n `label_time_2` text, -- No description.\n `label_time_3` text, -- No description.\n `label_time_4` text, -- No description.\n `label_time_5` text, -- No description.\n `label_time_6` text, -- No description.\n `label_time_7` text, -- No description.\n `label_time_8` text, -- No description.\n `label_time_9` text, -- No description.\n `label_time_10` text, -- No description.\n `label_time_11` text, -- No description.\n `label_time_12` text, -- No description.\n `label_time_13` text, -- No description.\n `label_time_14` text, -- No description.\n `label_time_15` text, -- No description.\n `label_time_16` text, -- No description.\n `label_time_17` text, -- No description.\n `label_time_18` text, -- No description.\n `label_time_19` text, -- No description.\n `label_time_20` text, -- No description.\n `label_time_21` text, -- No description.\n `label_time_22` text, -- No description.\n `label_time_23` text, -- No description.\n primary key (business_id, day_id)\n);\n\nCREATE TABLE Days (\n `day_id` integer, -- day id. the unique id identifying the day of the week.\n `day_of_week` text, -- day of week. indicate the day of the week.\n primary key (day_id)\n);\n\nCREATE TABLE Categories (\n `category_id` integer, -- category id.\n `category_name` text, -- category name.\n primary key (category_id)\n);\n\nCREATE TABLE Years (\n `year_id` integer, -- year id. the unique number identifying the year.\n `actual_year` integer, -- actual year.\n primary key (year_id)\n);\n\nCREATE TABLE Business_Hours (\n `business_id` integer, -- business id. id number identifying the business.\n `day_id` integer, -- day id. id number identifying each day of the week.\n `opening_time` text, -- opening time. opening time of the business.\n `closing_time` text, -- closing time. closing time of the business. how much time does this business open: closing_time - opening_time.\n primary key (business_id, day_id)\n);\n\nExternal Knowledge:\ncategories of businesses refer to category_name; Sunday refers to day_of_week where day_id = 1;\n\nQuestion:\nWhat are the categories of businesses that have opening time on Sunday?", + "question": "What are the categories of businesses that have opening time on Sunday?", + "evidence": "categories of businesses refer to category_name; Sunday refers to day_of_week where day_id = 1;", + "db_id": "public_review_platform", + "database_path": "../databases/public_review_platform.sqlite", + "gold_sql": "SELECT DISTINCT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T2.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T4.day_of_week = 'Sunday' AND T3.opening_time <> ''", + "source_gold_sql": "SELECT DISTINCT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T2.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T4.day_of_week = 'Sunday' AND T3.opening_time <> ''", + "source_gold_sql_sha256": "d5f220f7cb577df0c4fe2bb9b3a8e819f5dbbeaf85c02a7fade972907c8290e5", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8113", + "domain": "university", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE university_ranking_year (\n `university_id` integer, -- university id. the id of the university.\n `ranking_criteria_id` integer, -- ranking criteria id. the id of the ranking criteria.\n `year` integer, -- ranking year.\n `score` integer, -- ranking score.\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE university_year (\n `university_id` integer, -- university id. id of the university.\n `year` integer, -- No description.\n `num_students` integer, -- number of students. the total number of students for the year.\n `student_staff_ratio` real, -- student staff ratio. student_staff_ratio = number of students / number of staff.\n `pct_international_students` real, -- pct internation student. the percentage of international students among all students. pct_international_student = number of interbational students / number of students.\n `pct_female_students` real, -- pct female students. the percentage of female students. pct_female_students = number of female students / number of students.\n foreign key (university_id) references university(id)\n);\n\nCREATE TABLE ranking_system (\n `id` integer, -- unique id number identifying ranking system.\n `system_name` text, -- system name. id number identifying ranking system.\n primary key (id)\n);\n\nCREATE TABLE ranking_criteria (\n `id` integer, -- unique id number identifying ranking criteria.\n `ranking_system_id` integer, -- ranking system id. id number identifying ranking system.\n `criteria_name` text, -- criteria name. name of the criteria.\n primary key (id),\n foreign key (ranking_system_id) references ranking_system(id)\n);\n\nCREATE TABLE university (\n `id` integer, -- unique id number identifying university.\n `country_id` text, -- country id. the country where the university locates.\n `university_name` text, -- university name. name of the university.\n primary key (id),\n foreign key (country_id) references country(id)\n);\n\nCREATE TABLE country (\n `id` integer, -- unique id number identifying country.\n `country_name` text, -- country name. the name of the country.\n primary key (id)\n);\n\nExternal Knowledge:\ntotal number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013\n\nQuestion:\nIn years 2011 to 2013, what is the total number of female students in university ID 40?", + "question": "In years 2011 to 2013, what is the total number of female students in university ID 40?", + "evidence": "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", + "db_id": "university", + "database_path": "../databases/university.sqlite", + "gold_sql": "SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40", + "source_gold_sql": "SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40", + "source_gold_sql_sha256": "991f2642953517cbf21f0869379610f9033a0fa93ae454e47b6bd21fc70349c3", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8593", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nname of neighborhood refers to neighborhood_name; the most population refers to max(population)\n\nQuestion:\nPlease list the names of all the neighborhoods in the community area with the most population.", + "question": "Please list the names of all the neighborhoods in the community area with the most population.", + "evidence": "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT n.`neighborhood_name`\nFROM `Neighborhood` n\nJOIN `Community_Area` c ON n.`community_area_no` = c.`community_area_no`\nWHERE CAST(REPLACE(c.`population`, ',', '') AS INTEGER) = (\n SELECT MAX(CAST(REPLACE(`population`, ',', '') AS INTEGER))\n FROM `Community_Area`\n)", + "source_gold_sql": "SELECT n.`neighborhood_name`\nFROM `Neighborhood` n\nJOIN `Community_Area` c ON n.`community_area_no` = c.`community_area_no`\nWHERE CAST(REPLACE(c.`population`, ',', '') AS INTEGER) = (\n SELECT MAX(CAST(REPLACE(`population`, ',', '') AS INTEGER))\n FROM `Community_Area`\n)", + "source_gold_sql_sha256": "beee357bd8137425b9147519c44921ceb7fe811cc82a6cac7070c00d484ca3f4", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + }, + { + "id": "revisql-validation:8600", + "domain": "chicago_crime", + "problem": "Database Engine:\nSQLite\n\nDatabase Schema:\nCREATE TABLE Community_Area (\n `community_area_no` integer, -- community area number. unique community area number.\n `community_area_name` text, -- community area name.\n `side` text, -- district.\n `population` text, -- population of the community.\n primary key (community_area_no)\n);\n\nCREATE TABLE Crime (\n `report_no` integer, -- report number. unique Numeric identifier of the crime report.\n `case_number` text, -- case number. Case number assigned to the reported crime. There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim. if case_number appears > 1, it means this is a multiple homicide.\n `date` text, -- Date of the occurrence of the incident being reported.\n `block` text, -- A redacted address indicating in which city block the incident occurred.\n `iucr_no` text, -- Illinois Uniform Crime Reporting number. Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.\n `location_description` text, -- location description. A description of the kind of area where incident occurred.\n `arrest` text, -- A true/false value indicating if an arrest has been made.\n `domestic` text, -- A true/false value indicating if the incident is as case of domestic violence.\n `beat` integer, -- No description.\n `district_no` integer, -- district number. A number indicating the geographic subdivision of the police district where the incident occurred.\n `ward_no` integer, -- ward number. A two digit number identifying the legislative district (ward) where the incident occurred.\n `community_area_no` integer, -- community area number. A number identifying one of 77 geographic areas where the incident occurred.\n `fbi_code_no` text, -- fbi code number. A code identifying the type of crime reported according to the classification scheme used by the FBI.\n `latitude` text, -- The latitude where incident is reported to have occurred.\n `longitude` text, -- The longitude where incident is reported to have occurred. The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude).\n primary key (report_no),\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);\n\nCREATE TABLE FBI_Code (\n `fbi_code_no` text, -- fbi code number. unique code made by fbi to classify the crime cases.\n `title` text, -- Short description of the kind of crime.\n `description` text, -- Detailed description of the kind of crime.\n `crime_against` text, -- crime against. States who the crime is against. Values are Persons, Property, Society, or \"Persons and Society\".\n primary key (fbi_code_no)\n);\n\nCREATE TABLE Neighborhood (\n `neighborhood_name` text, -- neighborhood name. The neighborhood name as used in everyday communication.\n `community_area_no` integer, -- community area number. The community area in which most of the neighborhood is located.\n primary key (neighborhood_name),\n foreign key (community_area_no) references Community_Area(community_area_no)\n);\n\nCREATE TABLE Ward (\n `ward_no` integer, -- No description.\n `alderman_first_name` text, -- No description.\n `alderman_last_name` text, -- No description.\n `alderman_name_suffix` text, -- No description.\n `ward_office_address` text, -- No description.\n `ward_office_zip` text, -- No description.\n `ward_email` text, -- No description.\n `ward_office_phone` text, -- No description.\n `ward_office_fax` text, -- No description.\n `city_hall_office_room` integer, -- No description.\n `city_hall_office_phone` text, -- No description.\n `city_hall_office_fax` text, -- No description.\n `Population` text, -- No description.\n primary key (ward_no)\n);\n\nCREATE TABLE IUCR (\n `iucr_no` text, -- iucr number. Unique identifier for the incident classification.\n `primary_description` text, -- primary description. The general description of the incident classification. It's the general description.\n `secondary_description` text, -- secondary description. The specific description of the incident classification. It's the specific description.\n `index_code` text, -- index code. Uses values \"I\" and \"N\" to indicate crimes. • \"Indexed\" (severe, such as murder, rape, arson, and robbery). • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance).\n primary key (iucr_no)\n);\n\nCREATE TABLE District (\n `district_no` integer, -- district number. unique number identifying the district.\n `district_name` text, -- district name. name of the district.\n `address` text, -- Street address of the police district building.\n `zip_code` integer, -- zip code. ZIP code of the police district building.\n `commander` text, -- Name of the district's commanding officer. the person who should be responsible for the crime case.\n `email` text, -- Email address to contact district administrators.\n `phone` text, -- Main telephone number for the district.\n `fax` text, -- Fax number for the district.\n `tty` text, -- Number of the district teletype machine. A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n `twitter` text, -- The district twitter handle. Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\".\n primary key (district_no)\n);\n\nExternal Knowledge:\nWoodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '1/%/2018%'\n\nQuestion:\nAmong the crimes in Woodlawn, how many of them happened in January, 2018?", + "question": "Among the crimes in Woodlawn, how many of them happened in January, 2018?", + "evidence": "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '1/%/2018%'", + "db_id": "chicago_crime", + "database_path": "../databases/chicago_crime.sqlite", + "gold_sql": "SELECT COUNT(*) AS num_crimes\nFROM `Crime` c\nJOIN `Community_Area` ca ON ca.`community_area_no` = c.`community_area_no`\nWHERE ca.`community_area_name` = 'Woodlawn'\n AND c.`date` LIKE '1/%/2018%'", + "source_gold_sql": "SELECT COUNT(*) AS num_crimes\nFROM `Crime` c\nJOIN `Community_Area` ca ON ca.`community_area_no` = c.`community_area_no`\nWHERE ca.`community_area_name` = 'Woodlawn'\n AND c.`date` LIKE '1/%/2018%'", + "source_gold_sql_sha256": "b2590b133de16e4f03679688d2b4418f11f4d87e60fc1cd8a79b2938c85a8e8d", + "gold_sql_overridden": false, + "grading_method": "set", + "source": "ReViSQL/9fac371aa22019e9912dcbd6572e8fe8194d352a:bird-verified-val.json", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161", + "current_role": "paper_validation", + "dataset_release_id": "revisql-verified-v1", + "numeric_policy": "diamond-numeric-v1", + "numeric_tolerance": false + } +] diff --git a/revisql-verified/hints/current-training-bindings.json b/revisql-verified/hints/current-training-bindings.json new file mode 100644 index 0000000000000000000000000000000000000000..721935ec3086f60d6efd484847f30e08653da3b3 --- /dev/null +++ b/revisql-verified/hints/current-training-bindings.json @@ -0,0 +1,12386 @@ +{ + "revisql-train:3": { + "current_role": "paper_train", + "prompt_sha256": "2913db684d4e3a4714ebc4800fcdfb25da4b6a2caec9f7034d79b5c455f33084", + "gold_sql_sha256": "a58b7161c60d5d4ee9e44ac1468e0136965fd6f1449d56ba9b8b60296accc731", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:19": { + "current_role": "paper_train", + "prompt_sha256": "9b17c886259b99820a4a002daea886328d0f99daef16fe59a8e3ce4e1e48dab7", + "gold_sql_sha256": "723eeccbbec62c40037c2f59775ead75f90afeaac9dac40ad1fae6a746b01bac", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:33": { + "current_role": "paper_train", + "prompt_sha256": "2b5e98443ac482292991b1d9e2792e90d2f4037d76e3aa441d134d0ee6ee0a79", + "gold_sql_sha256": "2f3316b55225acb9d126861c4317aa70c4ce8bf855a07a9d603a95c0ba969c0d", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:47": { + "current_role": "paper_train", + "prompt_sha256": "5ffd7d6cfb6f1cff9159167bf6a1ccb80800673ee7ed4bcb7bfe9b44619812f1", + "gold_sql_sha256": "742e09638685429b02b7276857ae471880d88cbf24ab6ed26552875f58297d8f", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:50": { + "current_role": "paper_train", + "prompt_sha256": "83948547a5ee86ea10be194820210a34474351f3ec9aeba608a796d9eced02a6", + "gold_sql_sha256": "0162c7e29613f0062234af82093ae321e51f815ab1e109db326b581285b6a4cd", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:76": { + "current_role": "paper_train", + "prompt_sha256": "efb25da8dd79aed7f0723641552611acb260f75c790956096991112639fd63a3", + "gold_sql_sha256": "cbff37c8f912b64f2962ab112c9740242e5c17211cdc73e4496a00a7fe1266e0", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:80": { + "current_role": "paper_train", + "prompt_sha256": "c49fd96ea529e4765be0431c281eccd235d493eb6f0c6059c36d7caa0142b311", + "gold_sql_sha256": "e3ea7148b7fcd5953847201f71c8c7f3065f2f47aad0c0d53980b76699380b38", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:88": { + "current_role": "paper_train", + "prompt_sha256": "9e9bfbc75393400a04d7a54593803b7e553e808e3dcfe999447b21743d78ed74", + "gold_sql_sha256": "df3f8b553f1dee6187c234decca4348b94fdec7e3b95dd89255e95ecd8f98134", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:92": { + "current_role": "paper_train", + "prompt_sha256": "1f2322bae42af51a22aafd356847f39a1fe55ff5406857fe267119c2a1a047a2", + "gold_sql_sha256": "c68d6ed3cda0e1e0ab4d230df84bb6fe5e36d8c000e01878510e81d89fd53e4e", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:93": { + "current_role": "paper_train", + "prompt_sha256": "90f75f5fb70983e929ea7a84a2b571e51c6676ceae208029b67ca91ae111e04f", + "gold_sql_sha256": "c07fbddf1f192ba09e055b927a931bb1be3672a23e96125f11b7f4416519a3d5", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:95": { + "current_role": "paper_train", + "prompt_sha256": "a0389e006db2a7f343f92a6f64961689262a85f7d9ed03f6d1dd77b9832b7999", + "gold_sql_sha256": "5d025234c0c899195754fa78299eec8bd36ab4e02e6622fb6cce1b2e5a455f2b", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:106": { + "current_role": "paper_train", + "prompt_sha256": "74c830560a165238f6882d317201667d73560a42bc2b0376d90441ef24c0db9e", + "gold_sql_sha256": "03f37f1d68522ab8d7eade387ca6540c229d21622fce7078f3a2465049039772", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:107": { + "current_role": "paper_train", + "prompt_sha256": "cd5cb2c3e4e16dcb2e824bf971783633ab6786c3c76adfd9296c3c45f048d784", + "gold_sql_sha256": "4dca1017c6e00eb6ab5b02a4ae70c97e641d3a291debeeae3d8fa73fe1ab13b9", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:119": { + "current_role": "paper_train", + "prompt_sha256": "bbfb0c482970d7bcc4ea010cf7381ddd0aabe246b6098b7c5edd93203b11266e", + "gold_sql_sha256": "6f8970ffc41092fa7efd44f46a1cc3e5a0c256cba8d2a5fc47e2cc4bbe84ca63", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:144": { + "current_role": "paper_train", + "prompt_sha256": "f2052752d5c8f90712533f4afaf381e100e9b8141298a4cef81e58e93fea75c6", + "gold_sql_sha256": "6bf1cca7564101a219249f4b85ea513deba95f06eee64c2f0fcba1374c2a8178", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:169": { + "current_role": "paper_train", + "prompt_sha256": "3a27a738b191d16bc05593ba587de7b0f5a590dc548dd5da04794fec5108a205", + "gold_sql_sha256": "88bcb1d2300d289853e0da24aef714a08a3ed84286490972e007b9d8b3b38d5e", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:222": { + "current_role": "paper_train", + "prompt_sha256": "21350acdb1a0e5831d3e578766cb7d531e97118eaa1d95b6a4cc930a2763c162", + "gold_sql_sha256": "ec240063439cb3d1663ffef0f657d6c809a4adcc622bf22b91d6421123657c59", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:245": { + "current_role": "paper_train", + "prompt_sha256": "ecea5dc55c9906cb453514eab1820522e8a01f9267e07fd1af3e708307b333d8", + "gold_sql_sha256": "904cdd5a268f8a921bed54727b8b1c80e99413b30de5894e647f85696d764bd7", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:248": { + "current_role": "paper_train", + "prompt_sha256": "4e82e4441a5b71b8ed5af0864ad0220413da2cc30de745b80475529153037314", + "gold_sql_sha256": "096ee37ac4f6b15db8ec996239912fc2d5a15b831052d4d95d5b8ff14949686a", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:265": { + "current_role": "paper_train", + "prompt_sha256": "cd606b212f37e93ae0abf01a4507a25e948d8ff90d1f33d028b9837d3361e72a", + "gold_sql_sha256": "9fa3a4fd5cca07be57a515c56007757705d316bb8ba673f68149875de96b37ea", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:267": { + "current_role": "paper_train", + "prompt_sha256": "0b902539b21e8431dde42b5aa4d4713ea7e9f0182c83ae87d4b8f7ecf03d8ca8", + "gold_sql_sha256": "9885564aedcf4bfd157f7b6457d493418892d8fbcd2ee5bf8c2afa3766f20970", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:274": { + "current_role": "paper_train", + "prompt_sha256": "cb99d01ca417950c6f7e6ec2de0efb6106cdc34baccb9f669830870a25fcff2a", + "gold_sql_sha256": "e67faff7103791066f05543f38917ba80b01f527408285df9a17a4f429e6bfba", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:286": { + "current_role": "paper_train", + "prompt_sha256": "e202f28d02787a5a6db0ace1216b255ffb0c176109b5f9d8075b96ec5ae792ec", + "gold_sql_sha256": "4b0ae63c366ddae0c1c15d6e65944fa2af2422a64a55effc758a150086eaa50f", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:315": { + "current_role": "paper_train", + "prompt_sha256": "2b1e8fe0c4bc96b275ba425f6d60f73153031bf9cd2201a6c1bf5f2d982626e0", + "gold_sql_sha256": "a61c34a30cbad8a29e36a18072efe023da9afd4ca7dd130b297e12b2b0416fde", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:318": { + "current_role": "paper_train", + "prompt_sha256": "d49fa7d180f1860ca42f419ae1955cdd24f38ede97ab129aec2b5383d21e1e6a", + "gold_sql_sha256": "bb79dfc0ad5aab1d6c4f15976ce6e6b014ed62680414247d9774b6ca45251100", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:321": { + "current_role": "paper_train", + "prompt_sha256": "2038b897b6de35c3de7439fe2ea7e3142349d1359cfa57efa47a55fb3c0cb0e8", + "gold_sql_sha256": "c13c0ee94704d522a3140b804b465132f833878a90936c3873c811af60fccbe1", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:330": { + "current_role": "paper_train", + "prompt_sha256": "a1188fb22bd3c0dffc24e0d9fa7d8581ab6f5cad69df10ff67835327a53b2d05", + "gold_sql_sha256": "23aa10649384d7ed422458e6b460ff970c3ddd5fe1a43be88338e43e7914e094", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:333": { + "current_role": "paper_train", + "prompt_sha256": "cca5e95bb3cc5353bfb4d38cef254b99eef6e5e36b5b861f33e3367af274c2b4", + "gold_sql_sha256": "6d18e77039fcaf0fb1c0378662c88ac9edbd24328f041a381f83412dd2c26c67", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:346": { + "current_role": "paper_train", + "prompt_sha256": "0dd80032d039b9f21a82f0b297d76d998dab6cb95cb3f49be523485d2639c652", + "gold_sql_sha256": "69ceea98e153d55736125dff869f7fae1bee6d442f8e35e93723432b47b883ae", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:367": { + "current_role": "paper_train", + "prompt_sha256": "3ce9067858d08f60701275a7495baca4a1cdd78bc41f09175e7e2d54225ec5e6", + "gold_sql_sha256": "5d5b646c5b2f41e82a51f00ec66c06485efdadef893bd9bdffc85d463535060e", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:381": { + "current_role": "paper_train", + "prompt_sha256": "765a5f809896a0084f0be9eed452c581d913c7b838d61c3631ec143c9002d35e", + "gold_sql_sha256": "a641465fa595650dbb05d787a75d73c59f6c0252a551f40f78fdb093ef0e105f", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:416": { + "current_role": "paper_train", + "prompt_sha256": "f5415f019f43f467e821361ce4e77adccfee7840edec715e8ef54ca4a902a2ce", + "gold_sql_sha256": "5bd788dc38ac3541891d1ac40c6bff1288ca8cf5ba6c791b7183af4ebfa9d399", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:447": { + "current_role": "paper_train", + "prompt_sha256": "3fb94003f6911f50531c2b152e5b9a45c79a022b634e7e2c98937c51e1adeefe", + "gold_sql_sha256": "16e41c53d4ea1139646c555b34bf66be4aa8a850175105a69da34c61776ec869", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:457": { + "current_role": "paper_train", + "prompt_sha256": "c7e597a416a1565df864384a2a68e395a147d0d74cd2ce2336d2f5639a794f41", + "gold_sql_sha256": "62acf878aa7fa0105b992123f67d820d275d770c665f1958d525513816c6ce0b", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:483": { + "current_role": "paper_train", + "prompt_sha256": "a03f05afdec3e776e121c391e960b23db49fc10ceb6efe42156a9c4e21f20947", + "gold_sql_sha256": "5db05e697b8adbc226e074df18dc8bb5f22c5222bbf4298d4c31792dac875c8d", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:487": { + "current_role": "paper_train", + "prompt_sha256": "8bc86e46bc0621819ed837e8210656d8d702b7e1b8d87d8ae8d9d5e725d056f8", + "gold_sql_sha256": "f56f641eed44edbaa60ee0e585009e79f9418cdc26c4874781f35a36038faae4", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:500": { + "current_role": "paper_train", + "prompt_sha256": "0fb31900d9f976c25e45e81e572a15f2f12ca1b2ca1668fa5b21f0a7b13a61d0", + "gold_sql_sha256": "19a67007a6a30b4bceffefa731b0b9d24b2a337e0675d7ed426470a3456b25b4", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:518": { + "current_role": "paper_train", + "prompt_sha256": "eb6de63655ac177d9c0367b4c1a8ab073190929852b45ed818deb58cd082d913", + "gold_sql_sha256": "1b2b76837128ae353b1c52717323e25f2ff31c926f21fb73f193487f424f531e", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:543": { + "current_role": "paper_train", + "prompt_sha256": "e56861cc3277bd06322aaf56d81a8172b2fb95f66992b11eb8227b9593dc53b9", + "gold_sql_sha256": "a4ef00f2a27d1246196b06f5bf8d090bbe02e3d375be45c6fdc05a0078d4748c", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:563": { + "current_role": "paper_train", + "prompt_sha256": "39c1bbb558361b96ebbd6560c664d12130561267587278a7fa93df0583e91182", + "gold_sql_sha256": "a040d25c66bbfd044407e946e4fbc8e5fbc09829d6429b9859344bab8632b144", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:567": { + "current_role": "paper_train", + "prompt_sha256": "6e6802c68c5eca6fdf47d0749399644fa40647582953dc968416937449760f55", + "gold_sql_sha256": "fb3f2fc22156a33b4eccb8afa2ba20b8c742e4e1ddf90dd442205f0d0715c235", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:582": { + "current_role": "paper_train", + "prompt_sha256": "c33de8d88177aa8daa6768dcbc217c4d2058f28bd58c1578415728150df2b866", + "gold_sql_sha256": "63a16fe653aeaf7df04ef9f825208866f7d665a1707dd6df37909ad640b96645", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:620": { + "current_role": "paper_train", + "prompt_sha256": "870385dad90b7e88ad010aa61749f22eaeea87e73f7a154e6b3d7a9bc424b41e", + "gold_sql_sha256": "9b9ae77fb865d823ce5031046ef383e645dce4ba801ca8ab3e2c682b31086ebc", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:623": { + "current_role": "paper_train", + "prompt_sha256": "de64bae56bd7b39e08cccf2a71a3e04c03e0332044780edae4318705c7685bc0", + "gold_sql_sha256": "d768759b555f5d74b269fd8cd2bd375179256e220eab71626d8a902b5b32d76f", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:624": { + "current_role": "paper_train", + "prompt_sha256": "ff969a38190260b0eca9478898cf0eef927c9d8e9fed00c339d8bfcddc92e9b9", + "gold_sql_sha256": "cee5e5cad0152253926da665081361df090e1be3bb8f64fe50cbe6c52bee5f8f", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:683": { + "current_role": "paper_train", + "prompt_sha256": "95d679c56615eea07c6a4b20dda25dc31f3dde371770f48c2af5055f309ad235", + "gold_sql_sha256": "30e7de1037c7936e03ef739d356d04b995e51f479ab65b009a41972bd531bd1b", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:711": { + "current_role": "paper_train", + "prompt_sha256": "fdd80dba2acefa646c6a92bac849bdb7e38de24dfdcd41710ef4d43a3e870be4", + "gold_sql_sha256": "adc21378305c1add4c37228804a89199ad0bc5af98cc35dcc63a4099801d45b1", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-train:733": { + "current_role": "paper_train", + "prompt_sha256": "1a4c16285f44436f2e3ec267bd018b82f86520595dd26bfdb3fe5e96a8495d82", + "gold_sql_sha256": "be84bc3d4d6b7ea94a6c284171a377ab40343245fd74c39720fb379301c3acea", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:743": { + "current_role": "paper_train", + "prompt_sha256": "f450a38a9fbe88e9e56289858f38c324983ee508912250cf906ca62f3a6170c2", + "gold_sql_sha256": "9db4cefdfb868ae9697249f415e761724e82c99ae151bb0ec240c5ba08129272", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:747": { + "current_role": "paper_train", + "prompt_sha256": "54777f1a18b2019e57af4cec9204aad8104c64ac5469ee22437919194a6e4252", + "gold_sql_sha256": "e022d829e18696ee74dbcf224b335f42b1964d9fa8533469fa901f3b4ec3db69", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:763": { + "current_role": "paper_train", + "prompt_sha256": "e29736bf5d26b2e66c205af35bb51bf3f8b774430ebf981034cc23846baa936d", + "gold_sql_sha256": "4e422b4324bd117fa7439f0d31a3ccc805061547f9609b8b047f40e8aa5f0cce", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:765": { + "current_role": "paper_train", + "prompt_sha256": "4651a9f636072412100cf88b725ceed7afdeb61924cf496f8cbb3d2204ad07be", + "gold_sql_sha256": "c3958b65efeb79d0a1e01c4e1507d28df1266d320e5e2ae419efdff725d6e834", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:774": { + "current_role": "paper_train", + "prompt_sha256": "e510b957ebee9fc0a8610a23703115e259e976fb64f012b80bd0c290c0966adc", + "gold_sql_sha256": "1915430e661cd05bab234f74f049afb61e2d7bab429112748ee86f02f8c674fe", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:782": { + "current_role": "paper_train", + "prompt_sha256": "9abb703ccc569c18f6a066ed7cf24dde8d7db983bdb2997e3e864642b1ef4245", + "gold_sql_sha256": "9a2d1fbd41162f54b1c259e717b5794c8a67d9601a1f16e61822f4769bcb7502", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:789": { + "current_role": "paper_train", + "prompt_sha256": "88dcc66f6949f7763a5e5c50d64ebca5347a566f41072a423ce498da9b9cb9b8", + "gold_sql_sha256": "df0c03e965a19d7499039381249f3f385b668c7e90353ebae25d991d03dd20a7", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:856": { + "current_role": "paper_train", + "prompt_sha256": "b0ae0a3b086ab0b36905da49bc26299b4cb2db31420dff94765309bd210e8539", + "gold_sql_sha256": "201e32f28210ac4ae1992c27429c2f0f0bbb618cba6ff794e276d35cef8a1688", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:871": { + "current_role": "paper_train", + "prompt_sha256": "4292d703965ed98ebd816c939b40651e65ff0ea07324a0bd01fcc8d6c00f5662", + "gold_sql_sha256": "4e7d53bea2f6a4dd04e647cce1a9baec4bbaf8a890c26fe2f3b701acaafe1898", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:908": { + "current_role": "paper_train", + "prompt_sha256": "5bfd4ab3cf8a0fa0cfccde63ffa4880b9f5159857c0fb52910963f348c29809e", + "gold_sql_sha256": "dd3aff6b305d1888da6790f17b57c35bbd032c0e516f8649d8bbc5c168fb4c77", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:921": { + "current_role": "paper_train", + "prompt_sha256": "788a14471b732bb1fc9abf3d271bf05ae6c5b1eb7f91d07ae898eb6c83c0541b", + "gold_sql_sha256": "3629a9d0dd181786f09a2295970b10838c55958d16bb968f6fb7426ce872c1e0", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:932": { + "current_role": "paper_train", + "prompt_sha256": "501168d4429d1b948be151aacf985914ed977ccbc6413b2cd5d9f67e821adc91", + "gold_sql_sha256": "a59e3ea286da9594750fa6d71f1303c8ef5522d227535b0e9ca811f16708e173", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:967": { + "current_role": "paper_train", + "prompt_sha256": "28e1d6435d5208c8b6eeb51b89b3f8f9474219b16092aa3820435457f3650f56", + "gold_sql_sha256": "5ace8e2ef94bf9a8be35cb1f83d2dc1c153454f0cec8133f55632f2ff9c214f0", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1010": { + "current_role": "paper_train", + "prompt_sha256": "fe54b869c6dbe2c30c8d32fc661610c3eff005090ce8e0897509e83bb42a350b", + "gold_sql_sha256": "284a2242fc762ce78b482e009075f896ef510d87fad3745608ea7278db86afcd", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1018": { + "current_role": "paper_train", + "prompt_sha256": "dc6a86e9c6e0e4751b7dfe23ee8d82331f6b01fd98f842db73787bf147167b48", + "gold_sql_sha256": "ba1dadf6b4b77163c0ecf3ddb6433e9478384511fe81f6874c3cd8a489eddf50", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1046": { + "current_role": "paper_train", + "prompt_sha256": "a0f6731fb887e90d55191a8d115328ec2d764d7444390a511526995c9052eb11", + "gold_sql_sha256": "fc26158f71782414f89f36ee31e752f9fd664026219a072ec122247187600a8b", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1068": { + "current_role": "paper_train", + "prompt_sha256": "3834cd25d6ebda42001f3f52ba62f61c41ab17ac3f60d0c716da5d1ee267a09e", + "gold_sql_sha256": "f4fb40ee1e7e258e137c8934662678454b7974aeaa539832ac1f5d9a124d871f", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1076": { + "current_role": "paper_train", + "prompt_sha256": "2486f607d097a359b3c6501f6d1df63bfa79387b9d05bd718ff14ab883a29d92", + "gold_sql_sha256": "3c6a5d791acbe6a9ee448014c9396cd66744a5cb00147a293ed8a1f109572cb7", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1087": { + "current_role": "paper_train", + "prompt_sha256": "c582917dd39c75cda1c3a96c461a0562339adc0bb195363706a7d719bd4edd94", + "gold_sql_sha256": "a601538fbf7de7538cb8dd5cad432b7a72883d72a4ec5f126b33a909f965dfa2", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1112": { + "current_role": "paper_train", + "prompt_sha256": "583ba526d083923797ee7d7c42b4f05285d3f5cd90f1bcb304e634b393c22ffd", + "gold_sql_sha256": "349069e41f9828cb54df07966b5c8bd83499fd30d43589d3b94ff99153a838be", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1123": { + "current_role": "paper_train", + "prompt_sha256": "d8ae56fa01ca2245604c0554716b9189068992312ab5808875f03ab3cbb1ec15", + "gold_sql_sha256": "b266c46d2e1a457f28caf8f3149d955e35a81b189edc3d9492912a867796aff3", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1142": { + "current_role": "paper_train", + "prompt_sha256": "dfaeb3ed8d4a447bedb32c65ce561449e22bdadb6d672735bdf7ce5824541524", + "gold_sql_sha256": "1db9bf049c3c9212758e8ca0f6fb8514e72df3fe8cf9f4173a29c2fe4b6d13ca", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1144": { + "current_role": "paper_train", + "prompt_sha256": "9e79d14ee1dbda39621f9a1de2435fbdb940593e09701c0a8de534c7c47dc119", + "gold_sql_sha256": "a76010b0d9b0bbc8dcb6156864f5c64a25bd593e940777c0d2d18bfc329052c2", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1145": { + "current_role": "paper_train", + "prompt_sha256": "63cc8b8765d92d051a39413d58d7be800d0fa1787604931c9bb55baeb02d14ad", + "gold_sql_sha256": "ed44970af6e216f941ce814c80d1f51b92fa123e1a416bd1d3b76a9e75a9137c", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1155": { + "current_role": "paper_train", + "prompt_sha256": "9862abfe9cf1a4d2661dd7cc628dd11cad1b3163ec94f882059039f0262c842e", + "gold_sql_sha256": "eab5b1b1b2f19d87bdf469a1cefff2adc736708f30eaffad6ec6ac319203f8f5", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1156": { + "current_role": "paper_train", + "prompt_sha256": "c1e57b7055995e1a40f6842052ecb4f317cf1bfe251406c135f0130766137ed8", + "gold_sql_sha256": "d6b69eda21cab41944beaf0916d0afe30ec517ca8fe156ea932fb9b4f4b87d34", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1162": { + "current_role": "paper_train", + "prompt_sha256": "11e3ed1d3adc72b53509273b96cac52a9ab0ca919b9f587bbb96e24df6898db4", + "gold_sql_sha256": "72cf2ef4f75eaf0af9cbd17498b28dcfa395db0d54324308830c96748548b479", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1175": { + "current_role": "paper_train", + "prompt_sha256": "d74d3394ea4b887a177f04313b6f24a67dca6d13da298d16340f20491400a8a8", + "gold_sql_sha256": "69dc99a04ac27d4efaf368bae2f3c07aef99a33b312957ad788006bbb49ceb5d", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1180": { + "current_role": "paper_train", + "prompt_sha256": "59cee0575134ea198cf01d162b127a399871b238658d27ba3366225535bbaeb3", + "gold_sql_sha256": "e5ce200a2c077ac05f657dfe84d3e3831ebe9a1c3534c17b369de481d54ed015", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1183": { + "current_role": "paper_train", + "prompt_sha256": "08cf0b11698128e70de081393f7c0635cab1f6b5d802a0e4537b72ff97b90ae8", + "gold_sql_sha256": "bad9f36c07a85a1f9e90b18485dabb0240b78b83055cf00610950238128c3c92", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1217": { + "current_role": "paper_train", + "prompt_sha256": "68f4cb30e451793a10eaa026e9e1d8ed9c11c0bfef4593dd2ee32623e192658c", + "gold_sql_sha256": "ba2099cb01af9212367d8614bd0fee5c8c0c3883db9ccd6709030df944538865", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1220": { + "current_role": "paper_train", + "prompt_sha256": "bc022094eeac7f753daa6706a0b5c958a8095241fc8145aada5768ba23d2e5c9", + "gold_sql_sha256": "67e2deb214247b243f87f48bb4d6fd115a555d0448e61091377f2a57795e9607", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1224": { + "current_role": "paper_train", + "prompt_sha256": "0f6586407aa2857d4e901064d65a0792d0c78b88d8f9dea13bff912668464be9", + "gold_sql_sha256": "4f2146dbcaa1275bcb149c6bf5e40f3667fd00f9efefe94a98922f95fccb3b3a", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1250": { + "current_role": "paper_train", + "prompt_sha256": "9e7b316922ea616f4531ed9d3d1674a84e0d22ca95f1325c5267ec6d700863c9", + "gold_sql_sha256": "cd4e3a4de84a1567a5ef9c9218fa2869fe028bd78b3e295249a02eebebdba8b3", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1287": { + "current_role": "paper_train", + "prompt_sha256": "c3e06aa44aba5d65dcd27a8b7d677e3444847e4605016b124a325d516aeb3d03", + "gold_sql_sha256": "e30edfc3ce4bcce6fa1ccca064861be7cd04b60122456ec94ab5e5b2cc4f57b0", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1295": { + "current_role": "paper_train", + "prompt_sha256": "71a6969ef8e7415da942b17a965ede2abbca7ab4c0630c538396688360742a4a", + "gold_sql_sha256": "816290d46381d099a7039306d148888de7af127d975c39fafc0496c27bf49937", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1313": { + "current_role": "paper_train", + "prompt_sha256": "d2e68f3b9ec482980129adfb0f48446d1d94db6cdef00ff2dd7d294e33c9843e", + "gold_sql_sha256": "233602fa1809e6c326dd4a8ba0c11ed7b03ae18334dba1b1d2cf779111ca6529", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1315": { + "current_role": "paper_train", + "prompt_sha256": "d92f586eaea71c4a1a373e0faa9b29b163fae93e1036e85421fcdb21d577c3b0", + "gold_sql_sha256": "a0140152a91c3b1177843552e95ccaab27c352b8b0f348a33879f64c47b05f59", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1318": { + "current_role": "paper_train", + "prompt_sha256": "1052ff38b9f55a3bdf81ac53de9b334d3baa0ba31c431a7cbfe6a69e172f15ad", + "gold_sql_sha256": "e7340fdb95ad86b899a0505d19a9d0df35e3ff6d7ecd8123df0d232aae53c947", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1393": { + "current_role": "paper_train", + "prompt_sha256": "ee6010471010f0128428f60632e90b625c4dca2ecc85ad44c776e500909d5869", + "gold_sql_sha256": "b42c9c6bdbe33ebe7bcb9233439e40660634e43f1d4fec94c5dcb4949d3ed1f8", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1406": { + "current_role": "paper_train", + "prompt_sha256": "575a563113d8425677f4db9b73cd1c0a3ea3bb766f5dd73ac1a0d299335183ab", + "gold_sql_sha256": "d532700bf91894257ea3c3c18a8dc1556c75322d09322990d724755e1f50e93c", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1413": { + "current_role": "paper_train", + "prompt_sha256": "54dcc27208b36249acfa816caa27e1c4823b36415a8a53df093480fc8295f19d", + "gold_sql_sha256": "8754cc27643ba8e57517fa15e7fc4b2a60da2552612e6241e8b2d81848bf9371", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1452": { + "current_role": "paper_train", + "prompt_sha256": "c4add6af4005e241dccbbd0857fa87047e359bd26d41ee773d683add48a115bb", + "gold_sql_sha256": "fdbd9dd581e25cbffde852fe78787d5f8a66473b99bd6f470419da5e366c20cc", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1456": { + "current_role": "paper_train", + "prompt_sha256": "de0408e72c27ec64bbd2ddc2979e24249d93f086b5fbf01cfefd58743c63263a", + "gold_sql_sha256": "9ccd5b038cf973fcceb2c67e073d5e5ea75274eef7fbf9d530bd95d7b3241b72", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1468": { + "current_role": "paper_train", + "prompt_sha256": "de02cb9c67355e1048e101adf8e8bf22b94564cc5c4298b9d48d1ad0996da7c8", + "gold_sql_sha256": "12350e877acdde37264e950afddd254f257e67b1d6e814050028428cd3be3f1e", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1483": { + "current_role": "paper_train", + "prompt_sha256": "852c5af0804c477d986e6f1f7358b695836d788b52850c19b95570b6998c3e1c", + "gold_sql_sha256": "dddca46bca79f3188cbb901fcdc232ed35b84338904763be6a6978bc5e27fcb6", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1512": { + "current_role": "paper_train", + "prompt_sha256": "c0c4e72e5c584a6ffba4361750afa7fbda6a857d0ce3bf0f67b67888122bf796", + "gold_sql_sha256": "f6e72f5fae4115dd3965f9a8836d7aeb9e0c925994e8ac1b21cf331331febd3e", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1530": { + "current_role": "paper_train", + "prompt_sha256": "78b507dc4b0ec63722359ca2b408fbabe64f7312a5f2d4862b7bd3680541646e", + "gold_sql_sha256": "c2d214d12749cf448fba4ce43f098dafd5d8f62419ab64bb45caeb05e557d36e", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1558": { + "current_role": "paper_train", + "prompt_sha256": "fe9985c536a7b2ba367948e6911e22a6872fa08624b2decd705bd42444f76427", + "gold_sql_sha256": "7ab2c2a21214eac58204d4de87918c2de171ed72672e09baa844fcc8825f9fbf", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1569": { + "current_role": "paper_train", + "prompt_sha256": "23793fd00c7e5fc2a65b0ef75f3745ee4b38faff449d42fbda4b93642970a37b", + "gold_sql_sha256": "9c88819e3f571f07ef42cc0c8b9c1bd61accc8e4f519630d842db49a00f6f959", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1575": { + "current_role": "paper_train", + "prompt_sha256": "1b84471692766bd42d61faeb3be41be65fe1b286eaba8d84bc12cab01a480091", + "gold_sql_sha256": "5ce7962498fb7f020cba182aeef3beb23e522fd7e07d9e81082e92e7a8e3465a", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1593": { + "current_role": "paper_train", + "prompt_sha256": "1b1a6d3dd094d0e7fc8f22fdb0edce522baaa611d4c4faaf92ea854361725f62", + "gold_sql_sha256": "c7b29b369ebdb4ab4795c7b25a78278d782bb5248f10321aabf93eeba431450d", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1595": { + "current_role": "paper_train", + "prompt_sha256": "915cc25ff02673ae7c5e09f07bf9fb25e2fbb920ea7c90486952ae5c54c5eb0d", + "gold_sql_sha256": "dd89efff95100d2639510941f8e2a31c61c94e8daef9a2a29f0f3185588b629e", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1597": { + "current_role": "paper_train", + "prompt_sha256": "9f83033d661a62b1d58c4f416677538c09c7a819a710631ed2fa1c709299ca85", + "gold_sql_sha256": "ad8aedc6b1a75da56d63881d88032bc0bd80c103e78adda770025a007b2c59a5", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1606": { + "current_role": "paper_train", + "prompt_sha256": "eae53fc6469ca1cb855ccfa27b8913b16973c7bbc9167a6b76a65cb00203b747", + "gold_sql_sha256": "7b4b1ab290cb073fd04314cb89314987246c8788e97f7158ff16487f8e160fb8", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1618": { + "current_role": "paper_train", + "prompt_sha256": "b27be66af96f28e1d31b8d79293911c17ee41a1a0fc8c45e945d00f9b327b167", + "gold_sql_sha256": "6ae35bc8344e490878483433a86cf7d6a1a9dd857785bbde84f79f074fda0cda", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1642": { + "current_role": "paper_train", + "prompt_sha256": "a57fb42d17677aa0ab7fcd72a2f3beb5db0fce3b73b2ea488017f6d9f26dec4a", + "gold_sql_sha256": "17df9ee8898ee07ef1228a618d23bd94d92ddc6e3d960b75ba3eb2a5ce6923c8", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1665": { + "current_role": "paper_train", + "prompt_sha256": "d119ca63595e12d93d9e7af41b4c6e3cb11cae5deff050a0875454a77f386e04", + "gold_sql_sha256": "9df47b9a1bbfd01d9ff1d272ae8d411193d27f29145bbeb943e471bc5c7c6f3b", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1670": { + "current_role": "paper_train", + "prompt_sha256": "4d6d237a39c822164e7775c3c98b53765b3d053b0cc304457dc6e5f86a5f2f6c", + "gold_sql_sha256": "1c0e4b4964facabc9c36cbb75ead47ebe2047ceeb4f6bfcebde8be96785f8b86", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1684": { + "current_role": "paper_train", + "prompt_sha256": "fdc885de77532cd5e49f54f18c12fa624626ac0d9cc5f30a2b413df59a1c5f02", + "gold_sql_sha256": "c844d9f3a5547a60e28510a6b001644a8e6716f3b375b344e24ebe15832ae721", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1718": { + "current_role": "paper_train", + "prompt_sha256": "751cf23588d52c647b1a8966f62c7a8401d0fd7a5da24f84675996092066e0f6", + "gold_sql_sha256": "bd1ec3fb68bf2eacf3de02fd815291c06045bbebb8a19732ab17dcea8084541a", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1768": { + "current_role": "paper_train", + "prompt_sha256": "5883ec113652f85258ffcaaa55fcd43d9988ff05476b31db19fb000556f7a2be", + "gold_sql_sha256": "42454610f80b8b74b76b55823738a220b9ca2bca938647154e5a03aae87c26aa", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1775": { + "current_role": "paper_train", + "prompt_sha256": "352c4ebe5993f398c75e3f5c7d789a98dbd48f33ee4b523e4af2b05ab9b29860", + "gold_sql_sha256": "c7a8ab6a10da8a685690966bb8ed9f4097c5a89e113c576c9ffe7b6f3d0d162b", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1780": { + "current_role": "paper_train", + "prompt_sha256": "ae74033fd8b1a46e7eb4beef92310a128a13dadd5bb9e8b06fb4fdcd1735243f", + "gold_sql_sha256": "5c7c6fe6684414fcca836126f43c45a129cf3ae4740bb3b5ca2adcef93f29da7", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1793": { + "current_role": "paper_train", + "prompt_sha256": "7e01b1d04eb4bc6fd62a0c5fa6b8fe5e4745cfe8c557f949c13b22c473eafdc7", + "gold_sql_sha256": "9ddff09a8a29ccb099f4eb9ffd1b9d3673a428894656f5f335377252adf0bc20", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1817": { + "current_role": "paper_train", + "prompt_sha256": "eb40dbcd4f6ca4b443d63bca9cddb9e54f544b300e9e77b470c76b6547347583", + "gold_sql_sha256": "b9f23a33c84f01e2a90a7fbd9e84d853cd2cf9ea84d10be93cf00e70768773f1", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1840": { + "current_role": "paper_train", + "prompt_sha256": "44a62d722a33b7070ab5613b9b8af25639c35a9836e4f118901c98c73f20e304", + "gold_sql_sha256": "8972085fc45142e4960bff5e97194412fc71926f2df433224a1c8c2b79278cf6", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1864": { + "current_role": "paper_train", + "prompt_sha256": "ef45610ae286f577c01e02d8214eff16d72df9b31d913ac366c06f4f68d1e53b", + "gold_sql_sha256": "defc2248eda02a0f83bf8b9635332f22db8a5cada3740cf57062b01e0d01c975", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1888": { + "current_role": "paper_train", + "prompt_sha256": "d425c10fa1036cb4451b8a90ff66baec14b250d39312a481f98ad393d35e07c3", + "gold_sql_sha256": "5d2106c6d6639e8122f5415772630c43868a3fba663bc8d9e38bbb56e669e59a", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1934": { + "current_role": "paper_train", + "prompt_sha256": "fae7e513e73fb96b9fe2fa8f41f2bce2f861449ea0ceac6cde1ee031b97c3a6f", + "gold_sql_sha256": "2b918bb0f16f1da8a4eb19f4e55a8a6b9fee25bfee31fb20491e4b2618ec2563", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1957": { + "current_role": "paper_train", + "prompt_sha256": "398b25e8f1d6891bd8bfb81fafeb2ba92a18c36c0cf5376d13c9fca197a7104a", + "gold_sql_sha256": "7963805b0baf7bbe1cfddae9e284e709639dc7419629ef1381469b7830083d6a", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1963": { + "current_role": "paper_train", + "prompt_sha256": "4e7b1388ed00be5d3d917ffbefa5e69bd28123508d622516f4b1cf5627ee0505", + "gold_sql_sha256": "65388a06dac2ff0f5222d7780805a42dd33757b787e97882768184c5dfe2371f", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1981": { + "current_role": "paper_train", + "prompt_sha256": "6231e0060fc45108856f6d69c235ca112bbc33b84435abe1d1ab804bbe642e1d", + "gold_sql_sha256": "321ab96d6903efb21114757dee1f5b598fbb3c6736f1ceee4a4dac05bb6ead63", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1982": { + "current_role": "paper_train", + "prompt_sha256": "bde3754ebfe34053c1f954dc64c5a357090ceddbf86d87837c1171efd86937dc", + "gold_sql_sha256": "fe57992017afd092e5942eef18b021f462743491544ace230206c0ece33e01a1", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2008": { + "current_role": "paper_train", + "prompt_sha256": "eecdf0a17e5a5fafc3f9bf2a846501460a63ea097c3c4ad864a32a3a7c5382c5", + "gold_sql_sha256": "7f44ab6e7a264c5354685bcbd9dca33fc4d88c761827cc45172855fded1efedf", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2022": { + "current_role": "paper_train", + "prompt_sha256": "c6cc6481fd86e929f3ddf4052f1e4ce3bd862ac7107f7d8c0c875acd532ba511", + "gold_sql_sha256": "4f20785282e093d253261eaa6980c68636ca32f6ae6349fe63160bbb8554f62c", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2045": { + "current_role": "paper_train", + "prompt_sha256": "814c129355b5076612117d3a3a63db59e3ac9b4ac768d27ba76c99f2776bd0c7", + "gold_sql_sha256": "31f6f991d671d07d85c0448bda85c7f2beca4e8f1fee7e1d89b5c4a2d5fcc304", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2057": { + "current_role": "paper_train", + "prompt_sha256": "e18080716fae9dddbf3dfdc8bf1ce0018e3e75ddfb80e2d73a0940529d4fa4da", + "gold_sql_sha256": "aea2057e794d15a006599086bd59372eb82cd99fc70a363738752631a827b2e7", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2075": { + "current_role": "paper_train", + "prompt_sha256": "7a9c69ad2808733aa0f7514d83250536bf0ec1fd640c9f983ed1d175d5e9cc79", + "gold_sql_sha256": "1b648dcdcf0a43e4f3b42ebd9e4651223fa8fa5853dd2d83a7893cd96a36e7ae", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2110": { + "current_role": "paper_train", + "prompt_sha256": "6661d8493ea7c3b9d90f369348ee90f5a888dc759c372057038c762b948e3aba", + "gold_sql_sha256": "3d593976eb4c77a06203d49c6fa1776dd8279ade07bed0ece5cd5ea5e62b60b1", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2114": { + "current_role": "paper_train", + "prompt_sha256": "bca4fe9269efa50880c13c7a4076842f1cd20f696b093644c9476e049123a489", + "gold_sql_sha256": "6f889ebcc2aa9ea191f6c40ec6e70f4760cc5d2f3b7b300ab6d82544f6ae9aa3", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2145": { + "current_role": "paper_train", + "prompt_sha256": "3958ab389f984ee0542601687e50d25fb7bc4e1afed8432543270c65bfff8265", + "gold_sql_sha256": "725d070c55ca5560245582b0e61a2e98d1ab51846e9eaba7ded360a8087c8d21", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2150": { + "current_role": "paper_train", + "prompt_sha256": "c415cf0a369c8ca600977ed6c8f814f57ec7b5419850ff2b3835f5e9b04c3fb1", + "gold_sql_sha256": "8f75fa9b72b7f23dc0d10efa3cc3db51bc5d27092748b812e9ddd4200b23fce4", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2157": { + "current_role": "paper_train", + "prompt_sha256": "f6d243a575562ec3e1d8e4748ea32efefa058f7df5c28100204e6a1e64c862ef", + "gold_sql_sha256": "8f8b7114b63c53533513bdb49bcb99b39037e5cf72d770f9ff5c66a117f6c55c", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2165": { + "current_role": "paper_train", + "prompt_sha256": "fd486ec14a3724b3bdbab1bf32dca24da2d2a2cb6a2155a41d8a0166ac60ede8", + "gold_sql_sha256": "ff9f386e0250bba248412addfa20c361232ad6b6ea2db638f363de72d65fefd5", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2167": { + "current_role": "paper_train", + "prompt_sha256": "36d7fc60fab3e6b39f6ee6d78396588a0fe27ef1a570518dafe6fadf28e22b3d", + "gold_sql_sha256": "c363b904002b405e02ef0d1de771b10adb22928a1a5e49fc17725b1e7b508c60", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2175": { + "current_role": "paper_train", + "prompt_sha256": "262a836a3a0ac154620fb681c9eedfd7a337c02b18edee479270be1cd380419b", + "gold_sql_sha256": "5d10ceba0636663c7e92f33afdf3a408192b3aeb68c4e175b1f89ac99189f42c", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2231": { + "current_role": "paper_train", + "prompt_sha256": "ad3f16f5e072f60c15bdce9933a9c02eaededf66b5c74655b74e59497ef08832", + "gold_sql_sha256": "90bf8a2a780d0a87d53c792bc1f9dacda19db61305c64987a9aa70ce367279e9", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2248": { + "current_role": "paper_train", + "prompt_sha256": "79ce739cb178e4f5822d33914547395ed5db50311519cb7b2ae8d4c6879e4f65", + "gold_sql_sha256": "e09dfea1aee174a3f03e878ab42f2237317aa6b57944115b965f950142522d40", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2249": { + "current_role": "paper_train", + "prompt_sha256": "fd94890200a00f8722f6cd6f8fd06ddcd23509c635285b10b735a2e8ec50a4fa", + "gold_sql_sha256": "6cfa528db8edd700bab83eefa35fa79868cc23eb872884629eac01416055dea0", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2272": { + "current_role": "paper_train", + "prompt_sha256": "5b6da158ced25561fd6b6de92df6096e1507f3263d52b38572fe42e698b462a6", + "gold_sql_sha256": "e99c2cb654ecd76d53084246d8fd26d8639c5ba3ee760785728d51dcedea0630", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2288": { + "current_role": "paper_train", + "prompt_sha256": "dfd6d0600554fad90fd637df108111fe01644959dc133d007d5676b62a4ac0a1", + "gold_sql_sha256": "fcae21cea966d8e2ec6e74bf92353bad88d6d18256d9a11df53d0ea20093651c", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2299": { + "current_role": "paper_train", + "prompt_sha256": "1f6ff464498e6438087d33efcd00b71712bce7652c4655a07858c53e06183fc7", + "gold_sql_sha256": "276e613a2a450560043828da1dc94449febcfa78583a32eb5e3064301c98bea5", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2301": { + "current_role": "paper_train", + "prompt_sha256": "5bb1ef337592c3252a9603afd72e7d669a7507c3955ad44af19d5866b1069e37", + "gold_sql_sha256": "1a6cae0cc19e207f49dd702e5162d62aa1dadcb10bce330689d3b70731ed1900", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2303": { + "current_role": "paper_train", + "prompt_sha256": "4afddb8bd9e8a82b84e447d44080f6a501c58e63300d5cbedadcdcbaeeb1d3d6", + "gold_sql_sha256": "cae2747caf5ee03cea704b5e7b7422177d51c4f96b8a7f399339df96d729bd71", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2337": { + "current_role": "paper_train", + "prompt_sha256": "c86ac410a98b25399b68ad2fabf94a15415af79d00825296b8350c083b972a8f", + "gold_sql_sha256": "45e74734b6aa20edd6b9c9eb0474a19f9789dcd381a3ef902e5b2337bdbbe335", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2375": { + "current_role": "paper_train", + "prompt_sha256": "6040106853ba845addd57fb78de56dd9f4fa9612f722757ffa679c2645f6568f", + "gold_sql_sha256": "7bebfa3b88fa46442b31041c6bebf7ad9b2ccfe8430b2464b91d60a76c6e2ed6", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2407": { + "current_role": "paper_train", + "prompt_sha256": "e63dfbba2182e74cb08120f9db2b42426331ec1949c1af3731a2483ff403529e", + "gold_sql_sha256": "b098cce154bf74d95e0311d43dd5d38d63f5b161a49d66e288874309ee90a204", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2412": { + "current_role": "paper_train", + "prompt_sha256": "101f5a472feda0319b2fcf0264e1d3c91ea2faae71cff07657dbd4025c932ccb", + "gold_sql_sha256": "15bc452ed4a4435350a6c58bfc52a871e3c8f1746f44e662d51b0f6440ae514a", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2417": { + "current_role": "paper_train", + "prompt_sha256": "1ca5e9398a45307edc6976e48093074f7fcb5210fcc11d0762c65d703f70482d", + "gold_sql_sha256": "53f42e6d68a614014a0ffaf34e685e9dea9d59bb6ad14d8bd82ee7643801ebaf", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2441": { + "current_role": "paper_train", + "prompt_sha256": "2281de9472cd0203dbbfa6c2a2cf7a775e39d442f94ab573b567f13086fdbfe9", + "gold_sql_sha256": "ca9a1ea4b62790af9ea45f33dc954fce9ace4bc083dfeea27c135fbc92debd81", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2446": { + "current_role": "paper_train", + "prompt_sha256": "772b54001d3743594209965a651bfe18bfa6f4ab888ba497f2aafa84abe028b3", + "gold_sql_sha256": "0146ae9c9b0fef63104afc3b7b8135b54399112e1e6c018f26ade31c9bc0ecb7", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2455": { + "current_role": "paper_train", + "prompt_sha256": "a3c4fc6d6249ad23706de255fbbedd8e24214c87b868b71b7a7f17eb65b6caec", + "gold_sql_sha256": "3104a1a88c920d1b2320b3222b54fe3f0688a0bffe640adfe9011dc0904eb82a", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2465": { + "current_role": "paper_train", + "prompt_sha256": "b5349232405afc533e31c304ddb4dc2fb1033fa01a3577cb8b8ea40b1135b46d", + "gold_sql_sha256": "942633e1c57da7ec7f7eb280f92334942bee78b79e8a9a1c68e7078df4fdd615", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-train:2483": { + "current_role": "paper_train", + "prompt_sha256": "43ae1f8caab7b25a8504b98407d1a668364d50b119845c02ade5eb3d56e855bc", + "gold_sql_sha256": "88d806b5062e7e5d9dbdf312dd793c8ef8b9ca451cfc7bec68ccac0520c84062", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-train:2484": { + "current_role": "paper_train", + "prompt_sha256": "10184147405aa5c4182617c3db584a1527ddb5e6258eb1c4eb752f39e5eccd8b", + "gold_sql_sha256": "024c54425880cec6f26a234a60f884fbb8eee0eacbea74b3f1ed6749a8ab3ce3", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-train:2510": { + "current_role": "paper_train", + "prompt_sha256": "803a2671f9bc3dfd5513369a29419e136fbf069b26198e1ee2b8a553c691f768", + "gold_sql_sha256": "013d234e17772c5befd600daf22fa6f7f5e8e8fe9ba4189c8cf804384703f093", + "database_sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "revisql-train:2513": { + "current_role": "paper_train", + "prompt_sha256": "456aff357af06d5e1086735daa7a36aa366d6fae60c39449f4d7132bfd7e584e", + "gold_sql_sha256": "bd264c1d8cd0ce00c920560b37922c15befafe203d5a053892fde2b2919a26f8", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2531": { + "current_role": "paper_train", + "prompt_sha256": "2b1cfaf8465d7a1302b1badb9855ad8f5f65c0c193f68b2c8eeaf9eda1c3e5e4", + "gold_sql_sha256": "ddd80b19763d7bee7e27886d6b18a6cbaa5769321c92c386c7fa5d76ddb9f70d", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2534": { + "current_role": "paper_train", + "prompt_sha256": "144e8908454900e2446731cef12ca34d06b3cf98d84bee411669405ecd5cd32d", + "gold_sql_sha256": "5e7603e3faf5271162124f1ab4973047ab234d3c7fa2a4dd53bbbe8fb665615d", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2543": { + "current_role": "paper_train", + "prompt_sha256": "7236c7ece040c4ae0772558c0c084852201dd0c24ba1b33a344e478cc7d76104", + "gold_sql_sha256": "1305bdfd7ac07c5c1eb92014f3659fd47c730a19cb8b694958c5b1a3f8aa4a6b", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2588": { + "current_role": "paper_train", + "prompt_sha256": "b82b6a3ec1738bf8f077787e8dd2564a93ece0221a3b06ed364b92e9802ec408", + "gold_sql_sha256": "5dc65b862fd857d3f49eb124af08ec56ba82a452ef454c0f6a91a6f0124417cd", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2614": { + "current_role": "paper_train", + "prompt_sha256": "111e866d2fdf3f516a997536f1763087f839656186b70b63b7e09ecb505504f7", + "gold_sql_sha256": "6e26401079dc250d0ffc2e6948b8e2799bf262437aee08a69eb3dd8ac97a457d", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2615": { + "current_role": "paper_train", + "prompt_sha256": "343ef6b0df09bb7883936505ebb19608e225ae79fbf03b4152ad41d7c812dcbf", + "gold_sql_sha256": "df446f21ad9094c0b5e6053010cf2a83617a3d7d321e5c8635a56911d75fcc54", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2663": { + "current_role": "paper_train", + "prompt_sha256": "fcc879350a03f44164896df2d24ba6b110bd8057a8f2695ace2d2573c73949db", + "gold_sql_sha256": "d6b46742a58aa9b26c7d1009b7c2db133f0317fb771a173d4ca303d8acb3b5ec", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2692": { + "current_role": "paper_train", + "prompt_sha256": "62078a55fe1ec9bd606319fd31309204eb650bd799de6bdb37ac63bb6473aa46", + "gold_sql_sha256": "423d5c5f1ba777fefb7d14f19e006ea50a2cec1b1c362d2d555f96f8439a0269", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2748": { + "current_role": "paper_train", + "prompt_sha256": "de76ed57992eddc2ad55f2aa22fc74b5e2c40308b78a27ce9cf87ce2b187c6c4", + "gold_sql_sha256": "36d20ee421dc3390625ce4a66368b33586c1f15314614926456c5c7d3bb1fb7e", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2754": { + "current_role": "paper_train", + "prompt_sha256": "b652b6e2ae4446e1e144cc57087c0e491f6f01f6826b829c88d50e78218c3fcc", + "gold_sql_sha256": "a4d6ca17ab61d20f026df3230797956ba81b24cf28c312ba6c52ae5cf894c077", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2760": { + "current_role": "paper_train", + "prompt_sha256": "727ab20abe08a543070071e0b2d55dcb8570f84b429a4243c5461cd51d6f803f", + "gold_sql_sha256": "1df92e6e38d5f1222f3b1ff8ba877a4a10a7c5555fe845d07f818f2ca8bdbc97", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2766": { + "current_role": "paper_train", + "prompt_sha256": "932d9e965ccfadc1c36fb7bc2a452dda3e53ddb618d6017b6f149e9a2f00fb66", + "gold_sql_sha256": "011eef49486ea2d62d522247bafe0a5a5f9b275df4c6b65637f8b84d167f91f3", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2771": { + "current_role": "paper_train", + "prompt_sha256": "d578fb3bc99b5f75f8a2232f40068cc8aa0b66a6567aee9ebae46496c4630dfd", + "gold_sql_sha256": "3a186914cd62d65ca8c55b698c7f606d5a9f98da41267d22e03584da70c5244a", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2777": { + "current_role": "paper_train", + "prompt_sha256": "e3d8ea930b9e4cb8a5c5cd79ab2743164fd6ec9db92c91145c2efb1ed3ab3e11", + "gold_sql_sha256": "196d66e0f19d0129280458fab9402a072d2dd249c51de89a79885b77e14c28d7", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2794": { + "current_role": "paper_train", + "prompt_sha256": "c4e99cd24d71eef81c8cb8b75a35c3f0830cc5ee7815e09751a714845b37a722", + "gold_sql_sha256": "0e28ff163a56d4d8a743c8d3cfc8e847713dfbccc60fa791f2b085b668b19738", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2835": { + "current_role": "paper_train", + "prompt_sha256": "6a9cc7e2c7bad88c54ee272acc7ef09ce64e6011c3c9127954eb26826381436f", + "gold_sql_sha256": "7a9510ecf68ea487486f42c477cc8f31d04954f7f56553794dba094cd9517a52", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2859": { + "current_role": "paper_train", + "prompt_sha256": "98829f9cad382c79d690f0bdb227610fa9e0e6249f98cfb8aab7956ecde32f38", + "gold_sql_sha256": "1c297c11e1abdedb8a14a2b0447247f60fb42613dce2297e6f306dd633a93dd6", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2885": { + "current_role": "paper_train", + "prompt_sha256": "2de8188138401a0acefe237a9b1d72692167d426b5d1703c6ef2f56b01b0fc45", + "gold_sql_sha256": "5d00be4f31eedda1ec35392a22ab912586e007b69684fd8910cfeaf037d92b1c", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2927": { + "current_role": "paper_train", + "prompt_sha256": "80fc199a76e619c536af0dfdf7448b372b070571ccc2ed02bb2e2d2bc1cf05e9", + "gold_sql_sha256": "d18a64d75a0a5be38f272bd32bcd085efd833fd91a4e62b703386c27c12ba1a0", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2939": { + "current_role": "paper_train", + "prompt_sha256": "3106d426e32017ce6f8ddb5d33ff75551186fc7563a1417fbd6372039ae38f88", + "gold_sql_sha256": "8a66643ea5cf0de073b60371ca461e150904df8dbf03d22044e273b7ca3f9ca5", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2945": { + "current_role": "paper_train", + "prompt_sha256": "c73794bfb71481638f5d600d9f6695625549d55e01c0547454c28e206db88e9f", + "gold_sql_sha256": "fa5218d52cc0d0bd1add9cb6987ddc517b7924abc887c144a1445c489e9f9ee4", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2970": { + "current_role": "paper_train", + "prompt_sha256": "e5955b15137f43d07daa723a2c98f0caa913d5084dd93d10fd0df56692c0004c", + "gold_sql_sha256": "d92aef2456bd750b1e8fd7bcc4bec748d3a1a4439027339cddda07040135c85f", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3014": { + "current_role": "paper_train", + "prompt_sha256": "3c04827e7393f4e11b9efb45dfe5185b8189c1c9236aa2dbdd3e308cf3d62863", + "gold_sql_sha256": "bec58bc5ea7365ccdaa140c8d4d1ff2037a00beea89f60763e05492c0986b461", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3016": { + "current_role": "paper_train", + "prompt_sha256": "32d350a25cf4cef82eac9a8f11b5ba2094f46706a41a0094bd4d19d8bd6d84ff", + "gold_sql_sha256": "5d8cc3ffb82b2961abaa47d1c4f5e45823ccc138c9edcd07003dbacb5755de9f", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3023": { + "current_role": "paper_train", + "prompt_sha256": "90e3260db95357827aed2c19ec6523cdfb6b29eb377669652b74e51a1d88628c", + "gold_sql_sha256": "c47ecabe6a53fcfe18e62df75dfc596d23ced44cceabfa8fd504d3bb37771ea1", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3033": { + "current_role": "paper_train", + "prompt_sha256": "f9580edb2e97ae92e4c9541f718a141a37e237ec1fdae4c1bab5a8e294ff219f", + "gold_sql_sha256": "d27cb28e18e21ffabb6f70f6b28574a39f514dacfcc56e0704c0a1b618f271f7", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3064": { + "current_role": "paper_train", + "prompt_sha256": "3075660131a5a9426e00b9ae378372f9dd5a8ec0d636587d78ee66f3f93d59f9", + "gold_sql_sha256": "6c7b242a2c13f9012fa91f4a198d41aa39385b01d70f39fc4cbb40e2ec53d4d6", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3082": { + "current_role": "paper_train", + "prompt_sha256": "fa58ad5a14f82a3ad4762b33328dd02436fa96933a88c3d6529aa776fb5bad6d", + "gold_sql_sha256": "3a51bd407370c949398b0c951e8499befcf54ad3f415f837ad6aa1c1b6cf3518", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3085": { + "current_role": "paper_train", + "prompt_sha256": "d1cbb588cf216ce99a03ca4c08211a374d26ccaadb88e9cbe3389ba06fe459cd", + "gold_sql_sha256": "fca10fc4e8a581f4f66f680c7c5432aeb5cc4a722204a5ead9805907352361ef", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3091": { + "current_role": "paper_train", + "prompt_sha256": "53ca4a59c3e56ef1e5af8b458c737e4ff1efc75009aa01fca84f52b6456a29dc", + "gold_sql_sha256": "9af5301c7004fd1337bb8d5daa23b75cdfcb325bf6a5bbd55ea1dfbb08818fcf", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3094": { + "current_role": "paper_train", + "prompt_sha256": "3f584eae3b246bfc72d430720d17a8bcf95e799a447ca77f35d3011cb4835ffe", + "gold_sql_sha256": "1ec94a61fd1329884f7578b68ea7681807a8a5f3aab659cff3ddb49fef0f689b", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3106": { + "current_role": "paper_train", + "prompt_sha256": "ae70c2f9f3f243f12d3896d5fc6f073381825f16be6c4f8ebab10f8af63aaf6c", + "gold_sql_sha256": "ff4ecc9d49527d015df2acd9fa2f51fa699de3cc9cda848af3f11323be4b3877", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3143": { + "current_role": "paper_train", + "prompt_sha256": "19aa1c48fd43b35dda2311a0d5fa0fb31798664929b319edf6ad11a039530e54", + "gold_sql_sha256": "ce3ee43fc8a0a31ca7519d1e885a29de4d379106c6d0cb6dc3f9b444c0196f52", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3145": { + "current_role": "paper_train", + "prompt_sha256": "f6317efd5c348a9af1e1d59278e653a1885682b0510b093c82127b3f9adc2557", + "gold_sql_sha256": "c37ba445fad6ccdc679017c858210eee457c8870a6c1965565d441b3d174575e", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3154": { + "current_role": "paper_train", + "prompt_sha256": "a8bc577939b83c9bb3446f8afaf8e1f3ddb7a25b54cef35db4cda6f27ec1098d", + "gold_sql_sha256": "cebfaa3c7ce1d3e2ca1be36ef0defe0f588d0575e274cc1ec29fa4d985e6e414", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3185": { + "current_role": "paper_train", + "prompt_sha256": "17b462e47835e2f2985e6e4205e276930082b447837942ab9350b87246d5712b", + "gold_sql_sha256": "82e634c6af5805da078bf825c13006d2b69a659092355515cc1142e623b6ac43", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3204": { + "current_role": "paper_train", + "prompt_sha256": "979ed978942fc78c10491b913225a9271519ee2e1416307b0bfb45647252573d", + "gold_sql_sha256": "5717cff11b156aa2d54c57808f20a37ec7d7f25fd0c6c4cc0a049efb4a9ad2c0", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3209": { + "current_role": "paper_train", + "prompt_sha256": "ac05654272140a2c20395fe504fabb57a589ff0fc36f3d35d7918d17a5ec6d6e", + "gold_sql_sha256": "4a75a9d3b5a61ababcd3f6879fcf1949ebb0ed7f62a8b00b37352850415bd98c", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3295": { + "current_role": "paper_train", + "prompt_sha256": "0bfc474447620eed678a9db2c4775c11dae998281923272519cf57bbf31fbf49", + "gold_sql_sha256": "9c3f953e4a6ae07b761818f18e5b519e12575d52959a662122d8edeff25b2d56", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3332": { + "current_role": "paper_train", + "prompt_sha256": "b4939effc661aebfd2d83c127b41523fe6bfb551f3999d487cb63e3a106da4bf", + "gold_sql_sha256": "1b6b14007320d7e94d48c11397ac122f26f42f58978e3e3a9a7ad94c4df0d6ac", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3355": { + "current_role": "paper_train", + "prompt_sha256": "edf115b69f47b287acca7cc9ce5e7a37e1d54b440b3e35e9f38364c27828bd6d", + "gold_sql_sha256": "f8e17cd8a8240a8d36e761d99f7166dc9b020ed2c5c51d6782a02dcba00dea0c", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3379": { + "current_role": "paper_train", + "prompt_sha256": "7d1a7cbf24d16d8a79866ba9509b776625ec18a91c2b44cf09e68c88254edb0b", + "gold_sql_sha256": "dd05065114742df48ce5cdf3bf5db9ee56d928140644f03055a866ef0405d3ed", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3424": { + "current_role": "paper_train", + "prompt_sha256": "74e0f0749c8b240ddd3b4e32ebb9aca4721db5233fde6f0c1130d90c2e37beaa", + "gold_sql_sha256": "cd753e81572b4c04a5e65479fd518830fe397f1a7e3237952b285eedceec5b35", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3467": { + "current_role": "paper_train", + "prompt_sha256": "91c697d5254950e6c73e1bb50039c454b4c5784543068dd9e18cec0fdb4e335d", + "gold_sql_sha256": "b905eff03a5cfa057de42f93de93f3cd84f6ba9e8c4d8342ac19068d9f661152", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3519": { + "current_role": "paper_train", + "prompt_sha256": "b8616eb1a52fa14c1ade9e7f8a6ff4a811c20525cfa2c906c4a04a3c606b8023", + "gold_sql_sha256": "758b515a1b2b13ed8627a1815a193579ac01af204c6a4cc6f787036236a2150d", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3529": { + "current_role": "paper_train", + "prompt_sha256": "3a8d68d10825f0cb9c54e507e242aba9cba696c2f38d0eefcb9ab6cd45475529", + "gold_sql_sha256": "7f19a6dab9d00df87d38806160a52f6ff4edcc9b8326fb8edc0cebf7c7c1f9e9", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3541": { + "current_role": "paper_train", + "prompt_sha256": "84d8d48c8f7b43ad08e1be65c249eabbddf41c2fa1dfc4ddaca5630cf974c877", + "gold_sql_sha256": "bd2faa83f8c60050f75fa754996f76a941e6348f952e290556cfdc323c1070f6", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3569": { + "current_role": "paper_train", + "prompt_sha256": "7a85af5b66d8663d70503aaf759b47b74a1142255eb29621acdb06128039c0ae", + "gold_sql_sha256": "0649b3bef07e36202d8a3c535e2aa4e37332bf8fe0e7f3453183fd6833d1eaa1", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3573": { + "current_role": "paper_train", + "prompt_sha256": "fb9f642c962c7087ee0b362939ea9c2ea39df4da17619bdf5fc7af20f3eb459c", + "gold_sql_sha256": "365b9da041e68afe018d8c5a6e9748eca09be477e96815606eb5dd6b3a6203a1", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3620": { + "current_role": "paper_train", + "prompt_sha256": "5e224c994eb95f08a27f96c828144e2a159ffd7a507f860c2cae4b4f49c80332", + "gold_sql_sha256": "64f85ee2add0ff575aad1a86f0747f7d0fe3aabbb76ff89b182a930a65dff38b", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3624": { + "current_role": "paper_train", + "prompt_sha256": "8d5fa4b0e921d2e96829a1a78de9c6de384c9fcf0073a7c7de4b14aa10e604b5", + "gold_sql_sha256": "32fabccb26f00c01e956326515d424f266be71406b62bc0d4b054844e5271f04", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3643": { + "current_role": "paper_train", + "prompt_sha256": "2732c09db96de2856ddce0030fe36b04030248bd8aa950f9fdf7ca60243c4d09", + "gold_sql_sha256": "ebe32bec6f40117c76530c643831044a7a842460e634021c7e83158951ab4786", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3646": { + "current_role": "paper_train", + "prompt_sha256": "390fdb5becd0f43855324712c99d34ed6f4388d75a6742ce3039cd858c542ed7", + "gold_sql_sha256": "213f11f16c497dece22c8d5783c8f188d6755dbad0400507a143eb1686c403a6", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3651": { + "current_role": "paper_train", + "prompt_sha256": "05beb585cb124560b9736830da7323a5f5d844fef743857a2a0ac9971eb856e9", + "gold_sql_sha256": "32df870d399788cdc2e8bc32e4bef1d2a35743c627e3c9fe7d639967e5e4095a", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3689": { + "current_role": "paper_train", + "prompt_sha256": "71afeb1cf60add413663784c135722a6ccfc90454122ad9980785ed049f765e6", + "gold_sql_sha256": "09e1da50646259a4b38370cbc4af12da9aa16ef13aa3109b16af2b8d75e2fbb6", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3728": { + "current_role": "paper_train", + "prompt_sha256": "0835881d8f170267cedb0125b61f5facb9784bd4578eccb90254ae2f974e72d6", + "gold_sql_sha256": "4390772a31ac7d3ed732be1b94989076c2695e41128e3faf0ee72a24a9b41abb", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3733": { + "current_role": "paper_train", + "prompt_sha256": "c5dbe224f3309e28e91880abf9ce155100d2ff46e8d05946f602d4e4b1f63811", + "gold_sql_sha256": "f0a307bcab8589c723d88143f58dbdac1cb77cbc5c29bcf3bc9b8e4fb7a8352e", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3819": { + "current_role": "paper_train", + "prompt_sha256": "2da22dbfda90b097a7cb09cdebb2de4b009eb5be8c0c2aec81c64366006f4ec8", + "gold_sql_sha256": "6369abc6681587a610644fe37278075665a6945f569f5e3d9ab5f08e9033d477", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3859": { + "current_role": "paper_train", + "prompt_sha256": "b56ad863694309682b00c54d9ca064ff7becf96054c0605907bb20a4b59a1e45", + "gold_sql_sha256": "9aba909f9a48a18bf615cba1d7f3cd05b32bc9005a2f11a7d8aad9bbece6e7dd", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3880": { + "current_role": "paper_train", + "prompt_sha256": "7ff1568fe0c84eb9ce1aac2aecf6a2e038760ad3eee48b977c756fc97d9adf99", + "gold_sql_sha256": "24faebc686e0e2823b8fe655ee4329228aa5bf5eed3f6bc193f37b584fd6ccbd", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3891": { + "current_role": "paper_train", + "prompt_sha256": "f770b1e2c5bfdd268122177780aaf1046b9648d3652300845663a2c02eadf352", + "gold_sql_sha256": "bc13d61b41151e0cf68ff1be1f0194bf9472f0017c94ac8081a55942f2b92b7d", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3892": { + "current_role": "paper_train", + "prompt_sha256": "a53fa7bbd6377ac9403ec8e53f7d378182caec9e9a316f79f9caa3b92e0951c6", + "gold_sql_sha256": "32a7604f6082fc7a3bfa2550c7fc5e734ba66eb307aa8bf57bd66d344664248f", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3909": { + "current_role": "paper_train", + "prompt_sha256": "c27ea463445bb3fa8fc4f059ec57aa8535f3b202de5eb5903a6fd1c7305eff2b", + "gold_sql_sha256": "7c3382fc75579629d59f98c691a015aa22dfc973bba67c83684230d86df72089", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3936": { + "current_role": "paper_train", + "prompt_sha256": "f8992a13eab6f68704466cf8a956a3c6aba62dae260c8c3fe42983f6f0d3e20d", + "gold_sql_sha256": "1157381236eb4175f831a46d6e9b9edb1052bd27218fe9db3a62305631450047", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3939": { + "current_role": "paper_train", + "prompt_sha256": "c4a9afac681e036e2160aca9d73c1a0afd3cd8cd10664b8d7854e24da7c6f0a3", + "gold_sql_sha256": "0d5738843c52402be222ad0126704f02579f72f6a2a430a2048239c86b7d7be9", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3941": { + "current_role": "paper_train", + "prompt_sha256": "4c5a55d6c668f799e20e33e6a0b8419223d5d982b1fd6bc839ce2a74e7b32e5d", + "gold_sql_sha256": "f696a1f1ca46e44cace44330f9e89b8bb607d3c90c523fcd21ca26a6dfdc6b08", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3981": { + "current_role": "paper_train", + "prompt_sha256": "f5d6f98d8f01ad4985a1ab2d0a9008461fdd06cb97c788dbb2548b0dad19e120", + "gold_sql_sha256": "57842b8c148f4cbcafa96d97225788175014749078586a4ec47b45154fbe4fed", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3984": { + "current_role": "paper_train", + "prompt_sha256": "1243c8ff10730541f926454ac3a99925aba2e047a51298eb7ecde222b5621151", + "gold_sql_sha256": "4c7317cac1794fc3c4392c1657c58e392023cacc48c27c1d1a35403f76775f5f", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4011": { + "current_role": "paper_train", + "prompt_sha256": "eb31e2af35bb4f4f46ce7e16053aef37a1392ed1b49d6f2031bbf7edea06c8f8", + "gold_sql_sha256": "a96029341ae5f133f8e8721c76ebf59645974fd0f0b71926832391e51a6bfb40", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4022": { + "current_role": "paper_train", + "prompt_sha256": "4fdbb01cdee59029143868b9fa6d6d0d6238bfda84255a6686ae7102b0a9b5ba", + "gold_sql_sha256": "25bd5898e08549403103d527c9151cae4e02fffb23b0757dcb34dc4fce6650b4", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4038": { + "current_role": "paper_train", + "prompt_sha256": "f688b6f77dc90d0766ddb7f84547a9240d89857ab831218ec63eb9b8ff82ac79", + "gold_sql_sha256": "d550856da957ab8f3d6e3ed02ddf2e28e55f1842a1d65eaf52ba02d67eea8fc4", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4039": { + "current_role": "paper_train", + "prompt_sha256": "c2cd36905f117063d85686cd303584278eb96a67b42bdceaf3cf4a446451423a", + "gold_sql_sha256": "11506476c5993263246737a1e5cf8b43e4f9be6a81b516d0f0745d9c5dfd4664", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4041": { + "current_role": "paper_train", + "prompt_sha256": "7b3f75c61b6c133acfb2bf36d8d38c87d9c876a4e67a56ce82f1c1956bdbf530", + "gold_sql_sha256": "180e0a64c707b5f0a5234cb6b522228327d1c397f37700cf40fd64daa2ea61b6", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4042": { + "current_role": "paper_train", + "prompt_sha256": "ce90021515c66ec318c58a2fe2507b70d947a4da068342cfc9c4d7f6cf87d7b4", + "gold_sql_sha256": "aa1bd3e7ed866693f26f5e2e73b2dc6d2af381fe914744e5c5d421246fa77ed3", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4075": { + "current_role": "paper_train", + "prompt_sha256": "e7bab8b5f53804cb044f7cdfec37f5877fa58393df5655472641ffd40bdcaa6c", + "gold_sql_sha256": "d6afd4c030838994fd156129185f44b3abd6a8006b125bf7348ece3a07edb64d", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4084": { + "current_role": "paper_train", + "prompt_sha256": "84991216bbf5ca9877b3f3781f471edc4d10fddd51d56ab1ba8230a9e15cfd8a", + "gold_sql_sha256": "c5c132d686dd62dba7e2ea4429fd9e5cfd6585bea15ae9e87187f1a2d5c7dc00", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4087": { + "current_role": "paper_train", + "prompt_sha256": "f3a7f11881746236355798b297a6c7932ca95d2d847df9511a908e4639d85773", + "gold_sql_sha256": "bfce8664a958a71474e98ef95d046e0ce241e02ead23529264978b707e31a492", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4112": { + "current_role": "paper_train", + "prompt_sha256": "04c62d566f45f3ec8ac78ca942eed5874f55a0acb6379dce040964ee89178480", + "gold_sql_sha256": "540604d3032f80113edd36e872bce3b496487cb18cd9e2bbf0423619443e87b6", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4121": { + "current_role": "paper_train", + "prompt_sha256": "f6aa3bc3096ff6f43bb5d8b374a8c91b1b1a2a5294789f97f82377692b987020", + "gold_sql_sha256": "6721a82ee7c2f08b114386e191e907a4316e066a632996d1e0e684c6f7612336", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4148": { + "current_role": "paper_train", + "prompt_sha256": "ceef8f566825e0a956aba7af044c5d87f0bc693026dbbcba6e6308e20a41f838", + "gold_sql_sha256": "14492d25de250b3418726f80d1cbe3cd585821354928ab03c29ada3b4e2dd0e3", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4149": { + "current_role": "paper_train", + "prompt_sha256": "1aac0795bef49294ca4a69423d61bbde0582a662fe6ec56a5a4c1b9039c2323d", + "gold_sql_sha256": "3b20df784b0aa5eb16840c5f73517e32f3d26cee919d79e598f34a2a8f5f2513", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4170": { + "current_role": "paper_train", + "prompt_sha256": "40422a871d6f97ddc1337b00fa1581551c2129f394ec9a7bf4ba129e6b3267df", + "gold_sql_sha256": "bd925ba3beac52d6017ca96cb17467a41242b57829fede51f786e19d3722ccf5", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4176": { + "current_role": "paper_train", + "prompt_sha256": "de41ee7705ed53ede5a0a3d7c1a054c3914270bde9da8954f39b2bdcdff85e57", + "gold_sql_sha256": "f7c4fe39928f77c1fd5e5cd18f78f2da38cbb5fc80a74d9f37ff0aaf81847eba", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4190": { + "current_role": "paper_train", + "prompt_sha256": "78e063b2c2a6ab5f5c746f361f881042efe07846643eac522c6a3c15f78e3417", + "gold_sql_sha256": "c87c7417be7f926f409dd8208211cbd060415e3161d5bbef3077d828d8e896a8", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4202": { + "current_role": "paper_train", + "prompt_sha256": "5c3251065640dc5b804e811a75015dee0ad03d3a5c345945061f47c9bb3fb195", + "gold_sql_sha256": "a2a94ff8df1e7d477775e0bbd5e1af5555ab3373549bd89f231d8f1af68838d2", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4216": { + "current_role": "paper_train", + "prompt_sha256": "d28896d6ed70a06816c158fcf9324600b1936ddbae0277730753a3b38b7a80a5", + "gold_sql_sha256": "81ad393293ea6b15451369570e40a786ab6b337ca7651e3c5c8dc0477760d3b3", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4250": { + "current_role": "paper_train", + "prompt_sha256": "e0313e7f74a44eea27c344ea2cde35a88278e55acdc40e30ec06ad5db41c6b01", + "gold_sql_sha256": "25bdb45ba68267acb7e34b188df01323bab7696682747dac7263b1fa8fc6813d", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4262": { + "current_role": "paper_train", + "prompt_sha256": "40ff182b94c725425cb7241a2174547034758ee7eb31aa1757b2ff6bd9b887c4", + "gold_sql_sha256": "9e3de62c3a2006b695c5c3fa1c55ecdbbdd266a009600bb75ed586515e670ef3", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4269": { + "current_role": "paper_train", + "prompt_sha256": "c10357735e2ba83f4966cde247d504b16788a14ab2d4a93afcc0d6d292db2980", + "gold_sql_sha256": "f44e3032e0fb5e4c084b8c098d571d7c662cd2b9cdaf30acdd5cc55b927d8f79", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4271": { + "current_role": "paper_train", + "prompt_sha256": "d778ca159bdd2ee6085938c955153dbd627d66404d1d9a9b47a1b11565d07a60", + "gold_sql_sha256": "efc97dcaf0bdcea18b121e898dda9a06cee9b266c29c53ff5d07837fb73f2b33", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4273": { + "current_role": "paper_train", + "prompt_sha256": "5e5ad74995353fe7ce38b66b0317a1ec4fe4061ba9dcc6d08d9a95859fb5ca57", + "gold_sql_sha256": "fe71c0752efab2a6b87b2a2949739ff3313ec361bd42a1e614c743f224b8a620", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4328": { + "current_role": "paper_train", + "prompt_sha256": "81a09e4753ea2c4cfc336aff42daea7af1888238e697f9739fd9d982eb77f904", + "gold_sql_sha256": "65b025ef8b14fe5432934ee91d317c9540341f913444d40e43005850d44431b6", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4333": { + "current_role": "paper_train", + "prompt_sha256": "2bd0c9e7585366014b42675f91271c483c37f30961d239bd9031e40e6112efbb", + "gold_sql_sha256": "537da47c7e50661f7453a1702e4116b2fd968dfdceaa19ae9e89f630ad7064ca", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4338": { + "current_role": "paper_train", + "prompt_sha256": "0d56e2040f7ccae8c3c19d0ab055be93dfe4396e860191400fb4769017a75bb6", + "gold_sql_sha256": "0ed598d5830e47e8c977bb0fb4665eba8befb76c8eb4fc6bf072f5fe917c9259", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4354": { + "current_role": "paper_train", + "prompt_sha256": "a1dc44a53b290586894c73f91a2f752468c249a3e1d5fa2fb1ef1bb154873151", + "gold_sql_sha256": "bc59ca1b1fdd9b50400289fd115212d88a189125f9b76fedbd7b41e77a354f07", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4367": { + "current_role": "paper_train", + "prompt_sha256": "f6737631d7d410fd712e6e7a7ef85ae6f4427ed892bb34772d303353259d365b", + "gold_sql_sha256": "7fee7614b55314373eefc2874f9176acac3c364b735dd34c8db21705cb440ac1", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4395": { + "current_role": "paper_train", + "prompt_sha256": "27d16980be208032db29e12db3ba62d759e06a2373352c50c71ec3a7328ba40a", + "gold_sql_sha256": "e1b41c0bb1063400e26e2b85436a2fcfd9016d823b3af34d9670578a7c1a7635", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4418": { + "current_role": "paper_train", + "prompt_sha256": "5e4fb3a56aa8e80109996abdb51a8bba1f1cd86098d93c15a2c82caf135d5f2d", + "gold_sql_sha256": "41ee18390228f19686a2c2f78e7abfa572818b2d97f2288e8967e971db216303", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4441": { + "current_role": "paper_train", + "prompt_sha256": "c3a11a8c1ba0d37cd5f490c3e6f35afb2b4c3655ad0802ab9ab6ef8dce562861", + "gold_sql_sha256": "05b77a1a8351a9dde64c8839bc6856890e40a47a220057edc49cd50212784f53", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4472": { + "current_role": "paper_train", + "prompt_sha256": "ce729f70c6278e94f7dbc6b5234fe00636d00a341b69610dd7b92c08d720c4ec", + "gold_sql_sha256": "6cf6862581a037ab82832facac4289e5dcab0f1f475b7dec58da2f252a674813", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4484": { + "current_role": "paper_train", + "prompt_sha256": "0c0037052aa9e85a18a30d0ce91251a736501c26f4f9cb5e5bf25b56a5c346f0", + "gold_sql_sha256": "0aea0af2031b51dcea053eab99b0223b90cc416cdcc8f801e7f87a880752f5ed", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4510": { + "current_role": "paper_train", + "prompt_sha256": "2350c724c09b24ca90ef0822a955a82c16b42b5f1cf4de36db5d86f02b06ba57", + "gold_sql_sha256": "146b89bb98fb8eef3ca142e0b30f63fbf168c1ac79a6414a6f949b1d50c5b97d", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4532": { + "current_role": "paper_train", + "prompt_sha256": "899c2390434a6c827e509788e6d2cc6fe675a0eae76063ac66b3b6e14c17488c", + "gold_sql_sha256": "ebe8cb9d136696196da8234ebc85844da1b8652b01580c59f3f7ffba9ec951c2", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4535": { + "current_role": "paper_train", + "prompt_sha256": "b41651ad6315d970344cf08a0cf82f8f901a27b11c75f6080452c544b3752a3d", + "gold_sql_sha256": "f084548b95fa3bc7322876ec14ec3c3b12ed0870dd6b24ebd19cf12140a08c9c", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4568": { + "current_role": "paper_train", + "prompt_sha256": "c7348f00b9fe7ab90da28f653a389d11846d116cfe1d3fbd863fb9ed2192ea93", + "gold_sql_sha256": "36205f0c74dc856ce91e6f04082046f9a7b70456fb98f8937846e9e210d5a6b8", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4587": { + "current_role": "paper_train", + "prompt_sha256": "2748ade68d16a4c1137015a125560852434adb2d7b56b72784bf26e62e1f3105", + "gold_sql_sha256": "430e12448da36169ea64d01409caec53b9517833e33ce64fb1b0e713dc3f5a64", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4606": { + "current_role": "paper_train", + "prompt_sha256": "4bd9f3c68784b4bbb6eb8b7bbe6a9d438767a1db297b03c1d63ea780cfbc2a79", + "gold_sql_sha256": "b7a20979df7f56be32f8e729ba1828bfe918cab49d913be1315b7c0b78ee403a", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4657": { + "current_role": "paper_train", + "prompt_sha256": "d68d3f4a72ee127921c71c70492f3ed8d49399307c306bbbe3f615a9c38dc20d", + "gold_sql_sha256": "9d7dcd477dab85d49e66fe77d5186b547d30dc8fb4a0fd0c608a38eb5fdc3936", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4693": { + "current_role": "paper_train", + "prompt_sha256": "af22f125629eb3f8d7a28f4405398abaac14102ea54b7f13a009e782624bfc3a", + "gold_sql_sha256": "4b9b41480e4cc7975da7c5c93a414f359640a9a35492ffec59ae2e0256f9d24b", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4694": { + "current_role": "paper_train", + "prompt_sha256": "a877f41aabd74a8080f61773af96d1bc4eebce00331a17dd3b67761d10a9a1a4", + "gold_sql_sha256": "cca4642c3d20c805a4724a790821192da7b295fdc7f6350333235a12154fe886", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4707": { + "current_role": "paper_train", + "prompt_sha256": "b46c87bfdd9c96743aa2e8f230588a6fad60a08e6e8525abf2f2628ff08f84fe", + "gold_sql_sha256": "8a507d09af5444a65907945cea4b15902aaead41bb3b390e8d8555a77a7ac773", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4712": { + "current_role": "paper_train", + "prompt_sha256": "c9b82f5d295ff175ae21691576aff00e40c627397b2a67ac2a57ce7b3c9f5b18", + "gold_sql_sha256": "8b8c1086e157021e34d1f26cea5d4d6abf6cccfc04b86f3ce92f92e837b2d6f7", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4723": { + "current_role": "paper_train", + "prompt_sha256": "5fe3c1a7d049dea63aaf5e51d7e84a1c1d84d7e804c72b25c27ba0f574bc93fc", + "gold_sql_sha256": "25ab8f992c08a9b9b106c35b275ffcb75a28172e454b1368b1562f47cb721fe0", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4749": { + "current_role": "paper_train", + "prompt_sha256": "e55cd045549802dc5bb5d981f64a21e1a717c1f2f9b0e8df63aa968b539354c2", + "gold_sql_sha256": "8390cf00f43583f6da66aa2141712d795b63665a90a72224b96bbfebd606df34", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4751": { + "current_role": "paper_train", + "prompt_sha256": "2a8175b7ac10062482bf0b057588a5fd3fbbc314bae588965ef9d1fa97e95258", + "gold_sql_sha256": "0de37bca289e36dcb0997ae505af51185818912a1076b917363b6240cc1d7f9d", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4756": { + "current_role": "paper_train", + "prompt_sha256": "9c3da50813a921cec140ff6c3ff0772ca63f8fb6c201a958bbe1dc0df71a1b54", + "gold_sql_sha256": "6573776fdb89b135271deddffbfe370d5b907adbffe84615fd0b00f45abac053", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4759": { + "current_role": "paper_train", + "prompt_sha256": "34df2b6f259320aa42fa9c92847b5caa0b68496501b4b46446f887dbb40e37a8", + "gold_sql_sha256": "84b09502f5caaf5c2b3013a345462d75b51fd85fd5bd5658b1b9f0d592a48f5f", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4792": { + "current_role": "paper_train", + "prompt_sha256": "0e8f97c5d6f8f349b0ab442b7fb4ec46329b071717ad14fab8131d7b5b5720ce", + "gold_sql_sha256": "f0d16af7e928cd88a1de151c621134926d15a0deeb1cd645206600ee44d51ab0", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4830": { + "current_role": "paper_train", + "prompt_sha256": "19e19988e2eb3b389f03fc0cf686db6added88b86b8ff567f304a099084d1dc9", + "gold_sql_sha256": "56287429dc133466c3e6d23fd02c3defa908c3d54626e69cf7ca7b5a58cb36d4", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4861": { + "current_role": "paper_train", + "prompt_sha256": "d4590d0676f9687768333100faef5fc068e0e0158c4fced3f0c3e550c85dee3b", + "gold_sql_sha256": "50c7bdfb887ee74776ba8e6fd6179f2451cbab80f4d38a65cd7df51b1cd1a5d9", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4868": { + "current_role": "paper_train", + "prompt_sha256": "c1d72d6be429ee59376e3938d9b41ae506cdb1e3f691e2ebd1d557b9c2add54f", + "gold_sql_sha256": "e5ff8ca5fbb207a6f88ccc2fd66b9792b556106865ca2c15b8d9a7e889b7809a", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4899": { + "current_role": "paper_train", + "prompt_sha256": "4eeafb172f212e3228db4c27001a6db901fe7c7fdf565f0e8b4a86560fffad1a", + "gold_sql_sha256": "0787215fb34b4a3a7fbfc7318fd38dc70c187625d4a024ab3a46129054ac320c", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4903": { + "current_role": "paper_train", + "prompt_sha256": "2c0be83b4feec439240f1b01ec368146eb6fa3041688ebb26f431d43b3967321", + "gold_sql_sha256": "7dd16e8d5fecec53f85df58e790ca2594d9c6128c682c4901a65ae5fe81bb318", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4922": { + "current_role": "paper_train", + "prompt_sha256": "6e87a6d3dc5a113dfa020374ba90b611c51f7c835307c8ef63bbd82fd5554ffa", + "gold_sql_sha256": "15f56abb9f9a07373d81d15db760fa31a967dc070ad838d44bbfd75e6f9dc001", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4927": { + "current_role": "paper_train", + "prompt_sha256": "70abb74a7fda6b13f9da745af150dc007d1983d6744de33317b2dc708a8fc945", + "gold_sql_sha256": "cfff05e1e5860140c5e382fa2e40abd536b7245baba35943bae8a45094a41302", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4932": { + "current_role": "paper_train", + "prompt_sha256": "15f57d170f2aa03c37c448380557cf167954310b324b0577f8399466cff2ad7c", + "gold_sql_sha256": "017ab603b760e2f5b7b05d40b47c5391c67f94234cbeb18043ee29e30ebc3abd", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4978": { + "current_role": "paper_train", + "prompt_sha256": "0baeef04969f82fd15a9d5d351725edae87f5e197c77e38ea2a57eca32a28e19", + "gold_sql_sha256": "342b4a52611e6f664793ec015262e00f8a692ea4a0e78f954638897b3d689dc1", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5003": { + "current_role": "paper_train", + "prompt_sha256": "7544e82d9f807972e3cc6c6d83f2dc6399eadde0f5c5dbd53976e77681ea3393", + "gold_sql_sha256": "361454160e5cfd2b746bc4edcc7e47ae8cb9b0e315831f63abdba1e20e3e12db", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5009": { + "current_role": "paper_train", + "prompt_sha256": "10f2e62d7d7ff8ed840261a7dee29b77afb85a765a957dd227112a473b8e97fc", + "gold_sql_sha256": "92f2e7ab3e17dd48e5da671ef3a340d58b6502037bfc91d9141c224581cae0d0", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5012": { + "current_role": "paper_train", + "prompt_sha256": "21e4b03ed5ea83c1c13cc73d2d997b2ae178c1d74fb77d9306681f625ffdfeb2", + "gold_sql_sha256": "b21e83f2bc4c260a628cf2ea94206f20f37965a3ae8846e8c9e26a5f0b0a73a3", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5020": { + "current_role": "paper_train", + "prompt_sha256": "b98901dec95ba70d3b34ee012e76686dd93b50c007f55c493ff67d8fb88920b9", + "gold_sql_sha256": "7cbd3bf4d45c4b6d759875d22f3c31f861c61c7dccf5f3cb0c0a580ed9c23bc4", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5048": { + "current_role": "paper_train", + "prompt_sha256": "242a6a9884c57a33052ff25aa1355cd67b7355fb97272906758661a1b6a6990f", + "gold_sql_sha256": "44366089ffe30c0feccd8f234f05efe02600db5dabb6a80a9c914226c544b7b2", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5059": { + "current_role": "paper_train", + "prompt_sha256": "821f1478347189c8908a061b8293379263ba636cddb30fbda67d44a189da3076", + "gold_sql_sha256": "fabe987c0cf61c377d5346b6e5f4c1b0a32555ee4ee54311ca7bb1a166fe7fa0", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5060": { + "current_role": "paper_train", + "prompt_sha256": "398f2277023b31ac883e8ab3148e1072ae89346b202e46f7d65f0d56e6179f9d", + "gold_sql_sha256": "70c4a2ccf87e36a9118983ff82f0e5b6019d3ae41ee77b63308d57555c8b059e", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5100": { + "current_role": "paper_train", + "prompt_sha256": "4b574a52f41576f52f6355c947d551ee232f4aa4005a409f511603f21ee804d2", + "gold_sql_sha256": "269693237a47c27dbf9801ade0a7a601ca32fddba435be3f64b9d7e90178e764", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5107": { + "current_role": "paper_train", + "prompt_sha256": "3ede6883320607223b82cb380ae5fdbfb30038efc23d18fe01eabfb20ababc07", + "gold_sql_sha256": "f78dee520c703338837f9ce8b93cef97d81016605b7cb2aa294f782f49c85b98", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5119": { + "current_role": "paper_train", + "prompt_sha256": "208edc53ad5ae91b161106ac5a944efaf32e909243ecf98824ea81eec9e157d8", + "gold_sql_sha256": "834cf144aa07b1d52f01ec994702987b2242bf3aefe75fc2d6ea9da4c0386746", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5123": { + "current_role": "paper_train", + "prompt_sha256": "c8320931838098a0324fcbab424eb04afbc3cdc20b054a2b2f75a298605dbe15", + "gold_sql_sha256": "0c6ac04a29b5f69cbf4e6ad23ae987b4d19a54695ea6af9a880aa9b7d5ad1819", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5151": { + "current_role": "paper_train", + "prompt_sha256": "883c9603b60f959d79646edfbc97fc7eaf285921daacca31c52fdb6b95605f89", + "gold_sql_sha256": "89fd4d1d75b3acc6458d16c5786116aba243a6ced981e1a5d5ad021f9ec551e3", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5186": { + "current_role": "paper_train", + "prompt_sha256": "043707c98b2fafe76c47e42006e32b67f80336790f965dee2130fa47a8c4fb77", + "gold_sql_sha256": "09f5bb052a7f5bfc014c7b53137bc863e0c61f8bc59ba77d8a4054dfa48a6914", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5196": { + "current_role": "paper_train", + "prompt_sha256": "9f657070ddd55b6d6aea8c760ed32794003813264e2a1c4621a7f60ea1956a20", + "gold_sql_sha256": "6cd4d2ac465253beb992771469cb4cc7e866b68703b1d7941a409d687ec0d17d", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5198": { + "current_role": "paper_train", + "prompt_sha256": "28a6874e54c76bcbf892fe45164e74189a213bc4632768d87b2f54f9a6f2f6fd", + "gold_sql_sha256": "f28952dbcf5d9f5254ea4a22ae4891ca16038949403db430b28f8bf7d41550e9", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5199": { + "current_role": "paper_train", + "prompt_sha256": "1d0fb07770f1023c58d96c3ca6d80fcfd799e789376636255b73b1e20ad4246b", + "gold_sql_sha256": "a0da8de3ce6b2689142fff392d1a0fc8d6900d532a8ece71179ad70fc5c44541", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5210": { + "current_role": "paper_train", + "prompt_sha256": "f9e9c39c6228ebd56a73f3caf1b8901c9392982f9034fd8886a76a64b24a819f", + "gold_sql_sha256": "04da21560b4ed8ffc0d36706bd5edac0f311562eb656291c8dccdc9150d94732", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5253": { + "current_role": "paper_train", + "prompt_sha256": "0740d97174a222e6746c7e07658765c8e98c255891aa9d99dcdc3566eaf5cceb", + "gold_sql_sha256": "ab207dd154861c7bbeadac284898f1099f73eb24927987b22fe1688b8f491fef", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5259": { + "current_role": "paper_train", + "prompt_sha256": "fa21ae58b66d866259268adad791bebcc8e375b2441a7882feded1d81b2fa07e", + "gold_sql_sha256": "d43decae6de9f934f837e11a492121f1b2468fea2b55a18365a602d5db42603e", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5269": { + "current_role": "paper_train", + "prompt_sha256": "9dc5a69ee3112d69a7aec7ef3f90cdffd348ed30fa3ca612cef8c4e704a9bd97", + "gold_sql_sha256": "5c574c6c88efd29074cda2e85bd4e180f2f317a64a566842f44a1db7deeaf8b5", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5282": { + "current_role": "paper_train", + "prompt_sha256": "13c75ac69688e56da141e661535b734463e917debc1ccc3add4ba89ecef30f9b", + "gold_sql_sha256": "bb729f6a47effe2397bf87ffc80f8dbfc4350f75c3eb160a52e107a3e4120266", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5284": { + "current_role": "paper_train", + "prompt_sha256": "e76520f352a8193ddfc946ce1f6c7b7e45715b6a6b2ebda9532553576b10565e", + "gold_sql_sha256": "d11bd193c09c3aea31803d8614bb22e02c80bc7b9e089b5b75bccbfa4749f933", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5290": { + "current_role": "paper_train", + "prompt_sha256": "3318dbfb515d85a693349fa49bf6557e79d8824ccbef395655dc8459dcffa014", + "gold_sql_sha256": "6dc55d822adb5eadf7f6b6d5544fbee6234eef9cb60c6917d4c5b1b190715d60", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5298": { + "current_role": "paper_train", + "prompt_sha256": "ebc20e620b61079c85ad23630cdff3654d7e95bf099b9a76edc4fba5fab2da71", + "gold_sql_sha256": "4e719d4b9532f8374cd76dda434a84383cd6091c56bddde5f399c01f57e53831", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5324": { + "current_role": "paper_train", + "prompt_sha256": "ce5ff9c56d066761d05a1f74d5096dacc616fb96bd574bb8a9337680597be130", + "gold_sql_sha256": "2632172da2895e3eb22376baf45b64bc6a381210068ad9b3c7d4dc7be174ef19", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5327": { + "current_role": "paper_train", + "prompt_sha256": "db8816c82ee3b67d533c51a9747465ef0fade198679d20047988cd6e9f02b722", + "gold_sql_sha256": "df65d64893ff6d19316bada42deaaf29cc195c063ff0d160951f9fe04fef4cad", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5376": { + "current_role": "paper_train", + "prompt_sha256": "73de7430b4821e6646d7fa36cac859a25e97dedda70b3390882af9f307519d75", + "gold_sql_sha256": "390d4db141192879eaaaf434eac8b73a1064e1e372b0f46c707308ec6f6f5a56", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5384": { + "current_role": "paper_train", + "prompt_sha256": "1be841194278bb83f8eee4195e58f8b3734709d2317f051aeba7a199d0d74301", + "gold_sql_sha256": "cc1486bb0e008d48e6fa7b6fa89835b44a3193ce5a581bded30ae2baf789b67a", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5427": { + "current_role": "paper_train", + "prompt_sha256": "b1f5ff99f8ac47d81689bd9c750b8499f5e7326a123a8d7997debe171063bfe7", + "gold_sql_sha256": "d963de8245e757b0d8c95c065d583c5d8b975451d149ae3bbeeb8130a5a33bc3", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5436": { + "current_role": "paper_train", + "prompt_sha256": "9117826209bd62979ceaf33452fa3dc9d89c8fefc5f90700e0b02c35cd71d727", + "gold_sql_sha256": "ebb105073ddb2135731818e9a455ac034b86216c238e0d1f67e6d1e169ca05c7", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5438": { + "current_role": "paper_train", + "prompt_sha256": "cbfd2aeccd6a4ffb22220601d4a720cf44d19468be98902c4e17e553a26ce44c", + "gold_sql_sha256": "8dfa1707d386be0f7e8d88fc70e78a2c5e8d603121ccc513fd0073780da0621e", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5473": { + "current_role": "paper_train", + "prompt_sha256": "39000c5f03937184a7a11ba56ba3a90c95f7f84fd725a9bf4b1af6fcb744ce03", + "gold_sql_sha256": "27c3de3171a2d27af77fc41b54a69085fc19a2b62a25cbbbc2542a33f773c9e1", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5479": { + "current_role": "paper_train", + "prompt_sha256": "95ff13100117d987025ee83bd291205ffcb960ed9f6e774e68f040d450c93970", + "gold_sql_sha256": "4b76ce12001bf4173224933ba4b603deee9e64fa4a99deb223aa88eeb584b1d8", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5485": { + "current_role": "paper_train", + "prompt_sha256": "4e0fbd3399441a6c3a8ec120603872013f0352b058fc562ac99152b956c4036f", + "gold_sql_sha256": "dc6b6ef85ce96b547b02fe403429dd4d32aa4ca18d6b872b27584f267d79edb6", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5507": { + "current_role": "paper_train", + "prompt_sha256": "5e8d5921055ac463acb2b6daa056d7b9c2252631949d4ce4d12efb1ceda9bf87", + "gold_sql_sha256": "b75ec1742fb64b39ef4ef20baef785cf00251f85664299f2ecd7c70dbd8bd9ed", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5508": { + "current_role": "paper_train", + "prompt_sha256": "f5d889f561c45cfff8779b022b55784f71ee65821b3e323fdc3cea9ead5c6ca3", + "gold_sql_sha256": "2154ea6a1dd06431329c46b273e2228cc74a688ea7c00b83d5fe7b87469cdf49", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5509": { + "current_role": "paper_train", + "prompt_sha256": "c31bb06317317a8ab1eb130e816e4b6641f8f5108347a5b4ebd6076f120d4387", + "gold_sql_sha256": "cba43e87c8ac93afd1e6a83cd04d091e6f34259b50723d4eeac0d3bf94619a79", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5517": { + "current_role": "paper_train", + "prompt_sha256": "b732e2b6e195e99792af21ee0801167a7e44b939c68e763fb6609f73ef26bc66", + "gold_sql_sha256": "96a8bf77b176c54f105383e572bc6b83c06274fb8109078123c94e29689cdf00", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5520": { + "current_role": "paper_train", + "prompt_sha256": "14f915cf6077ec2f7a7e01791a0f0eb751e6fbd18a2a776cad5177854ad34b3b", + "gold_sql_sha256": "7050310833b1a30aabc04775c3b46ad4006be2da768de42c94f7ae2e9f3e2d03", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5523": { + "current_role": "paper_train", + "prompt_sha256": "cd88bf7aae28c0d5c7c94fbbae6eadeddc9b4f3b8a536fcabc8beaf326555310", + "gold_sql_sha256": "7ebb21147884ea75889b969b63f8bca773e0708bfab6af95a0336c23d2d5bb41", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5527": { + "current_role": "paper_train", + "prompt_sha256": "35b1f3b6ab8756474b93a43929afe1ba5f8439a75fb5063c322a2778f49674ad", + "gold_sql_sha256": "492fa4744cba75b3cc9567b392e795a4d63ec9dbd8f20ad022621092facd19e7", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5531": { + "current_role": "paper_train", + "prompt_sha256": "5479266de07c43f10f3c6598670095da77dc744bab5a012efe2a2c98f5fe9a0c", + "gold_sql_sha256": "d86f52c8b5aa821482cd2414cd1a111d9349df53814c9ac7114c1dd8274a6327", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5532": { + "current_role": "paper_train", + "prompt_sha256": "a14afbf9b7268141b44da972506ece8c96827fa1037320bf95a1e150373270da", + "gold_sql_sha256": "c0ab00633e3177ba980b931ff5a52028991dce4d3cbbe61905ca313e1d1b7bee", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5556": { + "current_role": "paper_train", + "prompt_sha256": "3de640adf9038e04576c220185a4b16f5896847c8b0a45a361fd4aa97fd7037b", + "gold_sql_sha256": "79d421cbfec02d964522b9ef0e6aa28520fc34cc55fc0cff2c14f3dfce3ff702", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5583": { + "current_role": "paper_train", + "prompt_sha256": "2cc37b3b4b71334cc1d3113cdae920710911baf11d152dd9394927d45785c90b", + "gold_sql_sha256": "412d09bf49ad8353c7691684688e508eb694ba959e9311a22ca941982ace580e", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5632": { + "current_role": "paper_train", + "prompt_sha256": "33d9cda96f565642c806894551492cb3c1c5b52e37f7ea9006cd2775344f66d3", + "gold_sql_sha256": "210b57937388ed53e8c3fe5e72f825a4c1dee4ad94b982de7176b0a3dfba104b", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5633": { + "current_role": "paper_train", + "prompt_sha256": "6c088b32be814ac584cfc383821d89a48cfb1cdf83f013fe762e28cae0331b7f", + "gold_sql_sha256": "d0e39c807e789bfbcf3e90f3cd44f2857109560e59a7b433fa712e39df144a3e", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5684": { + "current_role": "paper_train", + "prompt_sha256": "038b38268b2da73fe6b1a1727417052ea140926759b669df1736d4b6cdb482ae", + "gold_sql_sha256": "813a2037ee6111c035997496164c9a59bec676eeea6176f5b30ae582f758677e", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5694": { + "current_role": "paper_train", + "prompt_sha256": "69978e6dc01e3c4a9e83a8c9acd8694da5e1cc6a198800d8b168dc5d9d9922e1", + "gold_sql_sha256": "021807089f31096cedc6273346fff575fac5e6b5dcb22e70226f4cf1859c686d", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5696": { + "current_role": "paper_train", + "prompt_sha256": "664c9991a3604e0c0e45b17d89f88299c304191038bae8cf8f89fe82eddd0be8", + "gold_sql_sha256": "0c061d4801467580e92c6131796912cd868f192ca7cf02d9b61729424d217e48", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5722": { + "current_role": "paper_train", + "prompt_sha256": "c62276ecd6fc04a4475d84b39fb6770f6929a12375c45fb58ac23fbedd49c4e4", + "gold_sql_sha256": "87afcc328daf095b7cbad6618297731405fe1a71cfd89b5f0af470bcc23802bb", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5739": { + "current_role": "paper_train", + "prompt_sha256": "e3de6f399a97037aa1f1751599ebbd1adddf12ac80be5c656068745043ebcd95", + "gold_sql_sha256": "f62366198e4f893c2339eb8eca0d106c5c351949fe3d4fb95a4b3eed0ab878bb", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5781": { + "current_role": "paper_train", + "prompt_sha256": "30292c54fe114c7705a48fd19375bda70f6957293f25edde811f5db7e2dc05ec", + "gold_sql_sha256": "e81d548dff85c223f3ffff5dfb3dba6a93b7e7db5ede9c077077815020c5b850", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5790": { + "current_role": "paper_train", + "prompt_sha256": "f83d003990e56bd1e0c1efd2044840a4db347226033c7c0aaf78f1edbecf0af7", + "gold_sql_sha256": "8240b3d6e60b8be22fc4c433caa02105a6c3abdd78a19f2af9f5c3a711951478", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5795": { + "current_role": "paper_train", + "prompt_sha256": "6d8420f41d786f79eeb69cc3301b33c97f1658863272b50b73d413e07915a1fb", + "gold_sql_sha256": "5c78ff59f826ae69798a847a63e003a8762bb0ea77b073a783698db89e9c5bf6", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5804": { + "current_role": "paper_train", + "prompt_sha256": "92933a4d4802389b55134c24254c55b89f0e9e41df8328ccdbe5b84b35ad82b1", + "gold_sql_sha256": "7c73d029d1731e4e59be205520cacbbe57c8c91bea1da7ae349a78c6bfbd835d", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5820": { + "current_role": "paper_train", + "prompt_sha256": "f46452011d07fa720c7bc8e5fbcb77c01f36fffb7f3ba02b132a0207fed86097", + "gold_sql_sha256": "c11e3ff30c0c91df71ed585c8f40e25bbfcee7ca097d8a95af81df329c47d780", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5832": { + "current_role": "paper_train", + "prompt_sha256": "ce8d1693089794a86734f6197e3d0398b58714c221c665957b73d6db90749976", + "gold_sql_sha256": "5c51fdf360713315313c3367758eaee0562f8fbbf49b20e174360e9edc768617", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5837": { + "current_role": "paper_train", + "prompt_sha256": "02e0c7c4dd3494034225af775741d10b3d6f38ee0d610b815569c83632922f40", + "gold_sql_sha256": "d35258eacfe10ccff355433fd919c6b2ff29a12a83505b7e143b159e47b3b21a", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5883": { + "current_role": "paper_train", + "prompt_sha256": "0fd6cefc767205c5c1e1747150c22ee44e792f7f28a9d1058b693f3434391b6b", + "gold_sql_sha256": "dd66ffca33c6e1af238adcf2fc46df6d69d1ef72cfb0322146620d639290dabd", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5888": { + "current_role": "paper_train", + "prompt_sha256": "c1f611c3a6fde303d930cd9233b119795cc879d81947e8778a72936823d4730e", + "gold_sql_sha256": "0d547ad9100a519fa86a3e0bec5cbb26682269da83bd4ed74d3cdbb14c8723a6", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5896": { + "current_role": "paper_train", + "prompt_sha256": "335c74b7b09522ec368dbd1c556ad9679a9edf9100f2805f666d2860488768af", + "gold_sql_sha256": "1cd3a3006b5887d4cf30669de613101dc86cbfa524079cbe7a80ae6360be2b2d", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5920": { + "current_role": "paper_train", + "prompt_sha256": "9dad634a586ea15690fb50f66cf89f42eb954a28f76da5ce94dfdb47209c5c49", + "gold_sql_sha256": "a694b20f9c46801924b7fc13bac82864d148617c2edfc010d122667a4ff5fbdd", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5924": { + "current_role": "paper_train", + "prompt_sha256": "8a7a379528af2e0cbf31abf96c7ca951956ecc6d4def39d91d5bb1d74321712c", + "gold_sql_sha256": "ba01af631cdc3df9a236d78542371f0039a10baf6e9d0682dd653df4cdbcf64c", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5933": { + "current_role": "paper_train", + "prompt_sha256": "d55525651b159e3452bcbd10a06b3da7d0bd33ddd7866dd3736876e7cdf8c2ad", + "gold_sql_sha256": "5952454d46d5bc8b8f4490bceba16002e20b9fdb02df517d9e596690d971ad01", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5957": { + "current_role": "paper_train", + "prompt_sha256": "a07ef375f3420a01350fc58f528757649648e7beafc207223d1309212697aaab", + "gold_sql_sha256": "3fc35e69532a8c07f2ba3b0be00a0f41487055206ff2739c00d579cfb9592664", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5963": { + "current_role": "paper_train", + "prompt_sha256": "e3579ad736e71bf6700475215317650ac7997150ca85d82b42704f60026fa0fe", + "gold_sql_sha256": "e8fde7cae5c16833d2cff138351742cce0dc35d7dba6c68349eafd6d627e4d8e", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5993": { + "current_role": "paper_train", + "prompt_sha256": "d5a36d409a2f087e72fde63b334decfb8cc529e3b58109880dff8315e150332f", + "gold_sql_sha256": "364b16ce593fd0f640245685becf8177ac10c9b88d11178835dfd7dcf5070d05", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6068": { + "current_role": "paper_train", + "prompt_sha256": "a7650373dfc9eb2e661c657b9d7f51555e126da5de2d2c62550fd4a5523fdccd", + "gold_sql_sha256": "790d8ab57877de1c82fad9dd17999f29f0b74fabfeef7ef545041d7f8fa72992", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6112": { + "current_role": "paper_train", + "prompt_sha256": "a7031ef4ce06b4043ac23036ed2be2e16afbe1483053d83beec2f402f27330e9", + "gold_sql_sha256": "1c0afacf8c2f19640782cb2f5d53a84cc23c2d469439397b7bb0a0ef45c1ab54", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6121": { + "current_role": "paper_train", + "prompt_sha256": "52d6fdd773ca9dff743de4603602272ab55b089b340867628fd7b121fe40bd98", + "gold_sql_sha256": "67dc10204e40ab95c29736711a97e3af4f29b1a50007dd949c63fa509207a56e", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6137": { + "current_role": "paper_train", + "prompt_sha256": "ee0d3abc036b950c0ba3c562da8e03c2d082672923eb53817c7411a358a7f6d7", + "gold_sql_sha256": "c9a3db7eb4563be39af63c4a27c272ab1e4c5a4b85e79694dd755bbed081a3b9", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6159": { + "current_role": "paper_train", + "prompt_sha256": "c23e09a0f8e7df83615faeebf8af23b4d86893d6582068884c576358a4284b0d", + "gold_sql_sha256": "25192798dc25e57f11f0d05642669070740009f9662148e2578b711619769e95", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6167": { + "current_role": "paper_train", + "prompt_sha256": "98c79a1531ccadfab2f78c3e0ae5f72c58227e48f9302cc95f1d1b8b676eb54f", + "gold_sql_sha256": "292f5878433286c71cd1eb477605ac1932ad8758285e6c39f1cc360ceaadac18", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6182": { + "current_role": "paper_train", + "prompt_sha256": "54961eb5df7e070842acd5b9719ef2ac4c7b6d6c6e4343a0d7364cc551f9e4dd", + "gold_sql_sha256": "268b188314a39587cb0ec0599bd9ceb7e8058ce617a00e3bbb17627a99f7f90a", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6207": { + "current_role": "paper_train", + "prompt_sha256": "194d6729a5fad63821f4b755cee5147f9eec0caf269ff1b33fed4487e46047c5", + "gold_sql_sha256": "36017d648ef51f8c93d0a8372f02846dd6a886627b37450bbacdec4f97b60adc", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6221": { + "current_role": "paper_train", + "prompt_sha256": "49ae17845b397923a356eab898e96984b5a971d35ad4508a10d05afe35a1a619", + "gold_sql_sha256": "2aab7426d6aea071cc0888247aef23b885b9ade5bce6b101cb141f8acfc8c205", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6260": { + "current_role": "paper_train", + "prompt_sha256": "c03a567f228850501124988f2da841d860716b8dbd88e08a0e6c38c0a204717c", + "gold_sql_sha256": "12b0fcc1b049c6225935e4aca686cbfef7f52e7f10af2241d149d9dc2bf6fac1", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6364": { + "current_role": "paper_train", + "prompt_sha256": "21d255428e36e3be932c8c569ddf327ec0554ba2f8e51f3547b19332891b4e4e", + "gold_sql_sha256": "924ae5a64ec2f080cf601830b15e21e96239ba28e6ebe25fdc95496405b44016", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6428": { + "current_role": "paper_train", + "prompt_sha256": "d52563f73fec39bb0dbe9a841fb59c05add42175e6d59fcf1effdb56579d5a71", + "gold_sql_sha256": "85082253dd0d38d648477e0f9132ff2db0e9990957ab7d55ccd4c1469a725e7a", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6465": { + "current_role": "paper_train", + "prompt_sha256": "d55562c63db7980364846b5eb987436667d929ee1e863e5ab34dded19c825fbd", + "gold_sql_sha256": "21420d4f7a158b68d42ca4ec55ee2808cb21b9d65be92011f038a7ff22ba33f1", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6472": { + "current_role": "paper_train", + "prompt_sha256": "2cf45cc7f58fda29127e7215232b1e0d756b50fa0dcbdc8aba12e54f1f3fb9aa", + "gold_sql_sha256": "055e2d4fca64fd39227514ecdd7aff27b42f36c9777b611f30f7a6259e6ecc9f", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6475": { + "current_role": "paper_train", + "prompt_sha256": "9390710a2f1dbea3d71b777f9d5433aa329fa1adef860c5b66ac51f72049cbfd", + "gold_sql_sha256": "858d1bf5eb681236a69fb2f08ea74813cb6cf58f47374550462bb84173e00b25", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6482": { + "current_role": "paper_train", + "prompt_sha256": "d067a5770f0d0b5c01d69e94a59e91f731e185d019f47c8d1443a4f466a6784d", + "gold_sql_sha256": "e6bb7a3c13b63c62603f905ecd97d9f17396f76cf0c3991c58d7b13240e7e2ae", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6516": { + "current_role": "paper_train", + "prompt_sha256": "b56f3c40565220cad005b6392b7ab155da534193493969b9f9399291d73a0466", + "gold_sql_sha256": "1f5ab09466c8da0e9d2b2d08a517ac17a8cb8ec1444903a41481583bf555f1ff", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6521": { + "current_role": "paper_train", + "prompt_sha256": "ae4fc22bd4b392766e5e3bc85be4553bf5ab33b2c7e2243d5a4aaf7fcf354160", + "gold_sql_sha256": "b45c72800e0c8be1833da3fe919b657071971ebfbcfcefea3e70ea89d2c87574", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6543": { + "current_role": "paper_train", + "prompt_sha256": "4efbeeb57931b67680aa1d30d93f80ca89f942bf10a6477322e2a50ffee02375", + "gold_sql_sha256": "99e38af4c4a70935e32d39582c46a1bd5d0a50f141ca2c92dcc24ea6604d1424", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6650": { + "current_role": "paper_train", + "prompt_sha256": "6497e0a65dec11121b769330e97ec86ee0a28d6d5391581e1cc0a2c2e4017f37", + "gold_sql_sha256": "6248d10cc59912ee72cf393bfa6c0638f0082300f5c4f6fcf98128e8a5f4cf98", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6727": { + "current_role": "paper_train", + "prompt_sha256": "bd8091e7c37086d0869729ab574f075026e8652da6685b1ce1fe3ef3bfa763e8", + "gold_sql_sha256": "8007c7c5730f2554ff063159c867da9a3dc1bc6865891593e3ee4c153e862f0d", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6754": { + "current_role": "paper_train", + "prompt_sha256": "5c67b5c14f5c1b0f774cc9b67bf319942d1f5690496d64e220db43bcd00bdf30", + "gold_sql_sha256": "e32b61d8134243c3a5e29e798d393c36a58fc0218e89bf58e847ccad29d3a828", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6779": { + "current_role": "paper_train", + "prompt_sha256": "cb7e41563f82c8c557a46cd95218942fcbd1e3454a418e0ed221eafe6fa8d070", + "gold_sql_sha256": "adce4f5c8971a4dd253b12c24920350c2cdab297bc0e49d49b70000c169e5061", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6844": { + "current_role": "paper_train", + "prompt_sha256": "152f215a09f8eca149f9a128ee54fdbe81f9675f0c5bb7ad4ad1ff438ce5a1a1", + "gold_sql_sha256": "899858aa834049f06e2752d8f93f27ceac50c2fcb27c52e2092137115e1f85b0", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6845": { + "current_role": "paper_train", + "prompt_sha256": "2703ac0852fdae7337a52b155f46d034a53a41e0c10d8b669c3640f21aa6c09a", + "gold_sql_sha256": "47ef63af79e321156cb97031440c777543f2aba12246d20f95c761acf54a20a5", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6866": { + "current_role": "paper_train", + "prompt_sha256": "210960ff396ef02a4304a3f6fb5c4f6d1f0d32a647a9daddc818aabf4b73dcf8", + "gold_sql_sha256": "ccdb1572c13a88048bc9f501838abcb8838b3a642e60062eaf1024d486aeab67", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6903": { + "current_role": "paper_train", + "prompt_sha256": "a27e41b7efa983822d28cc63ba4325a9b5510ae6a0ed60016808811f82ed2de4", + "gold_sql_sha256": "3acf02cdca47642af59868051d39b28db0ef786453b3a0376251e25fd2447f33", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6911": { + "current_role": "paper_train", + "prompt_sha256": "95721018aa2f471298366ca2aa3b0fa71b5fe5bddc7d27dec83d861d2627ae22", + "gold_sql_sha256": "2ccd5da1b77312bbfa3551067769efe459fa7fc5688f2f12d67722d550e2b51b", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6947": { + "current_role": "paper_train", + "prompt_sha256": "284146b937c5eac97993e23db9c6f9a4642f1cbdd274f69ca217c9aa4d34e082", + "gold_sql_sha256": "82c936db341e62005d9dbad19bc6c5d5a26c370c5522378b961446a1dae2d984", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6952": { + "current_role": "paper_train", + "prompt_sha256": "13112bbad02e7c7ed7aa38bf46c6cf653f207c191e7898e6694249245f77f2ac", + "gold_sql_sha256": "145eee869d6d92d34a7fe4fd837cc14dd4873e99e6c7cd9927f0ba7450c62985", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6989": { + "current_role": "paper_train", + "prompt_sha256": "fcd695274491f08768fc3335f9c48a894e94b01a596684c049437d8f138a422f", + "gold_sql_sha256": "9db02a6495ae8b448f23c5ff4339e95688bc4435fa3309fd09bfca43f56207d9", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:7001": { + "current_role": "paper_train", + "prompt_sha256": "6b235d40b85797533c3bbd260dd61ae046e3d2c502e697d0a1c0d430d362ad85", + "gold_sql_sha256": "0e92fbbb61e76a5859b59c53ea10f6ee5034618f583c1000be08ec9f32834ddc", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7023": { + "current_role": "paper_train", + "prompt_sha256": "725c0d1f9caf58986f6bccb65cfcf75e85a677bc4bb7b8ef3e24a45b53f6bea2", + "gold_sql_sha256": "456a17d28381d833cb89218d0483185cbf42ba91cfccd9eaf81de29d2a9157dc", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7025": { + "current_role": "paper_train", + "prompt_sha256": "573f307265fe639fe56728bae8d26def3803c4e1c5ad6e945e5a8743e4fbe62c", + "gold_sql_sha256": "ca743dc4085cbdb8716094ab629bf5697358664d859fbca2595a30b684907952", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7065": { + "current_role": "paper_train", + "prompt_sha256": "e605edda8f415b769bf463f69b7802bc6c43c2939bc38ad5b195205a8f5c3fcf", + "gold_sql_sha256": "884c38960a7db703116c2ef29b7ea233d03d24f4e43110ec6b55a246545b1205", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7066": { + "current_role": "paper_train", + "prompt_sha256": "55432ee6aa46d4b030032cf4f8ffb9c3b54d22c15bfb146710daa19bc7ef0363", + "gold_sql_sha256": "ef01ae701435cb2583922a42d5e895db9cf54bcdc3152a253f136a34b1ba69f9", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7068": { + "current_role": "paper_train", + "prompt_sha256": "7cf228da3abe2d4f20f883a32bb3f93690822b6d524f28542bffb97b4cac32a6", + "gold_sql_sha256": "09eb40c800b23243734b312ce6c4669e53f4a0b7b2dd9e1180c1d89a4a127bab", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7075": { + "current_role": "paper_train", + "prompt_sha256": "3855694a26b9f80257110f2d9873a204e051fb3ec6b6c56a84d66822b1ace147", + "gold_sql_sha256": "456bf6fbc66b18842ffc719852f5d55103fd9519100bbe98f24bcb178e8c4714", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7091": { + "current_role": "paper_train", + "prompt_sha256": "a13ff83e9d964b5aa7437bc606aeabfb52e4c1aca9c34e2d4fe8d4a5d016d07c", + "gold_sql_sha256": "e1e08d724994bca4a4788c6c5846c61a7478cabfe75f47fcdfe7b805e73fe07d", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7095": { + "current_role": "paper_train", + "prompt_sha256": "1f687c50ae6e63d4ef3f43e2efbef21efb2fcfb630bc8fd76111928dc5c5d5ee", + "gold_sql_sha256": "bf5ab1980fa076a7ce9a2883f795a0176ce0f830733859749ba5c1069546a905", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7137": { + "current_role": "paper_train", + "prompt_sha256": "ffaf94a09e233ff0365e995966b05e8c3d8cac8fde1ab45ef59f995d8a6d34c5", + "gold_sql_sha256": "c48d38654da5e5c3ffcfb4a59f9e9799bd7c53c476b0b61dbdd1b946a14b10f1", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7159": { + "current_role": "paper_train", + "prompt_sha256": "4c8b97b45f0d3bf35b7bbfc9adf6d4fd42cd875f86d270d3682bcbaf765ebf08", + "gold_sql_sha256": "b829727e41ad82ee2ac95d80f7494b067a77fd4ee0f468067bc8602eca631a3c", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7171": { + "current_role": "paper_train", + "prompt_sha256": "d6261e4fe9f02be20aef90589922fa511ee9f628177bc908cfb39d85fbce63b3", + "gold_sql_sha256": "ce328df4693057ec96ef1bfaf60a79107431c4e5eacbd6e1e4b095245378b0cb", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7174": { + "current_role": "paper_train", + "prompt_sha256": "afeae22e65ecb6b651769f17858a35373dc945fa0166973a97a23db23e7ff588", + "gold_sql_sha256": "16382ef5bac080356ab1a050bc44b1bc1109c794397d204cf17f32b65eb35947", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7183": { + "current_role": "paper_train", + "prompt_sha256": "1d447962fb0a3295304a42a3ec5da4882d5ac3b0e33494a62c0f02d7c9a684a0", + "gold_sql_sha256": "24d1b43d6b4417aeb4e03d1c439fef3e97042b77f10aa61b08399c99de0ad373", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7194": { + "current_role": "paper_train", + "prompt_sha256": "b538eedf5a31cccd2c26c6c01adf4fdccfc29aa9044838a84c7d388f455ed02a", + "gold_sql_sha256": "a4d4c30da9159c44d85ffd9e6094b0aedd02bbf85f648a24ca3a3f04ad61c753", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7198": { + "current_role": "paper_train", + "prompt_sha256": "438429e2088962921751a48754d958e9bd76b39a3637ae657b98a182497f4e0e", + "gold_sql_sha256": "8b8f925b9e25f66d39531c8eb2f6a25c51e295d4265c94f76950293fedcf121e", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7204": { + "current_role": "paper_train", + "prompt_sha256": "47ba67aa6bacb69fbaa2f9aaa7b5d9532aca6b7c36727694ce17922c5585b591", + "gold_sql_sha256": "6cc6c975489bae4da46d871852d9612c43125abfcd4d779d0b96a40fdc701fec", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7207": { + "current_role": "paper_train", + "prompt_sha256": "dd13890c281ce74cec29c77f49fc97293e82329e3b1ce2c631e36bc54408ba9a", + "gold_sql_sha256": "48b4b954f0354bf6246e6d075aed6024e6b0cfb64f161aa62620344a3e6c1516", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7247": { + "current_role": "paper_train", + "prompt_sha256": "cf9d73b2fca6c3565926f1eafbe8159ea156281ec7cacc141f1f7b6bd423a1c9", + "gold_sql_sha256": "3cd5aa342bd8a7503b2aa4b1ae922c4cd371870f30a8fae1c838136845f6314f", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7299": { + "current_role": "paper_train", + "prompt_sha256": "6a37b0825557c206c4dd0f3b25bd308dd1b419b219c3d2b2a91fbc66bc6f199e", + "gold_sql_sha256": "c1b4998ddc16a09ae62a7316f09e5f90fde52c6980137dc8f82a6021e44f0c8a", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7303": { + "current_role": "paper_train", + "prompt_sha256": "c34789089314beca3fb1df1178437e5b54dd477f79864e66cb4515ab564171fe", + "gold_sql_sha256": "5ea43a84e30828a035fe3c81dcd3d133c340c2567b2735124870ce4fb7441284", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7313": { + "current_role": "paper_train", + "prompt_sha256": "71f5eabc8c5262031d4b528727b5e8b83999fd8e3b5496e6d054350afe04da31", + "gold_sql_sha256": "b788f0ee7f5f2cb3d50e8f6af645c7363f792e3c11f8951bddef17cbdffa2633", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7325": { + "current_role": "paper_train", + "prompt_sha256": "196c8dba6afdda4e88ec8af9603ffe537ab30e279ec92d09c82555e6ab3f3585", + "gold_sql_sha256": "a10bbe164d9d70b589e029bb9e163146f34f0d91dafbb7dc9467ce5cde74230d", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7369": { + "current_role": "paper_train", + "prompt_sha256": "cbae1167b0cf18de4d6ec87a4779b33b58a3778e2d0a23c5b34293ff290fdd45", + "gold_sql_sha256": "c90972347ee826c55dd6be913d595b06efe66c0cf74717160f6273717b1e5430", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7451": { + "current_role": "paper_train", + "prompt_sha256": "4ecbbd23be83a76cbd0bc0863f9e255e8f59b0e2d78d79499cac4394e9ab09cf", + "gold_sql_sha256": "76f79fc3831abe3c81da356b41047538dbe74d2f49a7818a6ac6ba9d1e3eadbd", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7480": { + "current_role": "paper_train", + "prompt_sha256": "c92193fa1be7b262c98025a5e8474cfccc1e2dc55e904a04edb2c6012bf9a630", + "gold_sql_sha256": "4e376f60f689ef691dca3e1f4a33ef9217ba9d833b0abc8c83a95f8b1bc77be1", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7492": { + "current_role": "paper_train", + "prompt_sha256": "956d93e4ef31765cb3e4d6603fb27c504e94d3528b828d0131e433d89e04357f", + "gold_sql_sha256": "d25097689ec38fe73c6973d0dcf47d93809d119a61092a842e8f0002ba2d0c62", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7497": { + "current_role": "paper_train", + "prompt_sha256": "48f4b7fdca0c88e8867c856ddcb818cd3902ce26791486f3355b62717c05bf99", + "gold_sql_sha256": "e46da373218919520bd04c97ddc62fd97cc4a1360821c85b39032965bae45922", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7508": { + "current_role": "paper_train", + "prompt_sha256": "a4e561012e79f25c71a0b4fe92065da1869e85992fac2a48d9b2ab95ea5f1745", + "gold_sql_sha256": "c3e1e5cd6efdac57c0362eb95f5060f0a896cb4600ac8507e0b1632b4e6d9f9d", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7523": { + "current_role": "paper_train", + "prompt_sha256": "a353942c30c90d71c430fe5e462d541d1bb782a03e2d7f673874d2e41eb12221", + "gold_sql_sha256": "49567bc7c7eab5379125239cd65dda77d3633efab0688f118a38da153eba3f41", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7527": { + "current_role": "paper_train", + "prompt_sha256": "6d56db7a45279471202db7914784f9a93f4635efa0e4d9bf571c1b06e55ba7f2", + "gold_sql_sha256": "78b1b763c72cbca150ccca8ccd13d8643a3c1b5fce5727fa0f3a9d222cf60420", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7534": { + "current_role": "paper_train", + "prompt_sha256": "76511683643052a55fe398a5e615eadb09fef75522d86e5c4b61d0bee02c4b35", + "gold_sql_sha256": "2c65a026f2d9f2f86f1466d7b5810820b3af54a9a06f9af25319dbd7df909cec", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7545": { + "current_role": "paper_train", + "prompt_sha256": "d0fcf1348f9a3db29e4a8e0665f16fc426f6531f4df75d79dfc1e771acc8bb80", + "gold_sql_sha256": "151bac3775a4d350d18c401a7ebac11ed86227a268d8d45b7d441d958b5980a8", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7551": { + "current_role": "paper_train", + "prompt_sha256": "413c1021afffd1164dab0fbf0e21c64ebb0b1b81a85c27c0915fc2c41f4dc645", + "gold_sql_sha256": "1451b94b7389a1845497410115eabeeffc66918ba7c685f8c862c9630e12b458", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7557": { + "current_role": "paper_train", + "prompt_sha256": "45fe5b9f139b6a849d1b8b57aa1a77943789d7f3f361fb2ac59a7417c807155d", + "gold_sql_sha256": "e4bb5b0213d735404471d70b8431d8ec07a610375ce0656c8e3f7ca9ed8e09af", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7579": { + "current_role": "paper_train", + "prompt_sha256": "49df7bf7c6e49d03967761a274bfc709078a51eff7446f05160cd687b4f1e25d", + "gold_sql_sha256": "82538f7f73d5b9bf95c6b3201851b404e079f9412caf67ea9d080b9a69b53ab1", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7647": { + "current_role": "paper_train", + "prompt_sha256": "709b8aebbb5ff617a4a8e8222c698a995e11eebe33d8e6e05928e0741af3a62d", + "gold_sql_sha256": "daa4c01526a543bfb1b644e4254727665b1a19aa1f29b8fd6088e95d0d9292dd", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7713": { + "current_role": "paper_train", + "prompt_sha256": "375b35d5e92d35fd9588294a51843f2182723f56bf5564771f3bff683a9aa423", + "gold_sql_sha256": "cde4b256d0a5b4e8f6949c89a5986d3d854c436ded318d4e83c7fb64b0fdd706", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7717": { + "current_role": "paper_train", + "prompt_sha256": "f0df3e3fb3d3032a5bf4e589f8a93ced5e44c42ebd6a8a1a263a8cff2c9d033e", + "gold_sql_sha256": "32b6bb8ad56b752251c578ccfcd9f027902f9c7fcba9e86e2a4a2495369fbb30", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7724": { + "current_role": "paper_train", + "prompt_sha256": "127be34d0aa416f65b502dd4cc6fba1c4ceb224e6cd1a5aff3d3afad2aab3fbe", + "gold_sql_sha256": "07e5330e9e3c1475763e0cedbcd4f2b29bf10551f2c933f996e7957638830f6e", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7747": { + "current_role": "paper_train", + "prompt_sha256": "07a4725ae140960830028248fb1f624e6723a699bafb8f953df33dd22779b9dd", + "gold_sql_sha256": "38c83721868ad031a5e4407d4c3ba49e6349f1e1a9e0b04d3c4ca11742cba343", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7754": { + "current_role": "paper_train", + "prompt_sha256": "845465e812dde65da29cb15920effc26cec327c35580bf2d8e0d8665abe09aba", + "gold_sql_sha256": "c9311aaff2e48f906724a4cb6dd419b26f5c1acd60a330fe4fc6c2d20238ac12", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7756": { + "current_role": "paper_train", + "prompt_sha256": "d744dfa9d99edadd4e387c7a919f029a2694c07cf9e137522b69e2d3a24f320b", + "gold_sql_sha256": "65fec59617b4fbadf6d4d4e63a332fea25979a06bfb5dc2f44f35082eaf4a8d2", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7764": { + "current_role": "paper_train", + "prompt_sha256": "5cbe4e4bf360b4564517559e7f6aaa1aea052fa9d834ec8cd4b61752d119018d", + "gold_sql_sha256": "d79ab07a3b6c74586dbe1da70bd5e44bcd1be97259e6842318cf9ab97946aedb", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7811": { + "current_role": "paper_train", + "prompt_sha256": "7ec22e5ded61231d8c0551cf20077fd7aafc44621e0e9caea125377f1a259b2c", + "gold_sql_sha256": "019d13c717451ec73622b8f8dfbc9a628624847fe95e51115b8e4c56329d4e77", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7881": { + "current_role": "paper_train", + "prompt_sha256": "5fd53f60a5c3321d77ce056f410dadd77cf085a41158239f1814a93413196282", + "gold_sql_sha256": "c4d1b0f3419aaa0d14789019bb8b81739c9537804d3bb57e92ce6d2db1577b64", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7884": { + "current_role": "paper_train", + "prompt_sha256": "911768d83616b47558287942ca051bcda7442e519995e13f2283603543976de6", + "gold_sql_sha256": "4555fa66be73c5a694f801296dfc322debb8025d6d92a68e74b26a94385775e9", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7886": { + "current_role": "paper_train", + "prompt_sha256": "149fe085b762f7597ab4038f1952f136913f1020530c9d06beef7e8bca8fcb51", + "gold_sql_sha256": "db412113ed42394780211d16000d4877803669f0c1f5cd7c5ce39874c604ae44", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7911": { + "current_role": "paper_train", + "prompt_sha256": "5ec5482cacbca3a73336dc68e92ab1e74339f4ba1420285545bc718056fb23c9", + "gold_sql_sha256": "28569b18a22438e1c65429377a1039e626e6af0092ba2b8476a24a60c88f63a2", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7960": { + "current_role": "paper_train", + "prompt_sha256": "45d8a55d26c21b4d44d44a4459cef82b44ccc4ff24b10d5bcd1f8b684d4a73c8", + "gold_sql_sha256": "61c53226e425592344e538e3283d375c7434dca3dbac1d741c4aeffaec6c13ad", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7965": { + "current_role": "paper_train", + "prompt_sha256": "b7a3f71551d5fa73f2d3fe5609082ddeffce12bf78dce981d600711b99319b44", + "gold_sql_sha256": "89564b1d641ec46b924a82368b33352394105e6ce41afc81b291bf062de89857", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7995": { + "current_role": "paper_train", + "prompt_sha256": "eb9ac952bc401539c5a93be6462105c77048cb8fcfd5511e2dcc76ae0f10e36f", + "gold_sql_sha256": "1327ed4c2e4d144bd61863415d2da14f07b16375c4414c1895a2c3a1baed7676", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8036": { + "current_role": "paper_train", + "prompt_sha256": "7e686e43c94083b2696eab5c605a30dd7b992c5129576ba86dae0eaca6cbca03", + "gold_sql_sha256": "9c9d7ec0a254b7c972338740e6b8bf59421bb759a974a099aaa81203ebf7aaaa", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8064": { + "current_role": "paper_train", + "prompt_sha256": "344fa452fa6758a58d7c23b611225389a944dadc9100a0366b9ecd294d566e0a", + "gold_sql_sha256": "f95e8420e9bac01fcc41164683dffc256534311aefc1b5e93c7447c4814d4661", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8081": { + "current_role": "paper_train", + "prompt_sha256": "3822744e65b756286851934cc2f157bf2a15418a66344e2c7824b788c91f078e", + "gold_sql_sha256": "927378abfa13549e949f0781f5309c6184350253d02063d63a70f931cf21208c", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8119": { + "current_role": "paper_train", + "prompt_sha256": "c17f0c8091c852c77df27f96d9584e69501145675f6e9681debdf7fcc7f35e99", + "gold_sql_sha256": "a1acb11fb54736a294ca4d35625f2ac905579929a5cb8e87f3c308bf874b291b", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8123": { + "current_role": "paper_train", + "prompt_sha256": "3c6c97491ce296743e5e8133ff698f113c1569b481d4d947694a28c181bf4a6a", + "gold_sql_sha256": "27fdee80d7de757d9c1c812a77fa208e23e854a3f6cc68f6eb4f4ab37f943f9d", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8140": { + "current_role": "paper_train", + "prompt_sha256": "ed80dbc33018d9651cdbc0066b6353cb2af8f5f8ed09d51268488daab1a66287", + "gold_sql_sha256": "46cf1660767ac9211a7052e9f9fcaa54df2a279c7e77d3e8283d6d402550aace", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8158": { + "current_role": "paper_train", + "prompt_sha256": "7ea034bab7496c7b5c0791e6257a9fc90471a5c4296778f8776c35ac03110ca3", + "gold_sql_sha256": "8c2970e853e57a968578d8ab03648d6b7271778359bbb45b7575eb06390647e4", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8213": { + "current_role": "paper_train", + "prompt_sha256": "039fa2b8e2891a909f2fb8fa1373e68fc2312567cdb229cc466c8dc1d8449e83", + "gold_sql_sha256": "f0e2399acf9e5bd3750b4dcece176d544a6f8f8dc47fd31dc772385d7b3b40e6", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8267": { + "current_role": "paper_train", + "prompt_sha256": "f60eb7ec1ae6ca75952961fe7a01d55d62e1117240c3352ef1cb761d5946a72f", + "gold_sql_sha256": "91f8b1774038e0ed8cf2aa12f26e5cdff497af087457fb91ef505d98cc653c17", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8324": { + "current_role": "paper_train", + "prompt_sha256": "6866ebf2deb37687ce3f8ab505c61a6650171357a7bd0b44ce4f5cd23cfcd55a", + "gold_sql_sha256": "8f9441d3795fb6da02314e666af55cc28a5ab305cd2dccda00def9a76a404cbc", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8329": { + "current_role": "paper_train", + "prompt_sha256": "11d69c145815010549c7fe20271edd7b4ff23fc93a6d694a8e3282eaf7345b98", + "gold_sql_sha256": "3fc62c9cdffca23ae70403a99ce702f93cb04b6382e977c3acc0b23362fb5b65", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8368": { + "current_role": "paper_train", + "prompt_sha256": "a38444b72b6393c80e90425f2f59e53a0b85f198069f4fd6fca2bd7ce3371824", + "gold_sql_sha256": "d227aa5b89d4e34984ace771c9892de346c8301ef468ebe64eab1deb492623d6", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8394": { + "current_role": "paper_train", + "prompt_sha256": "f4536b52a50d4adcaee185a58b791fc3276fe9e191d91d7288b1257ab828934e", + "gold_sql_sha256": "dc634438fc313bc8b47f4f43c0d6598480ddd04c63f158532b4c9447bb83d852", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8416": { + "current_role": "paper_train", + "prompt_sha256": "e815a35ba25cb48ef2fc7fd8b72fc8c42e3c4008a30663ec8265d10ce712241b", + "gold_sql_sha256": "b81ca2f24419cd6d7b8912247c15f8fb1bb9897f702afe8a92fee6552f2cf847", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8417": { + "current_role": "paper_train", + "prompt_sha256": "512951617f1534d34b74c0f6534ed7596b3e16c3d8738016248c5c5314cdaac1", + "gold_sql_sha256": "d60d5c150ce2cbf565445795602cd1c618b00765596722208d46bda4b0250d1d", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8425": { + "current_role": "paper_train", + "prompt_sha256": "c5b7456f9dca0145af8a485214ecf23f0bece2bfbe57b5d44b1c5e17d25aa1e1", + "gold_sql_sha256": "507be0d441ccffea4eec4318b29396ef36694ca354b4d9f09105ad4de260c9b2", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8448": { + "current_role": "paper_train", + "prompt_sha256": "48524f7708d49790edcb09b91e28c47ffe994bb40ac5488ff31fc5bbbcadd362", + "gold_sql_sha256": "080d7df1660abc945c0f60c3e21e534207700e93fe92e9b589d8faac23b12f4b", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8454": { + "current_role": "paper_train", + "prompt_sha256": "705f0fc2ae9854904e3f084966e921143048e07deca39d814733facf8ca338e0", + "gold_sql_sha256": "b1bcb72fcf1ea26a05e757e839e56dccd198c761bdb63a8b3bebabf9a8e379c6", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8477": { + "current_role": "paper_train", + "prompt_sha256": "728bac4940e7f195f5a8f43051b675c267e4b5223196901daf835efcfabf3c0d", + "gold_sql_sha256": "832421556227efbd072a08e09c6b3080ee67677d46c4b54166c0608ecf8947f6", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8486": { + "current_role": "paper_train", + "prompt_sha256": "1100d41bf55e48fde0d70d9e7cf4bd00c465e5f0197bf3221c48f38796d2a7d2", + "gold_sql_sha256": "6811dd20c4690bff3fb5f88d9df9b8ce23aba15b8a8a65b5bc5c2dd7cff204b1", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8517": { + "current_role": "paper_train", + "prompt_sha256": "88e164168704eada75fe4abe960bbc3c3207d45b6593880960923f772d093c13", + "gold_sql_sha256": "2d2712164b2a789a2f04eab197b59be0ee0c6bc80ef26c1bd9aae18b3982ef80", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8523": { + "current_role": "paper_train", + "prompt_sha256": "a175887d0a7718078b8318713ee83faa3ea3d96ebff58f4da1a59f6615724666", + "gold_sql_sha256": "47d42a1b237a87c32279bad804da62be1fa06653487ca410dbbd9200d8679899", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8572": { + "current_role": "paper_train", + "prompt_sha256": "7841d4c994056734811f54cc621aeb30fba6903cc0e2f38ec3308f9eebe82a6c", + "gold_sql_sha256": "456866dcc8aee781701ffa00f8b84d6afb29d50734b7b3e4229a51fc83321f19", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8576": { + "current_role": "paper_train", + "prompt_sha256": "81993d09b53c0bad42521272bf519dbe1e928100f40b2f246dada5d1459c9e97", + "gold_sql_sha256": "5850628bb89382e0cdee4cc7635add247e48aa7e1785dc48ae858d7de6aebcd5", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8619": { + "current_role": "paper_train", + "prompt_sha256": "63ccfcd38334ff704259c343f6ea02c0f5c1415464a529ba707591e29897cc4a", + "gold_sql_sha256": "15fade08dcba09933b46b75e7232bb506b6a83937cdd905ba0ba087b15556f82", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8641": { + "current_role": "paper_train", + "prompt_sha256": "bed3df88c1feb83caa56ec14f385c0e38227b6c1d00813facaeffbfc1abfce30", + "gold_sql_sha256": "17292f8e16d6eb89eca886d74fd90404daa26af253189bc02c3516dcce089a2e", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8654": { + "current_role": "paper_train", + "prompt_sha256": "5b59cd28f1f99a742ea42750fd20b685d19a89d17966ad1478f9d3086fd56a83", + "gold_sql_sha256": "b77fc1ab1cf55bb11c941743b6c130384b9778ec3ff682cae87f7091a4385f41", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8670": { + "current_role": "paper_train", + "prompt_sha256": "b549c3947744f107f5b517a2fd6baab4b6c5ce1ad4f9eea53c471c42575af34b", + "gold_sql_sha256": "da9b22c01b46ac2768677fd225f5b99de67854edf8368a8998582981f9366438", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8679": { + "current_role": "paper_train", + "prompt_sha256": "c2a91fefd38a8f4445ec3318b55fc46b384d17994001b751f228ed8d44784620", + "gold_sql_sha256": "3fe644de370e3cc2cd6def21009438b6012ac72237fa07fca35bfc9a1cd1e3d0", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8704": { + "current_role": "paper_train", + "prompt_sha256": "7a52bc633ea23ef5621aab9f18bd61d0833759798ea979a0abda3afb91e89cc0", + "gold_sql_sha256": "58f358a65623d16513d33a3d63226c0720d6fa6977a3467d891d4b4b77fd3a10", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8732": { + "current_role": "paper_train", + "prompt_sha256": "4c4f1994eea57aecc70ddf7fb1851dae7f87b98426352b46f19ade73aea7e6b6", + "gold_sql_sha256": "0aad087a2bf98a86092ad9f501b1cd426e578b3a86caae73ef3bfc99379bba17", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8741": { + "current_role": "paper_train", + "prompt_sha256": "63fb6113f579cbfe927444bbd293e1f3c50905fa40d2de57635b4910b4df2f36", + "gold_sql_sha256": "f8434d8954a300663627f3a032295759ec83344d5fb182bbedae0f2895629caa", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8742": { + "current_role": "paper_train", + "prompt_sha256": "97878a4f34e0a1c4fda0f638336fa7c9207d779093e5782c1e6c3dbc3495daa4", + "gold_sql_sha256": "27ac5656ac6b9aa0983b66459483f74cfc004774ffcc662a34433d4123188ef5", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8767": { + "current_role": "paper_train", + "prompt_sha256": "64758fb998bb5d5813c129fff13551ee26f55924d4ef223348e1baebe99d6d46", + "gold_sql_sha256": "860a87d847230b9649a34a7f4f9f66e37461420c581d888bbd321b5de5a08443", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8833": { + "current_role": "paper_train", + "prompt_sha256": "3137e21449fe551e44054ae9523dd807e23bfc320972ccf49fe9ce4914536162", + "gold_sql_sha256": "d725c61b214afd47325cbe246e0d6dacd472b6541005a7fa0da26f7ececc65d7", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8848": { + "current_role": "paper_train", + "prompt_sha256": "ecc07bf9a3f6efcfc3a7a3286c67ce1990474be20d3e39e40c56ed70f84d65da", + "gold_sql_sha256": "ebd7aeb9c59501304cfef18bb7fefbbdfaa7951b70a61f6686999c8b78daf771", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8872": { + "current_role": "paper_train", + "prompt_sha256": "346952d153e87021c270144208e5318633af24ed5209a76b3f5f9f6e30e483fc", + "gold_sql_sha256": "ee03701fa44a91af3cc9b19f3f83d537ed0ba4a553de651093ff70c43eb50dae", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8893": { + "current_role": "paper_train", + "prompt_sha256": "ce1289a29b83b0644e0f5c040819a11d59f69e4a7d3f6a758f82c848d6170ed5", + "gold_sql_sha256": "669c11cc42a2321c64b168ba5d62559946109a1c7bad45afb09c83ed48c286c3", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8966": { + "current_role": "paper_train", + "prompt_sha256": "5b00566e1307386467a7a2e056a1faf8046864b9842e23777f84489f1c0ce124", + "gold_sql_sha256": "51bf6307ae3656fb4174ccc8ef6e15482858c0c54415c3e4ee8d7007cdf05b70", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:9016": { + "current_role": "paper_train", + "prompt_sha256": "87bb722a236fe662b1f5d52cb9e5ab69f6686fb07166a9a65280079b21c43c10", + "gold_sql_sha256": "7f7cea374befa469390387fbdeb89f84be956f51cec6b96418ed9dfd0ad02b97", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9017": { + "current_role": "paper_train", + "prompt_sha256": "2c6d1c825c8124a3067c73f123806be7b0f5e771ac7ae700c557bbbcfb989644", + "gold_sql_sha256": "c0e449387975458b604e49a10d05134f85a107fa98c10e2bcf718be858f4fcda", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9024": { + "current_role": "paper_train", + "prompt_sha256": "dd66f04803ba3fd30d4411f6471135c960f7ef46f15889807e148f0d53652e7c", + "gold_sql_sha256": "1dda7b64b09217cb1a5cc8ed899f9fe44d51f89f6c6b00ae9e2011ef737f49fc", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9056": { + "current_role": "paper_train", + "prompt_sha256": "c68fc4c6282017a969fdb2ae3534e295766415b937bf92af811c68bdc8d90119", + "gold_sql_sha256": "4a395720fd9b38001f2b758ddf203b8c6727c95c57b77938832a245282f3280c", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9064": { + "current_role": "paper_train", + "prompt_sha256": "066a1d1852b090be84d2dd76d971442751221c886caa40e1ee7537910e1ebcd6", + "gold_sql_sha256": "4ce0b85292955ddf230417480e998f20282f1bd45f48073875c2d2090f98d14a", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9066": { + "current_role": "paper_train", + "prompt_sha256": "a457bdd55ec45a44123d4642fb7ec28c133ee88be3efa283bb580ee6dca40a33", + "gold_sql_sha256": "da33ee0eae7c23d02687aa79fdde525c376389c3b2a2ff94ca21daa988546140", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9077": { + "current_role": "paper_train", + "prompt_sha256": "e37e19c1299505141ea19a71cc79e0fc55d44dc552f2ecc4d88625db9c3a5e78", + "gold_sql_sha256": "21a750c80630c48c239a045bb60832eb8c96b68e68e695051e14ecf19370130d", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9141": { + "current_role": "paper_train", + "prompt_sha256": "a1d4c57ec6f1d2dfb585d6ff1e65ee77cc0bbbde988eb919eacf7df0ea0244c5", + "gold_sql_sha256": "1e374436200dcae2ea5c723995c65124999d2e143354d95ceee2453c046e62aa", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9145": { + "current_role": "paper_train", + "prompt_sha256": "8e0c05e72f726f7bbefd88c15622a2a24c3aa0fb05b440fc63bd0d2eb8f8e806", + "gold_sql_sha256": "539a16f89f84abc3c3d0d7e25375bcbea45ada229739d7cd4cd56dc4906e1ad1", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9306": { + "current_role": "paper_train", + "prompt_sha256": "e7aa6d4a46d3b9048ea9849a2710687a8b337957da2b38ece101d3a45f5144f2", + "gold_sql_sha256": "ab484c7b5bb090ae8c1ddf9ab6a64af0d510277a22476e7aed0884876396050b", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9307": { + "current_role": "paper_train", + "prompt_sha256": "b0ad9893e9c1e896bce4b1589c55bb4bb8f9c1cd04bbec7cbad46e1ce1d87f34", + "gold_sql_sha256": "41b91167de663f346c3af1e34b14e00f766aca099a696c26f8ab5e45cda334c4", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9325": { + "current_role": "paper_train", + "prompt_sha256": "cc0538548b2c007f6353c4edf3f42b9e44cf6ff46d6729062fbeaeb0cf4fe5cc", + "gold_sql_sha256": "057e2997114c05a8b13e8571f26654043cad17260dc05c1fe2f0f34eddc96296", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9338": { + "current_role": "paper_train", + "prompt_sha256": "684c6e482aa5090ce013401aa6de4c950672c0057904e9877d7b96b71a8fa082", + "gold_sql_sha256": "b91e028b5e033c707ee8713299c8238742e91dd637bfaf193508690356648615", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9341": { + "current_role": "paper_train", + "prompt_sha256": "74dad32350ffc513e8a25018716813b4d2d6ff47b20ab97da23928021a763efa", + "gold_sql_sha256": "3269abca5ed1d5a0853463b3b2f80c36654590c809746950b61e26633ac4ef0e", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9372": { + "current_role": "paper_train", + "prompt_sha256": "96f1767aa22ccf25b6b6d0f943dc587053598da5dbbb749496d95d25b3e15dae", + "gold_sql_sha256": "628c5be6008e2afe38813a5e8e4f738ce188d4bf58f470977f7c7856bac10ccd", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9374": { + "current_role": "paper_train", + "prompt_sha256": "c82d05e54f1db3430abc78520d5cadd4bc942ef7dd4480ffbb997feaf5156d11", + "gold_sql_sha256": "3547a663a7960441f742eee65468353bf7fb1e844701cc2682972f23c64f77cd", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9384": { + "current_role": "paper_train", + "prompt_sha256": "a70149d3f4298d4d3b4a3bc6ea38bffdf539027e0c8173615202d9f7d731174d", + "gold_sql_sha256": "6c7633b4a37d2a34f203b93fdb92390a14d1121dac2fc1c9cf0280e629ea32e2", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9387": { + "current_role": "paper_train", + "prompt_sha256": "f327fe838c75956caf7574f074478151f4cb9e49ea31efe3d7a270c74998d2cb", + "gold_sql_sha256": "40a49e7f0bf30f256cf15c08196bd01b449c6025698e78c14ac7df896b09d237", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9393": { + "current_role": "paper_train", + "prompt_sha256": "a2e217dcad99f1db486cea38c75f0ea972797b2c3c80448dd84fb201d05aed04", + "gold_sql_sha256": "d5a78d97a4ac52b9afc53aec9c0fee563bb8c3d40448acf0b15e52b8c6521b5b", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:11": { + "current_role": "paper_train", + "prompt_sha256": "9254616c34194775e18f01010931d39648afafe577462b8a9e4c5fdc89ab6810", + "gold_sql_sha256": "fa99798507fa74d8357d1f21d61c97d9d51eeefc50364fbd7e4fa69138116991", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:16": { + "current_role": "paper_train", + "prompt_sha256": "9534ca24b78805f3b43bac31b6237aa3faaabfa86d263cdd1c488e32f7d5535a", + "gold_sql_sha256": "e12493baf8dc0ea216d6bb876a431fbe9ed06c13352bcd5d010be5ae0a8477a6", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:17": { + "current_role": "paper_train", + "prompt_sha256": "f1b269eb2ed10878bbe5016a4e2b1b4eddc5bd07fdbdbc95cd45d034010f38bd", + "gold_sql_sha256": "d49dd39edd4598f2b57659494561f2b982b3e71834eef625143c7167d325a314", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:25": { + "current_role": "paper_train", + "prompt_sha256": "f09d9f9042c41d0e202e361c1468c455f84bdc33feb36b283a8f0a87769094c1", + "gold_sql_sha256": "4eecf3adcce21430e2c484947d191b8fb59b2736d022efe0a30389bba3eaf40d", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:27": { + "current_role": "paper_train", + "prompt_sha256": "98d28543eb8b4489aba91aaeede323b42a5773ebe7ed0d7e924ff597d464a7fa", + "gold_sql_sha256": "7607977b76f9f8e1868d70beacde3866f0d54a341d09a994476866845c1a40a1", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:37": { + "current_role": "paper_train", + "prompt_sha256": "a5cb1a0f640f25fae3fd1321d5dd181df43ded7bfcda061d4845b81c7220ab0a", + "gold_sql_sha256": "0630b9650db91372dc4f9a998b9d78d543d6fec6b4c3682254bc964bed872917", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:38": { + "current_role": "paper_train", + "prompt_sha256": "46d9b0c3bf1597df69662fca482bfead1abda4645ffa996f5e63a5e437369e72", + "gold_sql_sha256": "b31aa3a343be7fd7d78abdde6c056e3975c66c9ee3602cbb079fc2621f74f391", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:40": { + "current_role": "paper_train", + "prompt_sha256": "5014f60aa9954eea23b5d7c939fa003856b338777ed561f74d2a2f0b9f040409", + "gold_sql_sha256": "e54a2b8e03390642be0a691819f24c75c678168ff9b99bb23229fe574097129e", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:53": { + "current_role": "paper_train", + "prompt_sha256": "f0499ac3ab16e26b2db1f738ec63b33d7f12a33cfba9f39e0136a694759ab6c6", + "gold_sql_sha256": "61257996daeeb21a575fa17f0c6df6398c7e6e63d5cdf862a17d24ceecf9a962", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:54": { + "current_role": "paper_train", + "prompt_sha256": "b8bfc8eaf6e07054e1ab4992b2542430346b75be04ef95c240a651956ff7541e", + "gold_sql_sha256": "9945e03b09eb7805ee3e189db324842f8c0e09f223519948d2dfacf1deba0655", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:59": { + "current_role": "paper_train", + "prompt_sha256": "c38a0cadc92e9b52afa1fc242f2d28e1d74cb5acecc3ca4ab13083cdfa20e570", + "gold_sql_sha256": "5ef9e8a288adc12087abcf42b198c77e3d4563696fc8128cddd2d99f29d64c4b", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:64": { + "current_role": "paper_train", + "prompt_sha256": "927cfec83d579f37f4dbd3b202251bb840518397f53f65d63cfc305e3e5738a8", + "gold_sql_sha256": "9330f7cc00656fadb4dc9a85de6975200b831904dfcae00dc5b833360d0f08f5", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:70": { + "current_role": "paper_train", + "prompt_sha256": "4d718b7c0b28d8b4db4b29911759c757ac7aca1a876fe9c9f22723b3dd8cc9fb", + "gold_sql_sha256": "6a61fc72825d299a49ccbb4e67133aa39293fbc3903225a6a641967472f25881", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:78": { + "current_role": "paper_train", + "prompt_sha256": "f4c34487f7ec028e67c38a1f72b65fd06c4f281e78eb398e46c9d382025e7c83", + "gold_sql_sha256": "44569ece38b16c485eaee9a123b856efd73ab831d8577bccaef89d0dea651ee9", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:81": { + "current_role": "paper_train", + "prompt_sha256": "3d9379325b964342307b3632f86076d26c703daeeffc1a30cd8ff63d7c1d1864", + "gold_sql_sha256": "31cfa710271ef756d2031eb1c435eb849b4ea15f79ad3ea6e4b22750231ae13b", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:94": { + "current_role": "paper_train", + "prompt_sha256": "17cd86dd7ac0ff02ff370a602981f6d85c1f6c2971bf6b726bf02b5aebe4dd7c", + "gold_sql_sha256": "7c7dbb2206c871517b21b8d6fe4d1e2844e12211c67f205341c50102b77ac7de", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:97": { + "current_role": "paper_train", + "prompt_sha256": "739300b5f7722ae0eb46a766cd0c970ae16e85ef383f0eba6cc1dd79b694f534", + "gold_sql_sha256": "df9b51e1318716180a7dae0f878f94b0807441a192c707045e459b92e858a703", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:100": { + "current_role": "paper_train", + "prompt_sha256": "559240e6e0c5024362ccdf6fd01d88bf04e299d146853b56c446f6ceff891b97", + "gold_sql_sha256": "43af48a42fada759f271e17977988ac062475100783542f21c13d1e2896f67c1", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:101": { + "current_role": "paper_train", + "prompt_sha256": "60191658e543bdd8f98d0b701fa02c95c1a28be87b221242281263c823e3ce94", + "gold_sql_sha256": "075a48151e2b1b9e04d2800c13c7d6792f2273a8fff5535eee66489bf0da7945", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:134": { + "current_role": "paper_train", + "prompt_sha256": "7392d632970f96f5f1c39b7af5e26d4e2424676d8e1b9ff9e6ac122e9207ee55", + "gold_sql_sha256": "7c3c87b6cfdea8257b16f6d146ebc162bd81f4af3620f86d08666296f8422bef", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:147": { + "current_role": "paper_train", + "prompt_sha256": "070f3b24320a080d8d01329c18cbe3e1ec90e942289bd942ba71e5df9df3d49b", + "gold_sql_sha256": "c45e4ae7d4d74e951ad2f03ff12482dae5506600efd9215d97c88168e97c7c79", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:150": { + "current_role": "paper_train", + "prompt_sha256": "d7ae531387739e370229a1b76783a7210ce72772011308707341b2f33da247f6", + "gold_sql_sha256": "224d022e8ee7607b26f4e37f21e238b9e110285ec747d0d474e90307cb6a3e8c", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:157": { + "current_role": "paper_train", + "prompt_sha256": "74b3c80555552cf9fc778069d0d01fa65748af953c499a9eada9162c82f4ad98", + "gold_sql_sha256": "94971a1884bc7b4730b85ba7c29bf89dda70264e69ea17327e5133cf39e43853", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:166": { + "current_role": "paper_train", + "prompt_sha256": "8267e6046b99f9edd999b5b870fe5afff6c9a09b71eb214fc7b10d9c31c0977b", + "gold_sql_sha256": "2eb390799f35c47fdf9b2f1be8a930fc34ecd0acbb0084c8c715a98dc0ab73d6", + "database_sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "revisql-train:177": { + "current_role": "paper_train", + "prompt_sha256": "2b6a10ccc01ec372660b778fa56232b321098940df2466deeea6d2af920f66ea", + "gold_sql_sha256": "6cb3654e0d6b5630b4415d3f680d068b3fb0c57ff416557f4156cfab84febed6", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:181": { + "current_role": "paper_train", + "prompt_sha256": "2abfbec14c2700c955af3c08688947ecdae5887909e932853a88b65c0bee3855", + "gold_sql_sha256": "c08b9c12c2f0d10156d4b5da9710f3715a47cc0d15e90c51af46adc33e44b1d2", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:182": { + "current_role": "paper_train", + "prompt_sha256": "af534e6d6a8ab03f578e45b9655a7396335f3b8b87717b4bb101663e38d88aa6", + "gold_sql_sha256": "bb061ea0eeceb5ee10fed49301a778c7073aa9fa7aa98695f243c7c40d992959", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:189": { + "current_role": "paper_train", + "prompt_sha256": "0ebc837717f182fa6738df52523799536c32f3dfc6e8d8e452fcce26d531e12d", + "gold_sql_sha256": "23878065135936eb91374282fbb785c13945eead8533a6b2df2c776ea641e958", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:206": { + "current_role": "paper_train", + "prompt_sha256": "74a632ddb95b90161ff02e4793256285ddf2c9badbfbe447295115d7a7e5584f", + "gold_sql_sha256": "67b9a6a58593089cc770fc3da7153bb103157bf9d76ea549a9a86ac95eb9905f", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:226": { + "current_role": "paper_train", + "prompt_sha256": "574cb5c84e7af9b3790b2b46edca93d50b03dcf080f66b2c5e40bc69cb0689fb", + "gold_sql_sha256": "3c37a344ad2d8364d3418302a4576d75f4829549d56722f10e5a0f0b4c9f3cb1", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:230": { + "current_role": "paper_train", + "prompt_sha256": "c1bbfe0b977995f4a35ae9ceccf6fc120b53a6d94ab90ea7b27c46e4c15db80b", + "gold_sql_sha256": "de959b688bb585e60fe282895d56fb0f38dabdb94cbcdf4396493d8500404b76", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:237": { + "current_role": "paper_train", + "prompt_sha256": "cf4a0bdc4771678914439be20ad8a89b3f121b6508e8d3ee36debac1e628e781", + "gold_sql_sha256": "ebb906918d96b903708d49dc9775d1f7c00853093f14590acd19fbf25aa76b3e", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:240": { + "current_role": "paper_train", + "prompt_sha256": "9da9e45d35f1e313cf22ccbeaabd31fb01e9032931f543f75d807b2b1235b495", + "gold_sql_sha256": "deb7995dd1dbb003ec9b5d0270cfaf4728842b2e10830c3e9c572608e818c5bc", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:241": { + "current_role": "paper_train", + "prompt_sha256": "2a22ef8f60074b7aaa00b60a8c0b7286e17c59881b96b363b218cf67ba15081b", + "gold_sql_sha256": "851c1e09d17351132bbef07c958644f733f9eebf4b41edd08cc7771fa33005c8", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:263": { + "current_role": "paper_train", + "prompt_sha256": "08bdda7783f0f61ce236e760217c9e5aaf9a5baf7077eff093500a76f5c2ebf7", + "gold_sql_sha256": "d3c6d6beb0680f555e57619b9795b5321f4b2c17a1160b09cf8cceb9ab276805", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:273": { + "current_role": "paper_train", + "prompt_sha256": "aa952182e6cec32ec973f7dc8e72380be5efbf921175049bd627dce006f8f314", + "gold_sql_sha256": "62eabeed15505ece65d0822817754a93f400e231368c145a2af4b939c76adff0", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:282": { + "current_role": "paper_train", + "prompt_sha256": "480a79a97fc0f8a3e21c9c9624f70b67a1c7aa7a4a70ce332ff1870eea7cc642", + "gold_sql_sha256": "3751ce0a5ca7d0c3a851946d3ffad079b8b7f1808d1129f98a05b9744ef9e69a", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:283": { + "current_role": "paper_train", + "prompt_sha256": "f0d3ada2b216c2a853208fd28d92bb12a5b3b0adcc50eb355bd758d1192ee62d", + "gold_sql_sha256": "3b73cb82f1bb0fee929c6da2011173cd99340e1016837e3a7d06a944812e8ee4", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:310": { + "current_role": "paper_train", + "prompt_sha256": "63535f5faa4ef3c532866c5aca1392ccab338805bac13a0a70de0568698ea285", + "gold_sql_sha256": "937f3ab3fc69577a844adf1684ab251800f2f4fdc8e8240c09b44c97864773f6", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:314": { + "current_role": "paper_train", + "prompt_sha256": "845a5ce945c69c0f22b89d8cd7d3138cb2c5b1f4b7d2d640ea375fd1163dcf66", + "gold_sql_sha256": "4788605f8c01d4680e549ab14f2e0990515e735b30fa15886979ba7a3fc6258c", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:323": { + "current_role": "paper_train", + "prompt_sha256": "440e9b0caac72ea89b1f673b9b4ebe3e18867c0ca01fb36f48cc5cffc67e0645", + "gold_sql_sha256": "41331c403cd72f7ad255a52697e494557cc72e17794bd6cf6c706d4da86c0247", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:324": { + "current_role": "paper_train", + "prompt_sha256": "a2c00e5506be362b6c64aaf9459e4d8e2a062b6fbc8237c36d7c73e4b27adb29", + "gold_sql_sha256": "7d8e7a2db8a72297230c29f1f44f67c08dab420a7a0f26e4db99e2a1aed9d850", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:337": { + "current_role": "paper_train", + "prompt_sha256": "e750038aa3410ba1080c2db39b5ec0ad1ee0763898877b9e010539e34aa7ed7a", + "gold_sql_sha256": "c2ff4dbb509f25e437e649db0b32a7e6d06a26edbb81bbe679f4c923211497ce", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:339": { + "current_role": "paper_train", + "prompt_sha256": "365cf68814044259b12d9298ef54a27bc714f7277bf5bbd9a31e5f6a1b76c4fd", + "gold_sql_sha256": "21687538c413bd4bdde72bc71fa9b5d9d5e6560ec24e28ecb02b0d142edb267c", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:340": { + "current_role": "paper_train", + "prompt_sha256": "435fa7cbbd39958649f8f7806d8013d6cbea1fc6d28f18e48847cbb4ac056730", + "gold_sql_sha256": "2d9c7057ee351a9bf51454ca71c4e8f1f68f5e70141d783e2cc4872dffce8639", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:353": { + "current_role": "paper_train", + "prompt_sha256": "49435ca9fadd341fb5c00200ef4f743ec166acfb85308028bc18297fff207aa3", + "gold_sql_sha256": "c0bf72b88201c6cdc1eab24cf4ed81a71bb5c5fcb19c0719ccd92aeb2b45eba4", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:354": { + "current_role": "paper_train", + "prompt_sha256": "f57a7c471af08a16b41a0b52966f59f069340630a3961c914ced5540b3509a54", + "gold_sql_sha256": "3662f263acca8c7f1fe7ae7d1dd36481b5a9524fe1dcba78bb8ed0aa11b7d11a", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:365": { + "current_role": "paper_train", + "prompt_sha256": "01dfa44069c32af47b1a08333d09694e4ec3f7fbc43dae1ef69e5b43f36191ad", + "gold_sql_sha256": "8fdb2ea30e1d111e77b482b03cf21c9db06542b2f790ebcf79d6739b47cb5e2f", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:369": { + "current_role": "paper_train", + "prompt_sha256": "8c48a265259d01a36870db9b4836255e3063259c37779140de1cf9a977dee827", + "gold_sql_sha256": "1368239bff694bdd91984552f5b5ab95bdbd57a8467a21139bd1f342107a8608", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:371": { + "current_role": "paper_train", + "prompt_sha256": "e94cf4426976866dc3b2dcc419238ab3cdce6e5d04c072d799d9bfbef7323c4a", + "gold_sql_sha256": "748bcd36ce41396824a30ea1096cfc2877f2e7c39cc956fca22b0a42796a2d94", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:376": { + "current_role": "paper_train", + "prompt_sha256": "5943f6603bdb8187454e8fa6252f60b2282278557ae70ae6e663cafa31e3f25d", + "gold_sql_sha256": "623b44aeb74e2e092792c2d76b1a5f83181f02f968ce1e83c79f287f381c7f58", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:380": { + "current_role": "paper_train", + "prompt_sha256": "70b6651ea202db8dcf84ff0b1696f74c5df91a205205f3e5f349c593d522e8c4", + "gold_sql_sha256": "eb05e12c61477d5b0816ce495b1d4d857fab23e391e45da221f8339657512fc6", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:385": { + "current_role": "paper_train", + "prompt_sha256": "f49bb74d543c0db25e7c5ebb45d9da058618a3252941a470fc2684576743af21", + "gold_sql_sha256": "de7b745acb88189ac336041711329bb93d944003f4a081966450587995e23bde", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:388": { + "current_role": "paper_train", + "prompt_sha256": "f9bbe1d38efe49d95b76e218aa335b8e8615c33457f12b1bda801500e08f1d4f", + "gold_sql_sha256": "f6ec970b951cd4851034dbd92341c9605eb0decb59f2a88a244f70652a5f4cd9", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:402": { + "current_role": "paper_train", + "prompt_sha256": "f3d27879b8cfc8805723f0d71b4d4afbcdc91b73d1db31c2bc854610934e4768", + "gold_sql_sha256": "2c69f0a15f57fabb150ed92d26d3d3e6d7a212b38554307e5de67e189fee3b84", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:406": { + "current_role": "paper_train", + "prompt_sha256": "3ced6ec1181ddfa965659abfa4e19d6750a9d2792f7061066e70ea3fba43dc25", + "gold_sql_sha256": "094e205165cda9118d30ace58fc3ece40304453313052da8991f0b352389aef6", + "database_sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "revisql-train:408": { + "current_role": "paper_train", + "prompt_sha256": "f442d00c98b731ab3654d572ad744d2f0cc8c42e3e1541030e91b174d01fcea5", + "gold_sql_sha256": "ca8383006b97e2a3406c4ec0fa79f59d3b871e7bc7f7c506e507bd17d9229a9f", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:410": { + "current_role": "paper_train", + "prompt_sha256": "5d8005e13038f67db79fef62f6578e50d9f025f61d5ffd170962bd980270530e", + "gold_sql_sha256": "cf855a2a1a1ef9f3b24c67af9464a33aaad399716767b69863af7192d4cfd4a7", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:412": { + "current_role": "paper_train", + "prompt_sha256": "5c817ce51fb7cd30416697e5fa1b07be8501ae1c8c0b9fba1890e9164ec83dd3", + "gold_sql_sha256": "ea7f1195eaa53781c63c22d32f0ea03c6b23b6d99f2594cb58c828ab388dd9d3", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:414": { + "current_role": "paper_train", + "prompt_sha256": "9f63883bcd150ad08fb0e558a3371ad84c7af52a223c64c9a33b4e42208cb28c", + "gold_sql_sha256": "885edb68ecb375a88180e10488afb1b7023ca2ded06271dd2738ac0f6a76023d", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:420": { + "current_role": "paper_train", + "prompt_sha256": "82dc82a515b890245bef32149c66d50353413791151a20f34f63a56a0fdc4a1d", + "gold_sql_sha256": "855b3561f776b3cd2d116d521c22dab843dc14e2cba67b55958e1292f6bce082", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:431": { + "current_role": "paper_train", + "prompt_sha256": "387b2b8fb670989bbf44ebffe3b3ec636d92269ac535734919e3959aec4943af", + "gold_sql_sha256": "f952d62b32279d36fc7077aaecb05d56a44c3f753222e0d28faaadffd560c123", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:437": { + "current_role": "paper_train", + "prompt_sha256": "d8ccf1ac77ff1d52c103a14a6e64125f6b8727fe83caf02aa0694b797b795944", + "gold_sql_sha256": "0d104042992df7a45517db1abcfec3f703dadd497f9ddda9296227889c819618", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:440": { + "current_role": "paper_train", + "prompt_sha256": "b48c7002a40fccb512bd3edfd084377a53d9dd6b8ae983ad0e5a43d1301e4a7d", + "gold_sql_sha256": "755b5847020b040c433f962c59a788480cb7fd024be52b0ab70cffa0378e0af0", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:449": { + "current_role": "paper_train", + "prompt_sha256": "d882fe3cd46b0a5c98bf0fe0cbdf9de97ba60ed79b270ee76aa353109537f92d", + "gold_sql_sha256": "bbb7be134b8cb39fd87f492d0e600a3bf97437222b00b953faa3eec1c6b029a5", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:450": { + "current_role": "paper_train", + "prompt_sha256": "d770b811f6cddb216f5a8d7da1ce420999999acdc7c535653512959b391ed468", + "gold_sql_sha256": "81b648b21d93ba6b4a078cd901266c6b02062b635cc88a547b60da696bb1c6e9", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:451": { + "current_role": "paper_train", + "prompt_sha256": "a450413ad4a23171970a7e6baf69d1a5686535feb1242037ab4f746f844080c6", + "gold_sql_sha256": "1d5063a8ca79b1f2e2d1df52cf7ff7ce0e27bf0870eb1e99c64ff7671bd7653e", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:454": { + "current_role": "paper_train", + "prompt_sha256": "df26b3c40cb57fce7b2a3a4fb14248443cb40347a76e2583d627c716565c2f5c", + "gold_sql_sha256": "12c23e11dab89b29306b87a6f2c7ee767ba54ed93ba281cb107e6f5cf86f0342", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:471": { + "current_role": "paper_train", + "prompt_sha256": "7d93cc7108707c2387cdf4594a6b2481a0fdbf2b3f3c0b9c8674ed31a70b9fa0", + "gold_sql_sha256": "1d7c956fb9ce965c63c4163e4cc7fc13e8e4913850f0e311ec805e1a72bf996a", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:474": { + "current_role": "paper_train", + "prompt_sha256": "bf3a6839cd0b582261d89c7b7fb406c1aadb8164afee1e701f133b10da3bed39", + "gold_sql_sha256": "572927310c894e8b77de396bebba294cb6b4fe614af272e0185bd584acf94f4e", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:478": { + "current_role": "paper_train", + "prompt_sha256": "4e7166f97fd5d116ebb8be8d13c3b6ecc5cbe3bb24b9ecb7406e3e9d427608d5", + "gold_sql_sha256": "973025f4b0f992fb9a1ff8737081ec7b5b03a78069673dae4ef5cc67e5551eaf", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:480": { + "current_role": "paper_train", + "prompt_sha256": "73548b481d90af45f80f0effc1db66a3d290d9ae0884881c99c013e1bfffbc0a", + "gold_sql_sha256": "4fb8b4be78c174bb25f0b2de3cf64ab91c121302906e411559f59897336980af", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:486": { + "current_role": "paper_train", + "prompt_sha256": "eacaa8782cdb6a15069c56f460d368d8bafb1aad04eb600a5447b9761829f168", + "gold_sql_sha256": "f78fc860062b342cb1e50efc7fa446789e4ea172f9e79c1f4467a605ad63da4b", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:489": { + "current_role": "paper_train", + "prompt_sha256": "b1953e2432be17e1eaab210171ad34520eaa775214476c35e9a46a57245a3dc3", + "gold_sql_sha256": "bf94b49046698d16462b65a4f0b907425d054ab429015cdf0760659905d99fd0", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:504": { + "current_role": "paper_train", + "prompt_sha256": "a0a144294d2456b81c5d2839e59357d23ed93e54eefee1591871f14b8976636b", + "gold_sql_sha256": "64c99be6fe93a599c45939dc4900194b5ba1bd24911178b3290057e1a7c79297", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:511": { + "current_role": "paper_train", + "prompt_sha256": "e9fb341e2a272eb02f35446040a9b90bc20133da26cdf6aa95caaf139afaedd0", + "gold_sql_sha256": "b0b16f21fcad9c14b8c085d560dce26805c09646f2ca1a638a82218cce95bb52", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:526": { + "current_role": "paper_train", + "prompt_sha256": "b79d6d62e9749542d23e5c87c62a8d5cd7d82dccdba4b0c5e357e88ce5f04077", + "gold_sql_sha256": "fa2413b9226cf6bc6dd0e961f35128bffa5c2b9e6c08893f8dfb5c0e3f87a85a", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:535": { + "current_role": "paper_train", + "prompt_sha256": "74fee3fc6661480d91104871976acab5069741b7fcc5163108a5d3c3f11d1df7", + "gold_sql_sha256": "728f2839c039055fb1c3aa629879cfdc96a793ea7aed73a2ea0ddc2f4651b4e0", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:536": { + "current_role": "paper_train", + "prompt_sha256": "ae7084e689aabe8bff51c1a4131ddbd9459c81d5d9ecbf4abcec1b5ffebd09f3", + "gold_sql_sha256": "54bd363b9496ab2610a7224b4297ea24f3f106e20a5bada98e14fc04b823cacc", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:546": { + "current_role": "paper_train", + "prompt_sha256": "56a4cfe68a6829ebf44d0058336705e556a4e7eb69ff59bdcd0260c5cb5e9c8e", + "gold_sql_sha256": "7324c9b5c083752f284c1467a18317072b594d409cca355e63808d3020740619", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:555": { + "current_role": "paper_train", + "prompt_sha256": "a2f5fd55bce7d802677b200dff3768aa631f52bbe91bc3242dc6707650ad5106", + "gold_sql_sha256": "a41d60c27432f7217ef56ff2f33ce9d11162ebc6a9f896f32f0c6940aad676c7", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:558": { + "current_role": "paper_train", + "prompt_sha256": "552be6a61622da1f70ace15cd8ea447b49539755d94883eb1a6335e6338f1141", + "gold_sql_sha256": "45dea1e5b68c25854ddba6894da08e1548b0deda3f6d642d52ae87e8a655e2b6", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:559": { + "current_role": "paper_train", + "prompt_sha256": "66a21a942de5a4bd06413882d3d69f6590d69d1eb3f61393798c73558f719c23", + "gold_sql_sha256": "e7a8134b86ab3e3a0b73e6d88c4c8ea01073217b0c6fa3d85ee2f07265fc8dc7", + "database_sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "revisql-train:566": { + "current_role": "paper_train", + "prompt_sha256": "b4741e4630e3386a548296c048b1d8a61fc50a7003e95e890acf2991e69e3a6a", + "gold_sql_sha256": "aee29554672d2327b5ef6b3569b01fdbaf3ca3aca3ad340f5f26a7dad937d9f4", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:579": { + "current_role": "paper_train", + "prompt_sha256": "b5b3998b908b81cd68dd255f2eaae5d4626ad0ffdcf9dbf3558394ff0850201f", + "gold_sql_sha256": "39efc04650525c54ac6d20234f279a4266391d5225ea45b59231322cee621237", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:581": { + "current_role": "paper_train", + "prompt_sha256": "3e71fc4dd2193fe25dcbdbe33655f291bfb35a9ac5ddd4803843b120bf2271be", + "gold_sql_sha256": "61401e5a6a6b63d3f17ca1f9e46866d03b1661a8d308ef748014f6acf296816d", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:610": { + "current_role": "paper_train", + "prompt_sha256": "12381d7d2499613ce3c91ab4ef238bc7f0059b2051ab178e46fa15cbdd513208", + "gold_sql_sha256": "071e58dbfcc7a08eac0efd793f46f98f73e7bee4ff2f7be088296e0d4f4c678f", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:659": { + "current_role": "paper_train", + "prompt_sha256": "3e5a0a09b14d75542dda153be76d3ee9f64bfb20012222b6f48b7c2bf17da274", + "gold_sql_sha256": "3c84b33f5de456427fbf5a4a7c023ca584bf89feebf3e532324ca712dc66066b", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:675": { + "current_role": "paper_train", + "prompt_sha256": "cca4cd303efb6e40e1b61e847b69f24eb443c6827ad48fc766a73bce8a9bb7f7", + "gold_sql_sha256": "1bfdf92f546c4e08fbfe29b1e84a82c594b40f06e7f3f9884bf7dae1aa9d719f", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:697": { + "current_role": "paper_train", + "prompt_sha256": "b01916ed09a3492827ef39047acfd630a5dbbdc4c2be3ea87c591a22561d7836", + "gold_sql_sha256": "06521a5833c365d5260834e1d2c67da06348a8a7fe7852f962558d9de96f587d", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-train:701": { + "current_role": "paper_train", + "prompt_sha256": "754951d9927d339ffd92947c9892f6f2d4732b6dfef7adfa386c7b33002a3670", + "gold_sql_sha256": "bbfdbc454b115c82877f148e27f23616b6630a59aa72bc85358983d6500fac48", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-train:720": { + "current_role": "paper_train", + "prompt_sha256": "21ba982ee9af3b9254aa93cef45545240b3245a022dd7046345277aeddef2a89", + "gold_sql_sha256": "ba05eb36536cfecfcbf69ddc4665ed527a253dcce6fa311538a7e833a63028c5", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-train:727": { + "current_role": "paper_train", + "prompt_sha256": "7141017c53ddaef5d032d4fdeec2fcf6a1e23f2f1964b903584ef9b34efc1a2a", + "gold_sql_sha256": "98e3fa239bc9584d5d359a065765e505e79ba29ca2c6efee6f9330958c179070", + "database_sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "revisql-train:731": { + "current_role": "paper_train", + "prompt_sha256": "69ff33e2339ab992c57b44f672dd77077a91b77073787d278fbf32fa44b8d28c", + "gold_sql_sha256": "8d253c20af523a95c927b6064bf58116eea925dd182030021fb33fc1b1535b27", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:742": { + "current_role": "paper_train", + "prompt_sha256": "c2478155c74f38ba99a4d5778463e98470fd6b1662719a28028f8d132e1d99a3", + "gold_sql_sha256": "dfc17f267143ccc6a7e07459887702cfeb8ac664ab8cb055c95ed2205c726a3b", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:748": { + "current_role": "paper_train", + "prompt_sha256": "9aad32563be6b3769fbe721bc3f7649fed15733c9203bca9103d88bb580ee67c", + "gold_sql_sha256": "70a64a45e1a7ed4d6ac8fd141797395c43f6bdd447a43ae40991ffcc85f54cc5", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:753": { + "current_role": "paper_train", + "prompt_sha256": "077235d96ab4ebe23caf1e13a6395a6ba01c9089c4cb659ec406a7e37e4763fb", + "gold_sql_sha256": "d0a283b10134f710738817615dfd005bed29e95d46dc43c0da3198d0da113637", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:771": { + "current_role": "paper_train", + "prompt_sha256": "55110a8dbd987051dca3369fda72c4608c23e5197842a0a312c87cb477facc40", + "gold_sql_sha256": "36911d9adc2edbb4cd84612e5f6afb92dd93aa385839c4edcb1367e9af940be0", + "database_sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "revisql-train:783": { + "current_role": "paper_train", + "prompt_sha256": "28ee80f535551ef8f6c0b08d1c6722204909263236639fdd8caba140660b533d", + "gold_sql_sha256": "f2a25a4f2fac4fc153e5a453415d92f6f7e2ea0386cde0f9300de02f48da77f6", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:784": { + "current_role": "paper_train", + "prompt_sha256": "60b11913f85568ab8a2437ac75b531bb290ce182c5e06411ddf224fd20a24ba9", + "gold_sql_sha256": "8fa484b8756973a845e8b422c721e5dc32f2497b6704ce3df958ebde48729b5f", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:799": { + "current_role": "paper_train", + "prompt_sha256": "19e2e1e26d5983e21371cfc8636827f7b7602700b581225da6cd1bd403a9ecc9", + "gold_sql_sha256": "d6e17f1fab02b56743ca897d043f7cdaba1176a431e447ad6c190e5dfe790aba", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:801": { + "current_role": "paper_train", + "prompt_sha256": "700c494be3c0ef1b009cf9fd5ed87c07e92b86a67043d8939b10d1f22e12c3f0", + "gold_sql_sha256": "94c3492d176d1e4bc36224b760ecd180130aff261680253e1bd48c201a370b9b", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:802": { + "current_role": "paper_train", + "prompt_sha256": "9f592c1f2f9dda00d3fc83e16eb1fbbaecd02f0cbe58dec5d1580ca48fc92bf9", + "gold_sql_sha256": "1d2000c460d27048654165a1c410e3fc36e986b11834c55c4bf8b8aaba2ea775", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:823": { + "current_role": "paper_train", + "prompt_sha256": "f84dbe2b11ee7ea815110250e5985cbfb8ea8445aeb6308efd0f7b8e0cb323ff", + "gold_sql_sha256": "e7bc37d946bc4cf7d1d3844cce0ab5f36598630018fc77a123b4c6dc898c9f15", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:824": { + "current_role": "paper_train", + "prompt_sha256": "0e1b3b939c1b8d8511272bf45b970bbfb5d4273954b17dff293610bc4b007a31", + "gold_sql_sha256": "9bf43c54dbf3bfbc22d63d98203eecdc8238052dafa7278de515669ecf0e64d7", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:826": { + "current_role": "paper_train", + "prompt_sha256": "fa01237793b0d0e28aa3262a4ca9fc7a7aea84a56755f214714274decf4a8cd6", + "gold_sql_sha256": "9940efc9825a1584205456a6c753a9820421733dc771661f58c888eeba498195", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:831": { + "current_role": "paper_train", + "prompt_sha256": "71e8e81dd691d1614c7b959811fe2e9e8be40f9cf45ef287b5524330cc5667ab", + "gold_sql_sha256": "ba10d7faefcbff95f174e006acb69a1599e86d6e713bf4a27289b8d258e3118c", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:840": { + "current_role": "paper_train", + "prompt_sha256": "8105e0b1b0a556b7e99052099c7313a5b47fabbdf8ed3d5078799451fc930a4d", + "gold_sql_sha256": "f6287a8781359e0b91ac61871c51d1ae9fb44a16e31d47f44ffa890fa0906043", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:851": { + "current_role": "paper_train", + "prompt_sha256": "27f4d4fbf043545e8404552a63683722df571d144ff9211347e31d8d0b0af70a", + "gold_sql_sha256": "6e35bd02e8ddcde95d28fb22fcb61afbb5e0aebcc4d6c1e7221b4cc1b761b924", + "database_sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "revisql-train:859": { + "current_role": "paper_train", + "prompt_sha256": "91dff8cc070ff02f75cd356a1e7697eb01fda53123f0c5098baa9fd9bf56725b", + "gold_sql_sha256": "0fe805a442fde35657dfa51ec19f2b9f7369d4f45a331d83cbd83a40bdf64386", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:864": { + "current_role": "paper_train", + "prompt_sha256": "e341fa9ec9adf49bdea66d6bbc3ce2fc57fe92866b459cb43ab7a7718770ba07", + "gold_sql_sha256": "788a45e2f3c55162ec6f2cc88a118b6e92819fe5a04ee6343bc3806b63f13f78", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:883": { + "current_role": "paper_train", + "prompt_sha256": "ed384940641ce0d4c99bb5701f786250f33bf442109e5d12f2b094276e45b47c", + "gold_sql_sha256": "886d6eb525afc7fffa29f8b24e300d21c171f4e68aef52bab2569b1d57c71fa6", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:886": { + "current_role": "paper_train", + "prompt_sha256": "fa1ba5282ef324a9bc52e1b6e93ec6cacee160ea5a0c14421e6e6dcd7a5cc438", + "gold_sql_sha256": "f8f506a1f4a6156f6f634251f7095ed191e8897249bcac28a6e8e299a1c88066", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:888": { + "current_role": "paper_train", + "prompt_sha256": "d230f1be691da183a781f7153489ef5f8d9b43ab76da0ecce3ee2f51577e57cc", + "gold_sql_sha256": "063734fefdc70b855e0e05a7588976fd38b347654f36d636cec63108fe3e72ce", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:898": { + "current_role": "paper_train", + "prompt_sha256": "14f6a4565f2dac967d0a19ab4fe4859d795e2bfc0e79634b3834b2ad0cb83852", + "gold_sql_sha256": "bc592244e43ebeaa1cc7a7ce4a520e3b229be9abd6927974c93280b0628b84d3", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:901": { + "current_role": "paper_train", + "prompt_sha256": "24ab962f820aee4a03527711148b79be748308393fb3d06c7ed72e29b8dbb931", + "gold_sql_sha256": "85713f725be1636aa7cbca078c67ff5bd50b81bdd40c86156b79296376eee8ce", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:905": { + "current_role": "paper_train", + "prompt_sha256": "905d383d079299c44f38a6435829bb0b4bc04adc8d57c15f397bc8cd42f8d54a", + "gold_sql_sha256": "29bfa951500ca6248548aae358be34f37ad1d60116a37926909035592cfe9ed6", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:927": { + "current_role": "paper_train", + "prompt_sha256": "690a97cb488604aad82bd40a3a9d5bdb53eaa104e656844ec21650df041ce50d", + "gold_sql_sha256": "77102c86d5b3bc8875b8a3b5ca4cccd2d97745385b345f69dfce14725aaa0c2f", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:930": { + "current_role": "paper_train", + "prompt_sha256": "6641e2c389d525d4ccd98f12c8eaf398b1a868d3d04b25e926486556e0c29a38", + "gold_sql_sha256": "b26b7ca441e5d1008d8147a5e94d4f351a1db1938f6acb06a63897e0d93d84b1", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:938": { + "current_role": "paper_train", + "prompt_sha256": "ef44332abc76b3a1d514e1a842b280e07063be63c00640d2fdc2b93a1a4f46af", + "gold_sql_sha256": "a2366042e3694c5272bca45185fe91b4c869ac41768161e8ceae15059830f89b", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:940": { + "current_role": "paper_train", + "prompt_sha256": "f0c4f2cbb8fe570cadd6ae750897f3fc575aced16866e9f44a08ab2b1ca55a7c", + "gold_sql_sha256": "d0a81e7aa5dbf98ff2d2e6eaf6c08c7240517e0c4e5b67aabdae36f4ab29c90b", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:945": { + "current_role": "paper_train", + "prompt_sha256": "75946ec172424aa88754596639c9256d0720342ef420f401d242aa1acd90fa66", + "gold_sql_sha256": "5f0234bac7573c03147ad49834cd5611b0dadaf569a1b8b7466d25b9a880a89c", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:951": { + "current_role": "paper_train", + "prompt_sha256": "c4052266861b950d1478035cec66fd146ed4e3c21dda8e7deb7b9c0e28670ac8", + "gold_sql_sha256": "6c8d976189545b35dc80320354742c55af5750e6ac59aaa31eddd812523d8a1f", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:963": { + "current_role": "paper_train", + "prompt_sha256": "4690bb6cad3fc1ad1d98a8bd849d1b1f746ff53ab29ee726be5c6d3879cd1fb1", + "gold_sql_sha256": "3892dbb689537497326cfee09990f2c809bf9b02c0cb91c97b5aabc6cff27cac", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:964": { + "current_role": "paper_train", + "prompt_sha256": "a550bb0526f513d089f21163c0f0346dc0d1db3466224f6c05c184a034116f80", + "gold_sql_sha256": "8cbd90cd6c1a6a38ba73025f443512b3c2d0a244746e6ba8d1f3448b53e9ee30", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:969": { + "current_role": "paper_train", + "prompt_sha256": "eb016081a958851dd41b8c4bad7f47cdb11745c073c77342ae385d88c901f8ec", + "gold_sql_sha256": "aaba8037f4bfeb5fe297e4846b0b0575cf6e5a9553488e4add123f54fa72e3aa", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:983": { + "current_role": "paper_train", + "prompt_sha256": "a75c7e5fa26a63a269db1d166a76d3fe9d075e3ade0e8b640737abd6311de5db", + "gold_sql_sha256": "12a5c3c7b132e6e11f6f65c75f3c9fb139237cd92bcb29c63e2b97e0a35e6ad1", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:988": { + "current_role": "paper_train", + "prompt_sha256": "59431b614ed453f6d89e079cdd021c60819572202e4f13f26eabb855623f0a4f", + "gold_sql_sha256": "d6875ddc6c45307f32842c659b13f2162902224b3434196bd0a0b7c379ab9da7", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:996": { + "current_role": "paper_train", + "prompt_sha256": "f63215e5ac325233bbf99e01dcdce1b80c8e7b23bc36a389a9ca17f3c1efd596", + "gold_sql_sha256": "59ee483d2021f5a3ece74be8bf8d64be601c1a7ef464f1debc1d314c06d0e2c2", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1023": { + "current_role": "paper_train", + "prompt_sha256": "41f7943f4ce26d05f5976e8512e46c7ea82a94053817b309b1a998ee1cc7a9e7", + "gold_sql_sha256": "21e4be560b43a5fb890f3c87aec328c48576574037c4fafdad3903540bda6c4c", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1031": { + "current_role": "paper_train", + "prompt_sha256": "2802b4f4b68d9d3d2e59c31b47f85e64a91675632f2241d043b188eaaefb7aa5", + "gold_sql_sha256": "e07709dac2910d3ce6a439ffce8cf34122cbfd5a4a9cc0912118396de9f5eb0b", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1045": { + "current_role": "paper_train", + "prompt_sha256": "2e23dfc5d6587b39ad9c7db6e89e8928c7c234def9442f472c9df9eb79ec5131", + "gold_sql_sha256": "4b04aae8a93f7c7220ef084174d334052618f694afdab07346b37dac166ffbd7", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1049": { + "current_role": "paper_train", + "prompt_sha256": "d0ff5bae46530ac7563be0e17bfb36697aaa1e82d1e6a425e99b8655fbb0255a", + "gold_sql_sha256": "61e11d29c6eef3f16282988a75aebb9391cad56fbe7fe4eebb7788efc4a4b5d9", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1050": { + "current_role": "paper_train", + "prompt_sha256": "c3f2b8ab52b5d3bd20eef92937c03058e31045667dd16be4bb4f2194d12cbdb3", + "gold_sql_sha256": "0729ea3c3cba3dd8fc059b74f94e06867f8d9e8e658dac8116d18953542947aa", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1053": { + "current_role": "paper_train", + "prompt_sha256": "970f174ca13f49b338d317f0cba927f2090f1e175c6d716d9be7859fc6e02316", + "gold_sql_sha256": "673b0a1ab0d5dd311c6265615d091678fcda04f5272a477cc9d394d01aea0540", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1055": { + "current_role": "paper_train", + "prompt_sha256": "9d0c18e508ad08c61d4dd27f50f0184ebb04cb8dabc88b8e8ea921157ce9ebc7", + "gold_sql_sha256": "883e4df6e1ff0066570a0bd2776314d7e8f32977901ccf0696027a5518acd3b1", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1057": { + "current_role": "paper_train", + "prompt_sha256": "3105ce83ba66344fdcff05887482bbdc3af4b606395403dfe1cbb8481edea21a", + "gold_sql_sha256": "a074c4baa21015ec0cecc83a4414d675d133c9d318bb4b8ec7fcceaa1ab2b953", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1061": { + "current_role": "paper_train", + "prompt_sha256": "9bd910211e7954f1a551eb365625f17727238f7b97a9f85e0e1bc3c814f97bf9", + "gold_sql_sha256": "41850e8ce35ebb151f2850472b2671e4422fa5878d20c322d6430d15147d97f7", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1063": { + "current_role": "paper_train", + "prompt_sha256": "e4892ed2301c92f868b434c2cdfa5b072d532dc3c6bf62b1f3d304ec6100b099", + "gold_sql_sha256": "8ff48f90740b2c7a3d74559e94cf0aac0e1dcd8bd73de72f918874c8647cd7cc", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1064": { + "current_role": "paper_train", + "prompt_sha256": "9751fd1a4e8deb953958aeff05e5e38fb8c012e749d5767d58a5ee36b2d47a26", + "gold_sql_sha256": "e9e70e2bd4192fd0e94c3db7cb961f2117b892cc94cdf18c53687f1054535231", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1067": { + "current_role": "paper_train", + "prompt_sha256": "aff96ebd87c482809582978c49233ec1f1df36b302cbe8d19ddfda25fbe80d68", + "gold_sql_sha256": "994cb6453001d8a556aaf07654966ae79b49dd55451bd6f6a89836b89364de2d", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1079": { + "current_role": "paper_train", + "prompt_sha256": "df0337a1b9cb230f5589952b29cb3802c058561a2de0105b93f00de74f3af8f2", + "gold_sql_sha256": "bcc9d82a06908b330492339e81a6962e4bba2accc0b5d7969a19a1fd54c378dc", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1091": { + "current_role": "paper_train", + "prompt_sha256": "e4f2b3e0483412cf8b6ffe1e5cdd6e2de17a9ff10674e84213cbad95989907d9", + "gold_sql_sha256": "b0e28f7f04172f107e996ce32dfc199366c5f6b037ed65918a9ca99f5e2d771f", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1098": { + "current_role": "paper_train", + "prompt_sha256": "d65511af9b8d6f6466e70cdf8352dd3ce36c836027b1ee9e1e30fadd943dfd36", + "gold_sql_sha256": "444187bd5f23d9261a423f66ca01296839d502f152dd4097cdb6e1b79fa13972", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1102": { + "current_role": "paper_train", + "prompt_sha256": "bd7d989dbc211d9e5c78d93a4af92ee02e112bb3f3ae31e31d5ec4f66541dc70", + "gold_sql_sha256": "718ea6ea15bb69a99937d9003f66b470a1785293c5dcab92b7168548d8ed8418", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1104": { + "current_role": "paper_train", + "prompt_sha256": "a9231a6a8856c4bf1fa59fbff51128fd43d29b970fa009c169130e70eb0aeee4", + "gold_sql_sha256": "ee683ca4e088beaa7fe7ce9c2632fe28757d11a5de1ed36205319d884ff33ed0", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1105": { + "current_role": "paper_train", + "prompt_sha256": "2c590e4788d850acccffc2ae0744ce9ddf47b51b28999419236fdd1ed93505ba", + "gold_sql_sha256": "8899a61b88891b780b50e7090bbd6a7ce7a266575f48bae48bedd423284fb7ec", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1116": { + "current_role": "paper_train", + "prompt_sha256": "97c558d4f83815201b0ee1b81d2c0dcdc93568182959a72a9c17e2af9b9a426a", + "gold_sql_sha256": "7c51dbf418c26f7816a3d3fb549fedd973d45f6cbbe3328a9ae12e1b0509c793", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1119": { + "current_role": "paper_train", + "prompt_sha256": "560a6748cf4b93a5139e18e2d202afa204eb58426b3f5d573070b1f7a4544111", + "gold_sql_sha256": "c29535dcfc63c1c5fade1adac68ad812c4f6b52968a50cdaedf7553747a13711", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1132": { + "current_role": "paper_train", + "prompt_sha256": "4704582b3cd8893e370f9593a28fdd2500b6017cc2e4a3e4f15534279bc31c4a", + "gold_sql_sha256": "5762dc41d5679c24fd38feaef6d15aa0f2a452b4e61a7282d3f2ec71132dca96", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1133": { + "current_role": "paper_train", + "prompt_sha256": "1074b4e75b203bcaaff0e48eff61445bc6f02702162fee87f0c5dd2d670850c8", + "gold_sql_sha256": "357c1058aae9c4b1beca62e2cf70ee02da876292b6785a1d5e3920ad36ef15d8", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1135": { + "current_role": "paper_train", + "prompt_sha256": "ab2dfdfe95fba475812f06289c74a09c14797c368bb63a5369e9d39eda4c750b", + "gold_sql_sha256": "b85f437387f580868f1542a7619795468584533f90fd3ef21085a8ec311330a1", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1139": { + "current_role": "paper_train", + "prompt_sha256": "7938e87129231907ca7ec2ca92ccbb3e3920757a82ab1c641bf40cdc37935ec9", + "gold_sql_sha256": "c3b9a6fdd1a56b9de33405e17835354e58573269790b76592bdccfa8f7c70665", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1154": { + "current_role": "paper_train", + "prompt_sha256": "1c61ae407135c1a97f539274a3256bb08118f747211fe4cc28ae9f1a5d45df0d", + "gold_sql_sha256": "16732d90d7208d572287e3ad91b91158f1c99182788008c9194dd085a7b62319", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1157": { + "current_role": "paper_train", + "prompt_sha256": "88435b7bc44d74229324d614f85ecf202edcf4022b6a5063f060a6a6fd90e848", + "gold_sql_sha256": "b06a0ba12784f868b5677553c5c4847d622be88d6228ec2280c6799c5d532387", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1166": { + "current_role": "paper_train", + "prompt_sha256": "4b9b4332e64fff69b40109082582263fb07fc3bfa31be1a1d076203d7b91642a", + "gold_sql_sha256": "d24ac5fadabd035353c5b65eab6b2303cb1a5492a4b3c0c83d288d44fa0509db", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1167": { + "current_role": "paper_train", + "prompt_sha256": "db872ba065b71c74c82b70a07760bba47c30f1dc794f1ee0e84a7820356e29dc", + "gold_sql_sha256": "4c6657119f560d69adfb0cf4367ae0938ea259cd7dbb67ac204920d7aae05a5b", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1182": { + "current_role": "paper_train", + "prompt_sha256": "693363994bddec07c62811fe3e3ca2383932801d234f99448265facb381a71d3", + "gold_sql_sha256": "46e8aacc0159e475883ebe854376c52b1dd1774b80f1f2bd9cf6b521955d49b4", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1187": { + "current_role": "paper_train", + "prompt_sha256": "adc2b298cb298482c13c810af2a81f88b8a3b53d6d9b20f6ddbf927f8574f01d", + "gold_sql_sha256": "cbff893af4e5afa2c9b9486dab2d35b431f4f04528e347d5f9c5f8003d94edcb", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1190": { + "current_role": "paper_train", + "prompt_sha256": "4cf2eeac2059498836dcd22dcb6a7e73d9654853f6a2accb96aadf695ab879f4", + "gold_sql_sha256": "f838fc0cc8e7ad65afaec4a0136ebe53675f61896c469bcfa4883df93b5a06c1", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1192": { + "current_role": "paper_train", + "prompt_sha256": "f3905b6780dbf205d2ef7c5992a1e5f160ae392cb946f0739ff961d3e6ff6a2c", + "gold_sql_sha256": "97dfc02f571346a67a0443cc5b83fb6666de663b15dccd3979ffbe215186c547", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1195": { + "current_role": "paper_train", + "prompt_sha256": "e06a12e147a0c4756dcc4386b524360acbadb4b638e10b6b16d1f41a25edf1f0", + "gold_sql_sha256": "dd414f331e5acb938424f249fd4da46a4dc5e26b1fcf646cc46c7b8fd86642ad", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1205": { + "current_role": "paper_train", + "prompt_sha256": "8629ea771c50835b81185f01ad2d90d6cef59f6bb3bfd73287e69008cb9bb27e", + "gold_sql_sha256": "a64712156696c70dddaf4881f4531757c88082b95efcb1e779419e43e0e6002a", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1228": { + "current_role": "paper_train", + "prompt_sha256": "7bf37ce565f50fb341db3e9b8648767fcd3a05b64078c2f59c01b788fdd79275", + "gold_sql_sha256": "efdd75525123c7494bf4853570088702fe3900b7d7e99729b4713b31ff61c990", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1234": { + "current_role": "paper_train", + "prompt_sha256": "dd8eeef6cbc864fa7d4259599969c5788ececab5a0e0c9b27112b40558e97934", + "gold_sql_sha256": "6e15c923e75b98762c058d5efc7f3998555d02b29cd31ba6405fac340abf2bdd", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1235": { + "current_role": "paper_train", + "prompt_sha256": "26709acf3ca050bffed7f82959110625d24a8848e62bc0f7ea50ae0effe2451b", + "gold_sql_sha256": "fd9f7295ccb3dea4e50171af4bff9df0164112a838bd7c8b0d15ae68464028d9", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1242": { + "current_role": "paper_train", + "prompt_sha256": "dac7668a51329a3725a73109872bd93bb22b3f024259e83789c20551c841604a", + "gold_sql_sha256": "608b03efe78944aba4c28b825f7f8d42081565e99cd4cc4a5776ca546f2590e5", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1244": { + "current_role": "paper_train", + "prompt_sha256": "4aac4f73aef849ed92dec25543c43979ea99d3c9ac0ebfb554f10587c52b4bae", + "gold_sql_sha256": "c2918d47efb79f8ec338d1afc81bfcb61709f45e06852ae543a3565bdda1ac00", + "database_sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "revisql-train:1254": { + "current_role": "paper_train", + "prompt_sha256": "d9a483eb23e93bf833f02b546d924e6694a6880165a86c141dc4da11f41603c7", + "gold_sql_sha256": "e8002170a09d88571157c4ce48f12df6205e1501da1fe534698ba098aa8fb834", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1262": { + "current_role": "paper_train", + "prompt_sha256": "41bd0f112b9f5b4379f44e908e8342d25c7acb9717e25557351ccbca6dfc1c24", + "gold_sql_sha256": "24146512339e517a46896f0373eb53bc7cef6504b9bcfb945aea389d4a1d22cd", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1269": { + "current_role": "paper_train", + "prompt_sha256": "607a2af104316c0bd7ee29455c033caa066ee9f40dde643a7721d69ccaed6e4e", + "gold_sql_sha256": "0b91ba742017c65d505fe7098cbfb028761c0e419dd2eeec7f2345ec2e5f43a6", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1281": { + "current_role": "paper_train", + "prompt_sha256": "f9f3b398761f49893b7f70bd8970970e2c815b9ab5aa2350d2d9b6f2549006ab", + "gold_sql_sha256": "d2caca2b895cf16e26c4f3d281e76cafc35867c944b983fc0e024f9c27ace8a7", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1285": { + "current_role": "paper_train", + "prompt_sha256": "13cb87ac9f7880a4056dda5baff138557341b41370ba23e9faca822b8285078d", + "gold_sql_sha256": "87c1d5f171fc6bfe83a8afa7831dc21c061ca51e080cdaa0b35f1bf3361b127a", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1290": { + "current_role": "paper_train", + "prompt_sha256": "5c940c409bfcf1f484d91172cf14499ff37564a9ddea97966a5773d12cb15e64", + "gold_sql_sha256": "359bcbd54a288ff22071463be3582abad4a819114afb03f0467adeafbd679afc", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1293": { + "current_role": "paper_train", + "prompt_sha256": "7b361de749e94f346bd218ab4c8c53f250f4d3b27a24c70d828c56dd9c95bc83", + "gold_sql_sha256": "7e5c7cf152b996b3a0923768d4118d2de3b07c0121480190059564e7dfef739a", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1296": { + "current_role": "paper_train", + "prompt_sha256": "c4d35b197fa981c65d364ea5e808adab906ffa0c1ba2d693e809e97734029963", + "gold_sql_sha256": "54fc31acf082ad5ed4cd9c9c55a437f6044a9c56be854285589b0191abd0314c", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1300": { + "current_role": "paper_train", + "prompt_sha256": "66a1c23323927292fd1cdd3cc5e3761f2ce7577d00ddeca40a1d01c83acfdc85", + "gold_sql_sha256": "e72ab12759246223284bb9b621aad9504f7a6060586796fb0d40068df04aa7f0", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1302": { + "current_role": "paper_train", + "prompt_sha256": "b0b84b2f39187675b25baf861f373483539d9b30be3c43be343c6acddd0e0ff8", + "gold_sql_sha256": "b11d1d99e1b83c51d40d699dffc8580050d4c1d0f61cb6ce281bd8be942dfc54", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1305": { + "current_role": "paper_train", + "prompt_sha256": "236eb1657058935318e468b2988374f94c12e23c6d7fa8f9292c07f28ef62655", + "gold_sql_sha256": "ef126cbbe2c1151d74945a2f90b035afcdd18c072b563f1d91aa49c532cc25ef", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1308": { + "current_role": "paper_train", + "prompt_sha256": "663b2a38ce3bfffc8b1d26045e0011f1c5f1a98efb89eae424a4fecec15d2af0", + "gold_sql_sha256": "dc2f139552f02c1ce1aff18706a0e3c3284355f6c5c239505ed396418f714fc4", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1326": { + "current_role": "paper_train", + "prompt_sha256": "62e5452ce3e57c61cc1e33b6d101f4293a5490c5d41bd563a8b0fb91796abe37", + "gold_sql_sha256": "ef7ec3afd5640c0cd8c12a78b74a187fbb9eaf8358ea48d4b8fc07eb85825038", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1351": { + "current_role": "paper_train", + "prompt_sha256": "2d83726e4b5fa14bc28fe5468e8497f0ddc2f444c2cabe71844e57285fd63aec", + "gold_sql_sha256": "81d1bc0cfb676b45054ec3c2742dbc5bb23f44a06e7751db769e9111b9b62fd4", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1358": { + "current_role": "paper_train", + "prompt_sha256": "fe6a49a3709ca13d93ac925034df9a6ecf1b0b783274f0ae45df9f16be1fa6fe", + "gold_sql_sha256": "507946634fb0880e5750aec92c00812b537f4ae117a2b3b4bd17356c64216338", + "database_sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "revisql-train:1364": { + "current_role": "paper_train", + "prompt_sha256": "da58e7b9124c19b779cf3966ca272234eb8cfa4ade9149a5a85359f1af3fcc3b", + "gold_sql_sha256": "cb7c8f3561825e1ff8d3b640341be21b0c7a7b21b525c004cafffa63a72936d2", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1365": { + "current_role": "paper_train", + "prompt_sha256": "d8592e00921cc5547e18cbd78d2f73054157e08bf77722b2d41195967ff66f98", + "gold_sql_sha256": "ec31282124ea0843a4d12177e3a46c7530f23dfe1e515d489cc6a1700d70b9bf", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1374": { + "current_role": "paper_train", + "prompt_sha256": "b616fd384ef66ba8aee5ee2e83ad9a49caedc13b3726fb8f8e8c43ac4c6a5adc", + "gold_sql_sha256": "f8a9a21aae38372d3ea6fbe49a34339535c7af7b00001575a842bea6d0889b6f", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1377": { + "current_role": "paper_train", + "prompt_sha256": "b1dce0f4dadb46fc8393122aa5390dcb602a4cab1500a589aa47620021c7fff0", + "gold_sql_sha256": "f74eb9362a319b66dba245b1eeca73a1bbd4472eecf6fcc00c1471fa64ca9c64", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1392": { + "current_role": "paper_train", + "prompt_sha256": "644a8a692912c8c7c242c630271b216c55092f62f1f22f0ad80d2963cfc4ade5", + "gold_sql_sha256": "4f1b7c17da1897b490f2a29a5ff2dc69e6eecdbc0731ea1f310245772f309ee8", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1404": { + "current_role": "paper_train", + "prompt_sha256": "92a33152e57504a5178b5e58518bbc9c5c77b1783d6fe4116ed9545ad767d126", + "gold_sql_sha256": "32cd627c1014f96ab9bdeed17b3e18f649c0fb3876a32a004e9e154e423f8500", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1415": { + "current_role": "paper_train", + "prompt_sha256": "0fafcc12fe9c9f9cd1649a13b4ce22a642a805425a5260ddc31c8b55597d95fd", + "gold_sql_sha256": "91e2db1ee29097579cb4ec6c4c874de817d3c0d4888d73d74ffdd3b5df8e0f6a", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1431": { + "current_role": "paper_train", + "prompt_sha256": "6d5340e726c9ec0dceb77d28d394090bdaa4dd916aa72b09aff8bec127dadf16", + "gold_sql_sha256": "dd42316a794e77414b2093ce737ed497eb73d6cdba605d228ab93cdcf7107add", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1432": { + "current_role": "paper_train", + "prompt_sha256": "b6c5c86d1039bbc22c31b3928bab6443c50645c076012a8a88b8ba83fda4520a", + "gold_sql_sha256": "5bc6d651f9d4f304d8e28781b6c88e5b4530f68b399fd9fccdcfc1fc1698a92a", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1449": { + "current_role": "paper_train", + "prompt_sha256": "c30413df4a9df3c2c6618a7ecf0613b0495216b6e52abf1fa0f2489543033c64", + "gold_sql_sha256": "d66a687785c89739f64bce71153da788f7e45acfe2cb188e0a12e8160a6513b2", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1450": { + "current_role": "paper_train", + "prompt_sha256": "617978d8a7fc95a496f7ad4cad6f0e853fa91f2b6c48a9ecc43311a4b8c9da92", + "gold_sql_sha256": "994fcbe8d7e4e6d0d19810e63b708f5bb1140822f6042c45c9bedd6d571abf37", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1458": { + "current_role": "paper_train", + "prompt_sha256": "2e8dc7fe85ef9c502ae1573746365e9ba34ea493d613132b5035ae75f7b076e1", + "gold_sql_sha256": "18c75fc3a53950c250635008d3c253591452c553c9a6c3f70d6b18d866db917b", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1476": { + "current_role": "paper_train", + "prompt_sha256": "5d872cda07796d678e52431c36803439b8f6a6521021b445a72883b9cb9fadce", + "gold_sql_sha256": "be9095c1e5f3983c840fce38ef9e688952dcf49f095240c9e8eaca39f3aa2cec", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1484": { + "current_role": "paper_train", + "prompt_sha256": "adfe68de61f9e009fdc10a9e1090eca546c2af4b5024b2b81b59bb3647e731e7", + "gold_sql_sha256": "bfe8df5378662151ff77888ffa116606575df160425e77c8a46194271c72c5bc", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1490": { + "current_role": "paper_train", + "prompt_sha256": "3cf0155dd815bbdf3c97d5a829cc9d19af112af88513090e1d177e5f215c5d1a", + "gold_sql_sha256": "5b6ac7e8a6ed48ca9035eff7f882f2f13d88f36aa109550eb0f509a7e31f5e18", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1501": { + "current_role": "paper_train", + "prompt_sha256": "9532472e04852bb794d2e345169b219190204c6a226c4d80b74446de8773335b", + "gold_sql_sha256": "a3fd6500597b8b3b3ef4a79f72e109c943b1c229923e3657d1816e40505c978d", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1503": { + "current_role": "paper_train", + "prompt_sha256": "18bf7a1a234885b94bcfaeb6a9c46d321cdba1e7e982f3cdd464d1bbaa33d496", + "gold_sql_sha256": "48d85c70626287b5b8b7eed5499d05c931832502dd269dd2761f5403427251fc", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1504": { + "current_role": "paper_train", + "prompt_sha256": "2886d91dba919a385eb117b34a6733b6721292b96f45d4f8d2c3dcb4ea49c4de", + "gold_sql_sha256": "c65d30fbbce6fe95029076902c0b5c5156698a3c0b5aaf486325676cb9c8521a", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1506": { + "current_role": "paper_train", + "prompt_sha256": "98743dab765a58971c58a100e4282a5e7419844301f2154272db4ecd18499e84", + "gold_sql_sha256": "1177fd19afa1e9bb2afbb00320c61c219a04831deb31f382a616f6846b08e93c", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1519": { + "current_role": "paper_train", + "prompt_sha256": "726eee913613bdd1d8b49fd5e97b09fe7c66eb7d3372bb55e4d69e39b9cceb54", + "gold_sql_sha256": "409cac768caffae16b230fe52ff464be4f7a6015845e32caf4bf521276b13f65", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1538": { + "current_role": "paper_train", + "prompt_sha256": "660cf7551c00ac8a85157841a72f578f2897a373991f9df14f4b5aab122c1c29", + "gold_sql_sha256": "bb3c310f6730932a903cfbe2020574e3cbdf4d356d48c8c7634489320be25672", + "database_sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "revisql-train:1564": { + "current_role": "paper_train", + "prompt_sha256": "3453df81a108e98f92d0fa834f1bd2e83df3612cf8c1fb98ba3a25ebb05a2583", + "gold_sql_sha256": "cded3c3eaf18373b51029353dd28195df04e6f4442ee47e112f60757f7cb6f33", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1567": { + "current_role": "paper_train", + "prompt_sha256": "fc1a61775b638b8bcf66ab92148b3a714b12f3597159fac09eb93852f3c1b03f", + "gold_sql_sha256": "451f8206856e55f713b187f6bdb4b39831cb45bbbe83d93bf81c0facd5bd72c0", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1579": { + "current_role": "paper_train", + "prompt_sha256": "647054c917ec95a540a7791c795f819c7c21c01b98c5010313f07ffe1ef8cea0", + "gold_sql_sha256": "852a3ddf9472c2bac714be4a1ada58854d654aa5fe13fa446970fe8001744b14", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1589": { + "current_role": "paper_train", + "prompt_sha256": "f28d28a51d19773cdadaf85fdc6410122322bedd2a1a77bcf97c06454affa301", + "gold_sql_sha256": "bdeaad1ea04656122379df7e16a1fc53a640b93b662b025177df241b06700e26", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1590": { + "current_role": "paper_train", + "prompt_sha256": "a2e6c3fb06dc0d84aed54b61e8c6d1d1bfb1b923bd9a7d559cfa784aa148fea9", + "gold_sql_sha256": "df235bb2bfc3b3ac952657c2af90ca8ee0dfc4846f5e4d605d2ca7ab89201318", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1592": { + "current_role": "paper_train", + "prompt_sha256": "9dd71d252cd355cc6973cb4a0fd0e7ea597398676535c4f31b06c16fb2f6cdef", + "gold_sql_sha256": "5ebcdb35b71f56df0b76420402b38578a12925d1c307846e99f25b3ad9be045c", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1596": { + "current_role": "paper_train", + "prompt_sha256": "c8987934e2fe642c2679b92515e555ebb7870930535fb4d1a2186412f3479867", + "gold_sql_sha256": "d1e9814c494e5337908a6ba0b6ff6906dc7856b8d84685a18bb0b24ff7062b08", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1645": { + "current_role": "paper_train", + "prompt_sha256": "1211f566fb968892389f304fa40e57e42115a02c99c766d77fd6d0221be5cdfb", + "gold_sql_sha256": "74d6b8b22e47e3dd1accf65ee331b2d8810c3881db10517501f1c47d146009d3", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1649": { + "current_role": "paper_train", + "prompt_sha256": "34b93ffa31ae957afff89eb90bd247da664b32d940eb0e2161294e502375ea69", + "gold_sql_sha256": "68fa39abc40735a5726f5d1284ddf6e1df864a07fb2dab01b1ec6216d99d68e8", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1666": { + "current_role": "paper_train", + "prompt_sha256": "0cc2fc996edbb291bb434174cc40eb0d4548da5682e240f9061e38b19e3ec8d4", + "gold_sql_sha256": "c3a93b4775238961262f5d4f8dd75a783d64d8e5086eebb62fc68a797e507a75", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1679": { + "current_role": "paper_train", + "prompt_sha256": "a1f8186177d81090405c7bd5ea66ac94fe69571cd9c71db7a4d9cbd4b99aba2b", + "gold_sql_sha256": "7f1a97c0b0aabd41c22e122b1096ed246497fedd030a6fa65de8613bc88622d6", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1681": { + "current_role": "paper_train", + "prompt_sha256": "94bf87221f2926e12525a8574bc67f0ca56061defadca1c8e9b0efaad9f702ee", + "gold_sql_sha256": "0d5c4ce5c7d8fb8ccbd727b259a94d40db9153a38d5ae7793a151894b1fe3158", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1692": { + "current_role": "paper_train", + "prompt_sha256": "fabaa7e862f42184ef7b7826b13a17512f03e806709b519abae3e832d840d7b2", + "gold_sql_sha256": "7bd5a206fcf131c945e74e19eafe37fe8396d5d4f60a9e72ab73d5d7a154dd59", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1697": { + "current_role": "paper_train", + "prompt_sha256": "620532b2f761fb52c2cec0743431185511a1e9fd7bb31491aecba5444b826a76", + "gold_sql_sha256": "c42e9d71c7a5625e4acc949befe373c65dc766b22cf55c1ad9dc5f9c5cf39b68", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1710": { + "current_role": "paper_train", + "prompt_sha256": "492f01794df2359c2bbb5f3f50be2c45a2106e1b729401691ee345aac5ad130e", + "gold_sql_sha256": "4e6d9e012ea68c232f26fdc652d1589a261aef0fd4ba80c71ee0482977ca891c", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1712": { + "current_role": "paper_train", + "prompt_sha256": "7970a23316e9ab9d89d080b3ef3adfb947e106720f53ec67b82cee6611f22e85", + "gold_sql_sha256": "2151f195530595cc76d76f64ef9e4ccbbf3a3fac76539bfd8300ca4aa2242106", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1713": { + "current_role": "paper_train", + "prompt_sha256": "54860b66c2fbee4c3e737f1fab9d8b0ef497f8ed4f331e0d9d86e365c4c3d5a4", + "gold_sql_sha256": "513e319ed6e2738af41900bf2452a02128b3462016e7de42be9717e2f2ca77f8", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1714": { + "current_role": "paper_train", + "prompt_sha256": "c54026a30a2bfdad65df5a3b51f46054141f803601c8fe78b4c594c95d0923a3", + "gold_sql_sha256": "14377f5cb3348c2b979a32e50d456377d9a032eef2d9599ed8aac2871685bc47", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1719": { + "current_role": "paper_train", + "prompt_sha256": "247a5f4757d20b2ad467a1de358e2cf3e4304f73ae7bb49d3a581c2ed44a4752", + "gold_sql_sha256": "208ed9eae839370dae2b81da7d9902dcd42bf92f200c5d81571aee7f9a8b08cd", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1721": { + "current_role": "paper_train", + "prompt_sha256": "5522766e608191a723419c14fa2a5d1f1278eb475338f532ecd8b12b1d8d356c", + "gold_sql_sha256": "335ead9ca1b0e91febd4e604c1597ae0e68e45fe99342e1e00f08a6ac493d2fd", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1738": { + "current_role": "paper_train", + "prompt_sha256": "40d23fded141432a223a48849adf2e13b6361a3c55e819f4a78408be6e37e706", + "gold_sql_sha256": "5ae3328961ee636d8a0b5f3ace3a3c0906c5d21d212caf6c36afc0761a6b8ce9", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1740": { + "current_role": "paper_train", + "prompt_sha256": "46fb0cc3dfabed9169dc2ad5911bb08d44c1d62b2509f87c086d10095f2c78d8", + "gold_sql_sha256": "e9e47d991a1511e9b6db1eae279da3ba368793ea3da675d23a7e3a841a0bef88", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1748": { + "current_role": "paper_train", + "prompt_sha256": "1eb924a855aa897e6e710ebf87f50742dcb25f95563fe6b8905eee27e56b983e", + "gold_sql_sha256": "19178ffefa1aa89bcf9e6f38ada02074a4926ae010d0e31cf344acfec829dd60", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1751": { + "current_role": "paper_train", + "prompt_sha256": "6387ccbec341039c771b8af8e2942b1d5cede8907b6ef162ce181416831147bd", + "gold_sql_sha256": "d1372c984fd9ac0a69a8eb3447af05653bcdf3fc5569ea8e6e2fd0d42bdb7428", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1767": { + "current_role": "paper_train", + "prompt_sha256": "01c77082e4eedb24dab9bdd315886e010022df412428a949fbc6e5c78112f3ad", + "gold_sql_sha256": "d65cc3df6b4307c10df3e1771fab97b0829ec96b5d5b46498d53053c088c118b", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1770": { + "current_role": "paper_train", + "prompt_sha256": "0124b84bdaeb77084be72a0ad69c56d4b7a65accf8b77e1346205d14ecfefb0b", + "gold_sql_sha256": "363ee713c0b8882159d7dfc4415644e245176f520fc77b6bea198b1fdc87aca1", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1776": { + "current_role": "paper_train", + "prompt_sha256": "7841d8ed526f08be998b6d9fb52c69ce413b73e35e5c7655d03c417e159442a3", + "gold_sql_sha256": "219e6b48609e52d0853611f40693110b410428ed45ae5a91f5fba195b8cb2dbb", + "database_sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "revisql-train:1795": { + "current_role": "paper_train", + "prompt_sha256": "2e99da644b4f1d0de883b61aa3a89b29105a5825bf08a5dccfbe06be80a71470", + "gold_sql_sha256": "0276e16835b81a947fea2e01a88a136ca9f529c1a1a0778e9077b1840d40bf8f", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1799": { + "current_role": "paper_train", + "prompt_sha256": "7df3a648fd008515a39e2d1c778de91886ccc58b53f3b1c233234d7d27bdbeaa", + "gold_sql_sha256": "4d99297df693fda97376dc49ca319b2dcd5e4f2674d59fa93b0811f79a8c0db6", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1803": { + "current_role": "paper_train", + "prompt_sha256": "80203d3e2e3a72efad748963eaa209a7f4be0d0011cf37df77fecec02c30bcc9", + "gold_sql_sha256": "6ac45c8381cffb3cdccfb1dd5ab278beafa28f4251bef8efc636301283574e30", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1813": { + "current_role": "paper_train", + "prompt_sha256": "0743a981dd8578bd0581a7a4ed0523f66b78ac14665bc88c859a9340b33b9f84", + "gold_sql_sha256": "109e318c21edc62639d5d3f571d46af0a709ee88f852f856fac828cee1007e15", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1837": { + "current_role": "paper_train", + "prompt_sha256": "089977895737b4d59fa368d4d133720c9ac43160753ae8642b2f5b3c3849bdef", + "gold_sql_sha256": "421eb3ba82d61495d08b3fd1791d151f37455014a5fa96996af8dbdc854b0a61", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1839": { + "current_role": "paper_train", + "prompt_sha256": "44aa2b52ed8986b59186e2b0b77f6fd3421f425b4d9eaff431159a4e6797dbce", + "gold_sql_sha256": "d09d9ec451e54db79bebb1c78a1ee992e99c09db0378b2041e61c2c972113f6b", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1842": { + "current_role": "paper_train", + "prompt_sha256": "cbcde8a99b72612cc20058e877782215fd01c9945f48c0e1e69dff9bd9edfe60", + "gold_sql_sha256": "73290c0c2c040a3e95ab54c4e94d41f8415b6a6778da2377d2e0b5c61c9e694b", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1843": { + "current_role": "paper_train", + "prompt_sha256": "be9531817bdff2471edd5ed9ead7519e2dac31ad1c28887ff249e205761b668c", + "gold_sql_sha256": "fbbee065303ab3b8da5d98571dbfea7220799ce708e396a48677d1a9e58c03ec", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1847": { + "current_role": "paper_train", + "prompt_sha256": "34b4039807e51cacf6fe1a31b7073417bdee36e7dc2d3da642515739ab04fb81", + "gold_sql_sha256": "ad69d98a94bf01a0adebb36f347a513d191988767f53b84239accd2117c6afc0", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1848": { + "current_role": "paper_train", + "prompt_sha256": "747deaf2a16858bd84a157339ecf63122dcd2e0e9e8617fa6bb3ba6e265b99a7", + "gold_sql_sha256": "41c20b5c2d061e9fb30eface8f0d23760232f338dd89a6223e26de633e0da6b0", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1850": { + "current_role": "paper_train", + "prompt_sha256": "df3090fda4af9948370019a0c32fbd49ab6634da17fdf86d0fadd64c6196f8f7", + "gold_sql_sha256": "d56c07581372ca40986916066e7606c39c49de3dbb85c4a24fb7e1ff9dce5a0d", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1859": { + "current_role": "paper_train", + "prompt_sha256": "8498ec538794a80daee26a5736ec7a4a2c7c1c204d2b5583a1b86e6cf4ac73fe", + "gold_sql_sha256": "971b1efc87e6970ce1f1bd16ffc2129a22367082f61c21918ed7ac7f1427571a", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1867": { + "current_role": "paper_train", + "prompt_sha256": "cd3ad86532dbea8f7053ee65add401f6e1aecb7817a6ea1e7027c163c4b8e113", + "gold_sql_sha256": "376b62912ca9060baac4225c13f1875ed6faa650794b9b334576e21e7b8e88c7", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1879": { + "current_role": "paper_train", + "prompt_sha256": "1392c1dc524575f86eecf355912dbaf646c172fbdba6aeadcee80ad72c5d0760", + "gold_sql_sha256": "1185bd498d14d8883e56e9115e54fa55be7403512093874ee4a2fad51dd6c62a", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1881": { + "current_role": "paper_train", + "prompt_sha256": "9761e07da58868d1aeca54f272052051d7ac29b6c90e3e48518e65722395a925", + "gold_sql_sha256": "a43990d5740095c183248f31081105b2e54a98ed8c2d555585730d73a514de31", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1886": { + "current_role": "paper_train", + "prompt_sha256": "e0d9481e3d79c333a0ea83c4ddf164e3f08d6ee96367de73ba9c1f6edc02e061", + "gold_sql_sha256": "070794974a0c0db43e69b3642800c2f885ecbdc3883865c18c4e866c58d908d6", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1892": { + "current_role": "paper_train", + "prompt_sha256": "1ea16c4bfa5db4c6bb8ce8f77ef99e83bbf10609a42afe0a909bdcc984597e70", + "gold_sql_sha256": "a0849efc4111d057f70f8b7c6fd84bfbd515a8f54e61851095919770978d37f4", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1898": { + "current_role": "paper_train", + "prompt_sha256": "58eb7defd9ee1efec14893e79d13788b816fe5e4658716f3700cd2d14fcc3f82", + "gold_sql_sha256": "886a4ca66c4b961f140bb208f9414839ee0712bc0d334f441827aa826d506ade", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1904": { + "current_role": "paper_train", + "prompt_sha256": "03813283c7f4db1913d68bc444e8b65fe200ab3e4f2097b0b13a5bf418b27188", + "gold_sql_sha256": "0ec694218ecd6a3dba675d714a38da8f4d3dfaf8620e8234128543d477430286", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1912": { + "current_role": "paper_train", + "prompt_sha256": "b6eb257539e90d88db4001820a6181ba72c37267dd212de35599691e1d3487c4", + "gold_sql_sha256": "e52e43aa2cb9bf5486eee843e9654870ab0037232a5d46ded94fc5d5c219a0aa", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1943": { + "current_role": "paper_train", + "prompt_sha256": "ae8c63ff09581ebeb2002669524074bd4ba3b669ab8788aa3c89eb33339853d2", + "gold_sql_sha256": "11d9d591adb461f38398b7db8ef7a50ca3f87fcecae38a337ab474f9afc8d073", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1955": { + "current_role": "paper_train", + "prompt_sha256": "8d53ceaddc640b1e2465971cc6fe35cf3333dfa5d34fbcd90216d31cbd98029b", + "gold_sql_sha256": "ada13f722081c347c71aa80284f8ac7f930878da5f0e8dbab3330e9f3721e8ab", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1964": { + "current_role": "paper_train", + "prompt_sha256": "ee746f7c97bcda4f790cf609e96dc889210f8c25f0d1802d991bb5dc3b914a7d", + "gold_sql_sha256": "ac3869e53a6b8d7abaa654f272185743c30290201d8ee055bd59a5d759da8128", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1972": { + "current_role": "paper_train", + "prompt_sha256": "7848bd814064d65937f41cdfae1059e0cb1a2594781e2eb3c85e9341e1999239", + "gold_sql_sha256": "7808e7772681d4ce1edf5dafaba5d2378311ed7d6b984be1a980a63c52298542", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1990": { + "current_role": "paper_train", + "prompt_sha256": "0ea63007a1ef9d189aa02871d26799d0491f28677a5dd059249aff0ca2ac58bc", + "gold_sql_sha256": "41a4856016d1dd5395701b6d88c1c098f7e1f7e4790d0b33d4b9330a20e693b5", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1995": { + "current_role": "paper_train", + "prompt_sha256": "ac421447214f88383f6e36d1406de3ab650966968b9e7cda1d276529e5e05731", + "gold_sql_sha256": "18db897a44862c82a5cf98d66f5bbaa60e8b2715b4a61d19e5fcc913606e7749", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:1997": { + "current_role": "paper_train", + "prompt_sha256": "698e1da21d8179cf83839c3544df3e44323554006ea591113ec757a71539c0fd", + "gold_sql_sha256": "cc95c04e28aa51220c3d2bee5f49103dd1f951b44456afd77b37fe0d9d49d7e4", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2014": { + "current_role": "paper_train", + "prompt_sha256": "72ca18f61dd3f09f39e6cb17fa5a64a295f7582c2fb116cf87492d35dd5291e5", + "gold_sql_sha256": "c5a89e14fb62673b9e779a048ebfbf17c28e83989756f8fcd0589b486b3ea877", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2015": { + "current_role": "paper_train", + "prompt_sha256": "12dae0f34c7ac91f101797d220e176b38f2b8de6c294c6ed141201e9701f0594", + "gold_sql_sha256": "8b781ad71d8ad5d6249a15ff318fe44b44e08711d5bbad57801f2d93a94e98ed", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2019": { + "current_role": "paper_train", + "prompt_sha256": "e37e05d648f4815816026a096384b521968ece12eedbfb3b1eb38993bfb82894", + "gold_sql_sha256": "1d60efaafdf3c547fa8e87e390ef65eb6fe8880d33d01568690edf62a9923931", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2023": { + "current_role": "paper_train", + "prompt_sha256": "e095351f9f24f6d95ecfcac21cf14e38b986e08a2611da334c964702b5f7ce61", + "gold_sql_sha256": "190d51dea54e490d4ae91ec5e937841d7f09e77bcb81aa96ed1bf5dbb3a2a930", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2029": { + "current_role": "paper_train", + "prompt_sha256": "bcdd2d30a6bcb516030a3f808c5e095fc48835c3d58a1064294260a44885e783", + "gold_sql_sha256": "01a1e52fa1fb687f3a08e034b1191fc62362de0b890344b1227831a6f50c4075", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2032": { + "current_role": "paper_train", + "prompt_sha256": "eb1d56832248618fc7c84034ac6d295f9adc1109b91c4f2eae22bc690fcb3178", + "gold_sql_sha256": "4c1e09895b3f3fe02c561f923aefd1cd1180199c6e66cc0f90f881662aa01361", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2040": { + "current_role": "paper_train", + "prompt_sha256": "ef8b6f5b973cea95de8ca22f28e4a0d0b7b4f57038aa1dce2ebbe323eb2371fb", + "gold_sql_sha256": "e34893c085cce61e3bfc154a90f2a23735244fb7e32eacc0550cc530607ee928", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2041": { + "current_role": "paper_train", + "prompt_sha256": "27d3ac24e9ce5e2c64edf23b8b47f859e086871eb6433a6793f69bade4971701", + "gold_sql_sha256": "ceb014efd3f49e1dbfc77a0c35904243f0ca839fe3b847afc844c586d79d85ea", + "database_sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "revisql-train:2051": { + "current_role": "paper_train", + "prompt_sha256": "ebc4df8f31c5d644f30b4162be7ea9af14eaf2b55f6a7e9e3b45b17b55f905b5", + "gold_sql_sha256": "9cf7f1b02d8e4d55a046b54325438d0deea2fc715b76c7c3f7c53373b32988ea", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2052": { + "current_role": "paper_train", + "prompt_sha256": "4160fe3b8730c53a180acc4a501dd6947abdee19e3ff3c00d1d175be8da13705", + "gold_sql_sha256": "1a5839e8d19aebf77c4a0a12d88ecc6699919f260a6c7d6ee2b9e80654954243", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2060": { + "current_role": "paper_train", + "prompt_sha256": "86a243a63275b0012a868f329b10f06ff818fb886d25decbd3e55ed127e1ead8", + "gold_sql_sha256": "2b34830956d025c170807d45d506d22f15085fe4367157460f1775949f0d10ed", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2063": { + "current_role": "paper_train", + "prompt_sha256": "68b2d650704520a3e805c18208bec2ddbbbea2d048b15aa44963f755bb08febc", + "gold_sql_sha256": "c34d3c356854b53d9938684ce5d2959a14ebd442a5825d7fa5f98725758b2abe", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2073": { + "current_role": "paper_train", + "prompt_sha256": "c0cc6c7edbf4476fd70b6de3bfca3700775933ba276d38741c606563c20e3805", + "gold_sql_sha256": "e158cfdf158013e2b43eaa042e2ad6fb42f06dec846184e3409418d78db6b7e7", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2074": { + "current_role": "paper_train", + "prompt_sha256": "ec75b93bcf8369be0afd93ae51e562591ce058f84636825a8a6686a532594113", + "gold_sql_sha256": "1abea71042ba4543f262d55d9f99f5d08ed69a30289a06eadeef343c8ef905ba", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2077": { + "current_role": "paper_train", + "prompt_sha256": "267d49deecf279bf0b27ccdf792814971879d87cc6e9fd06468caac95aed2483", + "gold_sql_sha256": "f7704312543e18515bc0f3137b0a5bda584b20dfc6cf768153a7fba7f6ecdf61", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2086": { + "current_role": "paper_train", + "prompt_sha256": "48744f4039afe4b26cac28e6b82b7f42cc0413155ff972f1a9e5915c3f3850aa", + "gold_sql_sha256": "270284cbe9f30a56e62b3d27823e0d200e6513efe6aca40621605f8e852d85cf", + "database_sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "revisql-train:2096": { + "current_role": "paper_train", + "prompt_sha256": "215148b925ff5baeeabda702dd63e3f43f047f37006320e0a592b3db9ebab5a4", + "gold_sql_sha256": "b39ab0dfa320312cf90aa90d98831c97c6cbd08039810e974e2dc8dbef66c4c9", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2099": { + "current_role": "paper_train", + "prompt_sha256": "8fb99e4f805d10788709783c1bd53a1d028af768cedc7bad3cc02825aba9ad78", + "gold_sql_sha256": "356e6d6d90dfdc62bf8e2200594cdb7a07960bda00a4bfbcd756e95204a22df4", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2100": { + "current_role": "paper_train", + "prompt_sha256": "054e08f84eafb9a0813d8a6086195cfe6122ec5de2a2c8044dfb99f76c85837f", + "gold_sql_sha256": "88d5a25d8aba4f3fb212aff0b4e6923fdd4e952b24222281d16de56a4fe82711", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2105": { + "current_role": "paper_train", + "prompt_sha256": "6d9e9b2ad3b18f907cb86bce408a29028b57caba8d7df9648d0e6b1ccb2ce6b0", + "gold_sql_sha256": "601db3ead78445d0fdcb00b2cf5f5fe76011249474ef8120cddb242a46bfae63", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2111": { + "current_role": "paper_train", + "prompt_sha256": "ad8839066a053367daf1334db42e849733ee5205c764fc8e72e8ea99e7954005", + "gold_sql_sha256": "916063b661f102bd5071ac9dc78ff46fdce18aacbe349a0d7205a5c298c01461", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2120": { + "current_role": "paper_train", + "prompt_sha256": "28816e94a63858857004105980da66a72be137993e8759f88ad51a634e6c73bf", + "gold_sql_sha256": "e3fa74929447530398322a36927eb5c2e7bb6e8f5089bca7c5f018aa9213f9d5", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2131": { + "current_role": "paper_train", + "prompt_sha256": "a472773648e4f861c457033deaddf533297f89f627838a47648bc437c320b0ef", + "gold_sql_sha256": "e1c8003e788cc7b75d5e91ab67eef157823b888d7e158ce90e93d024e65ea216", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2135": { + "current_role": "paper_train", + "prompt_sha256": "fa9fd88a8eee7bd879bb2f069f121e28b3f15984ced9624a5ccfd3e86cddb013", + "gold_sql_sha256": "bf5f555e8df0e4d453cca6d0d41f5b09d3ff56c03318109e6d558cfdcffb363f", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2141": { + "current_role": "paper_train", + "prompt_sha256": "907a734de19ddf2cf2376d014bcd0e04c30bc04cae7189033ba2deff41a0cd0f", + "gold_sql_sha256": "76cd826a2a0d770f2d21b45f29946b495a0890a044b389437df64320466a6821", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2142": { + "current_role": "paper_train", + "prompt_sha256": "0395b68e367b05abe0642a06c5cbe0be7af92f407986579de7f7ab557197113d", + "gold_sql_sha256": "635508bfb09db3355a9a2f15bdf9c3cd5824f8747b5f9346069325ba27f51e9b", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2155": { + "current_role": "paper_train", + "prompt_sha256": "ab11888220221cf1bdde0254ee131b605f7b5b625c4513ec943d5b9e7d9153a2", + "gold_sql_sha256": "eb84c0a34e6b9a767e1c4b2f6536661367dcf840ecd2df361c229d439550692c", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2174": { + "current_role": "paper_train", + "prompt_sha256": "ec47fe94cea9cd1bdc04e0257a6c27774726b830ff7fc7738cc91488ad5c572c", + "gold_sql_sha256": "f9a5a1b6a6be506cae889c2c8bd4f09344539ac06ccf71fe4086bf40947f779c", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2177": { + "current_role": "paper_train", + "prompt_sha256": "d262f3b77c4bf2fdd4e172721d58294f9b78c13476e27515eeaded3c38313fc3", + "gold_sql_sha256": "4eb77fa5cfbec214235860f7c5862f6b8a8370bed999a7beef952b89428c6180", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2178": { + "current_role": "paper_train", + "prompt_sha256": "976f53579db9502dad8281d487510a6a81426a05eebb42edcee2d4890132aae2", + "gold_sql_sha256": "e01ea4396405d752f2cb1a3a0044358d5234a2ea73e985799d116f64de761a45", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2193": { + "current_role": "paper_train", + "prompt_sha256": "276b267a05732ed86a9e820c7d1d52e8996899ea9a822fdd6752e6e15100e221", + "gold_sql_sha256": "a99472c220ec0678695ffeff1c347c4b67bab26938b0d3f9b419f49561064f0d", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2196": { + "current_role": "paper_train", + "prompt_sha256": "5aab09b54ee50ef86c90081c96501682ed218c121ffc2bae3ae74953aede7d67", + "gold_sql_sha256": "12ff18489720beb762dd584069b9ca3c3f62c4dbaaf5c5c7875799190ace59a6", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2200": { + "current_role": "paper_train", + "prompt_sha256": "ef770f6ad2fc223f95ed8d430cf18ba65101f45c790aac270781a5f007af4c5e", + "gold_sql_sha256": "7cd9b1eedb10fea58e5cfa1122db12be41b072a611b3b23b1a0785595d23a3a7", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2206": { + "current_role": "paper_train", + "prompt_sha256": "51f0983f8efe18e86c44f3aa8d7128c74f0f0fd78a7e92163a0ac1f6f98d2570", + "gold_sql_sha256": "ebdd46073458f6c6ce10190c0bff437a3456ae5124f757d43790ab4483a71cde", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2213": { + "current_role": "paper_train", + "prompt_sha256": "325399fd6bc60ed4e0867664f2e46a7d487985a5f3777801d402030154c2e58b", + "gold_sql_sha256": "e7128028d63e10d3a51fca7166e9a5f66370314c3ca6b273d6b7da507268921b", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2221": { + "current_role": "paper_train", + "prompt_sha256": "408e5b10c84fd46016a44837a2a2d1334d6490a747534c454d6dafeeb77486e7", + "gold_sql_sha256": "74afd397599cd5cbc67dae6c637237c910729138db5c0c7b392e0056bf09809b", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2226": { + "current_role": "paper_train", + "prompt_sha256": "2ca0ec2c553deb2d27be5e87fce3e6ce789cdc9a7d25629788c9ec35619b7bea", + "gold_sql_sha256": "7610d8c1114f829e0d32da77cff8e3445d18b38a7ab4ce239dbe3623a4186e17", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2238": { + "current_role": "paper_train", + "prompt_sha256": "8435ac5511caff592b123bc36cbfad8faf4a2ac0c26362a4e3bd4b70b3e693c4", + "gold_sql_sha256": "fb076e131578589e9e99c65d137381885bb95fcc37353a486606600b2fe8e228", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2239": { + "current_role": "paper_train", + "prompt_sha256": "99c02dffe00bdebf98f9d7db52461eed537ac8fecfd7a2929f5f757272b55ed0", + "gold_sql_sha256": "41c394da61367c00499050c8bfe5a6656d45d9e8f59a273fdd42967bad89b1cb", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2240": { + "current_role": "paper_train", + "prompt_sha256": "b9c89ab64ce5888b3f990b01ac0fb5baef8cbc4682371cc8044d5f79e07b8b95", + "gold_sql_sha256": "cbefc31ccaf3624570ad438a5096ec180c46e02eb8133ba8a2798f6c6e220dc2", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2246": { + "current_role": "paper_train", + "prompt_sha256": "b38e128007cb326a7648fcf9b23fd17bd4bdcebe9442fae3fd49fc3ffec3641f", + "gold_sql_sha256": "5233c77c961df07aeb78ed35648bf8b7ed97637be1e1ce26b650db8e0089326d", + "database_sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + }, + "revisql-train:2252": { + "current_role": "paper_train", + "prompt_sha256": "a0b600042841841bcea2ffaf57090df1afbcd657d6fe7c95228548803d107b0e", + "gold_sql_sha256": "cee1ee4b2f3c3f4f5df6d8be1726e1213458c25be658fd2051140f9651f562d3", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2255": { + "current_role": "paper_train", + "prompt_sha256": "c7552cc22373c37129507aabdbd0d966afff06bc1067b608a1b8911a02574444", + "gold_sql_sha256": "5869062c6117a4572a1cd9a002310bde41a02bdfabb8fff13e4a1d3aa6c22d1d", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2259": { + "current_role": "paper_train", + "prompt_sha256": "86e9414468959c18d0b2d3114b2bff9922865dfc5bb467ed8ac7337f85d3ebb9", + "gold_sql_sha256": "55d7fd3cbae8dffc27b279a1881ea67305421a62fafb4aa9e7b8c4a32e7eb78b", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2264": { + "current_role": "paper_train", + "prompt_sha256": "4d9261c16f797b656074df046e1d8fb2f105cb724477a1065228cad4731d7072", + "gold_sql_sha256": "9ae07c60fbf5b64fe7338f560792f3ff48ae12d3d01c4c511c29a753d047fe31", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2270": { + "current_role": "paper_train", + "prompt_sha256": "e3bd32c3d634201dd00e0b4564b52ec381940d38d67663e7a7cfb266b5839c43", + "gold_sql_sha256": "1113338a32e8633f882673698238b01b7dd9504fe79f251d598a0662711f94ab", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2277": { + "current_role": "paper_train", + "prompt_sha256": "64fa5b4a58e2421c8460790bc1ae408e6eebfe1093b2e37bd5ad60271900a6cd", + "gold_sql_sha256": "362e496d4732fa9b1a30b80903f149bbffe2831bdfc480dea77dc0c819075b02", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2315": { + "current_role": "paper_train", + "prompt_sha256": "635747b5fbeb94d102ec36535fa3e709e5849cec725f3e1fd218e374dc8aac57", + "gold_sql_sha256": "8792d497f7722e3780738caa5e9fb45767c51168c55730746271212d2f9edecb", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2325": { + "current_role": "paper_train", + "prompt_sha256": "6f38b9f16c0deadda9570c6588f6fb7bdfa667769d6f21dbc79292b8cbce9bc7", + "gold_sql_sha256": "cd470b611819919a2c6bcf5120d5c54dd7662c790c3816cb06d72cd70ea6c223", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2339": { + "current_role": "paper_train", + "prompt_sha256": "1b66099ae1b87db978f470ff0a514a9d7c29bdb7fae4b7dc56269f0070062545", + "gold_sql_sha256": "f5c382f5b1c5146e1596588b77225de1d3a7f051d69bc52bf5763532113ca50f", + "database_sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "revisql-train:2345": { + "current_role": "paper_train", + "prompt_sha256": "8ad21ae16ce1dba971047d4ba45427a0f9ada083715a869b4857f696cc49bbc3", + "gold_sql_sha256": "a65ea842919a2b9fb1b644765b6b71698732d57732bc342a146dc9efc7840833", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2348": { + "current_role": "paper_train", + "prompt_sha256": "fbb41daa036fda5ce6c554d7cf39fc981b22472eac84c2d14d5cab4ced03a136", + "gold_sql_sha256": "26ca71102f90c531cb5abc5df4db74cbeb021f0f12f750864a16604528a825ef", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2354": { + "current_role": "paper_train", + "prompt_sha256": "17ef160528f37f3e04cec355f165b84cab8b6cbef506af188a28b6dd9da34d66", + "gold_sql_sha256": "eab86b3c37d1308de1181881962b671e7a8fdae1f2c75768c172b79126b1b201", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2361": { + "current_role": "paper_train", + "prompt_sha256": "b88bbc65984891bb33a278bba3df57ff8c44ac96c5c7d101bd43970c9b587ce4", + "gold_sql_sha256": "8d35941b46fb911142e84e66adafceaccf4d7799e3624368a340840dd2a6d0ca", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2368": { + "current_role": "paper_train", + "prompt_sha256": "7d42ff120e30530f6f2290332e482c15f2beb137be7c323908dd2f65477c3793", + "gold_sql_sha256": "b54b1f5fae04994c736bc9c22ed297f8327e61487418d12ed88e514c6fc7012c", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2377": { + "current_role": "paper_train", + "prompt_sha256": "238fa20390703a7adda439bf02660a43ba14ff3117f0043912238764a674d938", + "gold_sql_sha256": "c74b22b677468ad65ce0aa350df7d3353b52cff26eab4eefc16c3fa82e663c4f", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2393": { + "current_role": "paper_train", + "prompt_sha256": "ffd738d8d15e6276ff15883a830f6dcf68a58bd1c2461d146cb7d39d5ca2fa7f", + "gold_sql_sha256": "193188c8e12ab7369fbda652235f83d6f32feec8d895c83e7b88be98b5c4ae69", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2398": { + "current_role": "paper_train", + "prompt_sha256": "662f8f9c96a934b5f3da3044ad5d35202f4555c27da84fb826af5420f48d9c60", + "gold_sql_sha256": "a44795122877397bc0f41c53b6e070b9fca2e0bf7f9e34d3fbbdec57937aae98", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2399": { + "current_role": "paper_train", + "prompt_sha256": "e8f329ffc1ef41e6f027378f6e156b9378e64ec0ae2450b17b3443125657a905", + "gold_sql_sha256": "cede4007569bf6d674d71c05d334ed3c0e5b61ade9c2259717667cd8a038e51e", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2400": { + "current_role": "paper_train", + "prompt_sha256": "e5240c17fb5bdcd0466669219cad468f4acc59890546f1160828577fbc48b6a6", + "gold_sql_sha256": "6e10b1bf61a084a39d36e2c51ba1bfb5838ce5f9c6b3b2031196bfc2e036a9ab", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2409": { + "current_role": "paper_train", + "prompt_sha256": "cd97e5096b7ba3df72f81d0ba74055c21b69dd173c6597b1e01b4212ef0d2db7", + "gold_sql_sha256": "ecd7b02ff4a700601bd27856ac073b7de252961de8fd14d259d2560ebce37f26", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2415": { + "current_role": "paper_train", + "prompt_sha256": "5cb3c0a4951772f75ff53f7a3a312298c6bff397930e1882587205f98e152407", + "gold_sql_sha256": "9ac81c0d67f605fb088f4f6f2a9c7d1f795b7f74951221b97b1589cc7a60434a", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2440": { + "current_role": "paper_train", + "prompt_sha256": "cdf037fcb334c9de8d18575455450a23d42fb22955c310b2f926ef62ff2f215a", + "gold_sql_sha256": "deecdd6e4879d8d54b479aa08d9641bd077bc88cc97a7a524f6cd676f7074312", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2444": { + "current_role": "paper_train", + "prompt_sha256": "0e09703c76d5975c0bfc6496f12cab4d7e20c6e10131a03e24225a5aad6d0fd4", + "gold_sql_sha256": "4f3b48bd097dd5e3050350ec7a13df400e24adf51f6f33bf808d8e5cb95ea031", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2456": { + "current_role": "paper_train", + "prompt_sha256": "0717e1cb43d247fc771061ed32c9e00514dc19b75a2f4f287652325587197e86", + "gold_sql_sha256": "2f2780ee638f8291ef136b65742832c5ac246381ced6f88d6d3f827271e7e38e", + "database_sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "revisql-train:2476": { + "current_role": "paper_train", + "prompt_sha256": "06b16ba74cb127f5f78e02ee5bbdffd43d6f4d4335bc4e3e345eafe1973ea9fc", + "gold_sql_sha256": "d957ccbe234bc5d5490dc5b7c0c37c4583f5c3b5373d8b4f6b89fa76279f1cc4", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-train:2479": { + "current_role": "paper_train", + "prompt_sha256": "7a5312eb05f55bed2730f09c4d4973689dad4a391a359995c63bdfbd2a6f0048", + "gold_sql_sha256": "ca9bc900634618f4ca18d3ae0d90ca024b57bbd84f9755aaee95db3701460c61", + "database_sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "revisql-train:2497": { + "current_role": "paper_train", + "prompt_sha256": "eab4736a557be8ddd471762e1d35adccd67647ef32d88bf5351d385fe2d5bcad", + "gold_sql_sha256": "5ef09aa8c4db97b0bd5c33bd989f57efc999796b569075650c6a9bdc180179a7", + "database_sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "revisql-train:2505": { + "current_role": "paper_train", + "prompt_sha256": "7972153e578ce56c0dc5e8826f0a2ece805effa609672970221f0d498b7e7ee5", + "gold_sql_sha256": "a368973fea47bbe783d572d5c029025b5224e12d650a126d4cd302d197e70aba", + "database_sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "revisql-train:2508": { + "current_role": "paper_train", + "prompt_sha256": "8ec151f2726d41982aec8b3b23ccab7c07b161b0e8cc5dc165019640c2f014f6", + "gold_sql_sha256": "2011238d9d85a0926fcf9e56814366d5275cc1e5589d716ffdfa79f23f40f6d3", + "database_sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "revisql-train:2515": { + "current_role": "paper_train", + "prompt_sha256": "4257c97c65e890882796e3f3f295dea03e3a0da3f822bc7017937a3c6568afc8", + "gold_sql_sha256": "aa6118bebbc67cd396ef679f8c420c2ae814e981bc830e9294bcd91c1cd4ce80", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2526": { + "current_role": "paper_train", + "prompt_sha256": "33987d3e79e066b1109ce4b9831cc198791633c1c1e285d240fdad56443e34ee", + "gold_sql_sha256": "ef3b7094b840206082ab0ece497f396117d1616ad2f569f55666a2d86c31b1f3", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2537": { + "current_role": "paper_train", + "prompt_sha256": "826930d3c407a757dfb4021048e9d71829bd3a7e47b94f9c22b43378e61a68df", + "gold_sql_sha256": "0b0cdf6f997d9f3a22e042e6b316634bec20d415d9786e6b51103833878cc26e", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2541": { + "current_role": "paper_train", + "prompt_sha256": "066cb323796faef367d12b9fb8343d755fac4d0000e2e47aa3f2bc68b864192e", + "gold_sql_sha256": "f2cec189ec96baf523898c5851cf7bf9a220fa850a3d81e96e0b18a11901ef06", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2548": { + "current_role": "paper_train", + "prompt_sha256": "85746816ac8e5738a418df6dd50bd2e6d761cd295867d4500cf360a6436b10c0", + "gold_sql_sha256": "49f1b7d7142100d22df6af145f1e8fa411efd2e34930ec3e0befa20e1de55447", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2554": { + "current_role": "paper_train", + "prompt_sha256": "7bf1938ed4d0458066d891db1a896251161e41cdc8354a7a16868fed071338c0", + "gold_sql_sha256": "9282125b5c4748f52b128f5d0e7eef2ea8c75a2bc40fdd20c9559c6a1194f3a0", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2563": { + "current_role": "paper_train", + "prompt_sha256": "8f2b5727b81e8f596e9bc438bc5bb4df332c6efe93826a7853c0bf1f37d87f78", + "gold_sql_sha256": "813da3a749a4bf1de7c4b447dc9e195af1cebecccfd93ff90289d089e8f6067a", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2569": { + "current_role": "paper_train", + "prompt_sha256": "1a4515090245a9316189805685ce7db1468d3a8591e0de831c01517938df3f36", + "gold_sql_sha256": "2a2fb539333370ab709b6761a72eb20a511c9ad14dd1c33cd647dfdaedf1ea9b", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2572": { + "current_role": "paper_train", + "prompt_sha256": "917ac18e53473527121635b06f5aa67162d1bf5e8552acc4793412d82c4f80a7", + "gold_sql_sha256": "9a4d3d9a2f4c4f0fbdb55a2ca16df0818de88430e71eaeb1b95e5d5717fcb001", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2576": { + "current_role": "paper_train", + "prompt_sha256": "3b9eaaaf60494e944238725564c284e5d98a34a3539ddaeead5ba550902d5979", + "gold_sql_sha256": "0ccc01dd6cb65776396763487000e51de467459bdfd4ecccd550e00892f67dc7", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2580": { + "current_role": "paper_train", + "prompt_sha256": "4aa59b79c77ad5c754d8e548d6a2ceebdc828172ddf2917e1ede282b7f9b19a1", + "gold_sql_sha256": "13d63b06692dfffdea38ceced1a8230ba688c6175584170b815f31d471eb3d59", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2582": { + "current_role": "paper_train", + "prompt_sha256": "ae9eb7721c3fae311b366cd3602f171b9cecaced40ef9e56a3d553638cad2a5d", + "gold_sql_sha256": "7451cee1b7ef500c4f7eb2e384d87b040c73aaee09111fd263520dfce5fd4326", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2587": { + "current_role": "paper_train", + "prompt_sha256": "7fd248a91467f17415cf4bcabaf03d688a4fe9744c54008a5f44cc1909293803", + "gold_sql_sha256": "ee54ada04d5bfb60cecc4925433d4210b258f188828f9231f8dd7901787fe414", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2591": { + "current_role": "paper_train", + "prompt_sha256": "08d4bf8787380fe26d8aba02b3364169ff2bd81b98009f261e9321a33920f033", + "gold_sql_sha256": "ce004b3b157c8e9ae767688b13e2e7218aa1a4c39944172fff604df2df2a40f0", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2594": { + "current_role": "paper_train", + "prompt_sha256": "15bc87437285c1f22d34dc7b12b5925ab4a90d7b70d25bbe04e487e9d78b405e", + "gold_sql_sha256": "8b740e4f6ef428ba1deb4caf41de43d9b0d7235f3d7c350e1bcb9f737da024a3", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2597": { + "current_role": "paper_train", + "prompt_sha256": "e32dbc7c635307ce71955198320440dce90d07bbde4dce2fbee69db353e2999a", + "gold_sql_sha256": "3bfabc39d9826ce77e7fc56af4ede78f326ea92512b5fcd357272cedb833c587", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2598": { + "current_role": "paper_train", + "prompt_sha256": "3fe4698f067fc3dba7f33902302e7516699c875ed17f78b279e86098a5d279c9", + "gold_sql_sha256": "a17894e394f7573f913ead50fdb6f0fad4ae004c0c491e3ef6b6d72598e37507", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2599": { + "current_role": "paper_train", + "prompt_sha256": "4b381a7d17424ead2433abef960ca4fffc1a3942acc4ae73ab6ea7fc6ce7eff9", + "gold_sql_sha256": "29a345c1ce84f29afd5e79c1f7609702a74755826e5f0ed0c1fd7dba871eb0fa", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2609": { + "current_role": "paper_train", + "prompt_sha256": "35c4155eeb58da24bceb28e1ba6b1c83546c2838a1f97b1791b53f5d3c621697", + "gold_sql_sha256": "5f74c45da81c2da26d1ee9ae830c1b075d689bbf1545022a056f74b707b6c134", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2610": { + "current_role": "paper_train", + "prompt_sha256": "488d7a231e40d8308877f060940ba963b05b5581b7501b98d40b340eb39f6986", + "gold_sql_sha256": "da033fce3e6c6773c8f9a52dc83743bc1162f7ee0633de2d6f02ccc67e2443da", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2619": { + "current_role": "paper_train", + "prompt_sha256": "8cf7909bdd794494ba5b3f02e3776eae13da41bbb2fedbe816c03b298bce20e8", + "gold_sql_sha256": "c05a5e04e2862621f64c54174ba78fe5b1a48c10f0c07343fe338ac15f37cc3f", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2623": { + "current_role": "paper_train", + "prompt_sha256": "03fa5aeba8945ce06aaa66d2576d5f16a9b0e80c9dedbf78658f52d1b137bae4", + "gold_sql_sha256": "070e9d414393ef2488ea3198e9e3b5fdc45198d420fddc225c06d621aff8b7f9", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2627": { + "current_role": "paper_train", + "prompt_sha256": "3b0770a6146a170b4b54bb88c54c4fa832a4c5c294828afff58cd0ed5f7e8d7b", + "gold_sql_sha256": "f0bc90a3f3a017b5aa87b89d935f44ae98c41233b2b303323293d49488ffca95", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2630": { + "current_role": "paper_train", + "prompt_sha256": "02c085ef93dd6525347f2713062890f4983b368f55b5f4a49a6f055d8089aa45", + "gold_sql_sha256": "52f79681c9ff6da29ac8e744264f5fe109320982b5e31fd47cf79e0bd1c3b926", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2636": { + "current_role": "paper_train", + "prompt_sha256": "b6889b2929b3e5d81617e87d9d0ab5376869128a4b06ad95911f88851784921d", + "gold_sql_sha256": "80ee4548bec5cd6b808dbbbc21644ebe9f07b8d8eefd2e16f1a0a6bcfa19dea8", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2637": { + "current_role": "paper_train", + "prompt_sha256": "2e3e830892a3905255cdd1b49de1166517622b97133f170bb45448f7a495a5f6", + "gold_sql_sha256": "b705f01c4b59a867d5d0917529c4084f50fe7eec1eaee6bbf048014f9319d02d", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2640": { + "current_role": "paper_train", + "prompt_sha256": "6108360138b9eeeef03a3026a41aae1000f964b75405c36d3918cb84b553e1b5", + "gold_sql_sha256": "c1413ca00729dca5fa9c174444d5fe6b550b46921721bb4cd4d94439f2133191", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2643": { + "current_role": "paper_train", + "prompt_sha256": "f26fcd384ced8b699e3d9f817c6915de9b046b4fa9c7af43204ac1e67b9acf83", + "gold_sql_sha256": "6422ea6904799ff27ed285316535ba3e7976973ef3647d4161f95350fda4f1c9", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2657": { + "current_role": "paper_train", + "prompt_sha256": "a3e008cddf0fd474feade06dfd3ec84b8230d50261ebf9ec548c06f678caecc9", + "gold_sql_sha256": "ed0ed5c8cf808368c452f55881b821eb31351a4fd3efabbc853bdfe812baff20", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2682": { + "current_role": "paper_train", + "prompt_sha256": "a1ae091fb580c13fca7aa02765ebd3892ed88665ca04b28ed9df5ef47f200552", + "gold_sql_sha256": "c48d999ece319d8dfcaf33bcb1d653a604b59ad7242ab1e2ffbb4c64e1fe28ec", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2683": { + "current_role": "paper_train", + "prompt_sha256": "6867e84d631a11acaa9abe826a95c519d5d5adf43f68c80bb1be3737a14e2800", + "gold_sql_sha256": "3a3a01e580f0edbc1a73f2955455baf762886872e691c61143fe816913984759", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2687": { + "current_role": "paper_train", + "prompt_sha256": "0dee4fbe875a49bfcb22daf3a1a9b6c09ea4de843f56553cc942fe6d4fd76df2", + "gold_sql_sha256": "cea62ad4ea543808e44d1198e424715cbb6893ebfec2e384d40bc8217f52e4e9", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2691": { + "current_role": "paper_train", + "prompt_sha256": "215a807f95a3f95d95f0710bf7439fee4989e77ee191b37585bb66ded4b1760c", + "gold_sql_sha256": "7299a81c3ce5b804c9efab756beafd4f9c767be6f92aa7e9ab05d110a6a9c5a4", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2693": { + "current_role": "paper_train", + "prompt_sha256": "c72fd0caaa9b99db2bf04a5a58c937e5291288945a227ec7b667d95b77bbeb89", + "gold_sql_sha256": "4145d8791cf36d3d7a00f5507224932ce15093a7e1969543a512c4d3e756e00f", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2696": { + "current_role": "paper_train", + "prompt_sha256": "c8296c7596431c35ff63fb22aeef9cf1510ea3820b4b590810b96e9d9d7bd98a", + "gold_sql_sha256": "dba884a9561e549d43d126b3e84ad3012dd19b9981c7c591e8ddf4519f3ac0c3", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2703": { + "current_role": "paper_train", + "prompt_sha256": "588bb30d70350d2aab4c3547f2224f248d4a746ef579d603df1c6687a26765d4", + "gold_sql_sha256": "fd39dcb755ae96b43dfced2f294f0b08ae4e0925e62f393f9d2bc5e4aa90f255", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2721": { + "current_role": "paper_train", + "prompt_sha256": "3e20f7e1cd13dd47522e68b32910e1d0819a3cdb30cb2b98db6535553cd8f4be", + "gold_sql_sha256": "073bbb79a0e47e61c5c12492555dbfe518733d620234410bea894c0e8945b3a1", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2737": { + "current_role": "paper_train", + "prompt_sha256": "50e2e2d2d0b4c23186b64941830c7183aca4cd18fb30bbb9b968af590e799938", + "gold_sql_sha256": "27669e057a7f95cc00c9622e60626aeaf4d04dbeaf7290505d4aeecdcd27e41d", + "database_sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "revisql-train:2750": { + "current_role": "paper_train", + "prompt_sha256": "ad23dbac3a0c77e373b66f8e21e9f55442ec0a65655c4798fca1aeedefb44718", + "gold_sql_sha256": "8127752a1dca046ee63854aff4724de2b7b1d179b0a7ba808ff33c0a67024f1b", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2770": { + "current_role": "paper_train", + "prompt_sha256": "c988890dc3d78be2df78b41e3e75b3b5a8de50c2a9bb0568de1edfdba3244343", + "gold_sql_sha256": "7d58a3b2db6568a9f5882b004e97fa767c099a10b6d39978db6e14e2ebd7fc85", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2802": { + "current_role": "paper_train", + "prompt_sha256": "2b0a63f78a3384a538dd9fe5b840edfc547a059578256cd5a6cdccb43e70957f", + "gold_sql_sha256": "ee8a3c412bb7ed9600406784dd5e3d4c299cd924f820e678bbed8df398403089", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2807": { + "current_role": "paper_train", + "prompt_sha256": "6b5aa93c691381f17145bb9c587b63081efb68852ff1ca2119b618c1e82137c3", + "gold_sql_sha256": "f21b38e13cefd14665837801a8dc9dc8bb8bb569e009727908342802d3b840cb", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2834": { + "current_role": "paper_train", + "prompt_sha256": "ca02044951f94794600d76227ad2fd9a9692021691843d82d4bb55533cddd8e0", + "gold_sql_sha256": "8e47dc37ab9cdfe0224fd3c6dba41059724c693573f92e7e15661acf7c922aad", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2840": { + "current_role": "paper_train", + "prompt_sha256": "2d0540dca2b0d4b2db665cbddb1919ae1270b21b62bf873561dbb03c0e157b93", + "gold_sql_sha256": "d2f47d9f8710f9238602c0199e40b891a20d3d637b6adf1a7e1105cde25f00ce", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2843": { + "current_role": "paper_train", + "prompt_sha256": "a94fde9790dc5d1f5edce0e623be5c371b2a59a6f8ddcc3515eb3735d69186ae", + "gold_sql_sha256": "21a6e06216525061b08ac677fe26893999425f90a0c46949797f2646675de600", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2847": { + "current_role": "paper_train", + "prompt_sha256": "cd2a03f44120414999c9931e81f4665f8edb33b4bee0323d8dcff890e6baca36", + "gold_sql_sha256": "b4eecf2627793343d80a6913c23eaf83e7f0d2010ae2dabb80bfc14721df9149", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2849": { + "current_role": "paper_train", + "prompt_sha256": "32ae0a916004fd4888541c6588dfb12d2511f7c809eca6fa921b53e3ad55e52d", + "gold_sql_sha256": "64771d37588c88a174177fc50ceed19db279f5ca34101f15538cc7d4e37ac488", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2851": { + "current_role": "paper_train", + "prompt_sha256": "ac337ab548259e5500aab3aa0fb75d04e83e64d05714b97ebbb7d51fb6cafe90", + "gold_sql_sha256": "3867f9bada23f5209db2a81a354e0df08d1790ceb2c4440ed90680a7e6eb65ac", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2855": { + "current_role": "paper_train", + "prompt_sha256": "a11bca81b98b5fcf5594394a62d491ef5c483a885ec198695fec47e06a8185a7", + "gold_sql_sha256": "a5c0581aa482592eaf97cca70bbeabd6a7239d347670d724b3fdf6295fc2d892", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2858": { + "current_role": "paper_train", + "prompt_sha256": "4a62a2314c5f231c5acaaf6d4b5055c765839d340186da6aa7c1af1bacfce831", + "gold_sql_sha256": "3191140e3f4a4f220a77810ddc80eafdb7366799ff258288d2e5316c584dcfa6", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2860": { + "current_role": "paper_train", + "prompt_sha256": "be4d3357dab68db9c66d7b219a4122ba6a0826618bd90ee2c0d3ba6c5b8cdfc4", + "gold_sql_sha256": "13d51344af6e7928f6298ea1ad4c732335953fe0dd4fc01dc61bb9938951368f", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2861": { + "current_role": "paper_train", + "prompt_sha256": "bf1b2dc610c856952d1b7a01f9bd615a9a362d20fa1d6ed9cb4b60785c908894", + "gold_sql_sha256": "52ad59b640031bf898a112abb7c36ca0d54cdb815f000d63d71987430046b230", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2896": { + "current_role": "paper_train", + "prompt_sha256": "42bf944f4abb5c287524256784d8983482a0d8ee505d696799df2a700350e7b2", + "gold_sql_sha256": "82db7a3bb48c6440a805ab0d64861e94e2b83aa6cf2ad91ba39d4e282b9ffd4a", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2922": { + "current_role": "paper_train", + "prompt_sha256": "7d0ebf9382313b57f1aab1d04d2b5d27f99d85296a5796af995713589be8bfcf", + "gold_sql_sha256": "72d28b6f803875fa7cfd67147fe23cd36539cf41fcbc8e36a21bf1538dabdf1c", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2934": { + "current_role": "paper_train", + "prompt_sha256": "5de7899a6a14fa1d00029ea0a7d694a614ae866023f7d7bfb911ce3c2768f433", + "gold_sql_sha256": "4eec42b275c742f0d72009a2f14e3e4df74d07426a36036f3e4dd693be97fdd4", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2938": { + "current_role": "paper_train", + "prompt_sha256": "ea5cad980c8c82b64808c9bbefffb1c678a2dca1eabf793d374acd9cc5daa140", + "gold_sql_sha256": "44850297374537bd5833014f41b738653408136f102c431a06d27aa643482161", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2950": { + "current_role": "paper_train", + "prompt_sha256": "e5c4a05945623eb5fbea1ca34a1c4df176a78e6174a192d85b8d181a260498b7", + "gold_sql_sha256": "c0b1370aa0df1aa9205f377c21f5a08da9e5cf362dbb67e1f6b8c1c6ad1aa7d8", + "database_sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "revisql-train:2958": { + "current_role": "paper_train", + "prompt_sha256": "4c64be88f1f7de52dba2bbbcfe1aa5c59b783b30bcf5d0306206736cf7ed07f3", + "gold_sql_sha256": "89e39400b09ea8276a556e73d85b4d3c76f86bdfd3e9afd0653ff22daa66e89d", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:2962": { + "current_role": "paper_train", + "prompt_sha256": "5795cb4aa957de89f59efe648ae0c2d7dacdf4044927e419e66328daab7790d1", + "gold_sql_sha256": "5e6cbbd190c8754ebd478045727f806fd2070c8704135c7739d46ce2a0a9ee0c", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:2968": { + "current_role": "paper_train", + "prompt_sha256": "79ff6ca60b763e4614c2d2737e3a241116b5baf47b6b70f24b2bd33b440ac612", + "gold_sql_sha256": "cca2821b895376d6edc27252a93e7af0cd15383fd582600291196c00c388d25e", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:2969": { + "current_role": "paper_train", + "prompt_sha256": "abd4890d0372f7d48a8e012e2897a05c753f65277fae0b25494debf9b4d01052", + "gold_sql_sha256": "6d8362c84f33381dee84569f4a6289f6e4c82fa52faf1bae6dc64fde3a0df336", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:2993": { + "current_role": "paper_train", + "prompt_sha256": "bff668f14d65de79c61d8b8db93d9ea035c43eff136461e7c9017eff7b29bce5", + "gold_sql_sha256": "170d733b72a61a0077a758bffaa8f41e533f2036b623f821ebf0329961bb6015", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:2997": { + "current_role": "paper_train", + "prompt_sha256": "37681976c32eedf50a95882819dc691b22e5070d0a7cfea3b04a1c33ff353c4e", + "gold_sql_sha256": "2604e50c42283672f402ac93362b4496b7e8a71d3995c694b0de783635555aa5", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3006": { + "current_role": "paper_train", + "prompt_sha256": "b16dcf2b47b6aaba2ce1746db66448e84da57d915a0d79c6e88834932a6ab9f7", + "gold_sql_sha256": "b2bb644288ea1f1aed2fe9356fc2cb073e4999e076aa6c94c2131ac55311b6c8", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3011": { + "current_role": "paper_train", + "prompt_sha256": "dc82f8741eef46daaf5cc1fb1dfedd26186aa11262ea4b32ac2c4cd5d5fbd0c6", + "gold_sql_sha256": "50e8f37e5be8bd0a3a1a1e94f602bf31ef6d1f8e475daaf1f2946ed02e6921e3", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3012": { + "current_role": "paper_train", + "prompt_sha256": "9eb99dfdc20de276dd90a67530f9fb81a6825781ea848ca92a5ee8b304662f41", + "gold_sql_sha256": "207e0089d75bd36ebb15a62163a76a8fa71a05d7448a7a887ddee5abd567c6d2", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3015": { + "current_role": "paper_train", + "prompt_sha256": "6e99be7615b1853d70402d7fdb93f18501035c6156ff9ea53289a2683724597d", + "gold_sql_sha256": "744381cc512a3423b2500de722a066178fe96e7433950d90aca69a4b2c8fb39a", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3026": { + "current_role": "paper_train", + "prompt_sha256": "9e36dcfa49d15663d7ccee865c23a72bb578f7ffbc033fe9d65c16e9679c6ace", + "gold_sql_sha256": "3632f3d605e3462be8b3abe5b46b19301a7cfbca88a59dd7d5620ddb0809fb7d", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3030": { + "current_role": "paper_train", + "prompt_sha256": "2980201e6f9c5d79a064621e99037c8ee8c23a21bc27c16533800c910cddb02a", + "gold_sql_sha256": "b88f01294f450b942b9e2f83eddde9bfca7ece2aee48d8b9673ab73801dfc970", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3041": { + "current_role": "paper_train", + "prompt_sha256": "a2fe70f79c54a9901bedf98e5025911c0619ca11cd6d288bdb308173fcd87faf", + "gold_sql_sha256": "122e84784c57b4f18cafe060f08b204d924b764f68f6503400cd99abca75952c", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3044": { + "current_role": "paper_train", + "prompt_sha256": "771a81b72745612ab8c5d4a28bca0093f20b5d7f6e3e96e2fe8856f0b13375e0", + "gold_sql_sha256": "af635dab861d174e72c6210ddfb744f36ffed4fa3cd9e37a97cb8875bffaa7fd", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3046": { + "current_role": "paper_train", + "prompt_sha256": "90a46bcc72249b3b587c893881a82bf819376b05bb919a0d8c9661cea7cf34a0", + "gold_sql_sha256": "c6795844abd4c04342c2b08d32d981267f21a016ce59c6325e9288a182718b91", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3056": { + "current_role": "paper_train", + "prompt_sha256": "69d98aab4ffdbe478596a87c40e3a570a2f014662874250417ca166c975b9073", + "gold_sql_sha256": "63827f16ea35e3de15eafdcedf455ab39a73702cf2368e65dd8a1858bbcecf8d", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3059": { + "current_role": "paper_train", + "prompt_sha256": "3914c2264a79254b6a6d4680c0c27a12b77afe2efeda5ac4d245ddb2b39ed3f9", + "gold_sql_sha256": "da15d4ad41dfc28b157804ddc85da75f977b874eb102f598f23def7800cd3e1a", + "database_sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "revisql-train:3081": { + "current_role": "paper_train", + "prompt_sha256": "5f159a2302596e47f2c5596bd0ec1188656dde8513dbd647b73c4ecbc2f7e23d", + "gold_sql_sha256": "b60af3461428b185e36faedc54d09ac62bccd356c990790bd90199ea26a2bd74", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3098": { + "current_role": "paper_train", + "prompt_sha256": "7d4bb3ac0b3ef901bbbd9b6212bc3a80efc744f329de6d04005764dabd18159b", + "gold_sql_sha256": "ec17760cb794444d30626306de3745e96968f2a41b66e74731a73f1f9648bb48", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3110": { + "current_role": "paper_train", + "prompt_sha256": "7e5e467bf7743d8b5447071be725f381694733841ec5eace4c30673ea005fe87", + "gold_sql_sha256": "0615e132043e5b00a7c4dd05fb9116c90b59a968785f587d8506e6baa9c61666", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3125": { + "current_role": "paper_train", + "prompt_sha256": "29bfa84d4cc7543375c7cf5c57af925c8b2a95267af58881bce08a513a3b3671", + "gold_sql_sha256": "81e45e7ba0bbbde54e242835f123c7e8bb58b897f3dbcb631f727e42f23c2121", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3127": { + "current_role": "paper_train", + "prompt_sha256": "0badbcb25961cc8f3876be62064f4397a10fad922f2aea9a356bf259352e351a", + "gold_sql_sha256": "5795ae6ae9cd8078649d83fc34aca17cb6a9e318f921eb84e6fa89b368e47041", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3129": { + "current_role": "paper_train", + "prompt_sha256": "2337e5c6b3a8b427109b2b6f36ccaff215f581bcc283708990dffcc8d7283a66", + "gold_sql_sha256": "79b7afb7ff1c1cf37eb759709281a45e931a6da8db62484b04033d2cb4df3bd0", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3140": { + "current_role": "paper_train", + "prompt_sha256": "0bb37c171f9eba6b55b2a2e245c389220dd2aba53f3658acb77a0127c94c9c66", + "gold_sql_sha256": "6ee0d2d725723360563aa6536712801d21d132c3e6705aeb64c8f06519648e77", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3141": { + "current_role": "paper_train", + "prompt_sha256": "409885bb48bb9075f72e88565907f061a0095c0e051a505864bfb4b24b7022c1", + "gold_sql_sha256": "8745a0ec2058216db3e6042f90ce9f29aadee46e28a07580c82efb1f81b584bf", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3148": { + "current_role": "paper_train", + "prompt_sha256": "8f3e5b3e369ae86b072b46d2fbf86e2d8fec01ad56b05e9601c836b15e69361f", + "gold_sql_sha256": "4b2429b93b9d4124c1ed2a0eae7fef8ab7fa33aebb383c9800ef80e2b91fdc46", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3161": { + "current_role": "paper_train", + "prompt_sha256": "b1720691778973157aaa08fac5ba7038f47ffb468b93776a5294c0342aa0b491", + "gold_sql_sha256": "3a336fc636b004ca4eeb82938dc8860c2c88440b4340d32b4338e15024d36d22", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3164": { + "current_role": "paper_train", + "prompt_sha256": "5e647e93ad7cb0f81b91e6cf48efb5c0997746049b7469ee1980a42fa7d0325a", + "gold_sql_sha256": "167291c0c215babc6a09a843a79f2d27bea85c023dd8119338a1fe5553f7511c", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3169": { + "current_role": "paper_train", + "prompt_sha256": "e3133b36310898900e8bc1e6ad86965e07aa24ec06adf0fcad10890fd2e56d80", + "gold_sql_sha256": "d03ae4c668b9c60d65e8ef14387ac977956b24282ca07ba788d99ae6834144c4", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3170": { + "current_role": "paper_train", + "prompt_sha256": "ed210f54278022f5630ee5a2091a3b7909cc45cbbee14823574309cb0bd5ede4", + "gold_sql_sha256": "9f40b1a2a7e338f889ddb0cb50fefb4072f67c78d298c70c49644dab33431883", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3187": { + "current_role": "paper_train", + "prompt_sha256": "9bd635df7d72dc8e5c705cf124cfb669978ff4cf219ab1a1bfa17ca1456a9613", + "gold_sql_sha256": "d823cfb95a53708a83ecc9a7ccdc4f1e1affeb47c38d3baca2af5d8511e3f291", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3205": { + "current_role": "paper_train", + "prompt_sha256": "e81147bbe8343abe308ab166f00ebe45335c7ca469c0c9e040ed8d8646444bd8", + "gold_sql_sha256": "999699f3d3cfd2cf904fba630e0bf97aec65375f34f9ab103c5f21ffaf0ec68e", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3210": { + "current_role": "paper_train", + "prompt_sha256": "aaa27189a68107e4ca9eb7b271eaa282153b9f3bfe7cae60edf54047151425fa", + "gold_sql_sha256": "68c8c55ec1a23a888815d99f00d766554ea4b92a93fae9a93169b14f2edf2d3d", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3219": { + "current_role": "paper_train", + "prompt_sha256": "cd902ce4c53ca9bd2c655a442e8ad62f36fdf231dd0e0d063d28a34bc7c8781f", + "gold_sql_sha256": "9dfe5d266ff561eae864bfbd4ede6d36ff8eaece768d911932e2e8b543d518b5", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3232": { + "current_role": "paper_train", + "prompt_sha256": "07b52196ec6bd8bf2cfd982be271fb603f99e629cca0f67d8ad502e48e01c4b9", + "gold_sql_sha256": "85cc19a7b930ccba9a56cfd5f68923fc97edfa8ce62880ab0ffb42e5adda1e33", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3237": { + "current_role": "paper_train", + "prompt_sha256": "d1d31717a9a8eaa74bb5ad42002e3c959cfc302d9714f12b031fb1ea52d21817", + "gold_sql_sha256": "44816dd2a2ca900912eb5111a3d98f3b7bd5f39e5a72aeccb6e52d2903aa6bb9", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3239": { + "current_role": "paper_train", + "prompt_sha256": "8b109a357cbe65e5d2f758ba5ef737948f9daefc8fe397a5012eb776d0156e5a", + "gold_sql_sha256": "294561110c16012963e978676c6773f533428515e8344e4f028f4d5e48a5bfab", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3241": { + "current_role": "paper_train", + "prompt_sha256": "29695798ccf0daebcf5b0b3592181b6c950b02c83597c3b77f71ef13c2e7e378", + "gold_sql_sha256": "19a1f16ae89923ee61f821f81c008740509d0a2d3240fd9ce78c1f3feb3458f6", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3247": { + "current_role": "paper_train", + "prompt_sha256": "bd2e852e09fc43a96ed0997d257f11f648e243afe300a1b2863fb1a8076c1348", + "gold_sql_sha256": "02da6e5be8b9f9ec0346fbaac83de49398b95998516079034e524d95d86ae43f", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3249": { + "current_role": "paper_train", + "prompt_sha256": "cfcfb2e1d236ed11c8cef0320379432a58253df36f8d8bcd1f5d0ff9277acee0", + "gold_sql_sha256": "763bf43f5be9d2bd9d352d6112e2725331e9355fcbd5b813e68a334d61d68e25", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3251": { + "current_role": "paper_train", + "prompt_sha256": "f5a2eee0eafeee06b428329642b6f37af54e113981e63f222bc2f46df556eba4", + "gold_sql_sha256": "38d86de537c4db1e42fb1039242de453aa77926021fbc1f2a2d23c2672893f22", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3256": { + "current_role": "paper_train", + "prompt_sha256": "4bb058e17fd1c7b790b5196b4e2985a1ed580079add22a5a3fbf56d5a20e06ca", + "gold_sql_sha256": "fd7a43af274db2748cb4353fa3473619e26af19cf512ad42a4709f06fbe3c89f", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3257": { + "current_role": "paper_train", + "prompt_sha256": "0d8a2b8c65d5fb887de2f45e38ef8913b1be30eaf0d82782dd78dbac0a751d8c", + "gold_sql_sha256": "70a6d4c0cf06dcbe666699bc8495aaf8ab3024ad514b480bffe402661507e036", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3297": { + "current_role": "paper_train", + "prompt_sha256": "6b76e00c30c4dfcf1059e9fdc46532d14726efd86e68c2ea95bfd0578ad5ac60", + "gold_sql_sha256": "11fb9e56464f101c910bb4509de4db720be6c5e2a0a17d4959a9abc278bfda55", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3306": { + "current_role": "paper_train", + "prompt_sha256": "60151be7f8850b6eb7bda22128f4267f20c3cdff58845682127d39489c76506b", + "gold_sql_sha256": "2171d0a33b4d701f1f4ce62c1a7d52327829b8646bce18969ca55f19737c9613", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3308": { + "current_role": "paper_train", + "prompt_sha256": "0e4d7561dd94af6ea69f5a3c2c9aa4655c7daa19c2f629957bb29a42d5fe67af", + "gold_sql_sha256": "66d86950dba5682d2ce52ce46e06119292d323a23b398fd548d4bd35d9875dc7", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3310": { + "current_role": "paper_train", + "prompt_sha256": "6dcb9f68d7559b36b90bca96bbf02b7fde6d9f5753ea2d46e7dbeac1efb510df", + "gold_sql_sha256": "9c98a4ecbdb9e0e2c4797366c4bee33b5e87f6f1b8bcdd8d44ce70b8fb1fc5a2", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3313": { + "current_role": "paper_train", + "prompt_sha256": "769d93ad22e22b3655736a7e341369d8c1a03f864e40aa3665dc7c2dfd2a3b54", + "gold_sql_sha256": "04b6c452ff20ef374c1e910317af15dab332fbf67290409b498d4100452d3b95", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3339": { + "current_role": "paper_train", + "prompt_sha256": "956ed4b292a7e53c08452298eede18fcd805216b070746f1074e124feec738ae", + "gold_sql_sha256": "44b29de844a7ce63c9db11871ccbd35e3399e3cd69bd7088b4a837fdb159a0b2", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3341": { + "current_role": "paper_train", + "prompt_sha256": "87fecce22c11b33e7bfc07ba5b693fcafae7d7aad7d8bdae23dfe8fe96ecabb3", + "gold_sql_sha256": "186def139440bc9cca05bdc3c12950efbf1c08ea04fa0bdf16a45fb41ac8314c", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3359": { + "current_role": "paper_train", + "prompt_sha256": "de9569ec11625eb5c2c01f8b44521b498a6af71f228cb27c4992b1b5ee12dfd0", + "gold_sql_sha256": "9d64da18b1cac112f4464bb9e5bc532c5964a6c4ee2608a7875f340c6591d0f2", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3360": { + "current_role": "paper_train", + "prompt_sha256": "67c093bd0e07ecfc2ced06f00417b5eee5c007d28adfd14a0f9ed10358a8bcb5", + "gold_sql_sha256": "62b219619c027144138fe8c71203e3c1b11087215da3c0c651cf0788a9db502f", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3373": { + "current_role": "paper_train", + "prompt_sha256": "f74db65d21271eff7cff0fcf1d76e1ff99de57f684d3d39372c41a57c46b23c5", + "gold_sql_sha256": "7595338e8312cadaa77603db730be6aa8437f41dd1a4120fa25df73bd798b80d", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3384": { + "current_role": "paper_train", + "prompt_sha256": "6d1c40a62d26691cc753d73ee3c2ae6e5700b795a723c620c98f73c79bf54c3a", + "gold_sql_sha256": "24c941b19dee7f2e669febcd779b3acfa1f00567fa56543c427a7bb4cbf10426", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3385": { + "current_role": "paper_train", + "prompt_sha256": "820e3380b5e0e2bfcb27e707c1888ec9b93a825fba42df57ba71c9e00172a85a", + "gold_sql_sha256": "8e9d9880836c4c3a4df45e90ac13ff7cda7fefcc65c6feb088c16ceaefb9ba18", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3395": { + "current_role": "paper_train", + "prompt_sha256": "b5e7798eeba4a1dba702642da9aa3f9cc5295a7791535d155d83fb59bf1e2222", + "gold_sql_sha256": "e7af992d3ba741918937b265154cb177a69c3efc1b08d207cff328d9c4eaff16", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3399": { + "current_role": "paper_train", + "prompt_sha256": "5b032ac52cb773c43e4246eac027e7fe8353030d386c04bcc6a734c7caf1c45a", + "gold_sql_sha256": "b5d98660553ff51665492674fb1130815ae9f16155da27306fa464aa24b83515", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3421": { + "current_role": "paper_train", + "prompt_sha256": "9e963defc5d5ff909e1f0ac517f61023d4566666338dbaa1880c713debf76547", + "gold_sql_sha256": "fbfa61e16e2b435d24d0c23575f48b0f5fe72806aa442ede849f78883025536e", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3422": { + "current_role": "paper_train", + "prompt_sha256": "b24ef9d3e75591ad7ab99cc0d6f737a10c1193085a11a96d6a018833f80cb5f0", + "gold_sql_sha256": "3d3f08fbc6a7da797d815cbfcec4906d4289a51031133d8d81b9dc1822a295d4", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3432": { + "current_role": "paper_train", + "prompt_sha256": "81ab7a007b6eb8f6a4d1218204dd389eb7b87fa162644f3142e2fdd917fbe40d", + "gold_sql_sha256": "2ac7212388a4cfcbda0643ae7b39dbd36960e682de4acdbfb61bf45095d876f4", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3433": { + "current_role": "paper_train", + "prompt_sha256": "ac19d5a5f147d76c442a9d1be0f012b2bdd8455d598ac7f3ab876b03ba48d698", + "gold_sql_sha256": "1d5b7c73b2387023631cd21d9c0e2c39408bab74e4a9f92e150b47c5e82e6fc7", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3445": { + "current_role": "paper_train", + "prompt_sha256": "34be929c6c464246a3d0a7c0748da116b0d3cdd473ce808d6a09ff949bb6598f", + "gold_sql_sha256": "2f53bbaef1c1411d36cdc649d5a6b714752806791c01c35a105bdb290d438902", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3451": { + "current_role": "paper_train", + "prompt_sha256": "0f147bca27b38e737ce3cf113870c312aa5c894a0c89ebe44aefbef68779539b", + "gold_sql_sha256": "cfef58e26afd6c626e8755752a072d8b9fc97c88883c25a51be1d5ce75aa4d09", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3465": { + "current_role": "paper_train", + "prompt_sha256": "827fe299ab846a6a92e0dd661be0fe69946544542aa6f1cee48f380c6ccdd346", + "gold_sql_sha256": "0f96a3d3b79117d86aa0f8a3650857c7b32f28c1f5325fbb99402f2ac96d536b", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3468": { + "current_role": "paper_train", + "prompt_sha256": "88b16dcb27c72b18351dd14d14eeaa256b9861ae6cd5fc5efb057b5ecaeaacdf", + "gold_sql_sha256": "8ffd5febdb20297c7548987757d2485b8cfcc315b8ccb69ee12092afd2f37ef6", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3489": { + "current_role": "paper_train", + "prompt_sha256": "dc53f0f2be70baec399865ba72a487ec4e278176201a4e8f8e9893cc3caec4ad", + "gold_sql_sha256": "7599682da29083c9fd25de820ac3e9a4400426ebac400498ec028ff36c4679ba", + "database_sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "revisql-train:3523": { + "current_role": "paper_train", + "prompt_sha256": "98303969ae5d5b46aeaab319393e7e3ff68d244fb55af551534d482985208247", + "gold_sql_sha256": "ab5eec2f1232619849eace0cd0b443a609d7e9165f2fe9cd14392503f28ea7fe", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3525": { + "current_role": "paper_train", + "prompt_sha256": "b3f8f7d8db7356bdd26ea2327ec1350b06ef558a6964dd0536d2b32224f064f5", + "gold_sql_sha256": "abecb86a9880701c02234d2b0358329a77f507ae4232ee2054c2b3eb68b66dab", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3532": { + "current_role": "paper_train", + "prompt_sha256": "1b0589bd4ccbba674eaf7f1913b7007c49c5267573e1ae5ef1237dddf5f72544", + "gold_sql_sha256": "3c41a5f5c252308440048e9b4a06b25dc15f7a961cb00e0cc14df0ff16c440a8", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3548": { + "current_role": "paper_train", + "prompt_sha256": "f520c46ec4c28e70820762b8636f776c57748b21908f0187cc550e7fdb99ae8e", + "gold_sql_sha256": "360f9e1e7e43eec7e13fc59ecff1706302174a7b0bdb20155f3306653c22f637", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3559": { + "current_role": "paper_train", + "prompt_sha256": "e9b7572e8a3ecec12d2e2377e79dcde534a8fcc8e6cd6790274910e2c08e07ae", + "gold_sql_sha256": "55212d8b805e5381e91f8f16bbde302849804ded0e73c65762e748f013bfa545", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3561": { + "current_role": "paper_train", + "prompt_sha256": "221acfa38b2c4f1b5a144cc8e4def1a56e8449c2a18c450960a674a7ab0d6bfe", + "gold_sql_sha256": "c67e75d2e5a6c01d801d89c4797b5f08a96a42704532d7ea73be7f465e7a2cf8", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3574": { + "current_role": "paper_train", + "prompt_sha256": "7e32605b5ed518c51c0520badd174eb50bb484f079efd20e63d3c4de6e770a40", + "gold_sql_sha256": "4914301d6af168ee1a7edeb10d72e2eb797a0dee36a8e4eb52b4d63cfe38ced7", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3588": { + "current_role": "paper_train", + "prompt_sha256": "9930f1552f8713c7b6fa120a49220ab53ef249ac68f2909387e99560364ac938", + "gold_sql_sha256": "75de141218383efc570fa532147bcbf4c6e524e05f97000d643391fa94d5eaf5", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3591": { + "current_role": "paper_train", + "prompt_sha256": "4230aed80ce6f23c0e16b87cdf1a376d0b47b01ae6f08d17e254349cb6c46f34", + "gold_sql_sha256": "21525c38b30d26b546f918724efb606c2329b6cf30f2c3500d38c5a6626082a3", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3603": { + "current_role": "paper_train", + "prompt_sha256": "e6d75739f6caeb60f9ecbb2dfb82e4b93043b624a26407e3ef19debf24497545", + "gold_sql_sha256": "fd34af390c6c42df883cd95575525467a865dd6e85c3b4be234a112010514e27", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3618": { + "current_role": "paper_train", + "prompt_sha256": "458ef653bebaf25a431ec1106f3de1495691c1fb39604ea4a5c9372eafae6a97", + "gold_sql_sha256": "9f65f86315fdb1af03be1ec8bafb1759ce7c19adb7e9a8323f23dc19f1e38569", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3619": { + "current_role": "paper_train", + "prompt_sha256": "61d7ff35c9ef09092b1c9c0581600e4db1296eecdd55e4c462eb3d0d2283d649", + "gold_sql_sha256": "fc3cb1c5a5819626a0630c7bfd8afc914935a421aff63da42fe22e8c41d8ba16", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3632": { + "current_role": "paper_train", + "prompt_sha256": "7149100a4663d86074f06a07bf43fc2cf40a828b57decaf449b5efb521fb8b03", + "gold_sql_sha256": "fbb372f8d355dbd69baf491a02eebb6358ab075697dd500b59eb0a5066719a48", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3652": { + "current_role": "paper_train", + "prompt_sha256": "39ebda7307546c5ae1b4255775be148b9537304706da2ba3c8003b031a978bba", + "gold_sql_sha256": "06db529a2e179d190c128f304b5a116bbb2127c409a0ff94c6fca9bd23fd1494", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3659": { + "current_role": "paper_train", + "prompt_sha256": "544e9fe7ac05986f687aa756b95ee901dac287ff02d9658f2480553b0fbb740b", + "gold_sql_sha256": "7985a0fc544558b8dc4d0a7ecec02da60ae0fd8119560e83ae423758ff6c1451", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3662": { + "current_role": "paper_train", + "prompt_sha256": "8db6a5110f8bf7dfd469547d1121303a9efc30782bc10f709ce22f8b8c899f81", + "gold_sql_sha256": "214d6c0361188f4f78f6aa89a4e3b80a6b9f000537ad87ed439fadaf579147e0", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3669": { + "current_role": "paper_train", + "prompt_sha256": "31e78ae04dc6f4688e48c80658c17e3e3cfdc0e549c47c19a7563a47bdaddb3b", + "gold_sql_sha256": "3a4da1cf365a5b48466edac883c1ac2766392b578c35766257ed74c65f1a2172", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3687": { + "current_role": "paper_train", + "prompt_sha256": "62ba9129590c67234fc466b58609ffcbc8392edce3358146b1507e2edc98bfa0", + "gold_sql_sha256": "0c796eaed32713de8424fe3eb41698eb3a418810fd9635a9325cc1b806099051", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3709": { + "current_role": "paper_train", + "prompt_sha256": "f9ce0ec4a70cd5d1fbadce8688b03d1eaaad794e0b67d37a6da82419b994077b", + "gold_sql_sha256": "abf191673b73ab6263b0cad7f51acecadef7653b5fb38d4969e018383419c325", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3723": { + "current_role": "paper_train", + "prompt_sha256": "772a4ccea902bfff1b8caa0fe7b5e6d477628865a8b621b4ae3b53bddce09f1c", + "gold_sql_sha256": "4e6507ae25895e106a4bfcc8b9a11fea611267962affcb2034d7bc93a06bb507", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3726": { + "current_role": "paper_train", + "prompt_sha256": "dc98cac5d10a12a025751ec4b6bdf83ca20509f06f99b32304de1dce0e825aed", + "gold_sql_sha256": "dedba8608a30e0e07838ce4cb8456359ac02f6173544f98036824e48c8cb04a7", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3729": { + "current_role": "paper_train", + "prompt_sha256": "d98c23f93c057b16115539f3a23df16391450e51106f0147454abe0f06409520", + "gold_sql_sha256": "c0892e31031575c76aaf37fecd0fa437ad503ad8dce27bc78de6ce57f215903f", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3741": { + "current_role": "paper_train", + "prompt_sha256": "0c0930f3b913cec5f46f7d2f60f4dc98aa01d034bcc86c0de89a244ec2dc4084", + "gold_sql_sha256": "a8f8c1c8edc978791cd1e2ecbfc89d9d04398aecc6f2542f4df4d1304d143a48", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3744": { + "current_role": "paper_train", + "prompt_sha256": "01008de9b54024a95b6a22933fdc1d1ff462518a5b408bf265d5f696d21f6e95", + "gold_sql_sha256": "1636d36736a66b4737e5cc8f69d3271b7d3b23416be14aef92a35364e45937fc", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3760": { + "current_role": "paper_train", + "prompt_sha256": "0f6f0d03aebf1b0f530f4fda8a575e1036a9753de6919f0c2499d7841f0bff15", + "gold_sql_sha256": "16cccf421cbbb03811c3f320efd9d297204f3614a3a9e7dc9bdb70be6d4d5f2b", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3765": { + "current_role": "paper_train", + "prompt_sha256": "804b90c6417af666064565a1b692a7b1caedbaefd670d53f0158be94b64af667", + "gold_sql_sha256": "e1ff2ff882747a12ee4623fdc3d52a6e26adbfb64df4dbbf25223bb12ed2b99d", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3773": { + "current_role": "paper_train", + "prompt_sha256": "39c47539b5635b27cf7d5f494f17b88e8f8fbff7e58693a37855cec349f70658", + "gold_sql_sha256": "73f4b2c527ec4355df4718f75afb63eca18301a442aa946f6444531013faa885", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3791": { + "current_role": "paper_train", + "prompt_sha256": "640912dbcf3c79162336db8c4a4858bac825a72559bf4e389e7de707a7aac796", + "gold_sql_sha256": "394e7c57bab123a501ffed0d02a6d7bea41e18e1ba6ab6d707e9ce5f9047ee6f", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3794": { + "current_role": "paper_train", + "prompt_sha256": "0f61d78e4cf33a31388977f641bc4b55f5461500a6ddae1eea41e94046577c72", + "gold_sql_sha256": "16973bbeafb0eae0bf5177c227ede37131124d1e04994fb1e6ce98ccefca8ff6", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3796": { + "current_role": "paper_train", + "prompt_sha256": "d0e58d804585a0d52abb0a56a5ff23c8adc486af05d561c313cb9e15aa0afc62", + "gold_sql_sha256": "a89f113fa391b3c17a066e3829052cc6309d1246f8ab2e209a60ed79c643e928", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3808": { + "current_role": "paper_train", + "prompt_sha256": "cf96a404d9c0e7c47aaa564499d970be48c16bfdefe9c60363f3f17f95432206", + "gold_sql_sha256": "9a4f0af8661c1c76c1997988d9e8cadb2c01cdbb05900414e6346d467851beab", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3810": { + "current_role": "paper_train", + "prompt_sha256": "15b422489e865b43051f80f9ce3414a31fa376ce2ed5b7a4a72a935e825ce089", + "gold_sql_sha256": "5843b377e326059b3037a9c87b8aeaf72365c58ea539f328e38f1c937d704320", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3811": { + "current_role": "paper_train", + "prompt_sha256": "b7936ac539dc645ac0327fa512ba0a658e31cdab4f12e276179e652ad900557e", + "gold_sql_sha256": "c7208e136f88111bdeedd4e5d872b0bb914435edd78554a13b8db84bc78de1bc", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3813": { + "current_role": "paper_train", + "prompt_sha256": "c046c7b05454fde092ee9cbeca39992c327034ff48e8f25b7eaaa888f5665936", + "gold_sql_sha256": "6070e1e2e80f21ed095ada85cf21e10b6af06270d303be305906594fde94c329", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3827": { + "current_role": "paper_train", + "prompt_sha256": "efdca458580f2081e5c11d05e5837a8d51e289c3d3e162a44b85fd14be111afb", + "gold_sql_sha256": "be0f90f3a5c28ed38056759628009ed3cd3b9ba131d06705a1ba1ba55b3814bc", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3829": { + "current_role": "paper_train", + "prompt_sha256": "892e94c94ba54a689e13cac2a1705ddd6db376c61f8205c5363668dbb56626a4", + "gold_sql_sha256": "622a06eb059c5bc389a379f34662341b68f79a14fb6dfe5774b2ae9ed766e2ad", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3841": { + "current_role": "paper_train", + "prompt_sha256": "7ca87cd4afa5a62e4f51bd0f1e7a8edfa529c595e7fd4b257b9cf415b94f868d", + "gold_sql_sha256": "6070e1e2e80f21ed095ada85cf21e10b6af06270d303be305906594fde94c329", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3842": { + "current_role": "paper_train", + "prompt_sha256": "7c6e86e7e00ea25fab39d4a91194eb571371eb65afe58ef9c2d57cc8453d9764", + "gold_sql_sha256": "75ba032fa34b2eab29f0c61abeabf385107d3a0e6b642ca4bdc35ce29ff60307", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3852": { + "current_role": "paper_train", + "prompt_sha256": "a18622ac0c8c47a614790dfb556b8ca226f0b129a60f3d3e80209c267895eb66", + "gold_sql_sha256": "b786d3670d7942e01f88183f686803f32d47c4d6e3dce2d3192f137c7d9063a5", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3856": { + "current_role": "paper_train", + "prompt_sha256": "d06d4ba407b09756b58517d06d9042458658b72268640104a7f19e24a01d2c74", + "gold_sql_sha256": "7c0e27005de4004e9c0eb0122d00b7cae2091c48c06c58bc9cb516af87dd98fd", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3868": { + "current_role": "paper_train", + "prompt_sha256": "d866e09d63c93eaebb811cf78f64301c31a51a4face080e2997b0922dcc4cf5e", + "gold_sql_sha256": "727590132f3249de489093ae1c1584a8cd799207a6d9c53539952452b80b2593", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3871": { + "current_role": "paper_train", + "prompt_sha256": "4bffdce9fd4c50d2dea84387b015ce758a2cd1fc97dc95ebf3c9cddd6da50e1d", + "gold_sql_sha256": "9e45e4cd38741b321ecd9939c363aae696bf862bc036a9413c006c53f718d682", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3873": { + "current_role": "paper_train", + "prompt_sha256": "03188ce5da93f652775b0523263d298c0a5f576b75ed2aeaa339a6a26fae53b2", + "gold_sql_sha256": "67341e5377e476f041ccb4dd8d18157d978fcf0a9fe70bfcd835ac60033dc044", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3882": { + "current_role": "paper_train", + "prompt_sha256": "2a9d1206c5d658a9c7001ebeda1b97d73e31214397042d18e1fce475adb81dcf", + "gold_sql_sha256": "0d7d5f037cfebffc9f4b36ebcb6436f393a0ebc66efd0c4589f7a13cf772bd7d", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3912": { + "current_role": "paper_train", + "prompt_sha256": "73cc17d4615fdc92646617d246b2fdb430f158fc4139727cc271e8b73de5d95c", + "gold_sql_sha256": "90c1afde79873434cf0d70501dbc7438a6ab2ef8c539a97849f856c6daab9874", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3932": { + "current_role": "paper_train", + "prompt_sha256": "6eb144b8dd704ca34ae8bc8d01bab1c84ab34b337d79d793eb755e63a39369fb", + "gold_sql_sha256": "8f9ae078584e2f706c57548782b094ae9d86e77df3525a1e2f1208c594eb51d9", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3948": { + "current_role": "paper_train", + "prompt_sha256": "3f2a4ef3732a288962ae457929961841b83ce5da5a45535ef3cb394a88634121", + "gold_sql_sha256": "d0a17bd82ceda246ccc44993f62ce46c80e8ea35dc20922d6ebad0bc166cf963", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3951": { + "current_role": "paper_train", + "prompt_sha256": "ee5be510994f390a36dc2d930b6b3a8718380bb4c227e39b8a796f3ee55aa42f", + "gold_sql_sha256": "86e9024d59b0c9891447fdcdc01625a5055059d408ca0626bc228f9907d0953d", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3954": { + "current_role": "paper_train", + "prompt_sha256": "7a0ad20dd1e756deaab0122d0160e43a0b2b2cf6e9bc98843e329c9699ed2950", + "gold_sql_sha256": "142c046c973fd6bc11abe1bb6db1653325681f4ca0da3dbdccfc29d9b41bd051", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3968": { + "current_role": "paper_train", + "prompt_sha256": "5a57cfc7dd831093e236ff080a62683223e8358efe51acaa4ffe79a13c28799a", + "gold_sql_sha256": "0221298fb132518cafd56adc939b9919438210875e1bd8cd9bce5cfb92487109", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3977": { + "current_role": "paper_train", + "prompt_sha256": "21f75a0ad7638913e91c4211a6f1fa62a9f6144b0893637c43660b7130af5d6d", + "gold_sql_sha256": "a0595508d189cf2f0f6d0ab4e0b88c647f2593c8201c5b6b01b88090f73fbc40", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3980": { + "current_role": "paper_train", + "prompt_sha256": "19b343474b6fc77888e07860350cbaeb6195c9b2051188be4bfbf0ebbfd42f22", + "gold_sql_sha256": "1ba1fbcbbd09c886a93fa83810c4e0fcbce3ea85b85461388df92447578838fd", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:3990": { + "current_role": "paper_train", + "prompt_sha256": "6ac3eb9a6e51bd6d3cf63c862a64b1db478c2a7e5377f9d0bf27ed20c6ae4e8a", + "gold_sql_sha256": "5fbd7be94fb34c660f1de88a9611b091dceeae23a68467c8e5d0d1df61360ecc", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4015": { + "current_role": "paper_train", + "prompt_sha256": "f898b3f221d6ac96d6e5539d89ff1464f964e54b466c9e404ad01e5a675c97ab", + "gold_sql_sha256": "560871f6af0078f8c441104a4eec7a2f21f33bb6a01516fd43c1bbde3b45056a", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4033": { + "current_role": "paper_train", + "prompt_sha256": "797bd677266a55e793ee159f35c487481eaec6731791ef16901d813600ed25b3", + "gold_sql_sha256": "4fb6125f4c2de0975a12bd5c7a5f57c3474b223fc4c29a0224baca1bf6694395", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4047": { + "current_role": "paper_train", + "prompt_sha256": "68dec233d4824ffa7ae9a4535d01a850b9f7c484a47d0ab5f1359477a81f10e3", + "gold_sql_sha256": "9006c37bdfefbdb1f68d7da5b23645113ef2f190138d3699022e4a979862e38b", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4071": { + "current_role": "paper_train", + "prompt_sha256": "45c77845c04b9ac970cc47d1cf3d507cd0b0c86c52f63affcbec5602d5ad7f99", + "gold_sql_sha256": "ce5fad5c1dfdea834cdedd25769ddbbc5f8af2a640baef570be3e428b3dcb75f", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4072": { + "current_role": "paper_train", + "prompt_sha256": "2110637c15694c539fa2505ea50cf50b567e0aeaa2aee0a527e7a11564cd9175", + "gold_sql_sha256": "727dd90559cedaf17cdd088348acf2fb149f154b5fc97e1c549396cd2e5bea70", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4081": { + "current_role": "paper_train", + "prompt_sha256": "f0e179d40e5c1d53e0adb976887389ce4a5182c85900d0192447af5b7c48b48e", + "gold_sql_sha256": "f765f2f57f3d51324298a48bd761f42aa074a59de2eed7cee62c0443c5fdbd15", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4093": { + "current_role": "paper_train", + "prompt_sha256": "6fd81aa0a09fb80557bc5fa4344ce8791c3a599073426bacc44e2df2a4fa3e28", + "gold_sql_sha256": "7c66ea5064fcdece31d3bbaa2e45e00aca0743db535136e1df925ce1dea94767", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4095": { + "current_role": "paper_train", + "prompt_sha256": "5caaf600fb7ee655a6e16062ad67c946278c7ba2c892a08a5a9de29279ae84f8", + "gold_sql_sha256": "18838cb88a42fb82f4c2fea27c6046ccd1d50ab0b6508b6aeb4c5c397ef656fd", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4101": { + "current_role": "paper_train", + "prompt_sha256": "58dfd47c89d5f0c864dbbeff729a0fdddb4901cd46731650dce2b6ef1e05377b", + "gold_sql_sha256": "4f3d02b0df95f7e5a23a02da02d0bda80632006fbd463fe01788e63484fa17a4", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4130": { + "current_role": "paper_train", + "prompt_sha256": "1c903d6f98cb59810609cf0d3587369b3411944e50c307ca8985139ef8d9e004", + "gold_sql_sha256": "b27f51615802e59bb9a6daa46ab485d8a7bf6f9ece9d052b931258b70facb6fe", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4132": { + "current_role": "paper_train", + "prompt_sha256": "3f15b1b73476b6ea87388f46aa676e96aacd90c3f9aa59a27cffa0433cdf494b", + "gold_sql_sha256": "adc492d4afa21b811f0f9199e8a0ee20d40503e2babe27a3ee031f1e2d0e9f29", + "database_sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "revisql-train:4151": { + "current_role": "paper_train", + "prompt_sha256": "f258fd2b39fe6c7a7205534b2905ffc33fdcdb586aca9cb312c148b18e8e266a", + "gold_sql_sha256": "d3fc5dcb3c2055d345c885dc8e99257cb531d88d188206bccb071d5bd3dd7704", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4152": { + "current_role": "paper_train", + "prompt_sha256": "4dab199860cc16f7516d000109045a9521680830607d760f96406bc1cfb2e5df", + "gold_sql_sha256": "6c152b8f104728854c2e42b8caed80123d67f8216bc7b6474bb322c67c29777c", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4178": { + "current_role": "paper_train", + "prompt_sha256": "0b4a0d121a525a4f95c03927f8636860e4a5e9fb0e44de9454fa5c1cc048a5e4", + "gold_sql_sha256": "876ef00cd784efc79ce787f64f8c44c6c7079f9ddf158579356a0c0b314a92c4", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4193": { + "current_role": "paper_train", + "prompt_sha256": "34e85f2b96417ead0961a231e1dd12cd9e6763ccafce5b0ae9ca7352b9c8c885", + "gold_sql_sha256": "8a7e35c5a75310c46e7a82b71ee7bf75282a7dcae6ecd6f49a6954c04cbcb46a", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4213": { + "current_role": "paper_train", + "prompt_sha256": "00e5dd877465430101f25108f8eb00c72a7136292d2992f8d0a65dc7911cc604", + "gold_sql_sha256": "9fc8ad187daf0ea83ebb246eaa2bbf0df96eda57df264a8caa512bea6bf36e30", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4223": { + "current_role": "paper_train", + "prompt_sha256": "ab156ff293d64bbb2ad29a6b7af38fd6d7428a115736e4b8699f3a67687003cd", + "gold_sql_sha256": "53dd952f3a7ed855ea115212a1950d4686ecd6cc3005993eb6938187ac39447a", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4235": { + "current_role": "paper_train", + "prompt_sha256": "b734cd9c3e188b01fe0f99f166e16eaca38c708472fa5c10de9e525d9c235efc", + "gold_sql_sha256": "2dcf18e57eeb63e93b9d85ce04ea03cdd3f57a961e154e7efb4d0ae4959ece71", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4243": { + "current_role": "paper_train", + "prompt_sha256": "b62249249af61f27f3b7be075ad10abbf3900317f9e694272bba73d5925f8c8c", + "gold_sql_sha256": "b39f3e6816e2f49f86d56fd473d3c406e0c4ddbdc1cae68539cb28250d410ce9", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4247": { + "current_role": "paper_train", + "prompt_sha256": "708236a6e68d959e76dc40773a957428e004417562dd7d64f74f98f785129a66", + "gold_sql_sha256": "d40cce1870efe57d3cacfe32d318ebadebf4f10506621327898a1cdd27f183a6", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4248": { + "current_role": "paper_train", + "prompt_sha256": "6fac6ab129980e297c091f0efa4f29b9496ab3592329fbc8e799b881c033e9ff", + "gold_sql_sha256": "3e4fcbbc59adf94fad76fb517fa9d9f19da936b909ea3353c5c3bcf0b105bacb", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4253": { + "current_role": "paper_train", + "prompt_sha256": "d521848448cd2b9ebf32429164c38156cc520c467e524f8524ae114f9dbe598f", + "gold_sql_sha256": "2a64efe4809f34d6151bc411b87a766afc725a8e4fcef1eab8cb9532165e0c87", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4254": { + "current_role": "paper_train", + "prompt_sha256": "8e8997b3a4f1275c9ffc0d59a58bd2f73f43a14aa6ca8a15f824c5a738daebfb", + "gold_sql_sha256": "7f148b1617ba29c42ec7e018158754a9cbdbc38e2fdd09a6ca7527f414561d3d", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4257": { + "current_role": "paper_train", + "prompt_sha256": "c809c339bd0bfd7066781700cdff0acc1b5e52c1c71d227b6c77031ed9ee3083", + "gold_sql_sha256": "c64db281502fb7e3d597c99cc1cf4105536889c1f55a1ee308353e419f88433c", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4264": { + "current_role": "paper_train", + "prompt_sha256": "c5ea7e3968ea5dc5b772a0112764d3331513755b03d81d45c4ee1cba8dea143a", + "gold_sql_sha256": "d3b87cf205565b50f1a2e8de2adcee4b700c874828038cb63c677d773a30fca3", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4266": { + "current_role": "paper_train", + "prompt_sha256": "f86d2b2a4f01987c6861c933bed5e1e240b63752ab83b651d6cc5088b9ee5830", + "gold_sql_sha256": "e17ce98e5c6cdebb84a3f7943403d9eb8a9909407fb47c1e2c7f375be52b5994", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4272": { + "current_role": "paper_train", + "prompt_sha256": "b9ba7a86a7f9b3c0c67856d33199f8bea184dce910f7a8eb3a1620a794b6ddaa", + "gold_sql_sha256": "ab6cae1428496a348ecbf1470d009fd9aab327c07ac5543c99cde1b9354e7a69", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4274": { + "current_role": "paper_train", + "prompt_sha256": "a36cedaf8d4c9fda9d8c8915336edac84752c3e9a83a7e058ebabef2ee1b4061", + "gold_sql_sha256": "b521a7ab1676d90c409f09e001c4d4725852acd6a9d894280e7f2955d9b19ce1", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4280": { + "current_role": "paper_train", + "prompt_sha256": "cce776ce00ec078ca1c58bbc943353e8b52e6e36ece07ab9b63d483a25ddae2d", + "gold_sql_sha256": "798c6d45bb09e22810371ae6355d609be9e70a3549d088d5f7a5926704c15d19", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4286": { + "current_role": "paper_train", + "prompt_sha256": "199a47d948ff27374bdcd3e7113fb12b782ba0d677d84242a9eaab0c5c8454c0", + "gold_sql_sha256": "04be275a97d7afe48a3fc32f63d8c3ffa5a57a7d389d607cab6fbfa3374f2396", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4287": { + "current_role": "paper_train", + "prompt_sha256": "73580e4a910d56439ff6b805ea07fc7cf4d7b2d024912a213636f672d9bd4cb2", + "gold_sql_sha256": "31992c00b17ab97e383769b35eaded030d5f5d60ac5a1c63ac8c4421040a7929", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4301": { + "current_role": "paper_train", + "prompt_sha256": "da510c25d464a82333b0e0fabf472e168c3f02772d9126b72d46fec4c609ea8d", + "gold_sql_sha256": "b9a0f6985f278cd94bb88f0857457730942940f72a46944baea403c7c5f22f36", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4310": { + "current_role": "paper_train", + "prompt_sha256": "d27d246c0810c46b643ebaae4eec0c2a496a369dc0047fa2f10288c92e6baea9", + "gold_sql_sha256": "162e0f95d42722f390b1a9f5bc4811f044f48cc64e03f177633c0c697a6073b0", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4311": { + "current_role": "paper_train", + "prompt_sha256": "189c9ee9693219bc08a2a3eea09ddd2d2ad5132b604319cbaf181ce984783e08", + "gold_sql_sha256": "f59a885eb18dfb18888037bc74bb50beb616d47c9ac61275a9bd466aeafa3e49", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4335": { + "current_role": "paper_train", + "prompt_sha256": "731b5c8655132914fb7113104250f1bdd6aa3054ebf43e7838b3e5ad38da3f31", + "gold_sql_sha256": "92e076e0fff051fc71b7c8046b304d1f2339982c3cffc05fa738ad57f2fa9bdc", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4342": { + "current_role": "paper_train", + "prompt_sha256": "be3c09d65e745fcd65bcc68f1e9b691f52c2b4a4ad1887d3922c0ace8a7ea9e9", + "gold_sql_sha256": "97238dc9483988e56106917d5e220a1bf17d80b0b01626fa1b1c090c7dfc364c", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4345": { + "current_role": "paper_train", + "prompt_sha256": "7c548adbf78f6d32db7cd53e5cf9f1512d4708855f234c683c6197dd8d2d9141", + "gold_sql_sha256": "3fa9395d65ac92b9acf0f99c4df3343a4fb5904daf8280e3892000d2964dff1d", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4352": { + "current_role": "paper_train", + "prompt_sha256": "ef4111d6eab12ef493599856508adfc25535ddec7df111d68bff979f6042bf5e", + "gold_sql_sha256": "e664447d4012bd276fb295211125e1ec0f1dd64a91a699d15003b7128f622fa0", + "database_sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "revisql-train:4368": { + "current_role": "paper_train", + "prompt_sha256": "cace4d068c4a684629fb1a17fe4b83f495e1e8a2058c1b9e4d14b1bb90f252cc", + "gold_sql_sha256": "2e6beca487a55d41f971c448f7f17b9e5448ffad480d2ab0579ce9e6153cb5b9", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4382": { + "current_role": "paper_train", + "prompt_sha256": "d69e53d76f7e6918bf1a8ca6d3446d3c32eefa19fc53d2c442ccee3245765431", + "gold_sql_sha256": "b88a48fe83eddcdf33282058d8819f4034dbdf9781dac7ee5d92b09d77d9ce5f", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4384": { + "current_role": "paper_train", + "prompt_sha256": "b686b3135f87af7547a7a716c645a4fa45c6ab2045f535b9211d2f2ca0e40cb7", + "gold_sql_sha256": "abff8b842dc8d211c6e739e28b6581105a01c36cf554076d03cbe2d6f0ce7267", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4392": { + "current_role": "paper_train", + "prompt_sha256": "110e1406398f7f936a166274012abf7e1f33b0734fe109cceafa498711f0f21a", + "gold_sql_sha256": "5edfcecedfd19ab155e86c96ee4ba6b33d7ef2d2c4fe14372ce3dfd8289eb3f7", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4393": { + "current_role": "paper_train", + "prompt_sha256": "bbbf1e6ce0c906c38c19f0b0c158503aa2542d9f6e0a2e5739c2f3d3fc5c79d7", + "gold_sql_sha256": "f1e94d0c08fd3787dbe487e580e96df88dc794f8162ad83af7cbaaf1ea1e3168", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4399": { + "current_role": "paper_train", + "prompt_sha256": "1f71d5b43f212814648c3ac580ae16f705f546dd806be5265b2f8d57e2e55c25", + "gold_sql_sha256": "8faed94c6498df034918fe0b1f81200eb9590abef1bbe57f26bb80f9a14ae547", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4403": { + "current_role": "paper_train", + "prompt_sha256": "e60eb72c21e476590783bef79225c5b6be69666e0557c76066bb3b5be6786e26", + "gold_sql_sha256": "22954820c656beb6e5a7625cfcbb631be692f2b3d6180f8d977e0bcd91bce0d7", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4408": { + "current_role": "paper_train", + "prompt_sha256": "d14f1248bab221fce49066e061e0a6f5a0f39997bbeaf5338a5388a753d6eb22", + "gold_sql_sha256": "12b2092555435e1cc183e481ca1f3d227d21708bac2b510f17eb4cafb3d9a792", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4409": { + "current_role": "paper_train", + "prompt_sha256": "5a6e90aad5dacd1e888a27d4045bf645f17ba46980dc3a68f33f26d9e6131502", + "gold_sql_sha256": "26ab330d582d81d2c6dba2f97eacf1054efb0c20aab210f79841b03c264594ec", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4413": { + "current_role": "paper_train", + "prompt_sha256": "6e78840c019ffa95eae731fdeabe039032478087351e51523becc4ef4a853c5b", + "gold_sql_sha256": "e529a3a9daccb11524dddc68f66c87ef08808675440a0504d287e9b269b0106f", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4416": { + "current_role": "paper_train", + "prompt_sha256": "be4aee115fe7ca04b46ec87e9267ddc14ff0e6bb41607d265700a0be6a480220", + "gold_sql_sha256": "3610099432280f81f00d7dfae20263d6a56a4dd87be916ce6e79626ae3a22bfc", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4427": { + "current_role": "paper_train", + "prompt_sha256": "7765054bd32c2e31aa809f30e62c088f0d743216bdcff98b42516fa65e4b3d44", + "gold_sql_sha256": "a6b8730548a6a769b78d40c614bf33d9f97dd4afd611295bddd8f94964c5fb5b", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4429": { + "current_role": "paper_train", + "prompt_sha256": "cfc75cf9a389da6a983db62dea8c0b6ac43251fe10c96d7fcff1222321dfca4b", + "gold_sql_sha256": "b545b5d68e2c4a88f98741d38b589c83bdfb6a38607605ca4212bb4e15e5e21c", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4437": { + "current_role": "paper_train", + "prompt_sha256": "0c78888b32a1d0151b0c216920bd835e46000ac2ddbc0111a7fb1f304e966776", + "gold_sql_sha256": "16f7ef516263953144b46437c2a0afa36c19f05105521eb8c894647b7d8f6530", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4440": { + "current_role": "paper_train", + "prompt_sha256": "349b66ec17d76cd248beabb7efd566738acc25273dd2d889918cb374fec255bf", + "gold_sql_sha256": "71d96e35d500f20e59b232efbd5fc22c6fca89932a4ce233a2764e7a4369f0e3", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4447": { + "current_role": "paper_train", + "prompt_sha256": "bb3c8afe98501f20578b3570c43b4d0ffbfe2388380b8595975c05ade3e7e873", + "gold_sql_sha256": "27d6a1a4e978e9644d81fc28fd9cd787ff338345dfad52aff47754968dbe109e", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4449": { + "current_role": "paper_train", + "prompt_sha256": "4251dfd537b9f1a4b93a9016f224656a4758f5f50fb61c13f9bc4cde99b3ff62", + "gold_sql_sha256": "5e8e0a1ec71d8e2d06376ac713d1f9ff689538237e7a3812f959848acd7b37ac", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4457": { + "current_role": "paper_train", + "prompt_sha256": "21af90cd5ec4c06c8b3f7cf4363000d371c8f0b5d6f525e482d0f53e98d7fea8", + "gold_sql_sha256": "e103a081e38e0ee816425be0cee802a2e61cc0197ba266b407b9360885c0e38f", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4459": { + "current_role": "paper_train", + "prompt_sha256": "c2fbae46e4da0b57d2c676a113d5277114b063a9029fdf17808bb90a0bb6f68a", + "gold_sql_sha256": "f473e6605b509c898bfec47d8ffd528e66e318d73f43cf2bd4054067d90a8b84", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4464": { + "current_role": "paper_train", + "prompt_sha256": "9c446817526fbe09409148a1a0249a9b7bd8ef74dbf40f57d17241933dea60d7", + "gold_sql_sha256": "3e28f9818f9cd7563c7ff3506d94ab339a243bccaf9218c1ee4eaf30b468ab9e", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4475": { + "current_role": "paper_train", + "prompt_sha256": "1ab7c0f306c1708ef554b5f93a4586885ab3c2667205922a9497332bf99c89f2", + "gold_sql_sha256": "802b4a5e820183500b9960fbcfbe9612fea080625575a10d38c7fe22db954e4a", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4482": { + "current_role": "paper_train", + "prompt_sha256": "1f58fa8bfdae1ee4b732508e155d93a66d561c94a0a6544d2ef61be65c2c56a0", + "gold_sql_sha256": "d1d0a08190d29ac3d738559dfa9d85acba6e1a71a17ffe97eee2bffc09304f5e", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4483": { + "current_role": "paper_train", + "prompt_sha256": "9b009622fb0df23c85b65f00b2768ab9df3f4ca844a8d87d65c8caad399b4e20", + "gold_sql_sha256": "22913b59ae45ae4a8a365c1ae143ddd3413cb97ac1eecf8cb0f37f2e53b8090f", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4488": { + "current_role": "paper_train", + "prompt_sha256": "98445768903a699766b7ced63afba80ec8d04fa5abad5f27fa05e92052b1904c", + "gold_sql_sha256": "787d6daa6b165f855b0dc2f456d998bef74c7d9c027e0273d7456f8b270529e7", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4493": { + "current_role": "paper_train", + "prompt_sha256": "91a7d1181b2ae274ae913696f88971d0dbd5b5f640be569be0b209bb86de06ad", + "gold_sql_sha256": "87be1e21b48f18dcbd1e491533a04509e16ae966babe80721560bcbc5c1c49c0", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4504": { + "current_role": "paper_train", + "prompt_sha256": "0594217b4d0924053a7b0350b8efbe89814b159e586532ba524d0fc8512ab1e4", + "gold_sql_sha256": "d8be573324f5f3f1ea9b9047ba0757fa78821a52003e4e8bf9b1933de1c93761", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4506": { + "current_role": "paper_train", + "prompt_sha256": "1b3b5e0dc142535d31f3f0b1aee8239b8d52434165423a10625725e049f1c55a", + "gold_sql_sha256": "71cc96d27833ced268aa8a2244f2496e53e8e98b34c1b34481f2eebd758acd91", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4507": { + "current_role": "paper_train", + "prompt_sha256": "d275d42ccc093b8ce0f892c574d1722693e1e8f124c848b6ee1dbad0f0e0a64b", + "gold_sql_sha256": "95b397bbada5d06f5e4bb619e2599ae8c9ecab599b331a1d5eeaac9f2db57b0b", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4508": { + "current_role": "paper_train", + "prompt_sha256": "708dc481dc6c01967cf1d3f9f63073d0cc850eb5b52981f529d7e96bd8e06c01", + "gold_sql_sha256": "b8ffe0db32976e4c216e9af95a210766422e63a97ecafa77d135d1ba3f7f1f0c", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4514": { + "current_role": "paper_train", + "prompt_sha256": "a70a0fc7076bdf1dbb3a11fe548b64e3dd5731becb5f9eb90bae4c0a5c4f0b1b", + "gold_sql_sha256": "f37a38e71618705b028292d4904eb1cd08c5bb08f2c509ba4829dadeb896507d", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4533": { + "current_role": "paper_train", + "prompt_sha256": "ae8e6f30d70e9c5956a504fdc1fbd84f6265f88a7dd3959817f3ffb5a751d249", + "gold_sql_sha256": "3e4fafbdcf995eeb72e49a468332e15a029b7ca5f8502fc3d535fb875f2d7f41", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4536": { + "current_role": "paper_train", + "prompt_sha256": "181d38e045cf793ac77a502c1e3e8eaf4369ff182aaef04a65cd008aa4c48af3", + "gold_sql_sha256": "0ee1a2563056e50994b9020ca14e0810aaf6417f5d2f1e2220653aea23b980ca", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4540": { + "current_role": "paper_train", + "prompt_sha256": "01590a56d7f277f7f5fc0fe7f3d65ebde8496e7f66a5dd0648ffec84cc00a7d4", + "gold_sql_sha256": "7f428fa99859bd0194a4042129092181f0bccc859841a07f6b1e93dce72fecd1", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4541": { + "current_role": "paper_train", + "prompt_sha256": "5c20565a61c8b0b94b6100cd33eba8f131b302526815921078413fa54866f4ce", + "gold_sql_sha256": "7b779e4c085396e3c8b1c38034787c37df2931bdeabaa5c9bfe093f70af59a9a", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4548": { + "current_role": "paper_train", + "prompt_sha256": "635850cc8a05e26da18f386b18762635251857ef17a7c70686cc92f2fcecddd7", + "gold_sql_sha256": "111a4e1d92bc3aa9f42d279703804033b0dde7515b318630ac6f878218a167bb", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4554": { + "current_role": "paper_train", + "prompt_sha256": "7900940d3d9243ad61ca406513bc06cac1bde2b0a8e2c302475f511d952b01b3", + "gold_sql_sha256": "fd3c6b9de4e1265100fc3efc133d683c19dc20c1d4ac486bf578536acf308ba8", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4557": { + "current_role": "paper_train", + "prompt_sha256": "8c944bbb5da934736d942d9edfa6abf33b253ef3cc2a75a075085663fc78f593", + "gold_sql_sha256": "ac8e879dd669808ce7539a6db4600372bb00c4990181327059c6f8c1995b54df", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4558": { + "current_role": "paper_train", + "prompt_sha256": "4c3f5a238a8de45c60c5a2dd5ae9112a287c346c5e909c2c792de7e21ba1e827", + "gold_sql_sha256": "c63ef3f655473ca5df75e583e79010d1780b0f3ec9ad77e682e5d1e94ddd3c12", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4560": { + "current_role": "paper_train", + "prompt_sha256": "12c904a40fbbf44cd78cf8dff0efb8533bb1127e71208df83dd2caad62044b34", + "gold_sql_sha256": "4c4103597ad9a2ad2498ce459238e405e96d7feed50c792624352a05b646ede4", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4562": { + "current_role": "paper_train", + "prompt_sha256": "9510fdfc3f5f306a28a95f08b229c74160051fe36a808bbd632591e0a00ff8b5", + "gold_sql_sha256": "37f4035e636bb3732b8bd011502be1c05528a879603c162b90b658b95f006da8", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4569": { + "current_role": "paper_train", + "prompt_sha256": "f37eb3ddeaa6b69dd0c387e4401b64ed14bba50fc46b29f5935ae71b6ead5527", + "gold_sql_sha256": "42a3dd5c791ae8972a8474343a5b7a32943db21bc527c4286e51738160df7c5a", + "database_sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "revisql-train:4582": { + "current_role": "paper_train", + "prompt_sha256": "9e6fd094430e001d08f577acd27806be11df35934d9517cb0a532f54560150e1", + "gold_sql_sha256": "7086cfdd760bf26ebb1ca1e2273648dbec118b46cf21823216db993c5b8f86cf", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4605": { + "current_role": "paper_train", + "prompt_sha256": "4335308f76c61d0ce35c5869b72a44c18b1d18f23d325391502a833fdca6cecf", + "gold_sql_sha256": "4e0d476be634f7a96bc294b4230df8878b4866c984023b059bebf328fa3a16ca", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4614": { + "current_role": "paper_train", + "prompt_sha256": "e9c2cc87a6579a047ef55b93abd4d95d03b9a8552697b6cc3d9f67651fe059eb", + "gold_sql_sha256": "3764cd8384db9bc8033b3807b4a9fece2bbbc1ebb1bd729f42e030e34fa4abcf", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4620": { + "current_role": "paper_train", + "prompt_sha256": "c64e7a600a04a131d8fcc225e6a1ff0896d095f45c2490cb08062902887dbcb9", + "gold_sql_sha256": "a1385cb48a1ab6e344faf92039b71ecc4bae610838ae099551f4ac4e16600348", + "database_sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "revisql-train:4621": { + "current_role": "paper_train", + "prompt_sha256": "11a15a3592ce03da38324e34f8c0e08368a1d03226bf6817ecf931f9c8a03a97", + "gold_sql_sha256": "9b7a38ea78be5498139b15470504426e86dfc1f3b6a779dc15c7a30a63c40786", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4659": { + "current_role": "paper_train", + "prompt_sha256": "1fcb7d7ab192bb9b66ba0e0d533d76d5007234879bdf02ac9a6aed8a4c537b0d", + "gold_sql_sha256": "1fa8aec1f1de127838193dcdc3069b547fb99c1a4d8034edd63f504cae53af04", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4682": { + "current_role": "paper_train", + "prompt_sha256": "751b565b1a992a547814c51ca99664e609c34b3378e41cd35f2624f51729c691", + "gold_sql_sha256": "6ff15409f588a1c908835e2a9635e70c40e072c4d363adaf9570ede7d0b82ff7", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4699": { + "current_role": "paper_train", + "prompt_sha256": "c19e2deb2508d17429de4b964c8e58d79aab2f6a57dbbbda36eb9428b59dcfa3", + "gold_sql_sha256": "ba4d5967efff6116ea811881997dc7565aafc6695c6003e7f30b30c8e5542604", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4705": { + "current_role": "paper_train", + "prompt_sha256": "12897c2e3b19476b1557692715391125bf4b332536f4e59e173b8b97bc1b9644", + "gold_sql_sha256": "0780be82339195eb50b3a732c5eeb49e78049ef7826ac7f058a0c3431cea1011", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4716": { + "current_role": "paper_train", + "prompt_sha256": "91e7e767bc2b8413037a94d3864380ecc9d09579f42198ff770ddfc85cc18733", + "gold_sql_sha256": "7ebd7a6a9631ab86adedb7086f1939a7f1e33190b3562997bdd8ccba4bdc1954", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4718": { + "current_role": "paper_train", + "prompt_sha256": "b26d65e7544614a1a5f03b3b43e4a122e18d8721e754dc5b930e131bc97cdf50", + "gold_sql_sha256": "bb9945adbd54f2b65a458ebe82cc8cf3bda93926cef50471eb15745cbdbc8551", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4739": { + "current_role": "paper_train", + "prompt_sha256": "e0b58cd1f0b7c43997587f1cfb3510e0e1c61498166a38cff4596dad134c7a7a", + "gold_sql_sha256": "9aa3467ff4f98a994c07111582ab127e0187c48161aadf1a425872c2f22281cb", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4747": { + "current_role": "paper_train", + "prompt_sha256": "4e38586ec3150f5589ecf8614d66a37e56d03b8d6f9baa597f2e014d41b7305d", + "gold_sql_sha256": "67b0799b1cf85855228c93f8d817be982243badfeff1ed7c4359840320589491", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4753": { + "current_role": "paper_train", + "prompt_sha256": "3d43d110ad35e44fe346cf4707dca4768a40d6d1e33e7e23772874953391c108", + "gold_sql_sha256": "83818d9c643d2e0eafb758fcfc6ae734c2cc143e185c655f41b3014fdf56db7e", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4767": { + "current_role": "paper_train", + "prompt_sha256": "7a54aead7b4c9043b8879db2a0c110d8113ef6f06e701c1730310bd2f4e276fd", + "gold_sql_sha256": "0283b957142973ba1c75884916dc6600cc6656632114413ab7790a797348a804", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4773": { + "current_role": "paper_train", + "prompt_sha256": "66f623c65b14d82efa6effeb48ca76181f93ec92810c183f04318cdabb36b74c", + "gold_sql_sha256": "19bd3283463c2ec7b17e16d42552677e38571a7aceb10b8655ec7223dfd50c1f", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4775": { + "current_role": "paper_train", + "prompt_sha256": "7c0484afb227c2fd61ef18f00bece23174cc369d40ae199c2833447646e119f6", + "gold_sql_sha256": "4b7b5b5b234aa35550dda0670d35f12e6a4a4000ac51da75e1449288cec5b482", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4777": { + "current_role": "paper_train", + "prompt_sha256": "02e8be667e3d3cab766ab0c43bfce3474a7cae2c5d15bf16a28c188bc23970d8", + "gold_sql_sha256": "6e5385d20438c8079fde154aaf77b909cb3b3825570e21e67967c5dc7488a3e3", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4790": { + "current_role": "paper_train", + "prompt_sha256": "44eb1867bcec1d9bcc4d3eee1bc2347c6b25fa72c607a96e5261e00cd30de6af", + "gold_sql_sha256": "c8bd35fc9046db8e0a7435d4e73ebcb08f68dd9f569c066b8b8ba778b7935d49", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4797": { + "current_role": "paper_train", + "prompt_sha256": "fee7cb291755d00287556bc4c596be7a5d4269d2a00c06895a0d941febc39ba9", + "gold_sql_sha256": "1f0247379616cd82f3f3fdf04182cefe9ae7c3b4f661ebcec3a74e9883d8dc39", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4806": { + "current_role": "paper_train", + "prompt_sha256": "37d7e16cb9b16f558dbea8a92b653ab00da6bf10b5cbfc4a7efa0217f3730823", + "gold_sql_sha256": "e2b763adade41548751f36c7cfd00eb8802576b77aadfb923089c99ea83778bb", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4813": { + "current_role": "paper_train", + "prompt_sha256": "51fae1533587683940fbfb87f6ef6e7c5d8a77f35003a1316ff44ab2e252b9e1", + "gold_sql_sha256": "573136d5470474b6a9ad7e7d96d28b6e3dad5b5cddc320d3f6d2f7f73021df9c", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4818": { + "current_role": "paper_train", + "prompt_sha256": "d3c7e95dbd928d9e128473ef31669cc0d6b7b22b6eb8f8eff3c9e6d98d9bd718", + "gold_sql_sha256": "4e9f43af98ddab2d93e3b9d3eff5d82dc28d4ca0e951dfeb3e324501863d468d", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4823": { + "current_role": "paper_train", + "prompt_sha256": "df1a0ad9bc076b41749d473fd87a2a101b8eb6e394990ae7aa5fb8e2839c4821", + "gold_sql_sha256": "d0835439161928116bfb7e266415a95e31b7bb9fe48033cc3abc103e5d9737d0", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4825": { + "current_role": "paper_train", + "prompt_sha256": "8be4d510219e968640f7b7dae36fba4e62c0d1c33ee608ac34d313d04d6f40a6", + "gold_sql_sha256": "6573776fdb89b135271deddffbfe370d5b907adbffe84615fd0b00f45abac053", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4829": { + "current_role": "paper_train", + "prompt_sha256": "c7e3a96c0df0b0bb560d33d8dcaa71f4c807507d7dd79385aeb5323b2e8f387d", + "gold_sql_sha256": "24d87b4b63cccaa3eeacd2a2a88377b026b704441c335e5260caebe9798c4ca3", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4841": { + "current_role": "paper_train", + "prompt_sha256": "67d9cdf13ad4f4a11d45dbb659af35aa9caca1df5f79632cd5969dfc8fd99463", + "gold_sql_sha256": "fd80f6475889e29308ac7e6341ea28e07591d026cb13b49bd46b49283d12c024", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4850": { + "current_role": "paper_train", + "prompt_sha256": "cffdc293161f6d3c8d6b467b7dcb4cc64853d110b8fe4c07d301e59fc435b028", + "gold_sql_sha256": "0553b5d8ef2e7d595b0543c84d54f35c4ac8c232f9299131eed6fb993268b5f3", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4857": { + "current_role": "paper_train", + "prompt_sha256": "d144e46ea675219eb5de98af42bddc87f5f14217102501ed93e3896fcb46947b", + "gold_sql_sha256": "8c5348e75f7d78c058f5e51357f3dab56578e04b9ee2dc8301fe41ccf24c6936", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4866": { + "current_role": "paper_train", + "prompt_sha256": "a956c382557adb6de5c8d261ccdae2892bccb17b5d5baea3dddb53af7cbd3e73", + "gold_sql_sha256": "1512a4eb76d07e37720a67cbf5cbff969676a7baf8818c131258043103946a00", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4878": { + "current_role": "paper_train", + "prompt_sha256": "d8f739a2a7a5a795e4bffe003a31f34fc7d3402e7601baae671931419dc1470f", + "gold_sql_sha256": "ec9a0946b0c4d2cd718f645689f75fb738713d5e7692c1d6b035cf9fbe0a0aac", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4887": { + "current_role": "paper_train", + "prompt_sha256": "69de8c874060e59733fb60ad66253863bc8923c5e5e10b6cfbc37f9a630fa8f4", + "gold_sql_sha256": "508b57ffa9959ac5c277a1d0167cc72011cd9c26c1f3a6d202421b45f3dcd0c1", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4897": { + "current_role": "paper_train", + "prompt_sha256": "e87103f75b06df98cdfddd5eae19a7532b67dc7c0bcf72b8402415b9b7ac5282", + "gold_sql_sha256": "50d9179eed1ad5a6076f5578b75d2db087352c3f2d6843c4ef6f5b2da005f614", + "database_sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "revisql-train:4924": { + "current_role": "paper_train", + "prompt_sha256": "3605aa8d26a0b05a9c7bc2a57b6424e6db4375b85d7713b393d97ada3131bb76", + "gold_sql_sha256": "7993a107fabe0a7f7633486733f05a61e9f30b65409895cc52e8f3d51c6aa91b", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4934": { + "current_role": "paper_train", + "prompt_sha256": "c11096b3d7506492f44edf461e084a0a664a510cf99d13edc1a217a98ee94667", + "gold_sql_sha256": "d325292d68d0bc144751e749fcf9aae5263e365e072508de7965755b542806b1", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4936": { + "current_role": "paper_train", + "prompt_sha256": "604ffe0b534b525ad7118b5feb2a7ad1442d59e55a5380dd0cf71457f75d531f", + "gold_sql_sha256": "edc4dadb9035dc051614da422a00359e70f5ad8cfa3885c1839eff9c76ca694f", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4952": { + "current_role": "paper_train", + "prompt_sha256": "9812ad911747cce685a3e0ba0d773566c478fb5e19e097e6dcc5118d9d39dd39", + "gold_sql_sha256": "56483a273ec89f14371395ca9283d2e65f8067320a5861863b8889691c7c5515", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4959": { + "current_role": "paper_train", + "prompt_sha256": "8a64908eb2841f23c1d7121f8c79bb2f5af6e344b73bd2d47e5eeb06d34fe334", + "gold_sql_sha256": "3e937d3a3b6995f485539a2ef40ec7bfbcf9043cf6a5381671d6df033c59d7d1", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4961": { + "current_role": "paper_train", + "prompt_sha256": "05724ee4b17b9d8b635d7bb1a83e060a40d0bbb15f1e94915a9ad9666962168b", + "gold_sql_sha256": "382f9a5f41ddd1bf7cbd00e6601e671af7740c30436b4dd80d7d1767bd73a687", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4962": { + "current_role": "paper_train", + "prompt_sha256": "989446553011906c85fe8065487667c7131f9fded8e5718767b5e8ebc744421c", + "gold_sql_sha256": "38e27698a27b2dc0caedb109138ed6cda7e4c638446152934002c2d7c872eb48", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4967": { + "current_role": "paper_train", + "prompt_sha256": "aa3893f5c6e8b9b1815a63adf7f14250e4956c61f0e92ea5e7b59ae0d7017e74", + "gold_sql_sha256": "9022b73972d21f31b2f956e573ad7a3c4a060926d6bb185debce38b5cfd7b955", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4969": { + "current_role": "paper_train", + "prompt_sha256": "3a97428f4f408d352be1cd119f2dc6a4e56f263fbefdfb73a44ab6f88b0a3a1c", + "gold_sql_sha256": "dd3a42dfb745a4076e99407ac51e143ec8a0d4d5fb6e1a5c258a289deeae3516", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4979": { + "current_role": "paper_train", + "prompt_sha256": "461340aa8bfb5d9cd73e2c7c4f955f547c2a7c9c0d06d77513c01e1682bdd3db", + "gold_sql_sha256": "8aa0ff844a07376e45aafa4d359a307d27aeec6c6512161acfa8e92dcd62c3e4", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4986": { + "current_role": "paper_train", + "prompt_sha256": "8dcfcd39ffe28a66cc720308cb16d4fff1ac83fff4ba039ebc3c7ffd9c95939c", + "gold_sql_sha256": "365657b9fab6bc71b4f68513d611c6bf860b56adf129cab448791781395e8911", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:4989": { + "current_role": "paper_train", + "prompt_sha256": "0aba6934ada814541795fd772cccecbb5596cee21bd31741478acaa7bbb0b5f0", + "gold_sql_sha256": "13e85684059f166036001a1c82731bbf1af2431af6225afb42758742f2095ad8", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5013": { + "current_role": "paper_train", + "prompt_sha256": "030891ffc35bbd5f593699585e4951b9cb1ba25889a797add1e2e97d0873f6fd", + "gold_sql_sha256": "c338a50c9c3245255327b3d3bde3c170c039ec56d9c77bf3e1f0ffa5aadcd02f", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5016": { + "current_role": "paper_train", + "prompt_sha256": "219b8990a16ed40cbd05e8800f90e1111b8aed49f23359ec9f949f3c71aa4f93", + "gold_sql_sha256": "0f9760e6e3985ecc4b76e446a7d0c64949d05644338923a4bfd5b9626b83dc67", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5018": { + "current_role": "paper_train", + "prompt_sha256": "131d76d3d6742651943b074072e196cacf8e3cfc652881d3278a3ac62a05ad06", + "gold_sql_sha256": "b0100d74128dadedd991f01c82d3f9413d84fd0b0cde3b9ecac20e6c578af9e0", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5028": { + "current_role": "paper_train", + "prompt_sha256": "ceeda273948601270ac7dd5fc94769b9fb165082d2b489f95498f5835231a6bd", + "gold_sql_sha256": "fc4b81585b7df6c21ef0f10b9447429946c74aa428ba94d550cdf1bdbbc89ba8", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5038": { + "current_role": "paper_train", + "prompt_sha256": "907697e38fba564696a6680232b244683b93ed777a7b2bbdfbfde20cd166fba1", + "gold_sql_sha256": "d19b9da70bd204a6992e150e3518d9c9299031658cb8f082958f167844f9e6da", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5045": { + "current_role": "paper_train", + "prompt_sha256": "267d0df541ccdd1493aa142162939abaeb142211c85951677452c879d8d8ac50", + "gold_sql_sha256": "41ddd32ff4481c92d91cffdf5f86e21c9de1b401216a6f7ba7b469193704fa3e", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5047": { + "current_role": "paper_train", + "prompt_sha256": "27cf44826beea4c0b3da18912eee918ded0af1d8432368402777aeba9d910f84", + "gold_sql_sha256": "0cfeef611054bc1d3119d1c069570e12cbd01631609acd0012bf290b5369cb7a", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5052": { + "current_role": "paper_train", + "prompt_sha256": "2f676185fd998db3b92330fc2a8c8e3b2bc42de7c0da6965cfc7421910c7b273", + "gold_sql_sha256": "22aa5245702e5a37e62ad97c260f6831c1c76132ae290b804eb45433a2918f48", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5065": { + "current_role": "paper_train", + "prompt_sha256": "9b277fcaa581ea14313dd23921abd6356627d15a8f1f35fc9af015a1c3f3b3bb", + "gold_sql_sha256": "f398510e718d241d819a9a80af4a4f6d5294d9da73819f59c395888f033ea107", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5069": { + "current_role": "paper_train", + "prompt_sha256": "d68cb89aaa1666def17875164c6aa64fcc00fd31c8ca08c9c784f6df217034fd", + "gold_sql_sha256": "dee1ac39868a9c831e407e550df0c40e7043553ca1688e8f7e9a8069083b3b37", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5074": { + "current_role": "paper_train", + "prompt_sha256": "0d32f267c46be365f7fbbc2ea5092eee2d11614bc8a05c40bf57893708cb59f6", + "gold_sql_sha256": "a329af0a2c35f84358d6acac6134f1114f2f6bc8b2bc448b756284041ca27b6c", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5077": { + "current_role": "paper_train", + "prompt_sha256": "7dc8206aa46a420e4f8c15c244d43c9f1156c57e1e64c75e8590adae31b30dd4", + "gold_sql_sha256": "ab9d1ca6aa84bf9ed1b6be2a40587e98cc67e5c5acb24cb748fd177035e9d97a", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5080": { + "current_role": "paper_train", + "prompt_sha256": "894f563179a3be255b1c2bc4d879a3af615327b086d3f6c5bfa69fc5c90db3af", + "gold_sql_sha256": "3702dc82b3b717df717bc8249d29e1547b8cdbea9a8aa672572423c32956f074", + "database_sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "revisql-train:5086": { + "current_role": "paper_train", + "prompt_sha256": "c0a89d85c57c8bf91c5a8c5bd52c7bb0545d16669dd500533efbafd4a7cc1dea", + "gold_sql_sha256": "95cd671b70406c247228645d5e4b81fff7f1a278f18221c114682ebd40569dc6", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5094": { + "current_role": "paper_train", + "prompt_sha256": "41fccb0cc73644cdd88e233ef8b6be0c5517fb98ec7e1c67ce891a0e99230f04", + "gold_sql_sha256": "697ac594b0cd7cf558d88162aa0ca2b838d61ae5b8368bcd16379901a2ae9552", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5101": { + "current_role": "paper_train", + "prompt_sha256": "bdbd5da4b1ccb1dd6206413bb79cc63d1a21bf36d9dd0aa0b60c04d1d2d2e1c8", + "gold_sql_sha256": "f4a8a84ba5957a19a816a13e3a870b3b3bcb16783e92dd003a856b4850c92e1a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5117": { + "current_role": "paper_train", + "prompt_sha256": "314b7e4d881c3a13033d07332cee40a41c4405e8cdac3147bee533fefd5c4fab", + "gold_sql_sha256": "fddbb6c10fa257095d7f39ccbfe16e3b778eb9bbbe6a95794d46dbfed5a67da5", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5124": { + "current_role": "paper_train", + "prompt_sha256": "c9eba467257376730357831ab0e82be3630393bd10067786ce7043193bc87788", + "gold_sql_sha256": "b051a167b09eed366e21fe7bac45126f0aea5f5501a6f0863a85d1220372a741", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5131": { + "current_role": "paper_train", + "prompt_sha256": "76adf4ef91171487c73cc12fdf8abeddb057001ca25ba06853613351db24e296", + "gold_sql_sha256": "fbc162e5a1b4d20802d0f152b4a1f5387a76496274ef0f7e7487d7abf48f5863", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5140": { + "current_role": "paper_train", + "prompt_sha256": "2a904e6603a57d01300f37538eae868dfcae7783f35c52e67bca20f5906d93bc", + "gold_sql_sha256": "68d1fad781ad3228cee625f698072faa56caea37221b0a5e0572f4f730c95918", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5154": { + "current_role": "paper_train", + "prompt_sha256": "bec25a76f02ba91bdaa936ffff7a2e996544489a4b2aa4122f9ba299e91a4607", + "gold_sql_sha256": "ab64c2aded53c52746be4309ddc3a48baa0f32a54a98040197992152544bbe59", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5155": { + "current_role": "paper_train", + "prompt_sha256": "b9567e4cb92503b9fda218e87f740f7f3a39ad2198e206078a8e61488098c757", + "gold_sql_sha256": "6fadaf44bba30eafb113573478cb20a0f8d973ba7fe9cb2a093f419706337df3", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5162": { + "current_role": "paper_train", + "prompt_sha256": "799b04193361436fac39df86f09aa3216a21dd17fcc79ce9e0ce58af99a2550e", + "gold_sql_sha256": "7263f4f64338016e754590e0eb1c64d25ffa88e8b4aa61cf6cbf83ce10310e43", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5165": { + "current_role": "paper_train", + "prompt_sha256": "697fa12aca4e4ac4af85549d99639ea834c226d9001e3c148df0e561796bf437", + "gold_sql_sha256": "fafe7a6a35548139b480e1ee1fd717c8060fb81a383096ab7608fbd9c1148145", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5166": { + "current_role": "paper_train", + "prompt_sha256": "b865d78998f373a3e66dea76cf7f092c358fbe4dcf5f637a3b0ade7763caebc3", + "gold_sql_sha256": "eaa6c2eb6177e288df78a5c3a7fccf43a6e14b279661f6816851375bc952d6fe", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5180": { + "current_role": "paper_train", + "prompt_sha256": "8414ba8de30c13b78231e9f0057bd00386c5ffde6911200e6e8aad8cb2bac499", + "gold_sql_sha256": "263f13a857af0f8028d05bcc30aaa972f2cb5a9bd160ee41ea204a4b6cfc1e3a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5187": { + "current_role": "paper_train", + "prompt_sha256": "b6724a849e90f72ea17c5b159fb97b896c214a22634a35da965533ede332c2c4", + "gold_sql_sha256": "8489dcef553d7f4ab4f9e762f62e33679e1040fb5b5d159bf5eb36d1c5191eff", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5190": { + "current_role": "paper_train", + "prompt_sha256": "bf041ddd436a320df061bc5c3a3dd6e8d0b0c05e84186fa71c69e9b3bfa5867a", + "gold_sql_sha256": "1740196849a20eccbcc919dc1683a9a5f70ff46436f069a5c4627b60b663b02a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5200": { + "current_role": "paper_train", + "prompt_sha256": "6e6222c0fee546dbf0a6a55e55985e2aa8b267a86c9174f2173b33358fb0b0eb", + "gold_sql_sha256": "0ef2caa207d0873bc0a4f7a9d546dd61c8645b1bca7bffa782133e3e3bd0f420", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5201": { + "current_role": "paper_train", + "prompt_sha256": "3b632222b0df5c5a7c329a2e0c7112c9c091c3804ef0111f6a05844646a9bc85", + "gold_sql_sha256": "6a241d7dfa05593c1d4e560546479927d09d58e40e32da25c25ac84e2c20085d", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5216": { + "current_role": "paper_train", + "prompt_sha256": "1778087838fa25818b71a259f950c5c95daf168e3ba085b26b5e8f5ca60d5a5f", + "gold_sql_sha256": "48aa3966cae2730eb610755456ec3a69cc76e5cc8d147d2dcdf0c8b9fe4ad8b2", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5217": { + "current_role": "paper_train", + "prompt_sha256": "333418db91dc14b39b27bdb23f29226e4376694242c5f0a3ff525ad717fe5bf4", + "gold_sql_sha256": "36c6bc8b3ed120db998ee9ce6c1e0bb62858522bc14a3453e44465f297b41dd5", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5227": { + "current_role": "paper_train", + "prompt_sha256": "982e80f35e22ab65c727cb1094fd87b0b413732c4f1484d1ed566d436407d724", + "gold_sql_sha256": "43a6b21ed2ef0d79325642fc1175d860bef58839e680c7c75f96701e7a0f2a87", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5228": { + "current_role": "paper_train", + "prompt_sha256": "e034373ff7ab3a1c392010142189bbdb5fc08bbf7cd4f15858e9ec4a656d87d8", + "gold_sql_sha256": "a64732c2b94e1edc5c2dab4e19b5010c9609d6687ef882f90f653c049fd7f389", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5237": { + "current_role": "paper_train", + "prompt_sha256": "595c4e0e0e3771acea8772ed1a57da8ab3ec45578607673116954844294893f3", + "gold_sql_sha256": "0ebdf30ad1b7d4924c9861a511e191a297710b15470ec04002bb949212754e4b", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5245": { + "current_role": "paper_train", + "prompt_sha256": "2caca7a0a16bd60561ede436fa85b9488528660103d48e0b409f1c35aaa06c78", + "gold_sql_sha256": "f6fb96480800a67b1c5aa68084eba458c5b1ea519c6079ce0690062e34b3ed3d", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5252": { + "current_role": "paper_train", + "prompt_sha256": "9c0081cbfc33360921ce90e0289337c92c43109da66d49a3a59f568ba7aa97ad", + "gold_sql_sha256": "276d0bf7b576b98f87461e32ab05f7cf200abc10281c93143a91c6a429374cea", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5255": { + "current_role": "paper_train", + "prompt_sha256": "a883bc2ce57767cacd9ad16e8d54865a0d3408d78358e58a556408a99f74615d", + "gold_sql_sha256": "21145045d20ba15629eeeccdeb1e6419dada4f3aadad70dcc2318fbb780f19d8", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5257": { + "current_role": "paper_train", + "prompt_sha256": "9bd7213871d72831570cc57d862115dc511030c74af46e1837b84cd025411701", + "gold_sql_sha256": "245dfe75f0841008dab0778f80d0c0a181ae2dbdcd8d1458a41c32d5a45835f2", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5268": { + "current_role": "paper_train", + "prompt_sha256": "7e191491569e00d5848513b907ea45b32d755147f99d59a0361bc641c3fd07cd", + "gold_sql_sha256": "715a41c32de731d44a80be052fbd289e6581ff6ee5dbfa598758f0f7b2bbfd57", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5277": { + "current_role": "paper_train", + "prompt_sha256": "1d72f361208694fe20b08d9ff02fb41677ae0ed1aa4d1ce31e067c75baa4c4ea", + "gold_sql_sha256": "9246264c12344a9038fb74bfaa7a463db4ade503835a090f89d8102bc9303dfb", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5278": { + "current_role": "paper_train", + "prompt_sha256": "c25174bc13151d2e3320df9fee77ff7a51cbbf6236d4de163d96547004ee23b3", + "gold_sql_sha256": "edd3f1c6b34623c932f2dfbe82d2e9483cfb439a299e0170729f56b178fa26f9", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5279": { + "current_role": "paper_train", + "prompt_sha256": "8a7beda9c4b971a1907cfa33c1ae000fe8cfece05062935d8edc7ed71a371467", + "gold_sql_sha256": "cca2a80275591ac7411279cfe7bf2dff5855daeab88dcfc45eb9affcf2a21769", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5280": { + "current_role": "paper_train", + "prompt_sha256": "f51edb5103346d5c9eea3d9fb920173515b0c806a0fdc714d30ffac3c2f7d40b", + "gold_sql_sha256": "d26d02427d90a1dd5ae6dd9e75f2f16950f435661c4e2bdb9a0f765861bf8962", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5281": { + "current_role": "paper_train", + "prompt_sha256": "2c71f03f46f1e146f0eabdc7a60d5b895c24502eef8eb50c075eb1f3b3af86c4", + "gold_sql_sha256": "2fbc3d798a9905e983749d242770fe7e05ff1a3268cad7917204bde057b6a650", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5292": { + "current_role": "paper_train", + "prompt_sha256": "eea414290b49c723c62d86f5e8cb5e48d73469e56e225ab6f59e28e4be4b107b", + "gold_sql_sha256": "81516dc84f12076705382ff22fa924a3204d1fe4b82b5d74782c3911fc740c32", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5316": { + "current_role": "paper_train", + "prompt_sha256": "3551822823cc60181c6f7612e02406b1eb7c6bdb73bd72d77f671a30c51807f9", + "gold_sql_sha256": "20b7004e320d3e2a4b2c584d191aea865b4c028eccb301247166e0f3fd02367e", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5323": { + "current_role": "paper_train", + "prompt_sha256": "121f56cd2d815fda11bc4e7f2d1d5a7c1874aad88f3885c2a6202af3a0db1367", + "gold_sql_sha256": "d40b753906685b41d26b37cf607aa985e6e3e1db3eefa85e72553b00417c301a", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5328": { + "current_role": "paper_train", + "prompt_sha256": "bac54627aa0b8d1f1d8bad0840b345bd7f6b061c3ef346c855f3efbfe4dc3553", + "gold_sql_sha256": "4cfbb8f672d1a810c515ded29bdc07cf7338ac20daea49f871ad465c27e50270", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5331": { + "current_role": "paper_train", + "prompt_sha256": "6dc9a252e6686f7e9d7afbd90408298b9b142f930c8f4c94e70f193f8cf390f3", + "gold_sql_sha256": "bb729f6a47effe2397bf87ffc80f8dbfc4350f75c3eb160a52e107a3e4120266", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5334": { + "current_role": "paper_train", + "prompt_sha256": "a93eed7a2213b18965fbe0c7413577dec008aa713e2bd6ceb517f18667d9f1e6", + "gold_sql_sha256": "c11c94decae77b241c3884e4886e0723bc79a2d20be5a436bde6128b44322692", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5339": { + "current_role": "paper_train", + "prompt_sha256": "b0805b985ebdb71d5aedc8f1b04be59e8f99159274a3cb9c164981851f3695c9", + "gold_sql_sha256": "db5da808b9648d29756b7fd4bd14d01a181395ff3fc73331c9be3d5b566e7f7a", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5350": { + "current_role": "paper_train", + "prompt_sha256": "585c43425e65f264457a1857405a6a1c981f763e98793a841356828ee305eee0", + "gold_sql_sha256": "d96466601fc1d363c133b0df7d0843ea3566395a92cb057240475df714d6bed8", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5358": { + "current_role": "paper_train", + "prompt_sha256": "722f89a2af5d514e760212ace1f863bc069f2507fda6d055d21d747438edc0fe", + "gold_sql_sha256": "886400c8ae257f7beb43337543d0e029abb8fe26503bcfae596c5ea1eef8019b", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5369": { + "current_role": "paper_train", + "prompt_sha256": "1527209a1e247fef92699152936b719529bcf30ab619b838325067281ef8c484", + "gold_sql_sha256": "eaa23bbeee7bebb8a4fd76911eb8de07970628bc86443f98db517545885137fb", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5390": { + "current_role": "paper_train", + "prompt_sha256": "dfeea6415ab7d61304cfaf4d95de5135bc79b2f536e872ce2d7bac7062aa256f", + "gold_sql_sha256": "cdc991f8bfda1d20b0ba66a6ee3c30ef1fb916f6c8f483ee0049a5ce7ba2d357", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5392": { + "current_role": "paper_train", + "prompt_sha256": "a0069e73e6e1505cfa3ef2c3341058dfdd19e22f7561166d5bfa1719d7bcfb0e", + "gold_sql_sha256": "64059bac9891e45cc8d339a22659df96e290e2c576f86cbf3b88379862ddc2c3", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5393": { + "current_role": "paper_train", + "prompt_sha256": "7e95a3c9957948304ff1e2f2018d3868bcbfc60f4503f50b47717060bcbd816c", + "gold_sql_sha256": "3fc44cb3e6b53a5e697f71a466b4e817b6525f84d2a7f2d2d10f13e4f6985771", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5398": { + "current_role": "paper_train", + "prompt_sha256": "ce72fdf850cf1cb10b92f84f0be4f038379d755c4cb237a0f10d2f6b482705d3", + "gold_sql_sha256": "d0e247d4002ce7ea7af3567fc7bde790bf6def08ea7f7ce47ed27a773ea1e7db", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5401": { + "current_role": "paper_train", + "prompt_sha256": "c9c89649cf3cada3473561f5e6a8d154dcf0a788d3c7e60aac9e16c27e01aca6", + "gold_sql_sha256": "fc65798d62b537492fe1d6e372dcae8d6ae232d02c9122e07ed64d603a45b011", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5402": { + "current_role": "paper_train", + "prompt_sha256": "12f5f9a7553d8b0211ab9f70cefb00bb5974c6d31153cf2815c02597c2282056", + "gold_sql_sha256": "e3ad5823199189f27ee6ec2254eda4b846fe59bee3539a169d71facb59570b60", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5403": { + "current_role": "paper_train", + "prompt_sha256": "3db6f9f30211e659f23dd415266dfd94295082ad707cb5fda4a989dd8e34401e", + "gold_sql_sha256": "373f8d5368fe482342e840a9abf3228aa7a144d2ebbd1bcd58432bd698769128", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5413": { + "current_role": "paper_train", + "prompt_sha256": "16ce7ff0501d7435fe65354cc66c4e8420bba7a65f199caecb2d25ea75904fed", + "gold_sql_sha256": "8725bc0845fd69e41ce064538ddc12bd1220a25757148f496cef3000566e2a80", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5418": { + "current_role": "paper_train", + "prompt_sha256": "f309b206ea6df21982a82c66cf3e4c12b3e4d835a5e71915a594e93f5a7496ad", + "gold_sql_sha256": "fa07cbca8c0bef14b21ac247a26df51c41790f7a78365643e93b67d6491af748", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5431": { + "current_role": "paper_train", + "prompt_sha256": "baaf4cb0e61b1eb114c885c10e3ac22efe3212e847ac64f808833ba9f9fe9cf6", + "gold_sql_sha256": "8cef1efeeae0f84abfc8235af57fc99a956fa7ef946c29d55d83830c4e11b287", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5440": { + "current_role": "paper_train", + "prompt_sha256": "d7c2429d7091d54cf38e26054d50937741fd87ec478f841a2197f1b1df25a20f", + "gold_sql_sha256": "1610cbe760c73cf83bbd657bf7e4a2d8e78705b1c4e8e5529acbd8e23020405e", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5443": { + "current_role": "paper_train", + "prompt_sha256": "27f6986fc13321db3f62187fcc55b4fe4e3e7ae5f170045ae9a9086273472d4f", + "gold_sql_sha256": "f4b3a524dc1c353ffbad84591ae80e8eda1279cf8c3bb5f65f3bfa3d3f6d0504", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5450": { + "current_role": "paper_train", + "prompt_sha256": "ce96208ff144e1ddb7177a5a88d635cf768a63e7d485367d529d8575efffb15e", + "gold_sql_sha256": "502e008eccecace549d9adbc5adca2b72a10b69e986c07c4869cf244c784ed53", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5455": { + "current_role": "paper_train", + "prompt_sha256": "26d5f3211cec98131c3f012e2432afa13b36d1f4dd76e9c753b81c44ac5d1eef", + "gold_sql_sha256": "450b4f60c0eacffe25eea65bef455d06d85784cff9e791078982870c9f0a692d", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5458": { + "current_role": "paper_train", + "prompt_sha256": "4422f3a1b22205d5da1985d53daa7ab2a8030b57154591f1bb113d96317855d1", + "gold_sql_sha256": "e63cd5a43b473e38023250f67805b4695b4c2f4a695fd2b00f3ea19c7ea7a0d4", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5469": { + "current_role": "paper_train", + "prompt_sha256": "f29e368ef5db8fcab74e3c3ecdb788af4dad900b207f50317126807200ba2ee6", + "gold_sql_sha256": "c6d0abe57aa62b2f87ccf00205646c625d1a8137bbfc479341a2fcf66e3f1546", + "database_sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "revisql-train:5481": { + "current_role": "paper_train", + "prompt_sha256": "6367944f68bd97dd7372219a05233c4673b43bf5ccb92e9ad357490c595e12a8", + "gold_sql_sha256": "ea287f0ead3ad4cc3ab76f38de285858785ddb5cca554668e0a2c12cd6767a15", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5486": { + "current_role": "paper_train", + "prompt_sha256": "ec86b0a8063d19d98dcaa5d8b118c0209845060c24aff11ed13695629c625146", + "gold_sql_sha256": "28b29ef4bdd7d843083d95b137e00bfaa359351bb5e426017ee0e6efcb664bcd", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5496": { + "current_role": "paper_train", + "prompt_sha256": "a81ed3c8ffdd4412d1a428557cc6a1bd05da8d207bca226045a9989c170138f1", + "gold_sql_sha256": "3f30997e25ec03df38b4521f5843ceec710e9c594e1ac332bf4d3ac8e8c63a1b", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5514": { + "current_role": "paper_train", + "prompt_sha256": "841db1a9c22e9e9bbba23af25d17ef14eb8bcfe9b1cb2143aca9966fbd986223", + "gold_sql_sha256": "25f99c2db65da98996edd6000d7a1d51bfabd06b14a5d7decfd8f62677f17832", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5518": { + "current_role": "paper_train", + "prompt_sha256": "a649dd69d284d61abe0c048bc1076d4a6148f1da33126f736a148a988a2f4811", + "gold_sql_sha256": "cfee17dd8066a21e00044d6e7a2373b9af239f6d9168173ae679579be078e3a5", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5524": { + "current_role": "paper_train", + "prompt_sha256": "c827bd005243996a00dbb26c0964300331261410cae1b1b122008b5f6eed1dfb", + "gold_sql_sha256": "3521824fa29d21148d86a9f2ff34ff5758c04a65e43941a776c4f75bb3cb2452", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5525": { + "current_role": "paper_train", + "prompt_sha256": "92ee5050d53d0e481983bbafbf42b007aa9fa717a511da66ee0c97cef58d38b0", + "gold_sql_sha256": "ddfdead8950bef5b95beee29b930800384019d87ffd7e58ccc39694f1cab3bd7", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5550": { + "current_role": "paper_train", + "prompt_sha256": "041209c7dc8f7da78a25f2acd2a019bf35fd84e6919d45ec01eaa523fcc13fbb", + "gold_sql_sha256": "236e793a5f96022f5f37bf28320222e7a1c637a04db2015bfdb05730330b6244", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5552": { + "current_role": "paper_train", + "prompt_sha256": "0a4fea9e0a54267c2afd6b812f53fd06552f3d08eb614529e0b1ff6988a8094b", + "gold_sql_sha256": "8612d74889af3a379e9173e94212a4b7be7dd2e2e8ccf753e8118eeb8d25c3b0", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5566": { + "current_role": "paper_train", + "prompt_sha256": "cd3d0020b023786fb7d4a72079ba453f300f237370cc322bd6167b389e311c8a", + "gold_sql_sha256": "2788b3bcc51a3e9478e904da51f13772a0c2cc40fe10e22b7b8b1c69e8f1712e", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5569": { + "current_role": "paper_train", + "prompt_sha256": "fde2e50cc3fd84355c5bbdd3b49431fc262cfb0304b96ce107672965faf78c7f", + "gold_sql_sha256": "a4be43cccac06a3b4cfb88aeda8531a887b6b7b33e44bc00e3da9325c6f75720", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5577": { + "current_role": "paper_train", + "prompt_sha256": "766f3b302bd3c540dc1e0ae317a0b601297a66d6f19d762716cdc1bb43f48c4c", + "gold_sql_sha256": "e2411e0995edaa3a7587c5aec233ebb78ea1ebebd529425e7012e73531d79896", + "database_sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "revisql-train:5587": { + "current_role": "paper_train", + "prompt_sha256": "08b81cdf98d1661b03e7cc5045128e00eadf358d18de7154c1aaa62f1a122f16", + "gold_sql_sha256": "6da5eb32db73b72df9efd12f0e339e181d419c89c8d57592b5040692beb35244", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5605": { + "current_role": "paper_train", + "prompt_sha256": "1d1a87b26ce7696083cfc5655d5b25d63c1ea57288c2b4751a8d85a746c1c210", + "gold_sql_sha256": "f6eab7dd0ab812d9d00cb751335849a7bb9b5b3d8d3e358afa415de81ca69bf0", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5608": { + "current_role": "paper_train", + "prompt_sha256": "a31a22b7512ea5df6be6bda42599660005ac28ceb03531972e25cf8835f55910", + "gold_sql_sha256": "f8d698edf270ef34675345c89435383ac5b4b4101d857db58d848f8da5e58ec1", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5609": { + "current_role": "paper_train", + "prompt_sha256": "2d9da4d2c12baf4b8a613f48f62341a37f366586d44e92623faa34e907231128", + "gold_sql_sha256": "7489b76b6066ffeb2ddbaaa8c1bee9cfd409b28385697b7e55ca11eff24a6870", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5616": { + "current_role": "paper_train", + "prompt_sha256": "28be2603948e6f801b1929c98e83ca9f80d2a91fafc515d0f8d9c4c3fa4ef2d5", + "gold_sql_sha256": "1c4755bdeec22dc749173a588d439a32eb8922f698d02fc107a43903e1cf7d95", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5624": { + "current_role": "paper_train", + "prompt_sha256": "905d4379a3d2a9425ba9dd4f26ab4c2c3588f16ba1ae4fff403aeabad2885cd9", + "gold_sql_sha256": "40c18d89cb511acd72a787d55c9fed2f5a07211eb3b8ecd819dbbc356f58c0dc", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5631": { + "current_role": "paper_train", + "prompt_sha256": "f3cb3411e5d894c6f541ee5b3cd51ddd080482743853556d8988abd9c150d6fe", + "gold_sql_sha256": "1990de13d27a95eee05405627091e9deead8d0121ad3fb932bce474ecc88824b", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5637": { + "current_role": "paper_train", + "prompt_sha256": "61ca59687f45e080b2c213e93069df91775226ef7fc9b75ac74ea5f4a418afc1", + "gold_sql_sha256": "25b21c528c170e90f1832b7cd862676606810ca2ce53eeef7f7f17616feef7ef", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5646": { + "current_role": "paper_train", + "prompt_sha256": "023fd0bbdc9a1bb235a2bd0f4e7d842edde2c974a77d892715a27f938fe619f3", + "gold_sql_sha256": "92be34204e5a41b20fd8e444e70650b8cfa421015318fb63b3d47e148547507a", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5654": { + "current_role": "paper_train", + "prompt_sha256": "42460d72bb1289daa92be1fda05c4ef74da0dfd550009de7f85d1a99606dab2f", + "gold_sql_sha256": "df0465786dd183263be2f0e2a1173ef470e1d67145537887dade79f8c1af1c15", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5663": { + "current_role": "paper_train", + "prompt_sha256": "10e47168988c7915a0faa5e95c07b9c9d0f2fdefa26d3829c11b661d245434dd", + "gold_sql_sha256": "2b77ff0a16bec04ebf00d5f7161c73ea153ebffffb19fc9a95382b7fe609487e", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5670": { + "current_role": "paper_train", + "prompt_sha256": "c0533e946a4463c30ab3c05c409909a76effd687cb0ffed98ee5ed5b114c90f7", + "gold_sql_sha256": "31c2c5fddb2507e6eddcf035c531d2fa69fa7ccb545bdba1edfb76d38ccf0b80", + "database_sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "revisql-train:5685": { + "current_role": "paper_train", + "prompt_sha256": "ccce3954cd57ae86da0e4b26800d09a07df1aec328161c5bb2f4a0d5fb08c3b4", + "gold_sql_sha256": "4186539b151a786da75a2e9eae1ed2083294f47d41eb00f2bf288982ec8ba02a", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5701": { + "current_role": "paper_train", + "prompt_sha256": "a9a1dd625a9e4678d1ec14544bf59c1482ba4447177deed7d6a0dfe972b7e12a", + "gold_sql_sha256": "4b86213e7bf888f1998058f737cf9845f4d9580026b90c0bb7bb5ef8c29e8482", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5713": { + "current_role": "paper_train", + "prompt_sha256": "b5f4f2f317d24eed0439c8208831fc6689ad7d28e21eb009834ec78a1e3ee548", + "gold_sql_sha256": "cfc37b8efa7f02de1483fe2d2e5775d9b21faad7bdf47fbe658ff91c6eec235f", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5718": { + "current_role": "paper_train", + "prompt_sha256": "173d651c900b34b66c3c7489234a5b5ea4fabcb19e2f19bc45a5e22b487cff9d", + "gold_sql_sha256": "b14781bc5233bcf6596d44df4f53de02059e8cbedeb516708c8818d070bc4cd9", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5761": { + "current_role": "paper_train", + "prompt_sha256": "eb54b99a86fe1326a4fe436b0042060d2eb91ff6bd304ae0dbf789c35f3e0e80", + "gold_sql_sha256": "1ccdb795131df7fdbc21bdd9c65ad93898adc6c3feed8c91f5ee65c37c2fd125", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5770": { + "current_role": "paper_train", + "prompt_sha256": "6d3cf8216f6d42ebec9cdfbc45aa82f2562327cb4e8665a65ccff6888ef09960", + "gold_sql_sha256": "febc5687f72738f532566917f5def682efaf231326b83ae4fdeb2d9c3cd0082f", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5782": { + "current_role": "paper_train", + "prompt_sha256": "33c47ad94ff9b70a975edc8eadb1cfff3fa05f365fc80b8fa6f325ca552eda96", + "gold_sql_sha256": "3752d87e7a087e2f8b1c73ba238b0ba878e6d51a73dda8dad2b2e95c0fcfd88d", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5786": { + "current_role": "paper_train", + "prompt_sha256": "53cdcd86adb99fa195a8404ac0c814ae227d086dc6b53360bc5a60580947f0d9", + "gold_sql_sha256": "70894378173a438374405e75d9c613204f7fae0766315bec2a4094d5e14a1ec2", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5817": { + "current_role": "paper_train", + "prompt_sha256": "1158bacd4715a551157ec6bd1c84ee3ddaf80501627e76f67c1d5ea5b902b98f", + "gold_sql_sha256": "8959bd034c2a9995114dbd257f735c4bc2bbdad642efd59e42e8743699e10c67", + "database_sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "revisql-train:5835": { + "current_role": "paper_train", + "prompt_sha256": "8fc13e3f8cb871e8bb5047dc0724fbfa018d7ee954f1f0db3fcafb7e93062ff6", + "gold_sql_sha256": "194e4756224c86bdef852b8971fce32d39e0390f738de1831811b69f2bd8a7b9", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5836": { + "current_role": "paper_train", + "prompt_sha256": "a3da23910a2bc7eb37d3fa98a4ad80fb44030dca48076a58d681da7ef8783593", + "gold_sql_sha256": "dd9f7040d6346a8d5e6297aed38368a3785a4a439d3255298c528a0d8f4ab7c3", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5838": { + "current_role": "paper_train", + "prompt_sha256": "9e70c98382c10958b33c5f3c26b4387fbb9abd45655db530b26df64821e81298", + "gold_sql_sha256": "5ace99603f7848395b256348b8c4a9a59a99d336c4c8cffddfa0b63af0d453ab", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5843": { + "current_role": "paper_train", + "prompt_sha256": "fd1ed1e810f6e634a2549966cd7a67b7d1e02df11d9ee8192fcd3b23b7a8a56a", + "gold_sql_sha256": "0be3d36564b2c9182b720708e4931b581539fa2e11de21c8b86fa9c4b2d37e30", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5854": { + "current_role": "paper_train", + "prompt_sha256": "2c37a7fceb8a2618e2d8d87cf0c6d750daa0a314fb9fdc3a13c114a97c5b1768", + "gold_sql_sha256": "eea715014c788160a16214e25dcb28bb100a432c7d158d4a38e3bf83cfebea9d", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5855": { + "current_role": "paper_train", + "prompt_sha256": "973982613ddc718e1466a6874f1f5fec9f6cc5e8f5b27bf5b365837867501d1a", + "gold_sql_sha256": "1939535ec33c9a6247d72b4211351521c144390cae936c90ccf1cc616e0cc7d9", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5857": { + "current_role": "paper_train", + "prompt_sha256": "53fde34bed3d60ec0d6eed704d3c1e9de2534a7bf99afcbf9d4098964426a004", + "gold_sql_sha256": "5a3926c1520bd11479e8c7a483dbcfbf2b720b9586ebc08c8c58bf410ae60167", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5862": { + "current_role": "paper_train", + "prompt_sha256": "6733fa839763b7ae22b6ac20d7e745227cb4a773cf8a8dfe4527bd3efb7d95e6", + "gold_sql_sha256": "debda068ebb54b251196cc932d00b73c12a507e95563688855f40010648566df", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5869": { + "current_role": "paper_train", + "prompt_sha256": "19fa58e652ebf4a9b52e137a2a1e421afde9cee847107bbac4ad937be1792921", + "gold_sql_sha256": "278f0e7e645a84e1bf95a199a23fd890939885175118ff7991e18f627a453281", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5871": { + "current_role": "paper_train", + "prompt_sha256": "d19838b1e97ff235eed28c1cb105ef8f171fd37e5e42e3809b2cd88051ffc013", + "gold_sql_sha256": "2911efbbf349a6b579bf38839820a01ff48a96717ea559d8f2cc330116a86b21", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5890": { + "current_role": "paper_train", + "prompt_sha256": "306fe46e8efa6cce0c50aa944907e94afe758cf81d5f81794e773f2d9b5f7cb4", + "gold_sql_sha256": "b5722921a5e475162727743eedeccd3b4f533b6ed20008b41578dab4127d1b17", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5897": { + "current_role": "paper_train", + "prompt_sha256": "3e8b0a2b6d8925aa5a1242d1ac959444cbb19be110d7fac077aa5f0f7a206392", + "gold_sql_sha256": "d79b5d6341d3f3e816c0d0542b56d76eb3a32f86f16d8a61588b5ce84cc03553", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5907": { + "current_role": "paper_train", + "prompt_sha256": "40731ca06bcdcd50281780d0d2c163c733180991dbc1679f13ce5ccf80e8423c", + "gold_sql_sha256": "217f48f5ff1e832b78e272decd1c1d8af914bbb5e25baf4b8dca28dc404204b6", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5916": { + "current_role": "paper_train", + "prompt_sha256": "aebbc5f172ae19bdd711f1a8ec40f8c3a52ebf89b3b032cb53126f8ce53db2a9", + "gold_sql_sha256": "80644c9fc40075ea45c165d3d2f244ff0ab7734dd6190a9571aad15364bfbbc0", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5927": { + "current_role": "paper_train", + "prompt_sha256": "b3229b9e7a782430d4f319ad9f501008a02002425378f561fd70903bf943887d", + "gold_sql_sha256": "47be167157c6f50608f09ee0b4022c87d97625dc145553f411986818bd7c39cd", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5936": { + "current_role": "paper_train", + "prompt_sha256": "131fe1939f0dcb0e84f724fb6ef49eb2f6dce2a7a9657e2a6a82ac0f7951df68", + "gold_sql_sha256": "8e95c86b6b9f2bc4fbc88043408f3c89d0251d58a7d8c8df32e3ae0837538dac", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5954": { + "current_role": "paper_train", + "prompt_sha256": "35a9348b0a2386595df71eb071e27131b2443c940bb967810f651cd54b4fd3b8", + "gold_sql_sha256": "3aef86251f9ab8b38eff830d4a94f8efde575fad35b3332ac5d61ce4e4a1dbc4", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5961": { + "current_role": "paper_train", + "prompt_sha256": "3e4bf7b3b1c10bf09669ae80a1c07aba1547e44c4693bfeba05e828bb6c8652c", + "gold_sql_sha256": "d17f80920e26ef8e5d801420c646ffca8b98d73d396214caf88228c2a9e697b4", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5975": { + "current_role": "paper_train", + "prompt_sha256": "55e72dbfff1282f1dfc8d7175cd4deebab4ba6ad52129d05ddeb9853a07d2f49", + "gold_sql_sha256": "013a97c80a6d662916fe5b156df13e4fb0378a550fd19d735e37f87d20bd6a54", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5985": { + "current_role": "paper_train", + "prompt_sha256": "7bf94495b41afcb71e7982aa5dde7c13154234dffa1a9bbf389ee6da68ccdce8", + "gold_sql_sha256": "e3f97f89d3775dabfebeb227f77fdc8d2f729400510f127e53991e8ca57eb3e5", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5988": { + "current_role": "paper_train", + "prompt_sha256": "7cb264cfd9af51295c9dabdaacfc8f34aed7f1e4fabe27b155f953257f57eaed", + "gold_sql_sha256": "a6e66a9bb7f4071fb96f977bc6304daf363043b12a09cf8eec608909ad58aeb6", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5992": { + "current_role": "paper_train", + "prompt_sha256": "c4033c5ccb1dd895d337b4493b8832cb2232752bb0d1548da74aed3145c2454e", + "gold_sql_sha256": "c8bc0c5f2b399c4ddc758c0f24d62f8e57c62df0b21581a6b79687397805aaf7", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5994": { + "current_role": "paper_train", + "prompt_sha256": "46676b1437bc6a3fa0e2bd0e291e092c45c972f9f0b2e0d3259ea61d332f4fc3", + "gold_sql_sha256": "e425d3c62bd2a8712525f829f8e6526903b3cfc60e695e46527f93e4d36f8330", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6006": { + "current_role": "paper_train", + "prompt_sha256": "d68021d267cbb7c08a623d8aa54e49ff290698cd4cbeaeb9a2cdaebd7625ab5b", + "gold_sql_sha256": "66936558089889db1ff79d5d94bd33331c8d6bc64997bcddacd6039fc15c7e98", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6016": { + "current_role": "paper_train", + "prompt_sha256": "159a682b0b6d14283490f003f45e15258e83d4e40827ff3146f45375bc75d2e3", + "gold_sql_sha256": "f7908fce8b70b004fed95af0f8ecf264d3ac3c6210b853fb6aa25278227cf44f", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6023": { + "current_role": "paper_train", + "prompt_sha256": "f7cb04d17bc40282c13b0d61aabb1ebef0e6465747a375ab41e927e69c41c531", + "gold_sql_sha256": "f769de9d4bed316808ebaf5c0190c08450c621799c758185aa5da2d517c24dac", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6025": { + "current_role": "paper_train", + "prompt_sha256": "745ddcd61ff032e752a06807ebfb14201bf696ba0e71c94281d6979d9add8fc1", + "gold_sql_sha256": "dd51d97c68c8ee81a3a02465f72367064d6b2c2c1509c9af03cbeace16cd8884", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6034": { + "current_role": "paper_train", + "prompt_sha256": "4cf3f061afc81f16d05bb54491e6ab24c804a05fcf8a1c863b56b46e117e0ff6", + "gold_sql_sha256": "a24ba2e0147b11001bb2082f25291ec9b7a6687082dd3fd9b3d9be2be2a5519e", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6049": { + "current_role": "paper_train", + "prompt_sha256": "6a9422219fed3595ad8bf69e62a8a660932f117d8d8d60cdc626973368492ca2", + "gold_sql_sha256": "c021a123cb4027877bfdb3ab10928de44cceb2a5623a15595a810085ac996e80", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6053": { + "current_role": "paper_train", + "prompt_sha256": "d901f4244b0b6817571e5bcb7a705d6a03db42a2ea6a03122b6f34c93b503bcd", + "gold_sql_sha256": "04ad457fdcbb853356ca8bb373b7058a5f70179a4578dd4aa5182416a75d0297", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6069": { + "current_role": "paper_train", + "prompt_sha256": "ea63e62822ebded8f60cdb27b25ce3b689d0c3f830820fd784e7b37180ce6cac", + "gold_sql_sha256": "3746c36f2a60433f170d0557ab5b664afe752f4f6f0da6c232da49054a655fe2", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6072": { + "current_role": "paper_train", + "prompt_sha256": "a798dc299817bcfbd49c415887b510aaab6623820da74f8839fe02781726b482", + "gold_sql_sha256": "9880086371eb7701a7b798cdcb1a148b45b4f64253cddb3afff9fb32964999c1", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6076": { + "current_role": "paper_train", + "prompt_sha256": "2228a80cb79a860daa3585434303cdf9695140cd9c9ef78ce3152eedb1fb1af1", + "gold_sql_sha256": "7307f7055a57908688b58f68cd70da4d99254fcc8a1b8632e6c331a7023f26ad", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6080": { + "current_role": "paper_train", + "prompt_sha256": "cb573708b58dff9bc92a49ea20ec794b63671985f7d50f0f5a7c924379eb5cbd", + "gold_sql_sha256": "1a81022a7da6b2e28729ecc37282419dc3c92be03773ea286a23cb56e318c59a", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6096": { + "current_role": "paper_train", + "prompt_sha256": "8924c6b3aff34f85a9754a4c5c42e812da552264c6d3e93d5db5072b16fdb360", + "gold_sql_sha256": "a0a079f73f6712e0d1ab6a376cb71be9e4ae3263ce1879d3202fef6bf18db4e4", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6097": { + "current_role": "paper_train", + "prompt_sha256": "7ea175258c2d451b7be1301a8497e08a5047e13ad6311ed7549bef57820a0e27", + "gold_sql_sha256": "b64f0ead10b2c4a9891057a15058d347d6c2ad958a20de08113e519885ecf2d9", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6115": { + "current_role": "paper_train", + "prompt_sha256": "32f4883fc7119763ce0d1f15fa3a77d5fb66c08bdc2c164bfe58957611a32eba", + "gold_sql_sha256": "cf65c5488783ae2683f116ba5b6239a6be8de8cfdd1b1035243c279653381f0a", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6136": { + "current_role": "paper_train", + "prompt_sha256": "67de79108381214c52ed4d79275df3161dd37e78d7c4525c4392a954118703fa", + "gold_sql_sha256": "863bbb9b24fbc62325f2eb7e4c1bb3ea2865b17a792664fa9bf7a5cb0490fdc8", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6138": { + "current_role": "paper_train", + "prompt_sha256": "7b1bba97d2d92fdae1d6cc185eb6940031b48f7ff2c67b0d98ea95de641c5d29", + "gold_sql_sha256": "4e4aea62148ca36ee1e37683698dbf221a1a7cae4ddb4fbbf81aea94772f0e88", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6148": { + "current_role": "paper_train", + "prompt_sha256": "7a2e26c927349c0ccd094396115636ca0dc794eb17737e0317092f1dba63d4ec", + "gold_sql_sha256": "ffc9dc72289ddf5fb1a8ecb4007d01af63fdc4d4efffbed2cb4fa3de1a07129c", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6153": { + "current_role": "paper_train", + "prompt_sha256": "23f5b71dced01d7922ca9d882e8e2fcb4ff1d6cf92710887e8fcba5bc1c5760d", + "gold_sql_sha256": "17597351ccd362e345a214b7026f14c4a46f295f6ab8541cd0c6e99ab3c9dd85", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6154": { + "current_role": "paper_train", + "prompt_sha256": "4579abde7b077a23a492abf2eeae603baab972020b7ba8921a333d6c388aab35", + "gold_sql_sha256": "8677d456bb5ed2aaa59be3d66b6bf1f0537f2195faf93ec9a0fb99ce248da180", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6164": { + "current_role": "paper_train", + "prompt_sha256": "af2f2acde0c935c3d7a87c55f5e90b0bb3da44f49c8547b2d036262c7c2cca4e", + "gold_sql_sha256": "ef27298a3bfdc0f84c2a1042f0004f5850ac605ca5584530b0359d37d437450b", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6172": { + "current_role": "paper_train", + "prompt_sha256": "3d633ef5a56da5b9fd379d06b41ca360ebbe76d0ff2896a13db30d184fe3b1ef", + "gold_sql_sha256": "0f49e72e89cc0db84be777e5d248a92318f53655db829fd5c93647ad9bcf1bf4", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6177": { + "current_role": "paper_train", + "prompt_sha256": "a7057558b6d11344ca62ff90892209bdd5f0463c347f8cd982e0091d8d284613", + "gold_sql_sha256": "f3f9aca5bea7121e53b8ce49b785e8d1afe3b64c809216c628b27d69530f084e", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6226": { + "current_role": "paper_train", + "prompt_sha256": "2ce67701b6f82d5b4336e9aababa9710389ad3705e2e254dbda740ff9e60e0f7", + "gold_sql_sha256": "fb693bb852c4734ba2de2fa5f4ecebb33c86b2f1ca22db94f17e4d87b72b2e43", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6251": { + "current_role": "paper_train", + "prompt_sha256": "60395806733ee3a6ec8c336e0d2ecb8ac39693481aaea04a99bc5a3f0742f92b", + "gold_sql_sha256": "3a95d7c978fa453a2586249b77327a547ee9d3e805fb546b8b37d4a84d9b65af", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6266": { + "current_role": "paper_train", + "prompt_sha256": "c1a9cf36c62233213e36e4f8b52c283bfce3bf9208e93e4a245a1f9fffedf050", + "gold_sql_sha256": "2c1b8e05330663ebdb214c7a73b585643761bb9a83267dedaf22a488b061f559", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6273": { + "current_role": "paper_train", + "prompt_sha256": "8dc9cdae481db16c972d845b248a7fc4a890873cef436cbf4060a3f006339e20", + "gold_sql_sha256": "f4e5aa08ed326afd4eae9847c534b9866f5ed644bdd2384354914077ff764b1d", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6284": { + "current_role": "paper_train", + "prompt_sha256": "5ec18a0a887b90a6965935d37badaf20d46b5fdf6b83355218b4aee289a13213", + "gold_sql_sha256": "e2c9e2a2d234034139170705743aeba1ffb855450dae1e3db4a59ca1cf6b64c6", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6286": { + "current_role": "paper_train", + "prompt_sha256": "8cfb4a05f5ecb5ac03c3a97081247650427d6e4e8a12ecbbab0cb200e82aa127", + "gold_sql_sha256": "1a25e5d62a3cda33aaef7f6d4647f261fe89074d6e001752fbec21a49d4768f3", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6294": { + "current_role": "paper_train", + "prompt_sha256": "ca09b4cd9e2a108a8622a07ae2d9a668ce5823a3868e7bc15be70be5944f0726", + "gold_sql_sha256": "a8ac27757f7fd188bee7a281130239cfb8d334ed422429504e385ed37366f68d", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6296": { + "current_role": "paper_train", + "prompt_sha256": "f9d07a95510f6da2cfa1ef652bddf49cfcadaba96602b9e9757a0bdcfb42ac33", + "gold_sql_sha256": "e94029f0bbb0fc997ff6b540b4c236a51dd3a9db0aac01e62793076fa349782b", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6315": { + "current_role": "paper_train", + "prompt_sha256": "f69516830faf4ad257535febe076f851e8e8dbe4ba8a816a28a2d93006715a5a", + "gold_sql_sha256": "0d91510acc3957f4bfe1efbca73f1f95ce9405697d3e4ef43a98049f7aa69c93", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6318": { + "current_role": "paper_train", + "prompt_sha256": "af93f70401eda4ad92211ec7a2f442f0fa6e92d6aab342d9ac84a75194e567cd", + "gold_sql_sha256": "6841fdc8db2f6680499e47895b0405ac3a7ebfed846e2c82a5749640a20c6445", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6341": { + "current_role": "paper_train", + "prompt_sha256": "ebe484b61d94210d8cbcdff54d95fae2f1be61dd892bdaf038dd70a333fe6a64", + "gold_sql_sha256": "5e2d51c75cd6c03604fb415703783dfac5b3d4597e4511cc3d1b8536fdc02d4d", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6359": { + "current_role": "paper_train", + "prompt_sha256": "5099aece1febf2c588624a0f8707901e3b8a3c41e7c6d0ce626bde18aebb7ef5", + "gold_sql_sha256": "c6eb608b213197ba4a54832594724533d43a4a1a200aa9c9a2adad492801679e", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6365": { + "current_role": "paper_train", + "prompt_sha256": "d5d0ad2c626d130afe48e842256ba0aed6d903a12ac32219e7fed7c7ac6888e5", + "gold_sql_sha256": "5d10052508e6ffdf0a1d7eec3698bdcdd673c34698b05edd78b4fdc3cc7e129c", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6371": { + "current_role": "paper_train", + "prompt_sha256": "1d66cf155425e86ebc79fc90a681469be817a365c79826a3d0e0b787f978555c", + "gold_sql_sha256": "72b8bada2acbb90d728f9203d457787bd0658da2e335c033cf555eaf5719dfab", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6385": { + "current_role": "paper_train", + "prompt_sha256": "007cea071cb38df16912ba145b00f84ff5179c0147607e40ce4619e713563ff1", + "gold_sql_sha256": "6237496845956f23de7974c659419d81b4ea7bd14b75a420745e405b6a05eb3e", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6393": { + "current_role": "paper_train", + "prompt_sha256": "ad0a61faad3a7c9a9bf3bbc5f6ddde9308076f1000542d199c54e37850d9d06f", + "gold_sql_sha256": "406efc0a42d0dd96a27a543c9b9cc257b50f4e47ee10f6f74d3ce32edf0a64a8", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6403": { + "current_role": "paper_train", + "prompt_sha256": "56c2b29371eee1ba3d777c9cbf0e500b1ffdb09156b1055d8ae953c9e303c197", + "gold_sql_sha256": "45da174b7dd75fd347527456e89ec1c4e173b5bc8d11f64084c7e4beabfe4062", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6413": { + "current_role": "paper_train", + "prompt_sha256": "5e3f3ea7c2dda2696d7387efc0b78a9b72da1bb60c6dbc6f4a79fc978bef535d", + "gold_sql_sha256": "57a7efd32b8dee21a683926eaac76a1c7913256204281042dabb7d25db91b29e", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6437": { + "current_role": "paper_train", + "prompt_sha256": "397df65baed4afd62671b02504a0c5903a813ab0757b37c9f4a70c336abf52e2", + "gold_sql_sha256": "11efd028b30385a9d896da001c86f937bbcabbcf08f60d2fe1788ec95325a766", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6451": { + "current_role": "paper_train", + "prompt_sha256": "e9b78222b6819da7a243397cded18f0f3e2cf8e9969178928e755fed267cd8ff", + "gold_sql_sha256": "30b16f6ee35d18f2bbce0e3e403cf14607e4d64a19760bb2ff57d89275a605ed", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6503": { + "current_role": "paper_train", + "prompt_sha256": "0ae16430e84ede09618c9f99ef85af37cb27b78a610409258b94abf72ec82dc8", + "gold_sql_sha256": "fdd84b05a00dc70cbff7280417bc8a15f8f3fc31b5f5e170caab3485bf82cbc1", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6530": { + "current_role": "paper_train", + "prompt_sha256": "d454890ad5f0479616941bc5cfcd81fc905a25d007e13dcb9819d9e4a8721d66", + "gold_sql_sha256": "db677b8c1762ec24708cbe60000abc58ba6ed5a7902b48576e6e1576e08157e3", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6541": { + "current_role": "paper_train", + "prompt_sha256": "c4a856dd21acd937afbfdaa823063d223fdd62847f8cfbddef7e096ccecd50be", + "gold_sql_sha256": "52992670d733fb8c401139c0f0493e7708e63fd0c138688389dd58529d952a12", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6547": { + "current_role": "paper_train", + "prompt_sha256": "7023e339302baead1b57682d55be377877608af3bb9ad9561a3eb4fd8f3a6696", + "gold_sql_sha256": "0161cdeee2316401da7ab75e5e9e146c6cedf76acb02e793c4f5ba62f639102f", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6562": { + "current_role": "paper_train", + "prompt_sha256": "30173b44ed3a3197df4f54483b5d5bb3be9809f2a9daea4dd45eda8e09eef134", + "gold_sql_sha256": "76f686cdde8f48e11e9a7ee03b8e26f1bafc6501e8304ec80fce23b6e74ea91e", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6577": { + "current_role": "paper_train", + "prompt_sha256": "e160df0c5d045c4455d9daedc2b1cbb7a188492c65a8231d4df0589781785e58", + "gold_sql_sha256": "14b8ce5c7ef409054f2c64faf39df689049a736a37fa2044bcab334b3072a92c", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6602": { + "current_role": "paper_train", + "prompt_sha256": "a9389e43036ed5be7ee8b1e672672ecf08b1696309e3358ac87cd10c20758c12", + "gold_sql_sha256": "cd7f0f53fcee4821940bd67960b3e17b0b2d72ba861c36a77e3fce4210dc520c", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6613": { + "current_role": "paper_train", + "prompt_sha256": "88907c7410efb0b838c677e0ee2bcadd9a247aa8f0d529cc67bf408c5e733de7", + "gold_sql_sha256": "f8207f97f944050c905641359ef37b693dd4aa979ee0ebc3830dc3d9ba402ad8", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6618": { + "current_role": "paper_train", + "prompt_sha256": "1cd06027de593e266be28fd5fe731b79a43a443473c9f644361617a31ea6fad4", + "gold_sql_sha256": "ab8f2ceaeb627d33df678a0284c97f1942470910defba0d2637ca0acbaef23fc", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6629": { + "current_role": "paper_train", + "prompt_sha256": "9dfaa429f1a7d2f0d7896564cf0ce483433812716a17d73b66f08c9d96a68f03", + "gold_sql_sha256": "91e583cd1110d554fcdf9290710016ab82cf0391846bf64cc3b11ebea91ca530", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6640": { + "current_role": "paper_train", + "prompt_sha256": "38f32a3e120e9a7d6fa5bd1b918a8f5d7714f3e91e8b938d066d2ca4096fd215", + "gold_sql_sha256": "a72b53a948f49d5bf3dce94275c24db1bf17912cc6ed7e67b5578876fe5b282b", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6659": { + "current_role": "paper_train", + "prompt_sha256": "9522f79a7ffaa6e519b34b1be6db2ec6423f77126a99a1c14a29f7851646233b", + "gold_sql_sha256": "1672464e2225e12c0e5dbf6ebba0fc53149344eece5e454ae3ac66eab284676d", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6661": { + "current_role": "paper_train", + "prompt_sha256": "0263b29c085f9cf3b09bbd652642eebbabc91285e897aaaf39430a09d2d1b4a4", + "gold_sql_sha256": "5f8a179d7cd4acdc83ab2cebd8d9a86ef70f2f28a98049a44f45713e9128ea7c", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6668": { + "current_role": "paper_train", + "prompt_sha256": "ebe8c93a3547528541d26a5bf874a14817d260a08d0acf79ee20dc8e89575f42", + "gold_sql_sha256": "c2421b55bad76d28935edd7d8f19d4e136dcd17f837ca5a812efd8f8198108e8", + "database_sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "revisql-train:6673": { + "current_role": "paper_train", + "prompt_sha256": "b47536c1f0e158468192ed6d2d19683dd94b28acc0535a27e3c2c62418a781a2", + "gold_sql_sha256": "44237b079a9a14834eab95ce6eb75cc06fff7c2e67564754bdc6b08c27cef05d", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6696": { + "current_role": "paper_train", + "prompt_sha256": "d5270f20e2508c81b59a7ccee1581a7b9c3c44214a9593b85645565b7a041c58", + "gold_sql_sha256": "253caaa9aba9276760aaebc0faf322e6596550c83aec399a191726f6ff520b85", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6704": { + "current_role": "paper_train", + "prompt_sha256": "8f24e756a9e0647f722345d177d907e62be1f445c77375ff21154b3787f80f60", + "gold_sql_sha256": "95477d934c4fceac7d476ebcb1f735fd1bb641ba9114f0053321f6838fd88b66", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6708": { + "current_role": "paper_train", + "prompt_sha256": "5004292be185262d65bd2a996346ed9f46a4512d3b5d8d940bfdefa6dcf12268", + "gold_sql_sha256": "096f3a7fe1a408214b7e09b43f9924c36c266f762827e271c3faa37c83912f7f", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6710": { + "current_role": "paper_train", + "prompt_sha256": "28152bf9c415d936c04c2e6e59c09d69d1015f0e2d7463ac7ca444c711520408", + "gold_sql_sha256": "98a73b221c40df6cbbd2408542824892d6ec80167ff68070afd717853fed35f9", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6725": { + "current_role": "paper_train", + "prompt_sha256": "9d62b3fb7d4469a7da3605fb14b4bd82574fcac73865203c9e7c302d7831ef8b", + "gold_sql_sha256": "5d5bbd9e03d8a0de49eb7dc02de5ebe5e50751492adea9ad2d761122c1083016", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6728": { + "current_role": "paper_train", + "prompt_sha256": "7069e2660622366555f139120cb7c33f5af41b706efcc5d113a6e5226038afe1", + "gold_sql_sha256": "7aa16944bac2f5b24dd93bbd0435a0fbe23a1a3e6d7d8ceff7e95720a074b4cd", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6729": { + "current_role": "paper_train", + "prompt_sha256": "ea96bc12dac90fd56710fabcd538b4e0152aac73fe18e57e2a1d26825ec2e963", + "gold_sql_sha256": "aaa61113923663cd8c861f3cd92f83b7db5c61d1bfeff2033dda0390f906b70c", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6736": { + "current_role": "paper_train", + "prompt_sha256": "699223fe9ae6ad8a16153d06a481e27eef05e7225655e73b053522a52cb9788f", + "gold_sql_sha256": "aeae482ed70800a9a2c381f849496dfcf9340d14e9091f611691c2aca704d168", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6751": { + "current_role": "paper_train", + "prompt_sha256": "89436b283a9180cf9a12fb4ed55f3b92443f3a160e9d1990d6da014f4318cb72", + "gold_sql_sha256": "cca9f948c0329d20dda24d09f04581debd0dcfdbf85a899762ae1cefb33188e4", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6756": { + "current_role": "paper_train", + "prompt_sha256": "98609b588f4c474f8ff4b17fbebf2392ee0d122f245df9cec53e88b6a078762b", + "gold_sql_sha256": "be4619576190c6754d722bfb54e1fb7afb031308358f6c751b68c028b077b36d", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6757": { + "current_role": "paper_train", + "prompt_sha256": "6701ed2773498638d1dbe291fbe0cc2b9f09d6f79d8f2667d7d5f6ec9316c314", + "gold_sql_sha256": "2c3ba9e44fd68971a4d4037ef21d4aa1f8dd00a911862d91eb30502af3ef0231", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6761": { + "current_role": "paper_train", + "prompt_sha256": "86c28204c7b9f2fdc70ae08159a9816e4c01f1faf6ed2c827bee17627ae5565f", + "gold_sql_sha256": "d6cf29062ac829a3737eb2ca966a067a4a5bfa4a570b009680ced3d575854b97", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6765": { + "current_role": "paper_train", + "prompt_sha256": "9c5aedfa795b585ea89c58686503a5a2e2d5b312f17d53c8ade745a1776a2a9a", + "gold_sql_sha256": "476cd5d149aa7a1f9c4dcc3a60c3b31bb2f6fa7ad39f0bd2e97299e421f6e555", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6766": { + "current_role": "paper_train", + "prompt_sha256": "7e86bc0cf5f301480db2599a20b36f608673374357d111848673f20d2b66cbbd", + "gold_sql_sha256": "d4ee49e68235b6ba574bae5e37601bfc1259ba27a399eada4d3335cf8f17e5bd", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6788": { + "current_role": "paper_train", + "prompt_sha256": "49114b99c3fe5eafdd53dab3b64e20504bb542f947eac3b09a9af240ae20c212", + "gold_sql_sha256": "a416516ec82c44a78acca3beb507b946c410d5194e89f2747215f9e45e197d77", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6802": { + "current_role": "paper_train", + "prompt_sha256": "434eee1177c587ce0a760bb58725adf1230d781b20f3e89420b56c4f9c4794ad", + "gold_sql_sha256": "c780f5620ad2f46b06c500fcff1706f2d18a29481110cb7b429a872df039e18a", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6819": { + "current_role": "paper_train", + "prompt_sha256": "e209c539daae44283d422f352c4bf67e07c95479b1920f4cda5803224bce6d2c", + "gold_sql_sha256": "95477d934c4fceac7d476ebcb1f735fd1bb641ba9114f0053321f6838fd88b66", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6831": { + "current_role": "paper_train", + "prompt_sha256": "68e18f15a7665e53df5944ffc9917c57a19c97527cabfa34d38b1a9a7af945e6", + "gold_sql_sha256": "059ef54f39c275b53eb8219abc42b1ea46199323f4ea735f65aed145beaa111a", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6839": { + "current_role": "paper_train", + "prompt_sha256": "6002d719688b87426bb42e974f8e590395ba675858039592fcde551f28f8a0c8", + "gold_sql_sha256": "5620501375e0ded8cf6b03de1ddad38c65183f00bff0dfa3ba5c5fe0bf75359f", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6855": { + "current_role": "paper_train", + "prompt_sha256": "502140f4ee813a980753e3971cdc0348b933184049dd7c082af7598e11362ce2", + "gold_sql_sha256": "f98f6daf9bbebd0806bfda4a482271888df300d0f4cf02f5cde0de127788c337", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6883": { + "current_role": "paper_train", + "prompt_sha256": "31ab7507acd4254b1991d6e9aafc9a059d02d1e973c1997020b0ddc630ea8c32", + "gold_sql_sha256": "56d81809d434aa3f6f80e4f44ec3963d747e26a3d69751c6f2c5c103901daba6", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6887": { + "current_role": "paper_train", + "prompt_sha256": "0dadc5c4b6a66f7a146cf2d43c7a7ecc2715d6265774571d8fcc1e284b828858", + "gold_sql_sha256": "e580f2ff614969d823ace19709775dc5437c4b354588ebe4d9cbadb4dc7a6d46", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6889": { + "current_role": "paper_train", + "prompt_sha256": "22198a13c05c68b62cf8319a8c6f6a07ae18fa3724372ae9895f4eec4d613609", + "gold_sql_sha256": "7b9dd2b69f11bc629c695ea68d9acaedb8032c994a6cebf28c3ab149737fca44", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6892": { + "current_role": "paper_train", + "prompt_sha256": "719a2eb95f15e367ee11f903488cf04bdc6d00f7804e1a6a6d3060911df08540", + "gold_sql_sha256": "a9b996f5b029dd8a0b3a975aa1441dd87c1307f5510fb6541135f9bb0745be92", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6894": { + "current_role": "paper_train", + "prompt_sha256": "d3e75f0a13d3ea4790a3689ffe1a37cdf33178590f7fa3ce6263f9bfec220ebb", + "gold_sql_sha256": "0ef11444f6b4f7d455f1bd9d9448a65442f35c6482581c2c2cfda5599b8dff14", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6896": { + "current_role": "paper_train", + "prompt_sha256": "42adf3297de0dd01a8e03dc4d833bab3a27c8573441c3d501be9286c2bdb0fba", + "gold_sql_sha256": "3614f1aa21e4953920f950dfe864ec97847d61f5acf0190efd9575b2fb6448b6", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6906": { + "current_role": "paper_train", + "prompt_sha256": "4c9a655ba264e807192b28b370b2534fba15f6fa246b9f10cd32346c9f4a29e0", + "gold_sql_sha256": "7404d5da5876dd2b7fec7cbd72ce44230dd8b525fc495f26006e4db9c0482f20", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6910": { + "current_role": "paper_train", + "prompt_sha256": "f0780968be0733e534eed5ded953ce5e04a5e5ba790364398739a70f5d3e8233", + "gold_sql_sha256": "69413b9ff6232bc8dcfd85beb80bbad07efbe4ace3ecbbfbba4e7c0092e56a16", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6913": { + "current_role": "paper_train", + "prompt_sha256": "c6398b736a377f0787e2393f3912d5dbdfabdc3ddc9bf9ec51b924809a5fe02c", + "gold_sql_sha256": "f875810f3370af837f4da63c678a9101c38152ae09e64585ed3f2db9925c4cee", + "database_sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "revisql-train:6923": { + "current_role": "paper_train", + "prompt_sha256": "8b0d7c8504cae3c751833ffd3d02f0657dfac86f46607a4da71eb633de07c660", + "gold_sql_sha256": "c3410624d876b82d2499979bcb99e372a6543e5fa8640225de9acfec890b8aaa", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6925": { + "current_role": "paper_train", + "prompt_sha256": "d24bc4253c82f9d9cf46b8f492f90384527aaf900b32db9e4e32e760863c41c8", + "gold_sql_sha256": "3d31ebb2733013e584e0e138ee3567c47019c392b8231a5bc1df05d59c972434", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6928": { + "current_role": "paper_train", + "prompt_sha256": "f3257674e69c2412b229cb352ebefe8f8295feca50a7968e8661150db662410b", + "gold_sql_sha256": "656fd29e731f09e4bfddb22c6a60f38c748f10f017b315537e549ce0d74fcb1b", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6931": { + "current_role": "paper_train", + "prompt_sha256": "9e31d59d075009d4b69eefe0f301b66054abe401287afa67f6ee6ff586c83e1e", + "gold_sql_sha256": "01b9ba24afa42368935e6199c04d895414a10724e3152a5d79e469688fb6db4f", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6945": { + "current_role": "paper_train", + "prompt_sha256": "2bf2cc68d4b82e367475808d1dfa02af81f1e0ae8a1a8262a0e780b4c2f5c962", + "gold_sql_sha256": "b88e12551dda86ddb215f7efedd7952148d837a9d5d736d59b1b37deb754d169", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6950": { + "current_role": "paper_train", + "prompt_sha256": "ca1cd0944d5f19e0f319e8d6b8c8d3cd90624bb3c286b0bd45cc776498e20f86", + "gold_sql_sha256": "9fbf37e83817403ba1e71c1915c41bd420634242a9ca72c6b54af4f0e6655bc6", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6953": { + "current_role": "paper_train", + "prompt_sha256": "22f86b886de5108410194704fd4046707c3fcf185aa619663afb7c2254175615", + "gold_sql_sha256": "c538586dc143cd36e99908a68d485977b1586cf5b0bf515c363cac13b248189d", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6959": { + "current_role": "paper_train", + "prompt_sha256": "3c507f04f765e38c48d416e0f816ffa30bc2c0d42c108a7a00e2399e8932c563", + "gold_sql_sha256": "35a0adc571745034f97549dcd38420a8cfb203ac979af41615e17078c62b4874", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6972": { + "current_role": "paper_train", + "prompt_sha256": "2bbf3398db3b820e9010ca7355ecb722b2778075c157acbf81a07101de950593", + "gold_sql_sha256": "8a626dbb280b435d0a328b3118efefdff77138e870b180926dc4f14a13ec9d88", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6992": { + "current_role": "paper_train", + "prompt_sha256": "04c52106c78ba6c30d1d42b859a7c44da025c623b7421a1fcd079a1b11cd7679", + "gold_sql_sha256": "07d634434f0dc8c6b21ba5ecc9fcd2d1bfbe7dd74b76efbc1683b9014baf7fe6", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6997": { + "current_role": "paper_train", + "prompt_sha256": "bdf9d4c182e7254d62ec757ce351f3a842a492ce24c0eaecfb82f61caa0b8b55", + "gold_sql_sha256": "76fe21a7c4718e5c3127355e97c323dc380f90efc82feaa26dab4d1728699d62", + "database_sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "revisql-train:6999": { + "current_role": "paper_train", + "prompt_sha256": "e3b89f6f2c9510b71152764944d839bd1f8e2004c6a34556e7c5a34312119d12", + "gold_sql_sha256": "e13f8fcf391dfd0e3985693748062478f4fb30acc1a7743e890f02b8c6ee22bb", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7000": { + "current_role": "paper_train", + "prompt_sha256": "fdf15662ce253e967142fa8c96a6ed71af928b72adf882c49447a5fa21596de9", + "gold_sql_sha256": "66c4a8824581346f607b08250fa1a22e26875e26f820d31a63b8a799c09cb01b", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7009": { + "current_role": "paper_train", + "prompt_sha256": "45a09862981d47c4928785dc83dc330b691014500f1ac2f48b2a5fa2deb73f83", + "gold_sql_sha256": "0a4d4565ff6c74ca3814a97bbf6b3f78afd19957789bf7e558a1e2772d6f8608", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7010": { + "current_role": "paper_train", + "prompt_sha256": "5856bf70f522c66ff383e7c20ce25df9eea9b802b69b454cded103e7765b200d", + "gold_sql_sha256": "29119b733cca3c8e7204c9ba3686d507128ab3ff3c5d368e067244e2dcf10bed", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7027": { + "current_role": "paper_train", + "prompt_sha256": "fb61155c79ae0989fd7713456c3c984a473ad2a0d4c179d04fe3bf1c1cf74165", + "gold_sql_sha256": "d6916c2b855f6cecb3f26d54d8b1f25fe2c20036b6fa7c671a49af8df3eb557a", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7036": { + "current_role": "paper_train", + "prompt_sha256": "3029de3efe2bfa87f1ed32ea4d7953b15b0cb7e56cbe84900b068589d8f896c2", + "gold_sql_sha256": "75ec484b346318de70ee12cb8664dc09640541d14be4fe0969a04fc7ffb4458a", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7043": { + "current_role": "paper_train", + "prompt_sha256": "05d801c8cae20ba27b72b3d8ea5fbbb74eec6121e8a00b4c8aca55cc40b37178", + "gold_sql_sha256": "78882ef9cb564c32ec471ca41083182e21e11fbf164752e2209d9670f8a8c800", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7045": { + "current_role": "paper_train", + "prompt_sha256": "0c803d1174f66cfb55140e22d8cb1640aec84c48020e34f1617df1678f0f5919", + "gold_sql_sha256": "23b759e8d9842b26957765c3f594cfed7623a5c42cc18298354518e64ef225ed", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7067": { + "current_role": "paper_train", + "prompt_sha256": "21677755c284f6a3bf60f2ea219c895453bbde6bcd2d9b961d60ae2f291acf45", + "gold_sql_sha256": "a0bf9e0822285b8c43d609d399b85eb3498782790c33157d14a03bb84522bf48", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7076": { + "current_role": "paper_train", + "prompt_sha256": "6d7315ff3474c38d593ede3d3a934e8396a6754b099440e073b57e5c4570bee9", + "gold_sql_sha256": "35cc2e9f47fff9c90ba1170d4ec6958e4d49febb918ce2fa84af42cea4c80e51", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7086": { + "current_role": "paper_train", + "prompt_sha256": "652b3a75dccaf4eccc1c0f1d91d0a88e9319ff813e6afa703cdeabdbb1e6770e", + "gold_sql_sha256": "23794a87ea5952ba3bc6fb3789aeccdfc933eb445291e134f766565918a20574", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7090": { + "current_role": "paper_train", + "prompt_sha256": "2b0e454324071dd2c08bc134fac730576e620fc3e665a591785d221e5401a1a7", + "gold_sql_sha256": "b17f33e16afbe3e46d44128dabcb807e3197c76fa7c6a92db70ebf270652f274", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7123": { + "current_role": "paper_train", + "prompt_sha256": "0b9feea4119e8010c502b2d996ae630d749ec0558001dd1fdc212a3a92ea4465", + "gold_sql_sha256": "54d57f095b41f92ef69a13d70156dcbc3ec763824d29ed13c5aa6a9f44859857", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7127": { + "current_role": "paper_train", + "prompt_sha256": "fedcf875cf50177139aaeb74646d7781eb752c341e945421b5f95554dc3ae8d3", + "gold_sql_sha256": "e62eade3ed46812dad64764c3d7a6fcb2dfa0d120a893f732efe23b89273e512", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7135": { + "current_role": "paper_train", + "prompt_sha256": "8409b4a961a7e8c48894a09c79f80029b216a9d1d345eeff5745a7cb2e1fa2c8", + "gold_sql_sha256": "54feedc352520a38e1c0445449c4d32b66ae82c52b2e5a02a3946e634c5054ba", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7143": { + "current_role": "paper_train", + "prompt_sha256": "0fe2082df06e6c5907e74eda85838314e1926e074cff96d9901b66d1019dcf20", + "gold_sql_sha256": "8068a68b75550a8a06aea7ffd01a70067840c487bb5e2b4157f585ca519352cb", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7144": { + "current_role": "paper_train", + "prompt_sha256": "58008b4c2f7e6ecf80def455963c11bb5c094ebdf7086540f0e08192c42a6ed9", + "gold_sql_sha256": "9721b0b36458b64703980dc082da880af6e53f1490da8532309cf7e406385047", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7146": { + "current_role": "paper_train", + "prompt_sha256": "fc6aae81ecdc5f62397a4172ff3aad501884cd2be8b89d72431bf1c1b8fd4e6a", + "gold_sql_sha256": "3920493d8ee88fcc8b61767694bcc7888bd318a2c426fcb39ca4a57e4d9c3924", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7169": { + "current_role": "paper_train", + "prompt_sha256": "1dd93341f280e6aa77d9ec62a73691608236901caad78619b1d033f2371d8088", + "gold_sql_sha256": "3d7f690477eeff718ac5dcec2b8fbc526b73207747904c0e7dec00127d14b998", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7182": { + "current_role": "paper_train", + "prompt_sha256": "7ee541cbf94dcdd671b085cc3b3ad3d956a7bd74a0616ac59a276ff6fdc272c3", + "gold_sql_sha256": "9832616351d2d5c0e461f135056642e4928a37d1b0e24f063ce0722d146dd3f5", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7192": { + "current_role": "paper_train", + "prompt_sha256": "ab885005c3dcc1ee4e14b1b4c9fdfa9339f9827b6bf6ff5820655199eaefd9a1", + "gold_sql_sha256": "aa8dabecfec582c668f306030e28025e831426e990ba2ea1521f89c9816e9c54", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7200": { + "current_role": "paper_train", + "prompt_sha256": "44f3d86076260bb4fdd0404d4df30f1164a011fc410b10c38393081f752ed5af", + "gold_sql_sha256": "56e4511272710c9e25d98e60dd74295ed303cb6044a221c7c006b9b78032eca5", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7219": { + "current_role": "paper_train", + "prompt_sha256": "8b82f25186a6bc56c7b586adef368474a3cf370e4b059cf98ec3229b9b16ba07", + "gold_sql_sha256": "ea1b09eaebb12ca3a97d518f57e6883d45a853dbb697cdc24f5b3de43afb4512", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7220": { + "current_role": "paper_train", + "prompt_sha256": "59bb212b02f46df86d5a71de3d2913c0f45720aa6134442fe63de67c40beaf3f", + "gold_sql_sha256": "b117685ce86c51b69ce6a93a8aa4ed6f544f16f9bf8b3294c174464b7e436675", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7224": { + "current_role": "paper_train", + "prompt_sha256": "3d76a8212d4e4170571e8e40e5eca46009354903e225c52d88a55981244be5d5", + "gold_sql_sha256": "df61d000f1372c3f256ad4ab09ee76cbe9e242be58d77000ca64b1c35278f0c2", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7228": { + "current_role": "paper_train", + "prompt_sha256": "a68065af9d5f516945f740d2041ec5c447b2a49fbba95244042b1f03823f85e1", + "gold_sql_sha256": "d887ee8054a7be83df887fe68bcd4118ea559b5099e14d22299c058538b974a2", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7235": { + "current_role": "paper_train", + "prompt_sha256": "1d3cdae4ab717d5ac90bbf768d247c8ed3109ad4c7a0c24a704aafa3dafebb0f", + "gold_sql_sha256": "c7c4164426f5a15c90b688f4a062f90b361c016bde8cf457945bc0f238f20350", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7259": { + "current_role": "paper_train", + "prompt_sha256": "c7f1b2a9ede01fa503221f5e35df35721ad249846395dfd3d3609a991d2bcb84", + "gold_sql_sha256": "302401fd5d779d381f3fc999c48b038c9279fdc4901b5df4dce11afdf719cc22", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7273": { + "current_role": "paper_train", + "prompt_sha256": "9a2135877c309e962fbf28ed06e00e5e38051f1dd5f8e21b84b9afc49946ae7b", + "gold_sql_sha256": "a1d6c9f20bd780b05ecbd486beff221162e95b840efca97ae298bf7d9b419755", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7282": { + "current_role": "paper_train", + "prompt_sha256": "36b8b86692ce98e1e895222a0dcf34e57af5140763ab556918c6edc9fcbe66a2", + "gold_sql_sha256": "5c0cb29a2aa83be20f8a5017809ca852fea5acc0621e1c493185b5d7905dc913", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7289": { + "current_role": "paper_train", + "prompt_sha256": "94347594770c7e50bc5dcfae366947aed601629ea6e30a200be4b12a8e81361d", + "gold_sql_sha256": "1e62a88c25ffd68983455d31bea026c53c09608aeb0cd5a6bd7ccd5bf3a3a12f", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7290": { + "current_role": "paper_train", + "prompt_sha256": "2471c4d5a8fc3c7d170c391c2972911a70c6f2e193405577d12fa2af8853757f", + "gold_sql_sha256": "3dab61befc47d3bdaae0479907f4bed298fb6de29d3d35af25ad075842775598", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7301": { + "current_role": "paper_train", + "prompt_sha256": "00c3b390054ad7b3b02d9a32c1215cb619e2ac8c3b60a749512a7ffde21e7397", + "gold_sql_sha256": "62737eb782b61ccf829a2c9ec8881db3681aefef607b8d822ffc5579d5c1b9d7", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7306": { + "current_role": "paper_train", + "prompt_sha256": "985905703fad57947179c2268043744cc969c1e43acb72ce01d8d82147ba1ecb", + "gold_sql_sha256": "5d9428fbc481652d85464be0f339cb308bc43fc1a13c57b6356e2d1d657263fc", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7316": { + "current_role": "paper_train", + "prompt_sha256": "ba1ef38cffc5540d8a433ed83ecb48daa0dc5e813bd2fb890178e3dd98c608ca", + "gold_sql_sha256": "083d035196a32268bee393560daf73ecf42db9c5ddca103dc924b46d670dcddc", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7318": { + "current_role": "paper_train", + "prompt_sha256": "1e6cab5e6e3f76afc7114548fb02a2074fb69454ba599289a1ef44bf9d7efa0f", + "gold_sql_sha256": "e6ed24b896814f2a795a4aa34473d3f4decd49749cd86d10c4462b4ff76cd504", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7320": { + "current_role": "paper_train", + "prompt_sha256": "00bef76f8c65323b2af526ebf587c3056e1e7da0474e106af59f0d613f26155d", + "gold_sql_sha256": "fdc1d608b01b53d6b5934a47f3a969c59d7771d0694bea56000ff718e5f84faf", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7322": { + "current_role": "paper_train", + "prompt_sha256": "d7095dd3adbc1b2228ea57adfec17ffd8fe726c19c32fc6cb26305a84af2137c", + "gold_sql_sha256": "416c4f753cfbf6cb3ea53ad9c768dfede8b28ebd343eeb5a619252e6d8dc77a7", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7327": { + "current_role": "paper_train", + "prompt_sha256": "cc5243f64ee3d1a7dbfb48b132d5c289311196d72808c95ddcc0d107350c00da", + "gold_sql_sha256": "39d462b629efd2f97d30c923f8f9e6dcc025115df3daede46d9d0559772b3fd8", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7328": { + "current_role": "paper_train", + "prompt_sha256": "f7e6af4249eb55c426aee16fc3758ff902e69be1419720f26e7dc349184b4d2e", + "gold_sql_sha256": "d8b8b5801d19155f9c1bc06e2b8b4e2ccb000d0b8e1f7155741365c9db92f56c", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7336": { + "current_role": "paper_train", + "prompt_sha256": "4e04a2677190ee65c05ba658013567526e217297206b4887fbfbae5e6d78ae23", + "gold_sql_sha256": "c51eea1a9933f9bdec0d406cb2f9b0bc525204da787d719e6b3ca399742cc0b0", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7339": { + "current_role": "paper_train", + "prompt_sha256": "6d323d7fffbaf3e4c49e76a410daaaccb3a860fa238238e35606f5a33a8bb289", + "gold_sql_sha256": "d23eaca13855b1846d63aeca47c08630930aa8439f8770daa06bbbde43938c56", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7343": { + "current_role": "paper_train", + "prompt_sha256": "b66e52cbc41ddfd399439477556c22bb081c0e447e5a3860e5aef3d014f5e3ae", + "gold_sql_sha256": "05e3fd43727df2767d945a71eab13c7d961d904cd9ab690ddb0d0b1a0ebd74a5", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7354": { + "current_role": "paper_train", + "prompt_sha256": "f3b70b34c71ab6f5cbaf8ea13970cbfeaa70c603b7cb75af9b7c219779b22829", + "gold_sql_sha256": "2f40c0d36f06b2246fa8cb76368136f73d186c3ebe3aa93ed86c132092c75ea3", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7356": { + "current_role": "paper_train", + "prompt_sha256": "949a3fe9b0568e1eb67df682d14e6a212bd104d3ba608f1f5dbbf0673895c923", + "gold_sql_sha256": "333d32809bb4052b969840d43485fe3924a54d938a7fd7ce9a3b2abe7ceabfec", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7357": { + "current_role": "paper_train", + "prompt_sha256": "5759b3406d1c834075ad21568d395045b57f56f152e6d9c9a1d3c369be456151", + "gold_sql_sha256": "a31217ce1f216ca6e18222ee00d59ddcbc7991b27b57063d77ca0fd2be8b9fca", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7358": { + "current_role": "paper_train", + "prompt_sha256": "718bc9c55d67a255da0b4464c618ed49bb0bba1ea749355b04f8150c0bd411d0", + "gold_sql_sha256": "79af6aaf1a8fd2964f1ddc786e0214d540ffb7abadbbcd1867c6a9f60a7c6938", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7362": { + "current_role": "paper_train", + "prompt_sha256": "2d0f70dc3edb2f3bd970cf637e4490f79444983f0190af7b6574b7afbe4a89b8", + "gold_sql_sha256": "df1b68b70be5f751189b777b94e2d18c6f61e2bb648e2cd9cec4067f810b68fd", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7374": { + "current_role": "paper_train", + "prompt_sha256": "01c9618f0cf49f698a6316ad857bc0af253fa9931020631d6cc1b440c604d59e", + "gold_sql_sha256": "9c4cccdc2033e381813ff0cb75b0bcace37181a83f7dacb542bb30398942414f", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7389": { + "current_role": "paper_train", + "prompt_sha256": "c6816e3e8939926f01f2cb5a99e1971c386cca373a9af8437b81fb155a0f026c", + "gold_sql_sha256": "8bbfc48aba4ad927f8e45741551f334d1c0aab5d96d346d46da526429ea3d0e2", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7399": { + "current_role": "paper_train", + "prompt_sha256": "ba91a30e47f12c50d7f9e1ea464e70dba103da01f9621de0ac5c0e7f7749d546", + "gold_sql_sha256": "bdb2b5aa46f0b595c24ff23be221a7e88de484da7046f6344d37acbf90114b51", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7403": { + "current_role": "paper_train", + "prompt_sha256": "54ca5a43e8ba58e0352b739e6c68c078244f74a4a9fda5942cf5e3adc135e2be", + "gold_sql_sha256": "9e80cdb6146bf5203641a675a9cd6734149106f5352f51266a5d83ed2df4f901", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7418": { + "current_role": "paper_train", + "prompt_sha256": "088e18811c92d470b87ff8cbb5e153dd92b39fe39e94816a9cb3806229ca9263", + "gold_sql_sha256": "0b7ea9a31469f552008c890c9e93cff0fc350dadcfe3aa93db779725bb8881a8", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7422": { + "current_role": "paper_train", + "prompt_sha256": "34ec7f156c3b629699133b2226d7f328c744141959b5ac24185bd87aad4893dc", + "gold_sql_sha256": "9f86274ccd120cfbcd216d492eea68dc190d947695573c1dc4ed97e1ac15f89c", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7430": { + "current_role": "paper_train", + "prompt_sha256": "9e39611b05be7d0a53d90d78e0c69229dad38ab2b524b8f5daa6b743fe1e5b04", + "gold_sql_sha256": "3df58119ecda64e2139e1156f76f5e0b0426a1775776be086690d80fea184b3b", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7434": { + "current_role": "paper_train", + "prompt_sha256": "4cac2563c07cc0152272c64f52e1f6e2c353ea699e0496304836dd6a8d248f02", + "gold_sql_sha256": "8c0a82f25cd77104fac4579373165037193dac45ad8db2a1b66fe806b9c55628", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7435": { + "current_role": "paper_train", + "prompt_sha256": "fbf7a51b41786de6e5962764abcb8d0512c92c565c8d32324ed20fd796a0ad8e", + "gold_sql_sha256": "c82aec9609bc290476b98804fcec0e70584c24fabe57d5895df1159afd7b187c", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7444": { + "current_role": "paper_train", + "prompt_sha256": "e0707c31f3f899505ffc7d5433ae32f7b3d0aafc7a9e17262e710f9748443908", + "gold_sql_sha256": "2ad47f125711088021a18cee071105ee95d0d272fc11ef20d54800652fae58b9", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7455": { + "current_role": "paper_train", + "prompt_sha256": "6d458316945bf3087ebb5c8a33209f15848c2c848a688d0eaf7b6e036aa3a844", + "gold_sql_sha256": "bb54a3c3b8315c5331a224148cf9b5d20782c889abf9f4281b03c5d66e149e68", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7458": { + "current_role": "paper_train", + "prompt_sha256": "3680030d57f46a273ee46193403e1f631119ced0212d1dcb1292c5cc5cdbb65a", + "gold_sql_sha256": "979d2481225f4aca582e7577d3c09bb78fc9deddd82b09fecb9ff15e4906e5eb", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7460": { + "current_role": "paper_train", + "prompt_sha256": "4af16eeaf2bee81f3b213b2df16ff419071696868dae94af05724293e0d12b72", + "gold_sql_sha256": "5c1da53b4af1d68d199ec8114ac975ee115b043ef379ac25f34803ff596fed32", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7462": { + "current_role": "paper_train", + "prompt_sha256": "0d4db8c6299143b80ffb42233b55ebbf5e1d136cbb92dbcd4a2d2fce2c3cee2b", + "gold_sql_sha256": "7e960739cb72ab9eb90df2261e7330c6079e811183d110158d2d27ffadc8c3b9", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7464": { + "current_role": "paper_train", + "prompt_sha256": "dfa8fc21d6dcce760b3915fb5588f9bdfa226bf0a4ab43697f475238e4bd8ed5", + "gold_sql_sha256": "5d822b80d13ce22c93e516c4ae194d0d1ab648fcff0c8d70956aa677ce705690", + "database_sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "revisql-train:7477": { + "current_role": "paper_train", + "prompt_sha256": "aecbccf133d101b09e2a8c058244a125fffaa736a89447e6144cdc4de28b1537", + "gold_sql_sha256": "746e1534c23743eceb8353dd0f5959289480c720b20f2dca45b110f382e4ac46", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7483": { + "current_role": "paper_train", + "prompt_sha256": "3b5a36679016d43a0bd93bb43c2023d0217ed7258e56a0dd87718b1245f3b9b0", + "gold_sql_sha256": "c5fb29ccdf0ad81211706bb33fba2e5679843a71cb2f95a4fed60333e8bc2bf5", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7488": { + "current_role": "paper_train", + "prompt_sha256": "03d30c23fb1b53fa3c3aa7ad896a46950d2dd4a3aa0bcfddd75bdc4e96634056", + "gold_sql_sha256": "d5845c58d40621cdab775edbe5d723a20a5d03e4aeafceabf12820fcfba13156", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7528": { + "current_role": "paper_train", + "prompt_sha256": "f184345a0d7cc3e295a9381b2d56dd0c7a7514a665a59fd6d267544606e80c82", + "gold_sql_sha256": "c44a4ecb20464849291c98241e88c85cd1515fcfe0ac09be0ecb069d4a2b1cb7", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7530": { + "current_role": "paper_train", + "prompt_sha256": "ed44b1aa33c65a45bdac34ce084462544767dd88a76dc605861cd19916e121f5", + "gold_sql_sha256": "c4bcf234692382f09189f64117f46705e73e95fc0f868d5038726bbeb762bd54", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7536": { + "current_role": "paper_train", + "prompt_sha256": "4c6de13985f8534ebb813a0524fa0f4c389f8b424427da3a8d3e669232744e66", + "gold_sql_sha256": "1ce9bf5a43fcf757fcd4359e492758fb8ce7dc1cb382ee349e505141d4a02566", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7547": { + "current_role": "paper_train", + "prompt_sha256": "a60612d161612d7b70f3b8ba6b9bf274afed957a8be15e77e68c01d53fe2b58f", + "gold_sql_sha256": "75deedf113333fce71d0640af470412add129b972c0147d0faec1103f44b9737", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7568": { + "current_role": "paper_train", + "prompt_sha256": "4d9890e06b4f9ee3e9ef58fdb55295aac15f48a2cf78bdfa5c39181c673bb144", + "gold_sql_sha256": "2df4a3c0be918b9f7919b93f0a9f474cb5f25ba4f7fd84b1657e8b4a613572f2", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7574": { + "current_role": "paper_train", + "prompt_sha256": "33e2ab6a4aae0fca56fd20b77185fbfd9b75e65cf1e7ae1a27584e916c00b2a9", + "gold_sql_sha256": "a36b84d35e9fed6e90f9b7f8b1f71515fd816455ae932e8b216834217ce54f19", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7587": { + "current_role": "paper_train", + "prompt_sha256": "cebd6a350f392ad527653981b88362593ef905a8de537bdd875c29f5c95030d0", + "gold_sql_sha256": "92b4b7ceea9714d326eacfd40d4f170fee7193c0b5fa000a1be71bc762a86982", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7605": { + "current_role": "paper_train", + "prompt_sha256": "6a96181752a7c6c8247ed23f046080fb1d3058e419ccdaec32ede3c4abd69a71", + "gold_sql_sha256": "52d749ca2fd85a1d78d1cf12ac67fa7014c40322f845be1e4ed47901092b1073", + "database_sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "revisql-train:7627": { + "current_role": "paper_train", + "prompt_sha256": "b5650f0d674da3feb78d3101ea1dcc20302b39ce8424c047cc2b139cf1c8aa59", + "gold_sql_sha256": "c284601be893d49f584405b085b2c68300615b5620060c877065e9e7d9412a84", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7644": { + "current_role": "paper_train", + "prompt_sha256": "75025c0334f0df41de7a5730b13241a29d1451dfb123eac8f0280c1a32ecc259", + "gold_sql_sha256": "42fd3b2b2ec5b57cb0bd1b5b8113ea1d595d91bc281f836d6b7357606378ebde", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7656": { + "current_role": "paper_train", + "prompt_sha256": "b48fe06e01430a38b208378aa3e72838f33c0e42a93b5846a49caa0a3a74680c", + "gold_sql_sha256": "e39344aba0ed7e952fd6afef709a3b7dededb0c977e172e32b6fa7b9c75af251", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7667": { + "current_role": "paper_train", + "prompt_sha256": "b52365c87986715e5fecdef127d5bc384bf2b6757b54cb7737b1c56525915d86", + "gold_sql_sha256": "557030ab1238a557eafc9d6e36d35684d8e606ece3e332e55b3aa8f4e06b4f9d", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7671": { + "current_role": "paper_train", + "prompt_sha256": "a80b75aa0dbe8007158a31ca8782cd7668881b81e49c14f0de53005c87447cdd", + "gold_sql_sha256": "b585f112fdd5db734f1ab083555c89f0e2904808d7d0e5a7f36782c2c2486865", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7697": { + "current_role": "paper_train", + "prompt_sha256": "45a5918230797c663c520eabadf1408c65df85e66a4906f1df8ba361de3fe5e9", + "gold_sql_sha256": "7af013b39dda164153551a67bc0c2ffd1715bba58b3d3b0a2ab48322cf7b15d4", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7698": { + "current_role": "paper_train", + "prompt_sha256": "ee7012cc1006d5af51261ffcf6a988b18b96df75bbff71d494183c4a036ae883", + "gold_sql_sha256": "f17689a16f20799c20f662129d54b982f14dd7eebc8e4fc86ea7d30b81db2f1e", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7710": { + "current_role": "paper_train", + "prompt_sha256": "bda34e570b73590b14e83fb5ff938cbc05515fa9c7213b243b64c43fbe0d0c81", + "gold_sql_sha256": "b70978754202cbd7e2757f5c6e7b51850d17cbf6e9873679f199eb4102080cad", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7738": { + "current_role": "paper_train", + "prompt_sha256": "9c4a595536d628887d38f2185ef7dcae10858a748a74b978abffdb230b0b30c3", + "gold_sql_sha256": "57a95ef73c45354f0f4abd6fb30b2a90d8b5203f24360bf9ffdc83095a0f6979", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7759": { + "current_role": "paper_train", + "prompt_sha256": "948930dab706f9a4209c61caf3a0be781525075f5144ab8a705fc978a53ad36c", + "gold_sql_sha256": "f4484bb8fcbf2f3a32259bf92a5c98a95f30b7e336dd95516b39e29298708c54", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7762": { + "current_role": "paper_train", + "prompt_sha256": "b8034dfb4749575057c27b3e9807f7b0d33da8690afc5597dbb4e5c82081aa23", + "gold_sql_sha256": "fc78f3120461c9189ad3065f69accf1bb5605a5e2e9becf7d8192ac22e088915", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7779": { + "current_role": "paper_train", + "prompt_sha256": "250b329307f88e906db8a6bb3908e5641826ec1aa6f8c243920232a3f221b4c7", + "gold_sql_sha256": "311d291bd6ad1100a3fc11958d82573545486e28ed21d02854aa558f2ff2e39b", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7780": { + "current_role": "paper_train", + "prompt_sha256": "ae42f89325ab285ff9aba5cb6db56d820d2ec8162fe99184ba63c5a46468ec23", + "gold_sql_sha256": "cfbc9ea11c192c4fe2c5793a7e77daa97fe0d8e28e780f41a31d6884decd2bcd", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7791": { + "current_role": "paper_train", + "prompt_sha256": "b3aebbf2504600b8889101091cf77d23cb1e4706599eff9f0d81aaa4599ab151", + "gold_sql_sha256": "e08017e3c6963970c87dd366620133805d20ad8c9db739218d27fd0ac13ca163", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7793": { + "current_role": "paper_train", + "prompt_sha256": "d3308ac75b8c3cc61c8dfa88873ec4f9fdf8958e2314c98d45f6626274ac65f6", + "gold_sql_sha256": "41dbb4a0597dc87b266add5fe5f3dd32885184ffc36f69b4e91604bb87ef6e23", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7804": { + "current_role": "paper_train", + "prompt_sha256": "86d2c1e008c604aad2470dd7453634c782388f687f1b1c76ced598d62e791ba1", + "gold_sql_sha256": "32170288cf58283eca7c73487c78690fa08af9f49b2d4572f52b10ce6d1603d1", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7808": { + "current_role": "paper_train", + "prompt_sha256": "49de51e76ef264de9d1d10a8392f2d38d97040f90b5a2358f901d3a58171e3de", + "gold_sql_sha256": "aeab227ef1a4ee5a61285835df66cecdf2a42173255a4cc2c3fff69b5dd0222e", + "database_sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "revisql-train:7823": { + "current_role": "paper_train", + "prompt_sha256": "459b18cf691974dab69f16d20d5bafdabea1b15b02d4cd49b7681cde4208109b", + "gold_sql_sha256": "7e998a721b99dfc1d9682001bbb3424322a22bbbff52ea6e810fd66f86cba289", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7828": { + "current_role": "paper_train", + "prompt_sha256": "dddc37228c3df5aa3eeb951630dfbbc296a473a68b4404b7ac940c75d6aa5b99", + "gold_sql_sha256": "d328faaa263725852c1b3a82de103c85be4cb9cf322bacae139b77ecb04cd047", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7838": { + "current_role": "paper_train", + "prompt_sha256": "417998cd507983d6c92e06ba13eaf094d35fb92ff29e1229674eb7f732964266", + "gold_sql_sha256": "bd9b1f7dbb19fd41878af34e84a2b7188dc340358b2aace36d7a02cdf9a33065", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7845": { + "current_role": "paper_train", + "prompt_sha256": "a71b724799ea161f61f4de62abf6b67111b57b6702e6260decd18d23d422a172", + "gold_sql_sha256": "8f143c46fe52746ec417e9c59ab22ac2eed78c0f8caffce1a2f58ac5125ba339", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7846": { + "current_role": "paper_train", + "prompt_sha256": "eec687c9cf7ac477f0770560771eff0473cc1ac4d1f6c92840c74dc036dec36e", + "gold_sql_sha256": "f68d2a8e1353de7bf54f8c0326e996ed2804a0471748a51eea0ec5a91be345d5", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7848": { + "current_role": "paper_train", + "prompt_sha256": "8e10650e27a6821d350b9a4c68aa36dac294ef1af3182428fa64a542454750fb", + "gold_sql_sha256": "8d030bfb4942d97bd06e5a04ef11574da35d739321fc9cef134498473efe8f2b", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7855": { + "current_role": "paper_train", + "prompt_sha256": "b96652c6fdecb8c87d04286601a5ed55cd3da1a8c8d2943a9d7c78a0e5fe3b25", + "gold_sql_sha256": "639c1c37b32c3868a21f523fee7001eea55f701f00d8816baad81f5a1a8c6a68", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7867": { + "current_role": "paper_train", + "prompt_sha256": "e47d777433aa4ea05e3939f8022cecb88c9bfbc8f9154abfdaa650430ce9ad01", + "gold_sql_sha256": "b6eb1df58ffcb10bd678759a74f3a9b212f76c90d3eb3fb18500a600bdbd150d", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7870": { + "current_role": "paper_train", + "prompt_sha256": "6853674e7c67b6ce02da24106708f1458e12d675fe211878f0ff2570e1d44fda", + "gold_sql_sha256": "5089e1c71a2de1442df0ccdd2ff8c87651899a460ab784970a4d7028dca49ca2", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7872": { + "current_role": "paper_train", + "prompt_sha256": "53ec03e01586371689e50f970f95c4a44033f396b1b4544e8809a96c72c5af31", + "gold_sql_sha256": "a4dace1710eda81cd2a0fe95d2d18271e2c15aae558f5ca4fb334a7c0faeb0e4", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7873": { + "current_role": "paper_train", + "prompt_sha256": "5be4d35b3bc85bc5beb50a0c80b6c7be2b4883c8261b71fd3405fc7801d0baab", + "gold_sql_sha256": "44f1951481ae0341a19ff5fcbb543e79b7589d2830d180c5f3cd81b50c187091", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7877": { + "current_role": "paper_train", + "prompt_sha256": "46fbe8593130d4fc632dd1c71d77d45b3f4c3df0913293e46a0c81cc40b874fc", + "gold_sql_sha256": "a1316c6a32739c0eeaa78656c9f1355418f36dadb32058a8735dc320360aa171", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7883": { + "current_role": "paper_train", + "prompt_sha256": "2dafa92852384921fdf03b7afea192ba9a656a4625d49ca1122d294cdaab9d6b", + "gold_sql_sha256": "9fd1b2873edc7ab35c58aac61c1da36c393b1e5a5ad94e987f65ea9d90b6b30a", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7888": { + "current_role": "paper_train", + "prompt_sha256": "acdf66ef48cabb8fc00a2ab05ef1dab8ecb6780b52b18c05663a3971d1dc3944", + "gold_sql_sha256": "51c1ceaf5ebd43c60025e59c55445965108bb5ffa5211a03282cedabf57666c5", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7903": { + "current_role": "paper_train", + "prompt_sha256": "0813669bcd9d2f9a4b0eb6a4239f4d366fbf087de23af4c76014b66f3747bfb8", + "gold_sql_sha256": "b4ff592b822f8e8b584d5d40ebb1aa650b001a9ed115faf1b5362d077254eb78", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7906": { + "current_role": "paper_train", + "prompt_sha256": "800ad1267021eeeb86289da639e71395f1d4e25d243b8bfe4e12185dbe579a1a", + "gold_sql_sha256": "096951ac34c54b4644b494df882e027d8caedbed14b505a2025ed2a45df57e04", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7914": { + "current_role": "paper_train", + "prompt_sha256": "6feb9b609cd291c03da9133aa839ef13a42a4d18c91e79e9e4190ac879a5a3d1", + "gold_sql_sha256": "1d06f9ec76162a6781db4f134fae2520c74c4b0e1239960319f57d6fbe39e0cf", + "database_sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "revisql-train:7922": { + "current_role": "paper_train", + "prompt_sha256": "9b87e177d35eacfa8ae2fa9dcf6861a5b0d73c639fdb5520a0809d5737beaa3d", + "gold_sql_sha256": "6707db33db8a80984d4a67ce148d94842f3a8aebb540680e73e173461b8860cf", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7931": { + "current_role": "paper_train", + "prompt_sha256": "b5ef9d4b4934a3ff0bbe7c159d5c778599cdf260353e08109d542465d4582525", + "gold_sql_sha256": "409906e726f3c08f355eb87b7044ef268c958abd4286f59780dd46316d31908d", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7932": { + "current_role": "paper_train", + "prompt_sha256": "da61c3aa32039fd6dc50975c8c6218fc5cc725cea27fd1515ff0c2b761ff2d2f", + "gold_sql_sha256": "c993e343805029c02a1362130a26fe8638dd7b9da52ba56b145fe65eaec9dad5", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7935": { + "current_role": "paper_train", + "prompt_sha256": "9e33afb5757800e1524a48798858b61d2aa0631e397074aec42e3eba8f633c81", + "gold_sql_sha256": "d36706a3589d9e7468eb3c1d8cfc672652b824abda2798ebf5ee9ead34cf6684", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7947": { + "current_role": "paper_train", + "prompt_sha256": "e3ed11cf59abc4ddd40c51d15456bf1ec916b51f8054c2bc7dfeb70a89363dcf", + "gold_sql_sha256": "99a63756b22f717a497b98d3536ef7b9818f51bd88635458e8c7ff1cccd0f0d2", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7948": { + "current_role": "paper_train", + "prompt_sha256": "77bb8ad518f838403a3013b688458f17d7c12c5759e72c33ad14f85e4468c097", + "gold_sql_sha256": "d52aea91d10621d62369ef738838587133bc8b511dd6317b5b4f01bba1fce77b", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7949": { + "current_role": "paper_train", + "prompt_sha256": "9d74bb09fc14d3d9020561b902f9c8f0cd6a08ab98cfd58118a97c8e9a63c5a4", + "gold_sql_sha256": "ba7074c8008ff6f7c68b239fe5cbca45301c5495d8656b2109708cc543d34b58", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7957": { + "current_role": "paper_train", + "prompt_sha256": "04c96c07eceec9b9c456b44e73a633688c3d63d182c86efd986b4added3f6541", + "gold_sql_sha256": "0805e7ed62edacf499b0f1cdc6cb036dc9086c167ba97fe40a5689540dce520c", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:7984": { + "current_role": "paper_train", + "prompt_sha256": "5889a44e4d29ea1be7bd1bd50383ae15032d1e1960f688bb6f2e7873ef4ac3af", + "gold_sql_sha256": "2d6a3640718656137b6115e45a54e352e742afac41db43825a717b86a85f1017", + "database_sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "revisql-train:8021": { + "current_role": "paper_train", + "prompt_sha256": "714859420b423e0e26a4414e19065a3eb84273636ad50298fa5bc2259d703e5a", + "gold_sql_sha256": "ddd066363bcfca348e7fdf04af29eeb2d81a61b19ca4a0a226ef6922f86b83f5", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8029": { + "current_role": "paper_train", + "prompt_sha256": "b3af0faf57bbdb55e4ac4b3d85b0661f1da90360143d4f1dcce246c2ce6f5a1c", + "gold_sql_sha256": "81f119915e8cff26c134ee08e71e302a2d4ce6ba2873a818b67db388d6f026eb", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8033": { + "current_role": "paper_train", + "prompt_sha256": "3c3fe22aea04a9f773386808f537cc0bbe16de3702d36dd99c325158b2161499", + "gold_sql_sha256": "6bb0c2f33264f05833b0f8702f1e256b8d4e9b033d7117b2adcc2f748a161f61", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8035": { + "current_role": "paper_train", + "prompt_sha256": "880b994d4b4ddb4786e3e6f176ddad86c7c325609732780474f02876a8aa26af", + "gold_sql_sha256": "13470b06c37fa94c6cf64e2e8703bd3aa821794835c5db80454015e2156cf149", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8063": { + "current_role": "paper_train", + "prompt_sha256": "83e18a07460fadb6917e309e455d4b7490ca4781159cf082378ab115e4779840", + "gold_sql_sha256": "5415d12c1e09dd0217dc1bdd8d44fcc1feae466aa8cd439912741a336a2d94ef", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8066": { + "current_role": "paper_train", + "prompt_sha256": "6b3de6fc403862b1306ef114fd40d5b56ae40df7e1816e4017ff98bf50195d78", + "gold_sql_sha256": "ce30138d234cf4e282be62baea5d4b5ae186da6a299ea4855eb39b6a7482db55", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8068": { + "current_role": "paper_train", + "prompt_sha256": "daf56ba401fba623f7e78ecb3e2736628dba9cc93e243bfac551818ca492da86", + "gold_sql_sha256": "dd90a25604115fe486ad17e9fd6e1e7970136c2ccf9275882e5f117ce2734705", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8069": { + "current_role": "paper_train", + "prompt_sha256": "f481be2ab1d7d2fb414deeb947cb872d710bfaef376911dcd6c3a82e72fdcb47", + "gold_sql_sha256": "dc3c5c437318998c351c0d1cf455af6af72e444ccbe0f806803c12ce6659425d", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8073": { + "current_role": "paper_train", + "prompt_sha256": "5a3551c159e6ce24d992eaa4a0b96a9448465e1f3c5c59eedeaadd48e958d86d", + "gold_sql_sha256": "16200fde889a03093c782aea9697a508da3acffeca024eada12a31ce53c58755", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8079": { + "current_role": "paper_train", + "prompt_sha256": "b7f9b447776ddcc9b78e7f1ab26951b8b91719728754c9a130089b28fb8374d9", + "gold_sql_sha256": "1425b882fa41ae7d52e1506b0f695f68e09b242c70909d1f92e99a7e93037f41", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8087": { + "current_role": "paper_train", + "prompt_sha256": "eb6f7358958c38632ea24191c1a3d4d8964e6cd962df7cdeed485214df6ecd50", + "gold_sql_sha256": "24e2feea0d81af4943c87157a614b0c9135499c111175dfae76f662cbcc96c15", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8097": { + "current_role": "paper_train", + "prompt_sha256": "df65a7b75f047e437eca6942178539251a09b3fae180ddfb3be5728e90e301af", + "gold_sql_sha256": "edf99bd720be31e254e46ce4446ed8d2cb133d76c0a0fd142abcaa3ef41eaed7", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8104": { + "current_role": "paper_train", + "prompt_sha256": "ab88ae48d68f8c79b40da655bdaa27a0c7ca85356c3a09b30c41da411c0d881f", + "gold_sql_sha256": "66bf1f1431794d61c01315acaa66b352cde4498d4599e95f0597165bc4bdec89", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8108": { + "current_role": "paper_train", + "prompt_sha256": "4e2803661e36bd0b1bd09463a34d295b047b485191540ccc417f39b4064fc6e8", + "gold_sql_sha256": "adceef73bc3c6dcd22d14f131c37ac15a65222db18ce5e7896f4e14ff4e4a133", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8122": { + "current_role": "paper_train", + "prompt_sha256": "bf6b16df443cd334198f4c76e634dc9b380ead2503f3bcdad032ecc68da2da28", + "gold_sql_sha256": "9d0c721344130cd4b551f29da46f4ebbf9a003a84fd41c5c1181f736519b84e1", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8124": { + "current_role": "paper_train", + "prompt_sha256": "20e9fbce321db6b99c29be9f3a6b2e61dfdf50a749c11819a2868feacac24061", + "gold_sql_sha256": "5fade5266701595d28b4dcdfd34e66707f103f67109caac89b5cafcbe216aedc", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8133": { + "current_role": "paper_train", + "prompt_sha256": "4ac8c9e3de5ff471fcdbd9bbd5e47784be954285ee97669748d0992fbb7a1169", + "gold_sql_sha256": "17ab35fb6385c88423783c00ec6bab88b39340cea9e8a95a96d1214210827343", + "database_sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "revisql-train:8138": { + "current_role": "paper_train", + "prompt_sha256": "1531cbb823d66b3cf228654348d9451753289915ee8fa76bd8ee95d5f04c5c53", + "gold_sql_sha256": "18ff671a0e8ad6b964fe0a1a5a58c5557b67a5009b0c4cc7dd31623f9a609884", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8172": { + "current_role": "paper_train", + "prompt_sha256": "dbc7518cfbb43d1bd0292beacd2a330d656bce3a570dab5b7c52a762c7f2bb7e", + "gold_sql_sha256": "c5fd24d61e38638f1b2e88c17910648ec096e6ed173bc4a51e3b60c069f79d08", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8178": { + "current_role": "paper_train", + "prompt_sha256": "df30d5548ceae7b399fa2cf2ef524ac66a886a5016d2ebb18c00e90db5596925", + "gold_sql_sha256": "a135a013bf3d97d30d88b6f13b6136e730945d597d42fed92339b5c10d6bb930", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8184": { + "current_role": "paper_train", + "prompt_sha256": "405b366cb9800b089c3626cd056e948f9ac99beec033a0ad8f0280f220c34c01", + "gold_sql_sha256": "ca5206e10cd4042a23a8b536cd4f4542076f89c6cf6103d5003aee55a802cc6f", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8186": { + "current_role": "paper_train", + "prompt_sha256": "63705d725bda656f779b4fd3a0c1f4864be1450dc8cb5ee633963840e241f3d9", + "gold_sql_sha256": "dff064cdf839a0119154cedff5e2b9c7970b49b558a0f1f97683a71f127035da", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8187": { + "current_role": "paper_train", + "prompt_sha256": "8a95cce1e6494506c091ba96c9608df898e33222b2a7a40f9912259eaa797efa", + "gold_sql_sha256": "c32fe51bf239a13817ecaa4832556543b98bd098a5bb18365aff50314e5d31ef", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8206": { + "current_role": "paper_train", + "prompt_sha256": "cec69e34f68f357905df591efe657962fbcae267bdc8405da8f56806b75a71a5", + "gold_sql_sha256": "9f29c4aaf9c5f0f5ac343ae70c967eb9ef843fc07defbccde0c9815a54488e25", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8208": { + "current_role": "paper_train", + "prompt_sha256": "d53c37c9164b3eb229f2ec0edd1d82a0331cc1f71322c3b8057742ecdc58456a", + "gold_sql_sha256": "5c442bdffa3edb711bab49659269f969c9773a2653f572a2939099ec153e09b4", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8212": { + "current_role": "paper_train", + "prompt_sha256": "5f7eca4790cddce10ddeb14b720eec9800462375f59de0f61c911b2c20a4fc60", + "gold_sql_sha256": "d78988a3406342a38ca97feff48cfdfcc36b59d1e02a909be6a7948e996e4375", + "database_sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "revisql-train:8218": { + "current_role": "paper_train", + "prompt_sha256": "2eea196da542bbf0fb76cd256f660cdeb9c78edcbca00758e6ce6fd98fb9f279", + "gold_sql_sha256": "3d9368fad30488c3f84d517e1f58d42d8f616894e8be4dd9d429ffe5bc87ef0c", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8222": { + "current_role": "paper_train", + "prompt_sha256": "cd6eb7e35d3f6fabed12ae25b1a5fc0036afc911eab50b07194d9ce9c2834142", + "gold_sql_sha256": "0abb4703c18fcb47b5c6fd0af3e7ac00cdca6d64ba3ee12afedfe3fba80655da", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8232": { + "current_role": "paper_train", + "prompt_sha256": "c8673b087660c40448124433cf931d1a5974f81c0d7e7a49131fce815a853a5d", + "gold_sql_sha256": "df184072ccef3fded8b604607bb757290415dc5de4929c35a68264391a2f9f04", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8234": { + "current_role": "paper_train", + "prompt_sha256": "b13737d7b6f51214b0418ce583b59966f2a64e1219a92f6da8831f6914691726", + "gold_sql_sha256": "59cf9cc853b3d9790778a7db163d9f280781b7248299b3c7ecc925b30d3efd93", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8236": { + "current_role": "paper_train", + "prompt_sha256": "3632b03302d5a412cd4a722fa4c4e390b62c4c0dcbf0d0e87b28eb1f30c4e078", + "gold_sql_sha256": "ef7b0ffe55d5cd6087aa2eb61589167db1e84f42dbb45d7695732ed8e4f5d427", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8239": { + "current_role": "paper_train", + "prompt_sha256": "a5bd1febba81509fad6ea8789aec4c77c89395ad18c6a11ac9fb2fdb94953e3b", + "gold_sql_sha256": "82d0ee141089d29ef2da955e2030dfb971f62690de7cc87c7eb17e5e4850c777", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8245": { + "current_role": "paper_train", + "prompt_sha256": "a9ff582b16c84bd4665a042c2c7dae619cc40193ca511210f47d944f19e00dc7", + "gold_sql_sha256": "c3c3135cdfe07884876b6d66e94169911d2f7b9396758c98f153b4e6aa32c56a", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8248": { + "current_role": "paper_train", + "prompt_sha256": "6cefe54cfa70f3a4a46f65005a3c44b614c220a95409daa777eb956b0cf93dac", + "gold_sql_sha256": "3e490e5facb64c9a6f348998ac32ea0c3b29f9108e1267a58420c92537afdee8", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8264": { + "current_role": "paper_train", + "prompt_sha256": "5c6056ca597391abb5bcb4f0bad40c06aebc0e315ead6328aacc374b34af846b", + "gold_sql_sha256": "f328a70aabe15d32d2f2baebba7d09b30ffe4903e1eafd2ad9ee18e30cda4f1c", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8273": { + "current_role": "paper_train", + "prompt_sha256": "f90124b14d61435a75c468ef425b17cd5fffba5b3b9a0a9ac1483a71f43e1536", + "gold_sql_sha256": "bc4a55b558242f7272373814ff13e4788a52171f3857925d2215247a891e1da5", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8282": { + "current_role": "paper_train", + "prompt_sha256": "2e51adf6bd1e9de64420acc14b169983fe54ac5d932f1ffa7d6d496d43c97a49", + "gold_sql_sha256": "a7699b8f7a66375c9ef50107acfaeaf0a73dedea0cac36b531fb21c82d774997", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8288": { + "current_role": "paper_train", + "prompt_sha256": "2ef9101cd155b700edd88fe5b3957f746039004d5348a35bd35efdf29edff63b", + "gold_sql_sha256": "4c7931fecb3b3736473f7233c02d03f5262184dd1ee29ada5baf77a0bc140082", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8298": { + "current_role": "paper_train", + "prompt_sha256": "4becb4434438e2b9cd3b15d89f6cb9290dbf5286916e1cfab61a09a7f2cce3fd", + "gold_sql_sha256": "deab9bab8ead08f9889f6784e9b573376ce5d4e3a5549d37514daf06fa0cfcdf", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8302": { + "current_role": "paper_train", + "prompt_sha256": "92aa730660606598db36e282910b1a0cd7847fd6299a083fa366bb5860b27a41", + "gold_sql_sha256": "6c384d294328c632944b4cfa804353fc47cf65f90a206c05905ae48cb0e7c6e2", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8313": { + "current_role": "paper_train", + "prompt_sha256": "e2c6ad800c6a05cc156393eff92901effcaf6527fdee88b454059b74b9ff9e90", + "gold_sql_sha256": "5ddd7f31c3ea78b3ddbe2bff2f85dfe236068f4d11999a03ff326b2745765a6d", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8316": { + "current_role": "paper_train", + "prompt_sha256": "0236f65e7ce3df4eaedb877434044664a9f9e39610362b1fe848a36c9cbff3cc", + "gold_sql_sha256": "ebc5546944eef1b80370621a44c904a36417d49447a033bac9814450de929265", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8328": { + "current_role": "paper_train", + "prompt_sha256": "2be1d27ae579778de6a563be0ee828ea237e81a706cc1675181af6f7896339e3", + "gold_sql_sha256": "d0266829d09cd88f22083dd99342e24bf255e08b08f497a848d600347b20aeae", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8344": { + "current_role": "paper_train", + "prompt_sha256": "1be5b6fba47faac43548c13f7211a1ba4fe400223795fbb4750c3c1cc8fafd45", + "gold_sql_sha256": "ba64614ab9a2ad8dd2448f7d512b4c4492642f714c6b3aa50f6882f53ea2a021", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8347": { + "current_role": "paper_train", + "prompt_sha256": "2629245d0f457a29cceab9ea28ffe73ff60ce8998100ff9d8e34879924427263", + "gold_sql_sha256": "5a6ca35e1dd7c82ea80848bc58df1e1ad16f76ea8b3648cc9738b479dab42946", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8348": { + "current_role": "paper_train", + "prompt_sha256": "1bb54edee51e6b7bd3fea5f7ec3afceb556e986ed2ebaa3e0fc5f1229ccc0dd5", + "gold_sql_sha256": "fe6f852007e6922c712f30505e7d898b3b0c848c199fcb1feb87c129eee78dc3", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8349": { + "current_role": "paper_train", + "prompt_sha256": "8790628c274bb83b0bdd0dbfeddcce4c9d89fe0940f07c0cc6c8acebfe0a1e1c", + "gold_sql_sha256": "f399955a5df380e95d3ff2033923a9092071edd529fd551e85e610089f338187", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8356": { + "current_role": "paper_train", + "prompt_sha256": "02986647f8d631bdc68802c3854c864c9274bdb092e86d1526151450c0f464d4", + "gold_sql_sha256": "2eb6fc835efb4d6cc8ca72fc5f80ba126a605671c0552dda40bc2348825b4b36", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8361": { + "current_role": "paper_train", + "prompt_sha256": "35347b309ff0a923add2c61ec20d3f12157bcf001b90d334333aa1e6db7c4dd8", + "gold_sql_sha256": "1dbf63ac6a03e3b61f58a0ddf8ff34b45c601c54ce0c519d7a6ec6dbcde050db", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8364": { + "current_role": "paper_train", + "prompt_sha256": "82715254bafdf7e4f9674a31931292367cd1189d041ab1f2f6422ca828bea361", + "gold_sql_sha256": "c5ffd75d48e70a7e3dee76e067bebd8ed6ffc2c288af491784cee6a62c64c9c7", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8402": { + "current_role": "paper_train", + "prompt_sha256": "522a2255332316f0118698293069584e5a143abc046b2ae59a7c16b05928aad4", + "gold_sql_sha256": "cfcfd8bc245b7601fd6ff20a18cdffaa6c00edad1314c718aaacd36cd1f21fcf", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8421": { + "current_role": "paper_train", + "prompt_sha256": "9d821c0ea257cbabaf809fa7e810d2591ad086ee27a8bfd6573656feb332018e", + "gold_sql_sha256": "bfeaec0495bcfd22642b96f7c443636f4bbe7c7d03a068ba2c2ab80de4cc230c", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8430": { + "current_role": "paper_train", + "prompt_sha256": "2f5725fd1220512956a2bb251e29272975ccd99c5c395bd2be5a1938a55dd751", + "gold_sql_sha256": "1a1e645459c5f581e85f10a9dfcb432c907f6a6c67bf07ae30fbaacfd7b2c39d", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8442": { + "current_role": "paper_train", + "prompt_sha256": "7664c1e70149404204c02b92fe45a5cc86961b73a4e8a3a754b1c689c21bcf63", + "gold_sql_sha256": "9e1c0d751021d5c5b7b47e2e9ecbc9aa0c01b501a65a199d602eafbd5e85d4fc", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8445": { + "current_role": "paper_train", + "prompt_sha256": "0fdb34983dc562a816ee4ea5ccd127cfb08ef84fab83adc6a1ca63e593d11776", + "gold_sql_sha256": "5889fc18790972c4590a0d07c0df375934ca5cbffaa0b179c051031a6d16dc26", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8451": { + "current_role": "paper_train", + "prompt_sha256": "042471a71e2d6607d6103af7c2ea57fc946d288fa598f72b00b56a9ab19231a9", + "gold_sql_sha256": "0644cb26bff667af55af193d032941f1c09ec216a9075db4c47e67109efff59e", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8455": { + "current_role": "paper_train", + "prompt_sha256": "37c4ad202b64e90b4db4b7ca3976058d88e27dd3db31deea53ef6c399ed69261", + "gold_sql_sha256": "214fdb7c035ebbf0d5502efe53651d01f16502fad1ed75351ffc562270a00386", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8460": { + "current_role": "paper_train", + "prompt_sha256": "3d69a67f070fbb40a3c1b3482880e99cc60cbcc8b4629b9f8c239649fd1b68eb", + "gold_sql_sha256": "a9320d2f02f5c723d2c447303f4ef734b65510e5ab310dc9dba6757adc1b1cfa", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8474": { + "current_role": "paper_train", + "prompt_sha256": "5f1d86c7a37c22b545a918d891f44561cb4894a543f3c41fec7e0b66173420df", + "gold_sql_sha256": "390ce54b3a6412a36727103a9b9ec36814680cd6316e0f6fcd433b647aded7ed", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8489": { + "current_role": "paper_train", + "prompt_sha256": "aea16d934297a93e03e55c6844a092df9316ca64ec920c7cf5d2b1315a9386a0", + "gold_sql_sha256": "24cb60ed8577ff787fa08853340f15a7f7315b51a998de08b4019b1985428ba7", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8491": { + "current_role": "paper_train", + "prompt_sha256": "2c0e70fb93ad643a661845e2198a1c8349fa849edbc73ffa25001714ef7453d6", + "gold_sql_sha256": "9ce797994c8b1ce6f2d493ba558c75a204f76d2a5867916d0e02371f5c0326d8", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8494": { + "current_role": "paper_train", + "prompt_sha256": "ed6f11f52641ae2d76dbb13e02111ea158aed30d03377e51532080cfbeb63627", + "gold_sql_sha256": "4eee9b928bb50d681b64dcf5629bdb8314d4f82b098931a032932be1222742d8", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8499": { + "current_role": "paper_train", + "prompt_sha256": "a9b03873525bb8847623b6e68d671f29f620343ad6f1354c5cc9277b8cf5ce9e", + "gold_sql_sha256": "277652c936cd75370424a2d414d79a88322eef069fb1413df96ae444d8afc363", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8507": { + "current_role": "paper_train", + "prompt_sha256": "ddb0e29cdd238e46a042988cb656adc74f0cd646c0f2a0c6b50ab615cc957cea", + "gold_sql_sha256": "fca6b110d93bcc2014695ba5e7814f59fc6f2e5b1ab386a491d633d4136d57c0", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8508": { + "current_role": "paper_train", + "prompt_sha256": "8611add00a1fae78c22b625ac1f911b80eeca8aa122538ca9160839e8244237a", + "gold_sql_sha256": "856afdd6fab3fa7719abfcc88d8fc97b92f734d2c230dd7daf4878468aa7624a", + "database_sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "revisql-train:8511": { + "current_role": "paper_train", + "prompt_sha256": "94c729243da332f29db4154af35f93561cbf16935409cc056d253c3d99c0792c", + "gold_sql_sha256": "849711d1222c1980aadb3b2c4af672dabf5781d7f7ce66b7a2979a125b21162f", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8518": { + "current_role": "paper_train", + "prompt_sha256": "f02a8d65201f9d00e3ddc0e66b9b0089ce1cc3453aa832804ee302e438fe318d", + "gold_sql_sha256": "f81acd78eb060d7dfbd048396dae37cd32f734f6c98908a856050f0bcb9d962a", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8525": { + "current_role": "paper_train", + "prompt_sha256": "803fb87665645ed861e84917c0a565aa15d330c8c30f8453f95a2c9d97856ff9", + "gold_sql_sha256": "5bb421ce68b95c5c8393b3428934617bf84383bffbd98709c5d3aa337b179451", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8527": { + "current_role": "paper_train", + "prompt_sha256": "d92ebc9e4d9033406f50228db66eb73cf566d9adf4e823e15cb9895351620a16", + "gold_sql_sha256": "48bbd029d2c1ff2e9e9e3f7e22c4bac18bfd952a0d71980abebb2f3a746548a7", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8531": { + "current_role": "paper_train", + "prompt_sha256": "57a3d872a9ed259211d1e9b478a98dfc23cc4acd6d06f51dc7b65ece7a877e42", + "gold_sql_sha256": "0664f1a7619d7de48936f53c4ea3dc28ef94f6f63f85edf30324a0b049f486ad", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8547": { + "current_role": "paper_train", + "prompt_sha256": "d0ba38bde7223c2b9b7fbd3345849f11eacdfa4464080cf95c1208c3c59aeeb2", + "gold_sql_sha256": "5697a2005a8a7254f969f88fa9bd05f4d60532a1435f5ae4c0483260eaca6643", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8554": { + "current_role": "paper_train", + "prompt_sha256": "dd6b56e89d9c8ed0bc5c602b95a3786724048e3ec35a98edc7a86c3c692f7568", + "gold_sql_sha256": "2d5ce7309c7a2928b58d4ca0961d70e51ae4bf5e9030bcfba83ddde9c96cfab7", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8571": { + "current_role": "paper_train", + "prompt_sha256": "56dc21e821397be09b7fd9b3542b142ee34c5f18833b90c6dafc271324df5d58", + "gold_sql_sha256": "4675f80cb43ba1b442b952b8c68c6bdd21879bb9b85304bc5c4468f132aa68f2", + "database_sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "revisql-train:8586": { + "current_role": "paper_train", + "prompt_sha256": "d7c08e251e02175eb1c423894266e81249fe44a421218bc6c7c9c310afde7fcd", + "gold_sql_sha256": "71aa01c150941163a13b91b7ca17b6ae1e912f7a7db076910e3fa36f32bec6de", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8597": { + "current_role": "paper_train", + "prompt_sha256": "e992fbd08677f6c58a00f1a42cbdcfb68c900b1b0f4d1d64eaf4d05aa8fe6f02", + "gold_sql_sha256": "a471775795d0a197a7f9031e0cffd6ede254598f35c8cc4065928cbd739c20f0", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8601": { + "current_role": "paper_train", + "prompt_sha256": "ac4822a398108e47a9a3c86e9e34d996f4acce99e9d6aa3dbf4436e00a3f9403", + "gold_sql_sha256": "c5520c67f999b21a65295a85fc13f5534d987567f7f2eef6a3e5afa0bfeae101", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8603": { + "current_role": "paper_train", + "prompt_sha256": "99fa9fc04156fccb14f3ef0fc228f6d2d7ad0151096ea20b31465108174db9b2", + "gold_sql_sha256": "6085672d8d593c7514fc2bc46d2127364313ce44bea20663dc44323a0136482d", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8612": { + "current_role": "paper_train", + "prompt_sha256": "8f4348e6aba2aa9bf8d109f5c77c1154f22caa4dafc52686a1061f9e6dbee1df", + "gold_sql_sha256": "530c5439e5d459f3d60cdb9ac7a4fdefd8007d468f4e208f4888b9607f44992a", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8614": { + "current_role": "paper_train", + "prompt_sha256": "b12867b186e64f57d14dc664df51b68a6e5540f9c7306495c8340926a9526858", + "gold_sql_sha256": "a1257b2831517ab05a255e7184585f84b239699e24576b6cef63ed51e1826648", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8615": { + "current_role": "paper_train", + "prompt_sha256": "000b8aca1d771026569c7ef047c2a6f565f164a2905dd74c4891b21c3acc1232", + "gold_sql_sha256": "2581a9bd8a844a8dea7047670bf96fa9b293e6a93a7db80e912fffaaffaab979", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8616": { + "current_role": "paper_train", + "prompt_sha256": "eb74ff03956ea761c71b4fe71977d72aef375ec952be98042f6d2352cf8be682", + "gold_sql_sha256": "9271b1f99be2a6c1f4b88b7c0a8cfefe2661efcbc13427ef660614ae32885663", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8629": { + "current_role": "paper_train", + "prompt_sha256": "407a2af39c76278ffb9d031a03521f3d8b08213e000b07e4dcf3d808420296f5", + "gold_sql_sha256": "4b94ed1fd2f487514e0aedd773c693e840f684a0b30ce7cbf2381ceca7147a29", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8636": { + "current_role": "paper_train", + "prompt_sha256": "cc4304c829816e274a8f64dec0b5de790192ce7751a2f012f5db1f5cbc0849de", + "gold_sql_sha256": "01f89a4cfb264ae587d86365714962173d9c41309d562882931de87a7f56520e", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8644": { + "current_role": "paper_train", + "prompt_sha256": "0bfa117225a542f2177682cf1eb344c541cb61155675bb01b8b8f5dff9da6e66", + "gold_sql_sha256": "1a019107bc023ed8f0889e05c47ee6659eaca9a2049c7ffba60f0bd1013a39da", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8666": { + "current_role": "paper_train", + "prompt_sha256": "920416b742304b476981eca66ad25cb40197fc1227ca901efb297cb3076c45fc", + "gold_sql_sha256": "2bf575110273844c6957b5783873aaa43c72ef4d3ce4944fcfb47ac9c76694dc", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8674": { + "current_role": "paper_train", + "prompt_sha256": "a2ef1c588ca0db47dd8e5aa17210a1a539395d69b3f5df9f6a2f212ab05cc9fa", + "gold_sql_sha256": "68c9789961ad4e9a1b8a61f38757b3f79aaa81988dccd528a26d77511084375d", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8680": { + "current_role": "paper_train", + "prompt_sha256": "74843147fd61e1e72f4aeb199e5d1aa3eb84e152a662c7100f01eed70fcf9abd", + "gold_sql_sha256": "fae4290bd08fb1fa496435700c170af9028d992d472133e6497202b68ecef762", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8690": { + "current_role": "paper_train", + "prompt_sha256": "51373425ec93fb4d5ecc300c428f8815fdf81147ed75c7e286d382ce1f6d66fb", + "gold_sql_sha256": "8372ade7e2c09999748e6563610a65dd3bc5f48cd16db9e7cea366916e907ef4", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8696": { + "current_role": "paper_train", + "prompt_sha256": "9149a919b53694eb3b2cc6ef60c4c8ba076abe803835c17789716183cc42a5d7", + "gold_sql_sha256": "527fe820710d3a34801c88bf146ef7ce64aaccbcc1de476b77c42f4a92e4a669", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8699": { + "current_role": "paper_train", + "prompt_sha256": "4aa914942d8088ceb14961b5c1f9ce1479fbe594e31eb80fb45d6296da3cf10f", + "gold_sql_sha256": "6c6e1ac3de356af74a22ba5e8fe18b52eff2dd2a237b2d52fc10cbb15640e3bf", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8718": { + "current_role": "paper_train", + "prompt_sha256": "657ee54aca3b73ef60b480d797ff92a5e05fced4671ae6abd9177b4387c2d894", + "gold_sql_sha256": "b9a746ba4ad532ec60eb4a6f0fd6d00ab88c094f4049def0817bb76178dd7282", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8735": { + "current_role": "paper_train", + "prompt_sha256": "20424f93c98fb02ef18214ad2d8e78f1551821781edda50dd72800bb4cf6f6f9", + "gold_sql_sha256": "df67bbedbd441437457b5f7696ae399b85514a91da52552a1e5664aef278c806", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8737": { + "current_role": "paper_train", + "prompt_sha256": "d0047f2524ce83f201858788969b58280aeb81cce5cc5afe7c71a97cf67b4324", + "gold_sql_sha256": "09bcd9a9776639ab7297a82bd9917ada49136967ecbdfc2332bb5176cb6330a9", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8745": { + "current_role": "paper_train", + "prompt_sha256": "e87e419048c0bc21d644b0992ea9cf63c1e5d1c7199a151dc08194b12f583cd9", + "gold_sql_sha256": "63fe516157a7e1026bab4287556589b5ed6d875b57348f5067e87a8f1c7cbc39", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8747": { + "current_role": "paper_train", + "prompt_sha256": "98d227d4d1e8a10612baebb9be7ffbd03579c5d549e75aa1af5dba280d09c34f", + "gold_sql_sha256": "f008828b0c9c66292f88c8dc6aa572f738bb24aeb8c3465d1a9667fb580a8f20", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8753": { + "current_role": "paper_train", + "prompt_sha256": "998e633d211144a0afdf221dcda26a32208adc95a95eab104af13fa2db250eb9", + "gold_sql_sha256": "f8b6511d447412c860a6561019e97e97867dd0f6515502c6a2b1c02e051c5c98", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8765": { + "current_role": "paper_train", + "prompt_sha256": "ad7a010fc8aba1ec7a0bc4a7fcc330218d334631384bdc6ea234699172110538", + "gold_sql_sha256": "eee9485a067da15014025ec9a77fc7fd32c83f683dd0890d2767d414206e0d8d", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8776": { + "current_role": "paper_train", + "prompt_sha256": "1341aacb63f8b075e4cf96789c626d6a3f04be25f0c4c58f6d2b14f3e1321716", + "gold_sql_sha256": "e9050869a6d4bb5b7d6210c124434742004ca23888772d7b9d30a32e09ebc6e7", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8780": { + "current_role": "paper_train", + "prompt_sha256": "677f9a764314e4edf3434529f5b6e0f3b169f30c63215135e0e75e1d6cd4f544", + "gold_sql_sha256": "9111d1886f7704ba3ec376a3ed2e91964bf5dffd3fc219ed773e93172701a511", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8789": { + "current_role": "paper_train", + "prompt_sha256": "027b667674ca7476558f72afc8116f7ea5a402d36d8e0bd7f88ed3b8a2f774bb", + "gold_sql_sha256": "091a17bd4a1eeae1fdb697d686803310578582d55af923ad9ee696f5ce7ad8b0", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8796": { + "current_role": "paper_train", + "prompt_sha256": "da9a9ede59c7370812d9283f7aa22e3495466aebc241e84e2f8990e685b442df", + "gold_sql_sha256": "eda5fa0b90895f05d225212f4c4f00b64c56697132432e25595665b5b3d1b817", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8802": { + "current_role": "paper_train", + "prompt_sha256": "56860579e8be3099188385ac06efd12a62f17b5d52a85c7a35d00c82afacdd8a", + "gold_sql_sha256": "f45dc70a09e0d8de206ba13a9c0f047a76014bee51da9eaad736019d45fbaa4c", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8825": { + "current_role": "paper_train", + "prompt_sha256": "fee5eed802ca5f465a3c83155022bc6542f56a65fd200ee30d8207f46b94efe7", + "gold_sql_sha256": "69a78ab90a26c7269edc207f535940e7c1bf4155aa783fa684a44bc5ce21f4dd", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8826": { + "current_role": "paper_train", + "prompt_sha256": "3dda83f65a91a11f832119e742b68d97e95cfd30b843c16a18fb5c0a40d6503d", + "gold_sql_sha256": "472b994ebd091744c724a953edd81f081676cb2e845e88a3b2cea507bfa8dabe", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8831": { + "current_role": "paper_train", + "prompt_sha256": "3ef8718714ceaa84aeecfd313ca03ba0830f7044ea8c519652fffdb25d6b1ace", + "gold_sql_sha256": "9f16cddf8bd48404d3ae8cda8a59d495084d9cf593d31de9e7551607ee261e08", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8834": { + "current_role": "paper_train", + "prompt_sha256": "f05e718616cbfbb7d38b612b60ac36e7d6efc1d66b8671971dbdf4b9584678ce", + "gold_sql_sha256": "29da64402405e40a03d773ecf47cf89c9c1037c5fda2fc35a290e026993d79b0", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8838": { + "current_role": "paper_train", + "prompt_sha256": "627606f668411d5c345cf21d7369cedeed4c8b4c2d85e79fd1b91f724f162352", + "gold_sql_sha256": "5ad92b38c9a8b8d1e9ad0cc034876ca430354b2972827619819d23e03f7ce361", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8844": { + "current_role": "paper_train", + "prompt_sha256": "d752294fb0fcfba19c8171b0da23c16cf334c1e9466305818e4d0f283cd5306e", + "gold_sql_sha256": "4fa4f57eb27fbcbda68c510e93f1c1d6ce26bde11732751c9782fb5396f5572c", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8849": { + "current_role": "paper_train", + "prompt_sha256": "fb177458aa24d9989ff50db2cadc0243d2c23c0d667d53f05a5882209d5375ce", + "gold_sql_sha256": "60c9d75e4dc9b88c8258332bde74afaa12e5097222e3a3d832f5fdb7ef07f612", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8882": { + "current_role": "paper_train", + "prompt_sha256": "1f785fff9f15549fd6ecdff7cb85f14fa7fa79832eaf814365856023a9ad400b", + "gold_sql_sha256": "f90be05eb6496bf7da7cc34be2a04c6f4f466c358361ec6d22429b13a364d8b3", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8890": { + "current_role": "paper_train", + "prompt_sha256": "f3565d17cc7120f520b23c841c55d1f3c6604ef2660536c3c2d6f78c688301f4", + "gold_sql_sha256": "3fa4b26735a58534ede35708c551b5fe5c4b4e8a18c2d12fe188eedd58889bd9", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8898": { + "current_role": "paper_train", + "prompt_sha256": "c44942223c6ac3115dfc51a01609b1d272a026b6d60bd0f5cdb651861b7b0c16", + "gold_sql_sha256": "ff5368f0869ec8ec891fb84cb7743db84193e0febb40441ed0591e7fd591c819", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8901": { + "current_role": "paper_train", + "prompt_sha256": "1259bae5396819d00328d53706f41eb83b10c8c09e82982a73407d6a695bd141", + "gold_sql_sha256": "b72c69e75080e0e9066695323815c8ac88a066bc72f840e873815996c71ca352", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8908": { + "current_role": "paper_train", + "prompt_sha256": "cdeb46b77ad52f523574f20eab65b35e02ac9a2e1453c363d2059b60009e8fb8", + "gold_sql_sha256": "7bab6593cbf0a52617e8a9b66efd109acb54b05c35b75fa5d7339272ce69939d", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8920": { + "current_role": "paper_train", + "prompt_sha256": "d78e08a72fc04ecc419c333ce5afacb0d35a9a1aa11a0532f5db8e6b3e34eaa9", + "gold_sql_sha256": "1106b6c822a1d3000ab45fbb984a34660103c686e0ffea43c5482eb81c248d97", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8922": { + "current_role": "paper_train", + "prompt_sha256": "49a54db06a1dc53f8522b6841a115de15f1f0de8e64568f08b0db188d68e5312", + "gold_sql_sha256": "439b07b1810afd913dd0fedc74ab44f5248e18eab1fc17ab5d56c0eac303ac19", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8934": { + "current_role": "paper_train", + "prompt_sha256": "938062eeafa4807b88bdd9a25e6a394b8853f96ec9dafb7bcff3c3f829471ec1", + "gold_sql_sha256": "f2714ded41528bc950c2b435e588fe895f038d08d3183ebbf9799f23c56c6024", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8962": { + "current_role": "paper_train", + "prompt_sha256": "ab7bb7edd23d594712f9535715259c6bfc49f71e30129f6f6b5873d630f22e36", + "gold_sql_sha256": "a060587842e4ebd1535fed86ccd12735949b3b186ec8c256a23ea40bc66bb073", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8967": { + "current_role": "paper_train", + "prompt_sha256": "6eb86520fe72d3ff4c58c3bfe198f5c09fbe6b7568de1e72eebd31289e7d687e", + "gold_sql_sha256": "364104e307f04ca6cae8825725b0e60ab38c82a639ed950eea76778c9db74500", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8974": { + "current_role": "paper_train", + "prompt_sha256": "fd00b3395531c61c6f3a7092fcd885d4d05816c947526435ef231d62d3135c4e", + "gold_sql_sha256": "17e84bc8f6a4b402cd6ddb562ad1671ccc62d2eb4b7a457e851b5103991b5ad8", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8981": { + "current_role": "paper_train", + "prompt_sha256": "3f2f4bda40d43c2f16c79c40cae72f86529ed8f31c83b3542b537bda9ea0117d", + "gold_sql_sha256": "8e81b208b0f8f8d8ebc75f4ec02b6b59665864003f4faaf95baa10f154d6c955", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8982": { + "current_role": "paper_train", + "prompt_sha256": "ac9df3aecc900f56a6545baf3a22fd626a7f10448cbb3220ab17597934f42a20", + "gold_sql_sha256": "de92e089d693081d877349228b31d90bb8068ff354acead2acdd3ce5e1d2cd39", + "database_sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "revisql-train:8992": { + "current_role": "paper_train", + "prompt_sha256": "6747d8e2a613dd1159cc32cab53801ae92cce61282fa0e0bd0fbab34ce2e6e29", + "gold_sql_sha256": "c3cfa6b4b37b5ec4b5de52f1684687f29879bbf6fdfca495c5097983f4597857", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:8995": { + "current_role": "paper_train", + "prompt_sha256": "e13e5817af2a562f66752f5e2d574270094c30856ec617810153fd978f1ee771", + "gold_sql_sha256": "faeaaacfc3d842893af8c21cca388674449eb097b7598ff6b45f28346ae863e0", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:8999": { + "current_role": "paper_train", + "prompt_sha256": "cb6ccf6a852855c7033aeeb28707d5b595d2444bd398748b3389479065adf79e", + "gold_sql_sha256": "f0f8f285ba7252df0f96c823cd6b22b8af2a214e2a9be15bc1a6d73ada3a1a00", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9005": { + "current_role": "paper_train", + "prompt_sha256": "3741a2f097778df8bcac8d373b21166460e2a606caface88072e557adf7be4bd", + "gold_sql_sha256": "c242f975e93b6cb52b8b811ce380fc814e76e82b5b08fd68f29839fb84a33a76", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9009": { + "current_role": "paper_train", + "prompt_sha256": "b4c21fbbfb4ce25869b9c2919d85f201f1e352d2f246f776d4bfb0ab188482f0", + "gold_sql_sha256": "6984e8d2222f1c201534902c6763c9c965b76e73edac4086c2b316f3f98595de", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9011": { + "current_role": "paper_train", + "prompt_sha256": "118a895e7638b3a0083d90656fa697d4e1ce0c482d52a40903bcd81bbcf65cbb", + "gold_sql_sha256": "2e0ba7064db758b303b8a85b2138f92f79905b5ca75ae89eceeff7ad59f2aeea", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9032": { + "current_role": "paper_train", + "prompt_sha256": "16168c6d293d5e7c97d4289f3661ca5b887426e2ac099a2c08783a1cc5e88af9", + "gold_sql_sha256": "268747946f9c4895a4b86a6df53b34d12e226398e0e644b4a329205dad28b28a", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9035": { + "current_role": "paper_train", + "prompt_sha256": "c1223019173d18280431ff9a38c56fbeada77741894939880e48f927f332d5e1", + "gold_sql_sha256": "8f1db59461071fcf54126bb026721b05189d6955223f3246618bacca553f2ad2", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9038": { + "current_role": "paper_train", + "prompt_sha256": "87383273d6ae89061b5c87263c8487340b44fed00e5b2a40c6f351bc0b467b7c", + "gold_sql_sha256": "627d25f461bbc0f71ddcf4b1e4a9ed9974ac4f78d65e96fa5dfdb27c035a8f51", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9044": { + "current_role": "paper_train", + "prompt_sha256": "034553b2a581294bfc83ceb52abd83660b48c56e312c4aaed86c3036b35d5cfc", + "gold_sql_sha256": "e038b73adde467b50ae470c8bb4cde51ab2a106d64d8a207924312bba8f85a6b", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9045": { + "current_role": "paper_train", + "prompt_sha256": "d4b3010a9b176724b0235302937970a8938c286ddcb4d9c999cdcd0cb3e445be", + "gold_sql_sha256": "ab921121ec6d9d0f8d6e63bd3b53cfb15c27ea7fe01d9227320a406bf700940d", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9046": { + "current_role": "paper_train", + "prompt_sha256": "96e4da7a7274a5fd3ea8f92211b6eca55a9be414da78d6265ea4b427975667ef", + "gold_sql_sha256": "3d93908ee7ce4e59386f566cc9a150b9ba1d6316505815f62a725e52f2d8070a", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9061": { + "current_role": "paper_train", + "prompt_sha256": "75d0b6d1751fc9e193e9da981742a7a0f503fe72c831a9714805e0f8a58bbc46", + "gold_sql_sha256": "aba21f71ef1d4a016b0e8ffd64c646e23a28b62241b53f39a40a6d96fa6b6949", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9065": { + "current_role": "paper_train", + "prompt_sha256": "93077d0576671b90cace58c576a8a77e6217f6c59fcf76bea402592981d4fbab", + "gold_sql_sha256": "00138cc826901293417f061e413f0af4601f38cc8777eb5fc847fcdae0050735", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9068": { + "current_role": "paper_train", + "prompt_sha256": "1643363284d540e48c44c0363319aea8899cd539401e3f1ef235b4c3e24f4971", + "gold_sql_sha256": "248d6117149b9bc5bab5c13f1e7ef131dc06553a366b6158e80114d9ff877144", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9069": { + "current_role": "paper_train", + "prompt_sha256": "c03ecfad5a90b64cb5caa1ecc33e9ccef66a159277f60ae360302c9b6ad2d2e2", + "gold_sql_sha256": "7ad44c2f806dbb5f28550bbbc7867dccef14a75e9da31549944dbfdca3447c1f", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9071": { + "current_role": "paper_train", + "prompt_sha256": "856a9e06d4f36df21f19b12f491c8b6f326bf7c651a83257ab992fd06f340fe6", + "gold_sql_sha256": "60d2a26905c22f177451a75aadf51e3642c973a6d6f6d780c20e1e1ec5984088", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9095": { + "current_role": "paper_train", + "prompt_sha256": "e4297c208ee6dfec15b2d22c9920aeec2cd7f75af4c93a4ce4d3cfa396ff1bcb", + "gold_sql_sha256": "e9d1fa1ef6e2ca7e8f241143849ccd1ed0c6a1db4bcb8c74f62f6f4bb9e619e9", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9100": { + "current_role": "paper_train", + "prompt_sha256": "f8345bd3925efbbaf4f912b18a4a5d36c4b1691174d340bc7257901c9bb29178", + "gold_sql_sha256": "2c0de24448bea00293b6e7bdeb0be47c63292ba96ec3f3d699feb53a801c5e31", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9134": { + "current_role": "paper_train", + "prompt_sha256": "34e67f484b170ca3ee4b5e8adf45242a9c22876062daf5734b367feb01dfe5a1", + "gold_sql_sha256": "096c31fa2491d6b59fd57252387751b0ae0bec46bbabd79d6b1f02dc7dede193", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9137": { + "current_role": "paper_train", + "prompt_sha256": "d73b0650b1c83363304b20cceeee5579e238139d351fa4692ee3c80f2e3d61ce", + "gold_sql_sha256": "e5da1f3e8b61005765fba7ae9569d0e7c051201491c2ea6be09ec3ff93493d3e", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9164": { + "current_role": "paper_train", + "prompt_sha256": "47f4d55fde8de7d5aed6a1084af880ce91dca1d6b420d8575776bef431705c0f", + "gold_sql_sha256": "cec5cb627987b7f845e2fd27585959ce0f02a42850a985d6d762d4d9fffa5b52", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9166": { + "current_role": "paper_train", + "prompt_sha256": "c1ae316cc2d2894126232cd492863c13259b83f9e100f17341f74a0ad9350b9a", + "gold_sql_sha256": "67951067ad4e9cb9f8b12c261727a8de57c8cbbaf5df8d8d16e84115726b810d", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9170": { + "current_role": "paper_train", + "prompt_sha256": "0d76489ed01af0c930ebf04aa750b88bec8f75e36c0b338b69ac00431f3e2364", + "gold_sql_sha256": "566bccc400f72d3aecd2e2b8de1d3c8194e1f697c0dc9be76fde2f8206d84aec", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9174": { + "current_role": "paper_train", + "prompt_sha256": "99c3ff9ceb20d1d4b065e36049493baa3dcb0149b35a1860029b4322871ac30d", + "gold_sql_sha256": "33586da03bc4b4619d011e87eb2db764402e45f08d002cd5b1aac1125dc4baaa", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9176": { + "current_role": "paper_train", + "prompt_sha256": "554f6bfd3f625fa888b7346781f0cb68274236ecf0d2f1cd808a0faf9afb8362", + "gold_sql_sha256": "c9e8cc03b56be20411fa0d38bad162061bb2dbf1c7a6ee54369ab1349fc1a255", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9216": { + "current_role": "paper_train", + "prompt_sha256": "eab2ed3fa3d1717583bfacc0e2333b047b5bbb928ceb21c258f2cf3624a76998", + "gold_sql_sha256": "066983c90e93c530dd49bbcd378d127433a6faea37cb6ea00a49ce18feef1b1e", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9229": { + "current_role": "paper_train", + "prompt_sha256": "b37002f99e24e2013b6c537882b5dcec8181fd008e1681a50857108135fcc741", + "gold_sql_sha256": "56a30e9951c1a51833638404619ad90bb7e81ae9950a1ce5340c7d93db43059d", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9235": { + "current_role": "paper_train", + "prompt_sha256": "09ef6179afef21ff3ea117203b5862dde8e5ae7b3ef4a40e20fac82507bc6546", + "gold_sql_sha256": "59eb560bbd0825a5842f967e8d1b4e78f7884759c002168b459cf1e03d428a06", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9240": { + "current_role": "paper_train", + "prompt_sha256": "f91c0c75c0e3c44d1b2894c1bc30c063659846264444c15d577e144d4f18175d", + "gold_sql_sha256": "e3aadb6c5ae80f4a596522dc30a792f11a36c847568d2ea7945df9c52e6ad6a3", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9249": { + "current_role": "paper_train", + "prompt_sha256": "57bcec2df62be7bb57120ebd476806152b8255db49db9c5e94cfd5f781ef1d42", + "gold_sql_sha256": "5604d5abd34f51685e7429a8338809d185a21b2e7909e855a6c720f24b6efd8e", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9269": { + "current_role": "paper_train", + "prompt_sha256": "e058865c94a5abdf1b99a3e7e226a37a019621fdca32f5efefa91e0411a2b2b1", + "gold_sql_sha256": "34ed38c673a3cbed8cf8560ae2eceaeb3bf6f5fcc1fe0d9892cf16ea5e9e9c89", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9274": { + "current_role": "paper_train", + "prompt_sha256": "446e5f26bfeeb6b7e24b437ae2dff69ec91ee5ecb59baacd21a61b9c1fdbf83d", + "gold_sql_sha256": "252ac0982ee8ce45577b3618a9d6ae3b73e2e09f8da77e2e2cdf06b9a643f66a", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9291": { + "current_role": "paper_train", + "prompt_sha256": "420b4c25069ebe12882940248531d0e2fe672e68c2af230b9889cb371299951d", + "gold_sql_sha256": "47f27defa273d20ff7aa989e48eaed777875580b9ca113f7b8148c14f5141f68", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9308": { + "current_role": "paper_train", + "prompt_sha256": "4b4701271498a1010bc6ade1a53a65bc717b49fc876f08efaa15047ab18e4d50", + "gold_sql_sha256": "30e7c49452d0fee2055ab10c8cf4578928edaf55ee2b21fa5f206f4cfe4225ee", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9313": { + "current_role": "paper_train", + "prompt_sha256": "f1474fb2e428555f04b14ab52e3297b09340fd26bd88737fead8459deda5c31e", + "gold_sql_sha256": "83d7b1a023e811441dbff06fa98ca720bcff94d04a85d2476c303d0b2f95c349", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9320": { + "current_role": "paper_train", + "prompt_sha256": "56ce60b11adf48599cd5c8e13daf3dcd676b6f46fb9a8228f9a3c48f509ed937", + "gold_sql_sha256": "1e8668bcb34ae2677874b7098d5a9b59a1814c675be0aa9780625255b044349a", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9321": { + "current_role": "paper_train", + "prompt_sha256": "cac5f4072535ae63970bb365ca5b3eab53570be6c039604b6616280f23b1a276", + "gold_sql_sha256": "0f342385109a36dc209519ce7b2965e10f86e09bd834b354aa38955b54191234", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9340": { + "current_role": "paper_train", + "prompt_sha256": "1131ad2fc166ac1ed5356902564535a04212bae396c07383009ba146c73bdb28", + "gold_sql_sha256": "60827dac0d884e2242fad1f4191875601e81e85de4c163404a6dd64c5082f552", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9349": { + "current_role": "paper_train", + "prompt_sha256": "e80aa26218c5ac63d873335d3fd3556e08ccbcf882569914be5abd9b0fcc82cb", + "gold_sql_sha256": "60371d4ab71bf24925ef03f2f1efdd36e18d0cfccdb4b117833bcb0b93fe872a", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9360": { + "current_role": "paper_train", + "prompt_sha256": "f892e28b5b085b5f97624e58d8cec0122ba31b8b881f9cd8954742a39385544b", + "gold_sql_sha256": "01b88c08319000f26e0ac221700eb4ade0e5d993e5c07f8bb2e8359212e56fdf", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9369": { + "current_role": "paper_train", + "prompt_sha256": "e21dcb71ea302771b77ccff9913fe78a97cf04ace4a626e89736deb697d6db25", + "gold_sql_sha256": "55dc14c9fd18f05ff89233d7cd003df3af43c3ba95fa121bae48995bc615ab08", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9371": { + "current_role": "paper_train", + "prompt_sha256": "1a75e26fca5e57f17c1c7aca27c9aeb9a305bf242ffcb46500f19eaa4d118fd7", + "gold_sql_sha256": "7ac465c864c8c83254215551e14444b2bfd099d504167abe73df4ce901ecaea3", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9373": { + "current_role": "paper_train", + "prompt_sha256": "7c3ed475e3983869d646fefa0b43f951d3c9064875660f0d6b909afcbe4ed81f", + "gold_sql_sha256": "493a59b162a9181d46d155bdced42fbd971321c3a777e5e3facc2812c5f1603e", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9375": { + "current_role": "paper_train", + "prompt_sha256": "4716eeb82ef40975428201f3d12d40a669d5e5899fea973c0d3e7f0fa0e68e0b", + "gold_sql_sha256": "8b5f1e2ce4aa8bb4851a0603918a37488c226228a7146de44351e0662aabaedd", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9379": { + "current_role": "paper_train", + "prompt_sha256": "17733a5ef017ff87b6726b0ef7132200bde4fbbbf92bcf413678ce4773ce3ad3", + "gold_sql_sha256": "94de7f427dea6e0231b123a30f179ff2ae983de7cf6f072bd2d6cc8d43bc5a79", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9388": { + "current_role": "paper_train", + "prompt_sha256": "1d247c639453a4bd2c6377e17bcf38ac5ba917143ecb75c4a811726c6fa49ac4", + "gold_sql_sha256": "77d1d3f4ccdeaf9ded00f8e4446b09410982619180c5ee9ac22c6070909ca621", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9396": { + "current_role": "paper_train", + "prompt_sha256": "9b8ddeeb112a0d103f7b4190e0859c8b6e4e1e69996a7e6294e951415b30c128", + "gold_sql_sha256": "37ad854a6e8dcd8e5f0f82d1ede06e48630a2b8bd995aba1ee32018eb99a25f4", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9397": { + "current_role": "paper_train", + "prompt_sha256": "27f996dccf7d8993851c423214834de9bf4d7f652a52ef14ecbe79a82bb39e79", + "gold_sql_sha256": "607007bb3135575fbf076e6eaa4599549894097f8e2420272aa7723133a7e095", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9399": { + "current_role": "paper_train", + "prompt_sha256": "d3d728052a1507ce1fe6c2da7d9c3d92bd5e1a180105f36d619f82f3beac7d44", + "gold_sql_sha256": "5f5c19a35d99836aa95178b7e7d00d27f1f995dc65a76f96cb60856f35943a62", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9405": { + "current_role": "paper_train", + "prompt_sha256": "1c38587acafeb592ac158cf464bc69ab51fb551b9b370ff2c5e51f2c9728c495", + "gold_sql_sha256": "211559def39d719299ff4234556ec949d4a09527c822c292fc75e7c74f4ec97a", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9408": { + "current_role": "paper_train", + "prompt_sha256": "ad5134d9e09a26eefb9fcd8b1e2aa60a3b7100135e75d250a69062cf2dc7e485", + "gold_sql_sha256": "e7b14057a0a313c725953698fc0a4f6063caea892389ed43694989a355172f2d", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9411": { + "current_role": "paper_train", + "prompt_sha256": "f3a4b4255d8e3190a410fe666d9e4c43bac5f7221589a53fab712e8cfa70991a", + "gold_sql_sha256": "4573cfa7d7f5a9431a76980d49da6be0b4d4538df61c08fc84c13bc2735980aa", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:9424": { + "current_role": "paper_train", + "prompt_sha256": "c7031c2aa0d5c3ec3d48674f7adfb93ad6e63e049b63ff2b2ec81c4367d9438b", + "gold_sql_sha256": "e57bbef62859a59ff52129d9789d01d66ea95393f40041d80cc9badcf2f9db35", + "database_sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "revisql-train:168": { + "current_role": "paper_train", + "prompt_sha256": "3a16fc424387713b65d7c1bd24dce3271d7af9c4a08cae8d87eb6b4f878474ac", + "gold_sql_sha256": "38aa0fd7ddd3da77654efab81f41bad57b319c63bd4714988088f64abfa27d44", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:175": { + "current_role": "paper_train", + "prompt_sha256": "334ac4b9216b33de69c493bbc381368dc6e800d81e23a4358caf3885bd98fb00", + "gold_sql_sha256": "637108070c0789aed7e4c18b09309f53e7e0c8e1943659eb5def53c6404ef6a6", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:183": { + "current_role": "paper_train", + "prompt_sha256": "b88f38e73444854d2b76129371f0f3ddf6e363c4bc5edcecf50c63a90073815f", + "gold_sql_sha256": "9cfef91b9fc74a75aab5ee14ede1c221c939f016452b72dd6b32461509490ca1", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:209": { + "current_role": "paper_train", + "prompt_sha256": "4c4e64e0c48ee23c4d6f6c8faed8d93afff71aefea453fa6da5856d1065a6b35", + "gold_sql_sha256": "42fa93aa97cda6e4d318ddf4a90b04631f2393c8f6de9b17751065f3b124bdb9", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:214": { + "current_role": "paper_train", + "prompt_sha256": "fa11832bdd047ba8d52fecc3fd0c94372c197def8abc6e85c2fe2d475a0d3743", + "gold_sql_sha256": "24cb2d99f0bc93539eeca7b2e31b1b946cbd524608936ce27df8d7e9d26423f1", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:216": { + "current_role": "paper_train", + "prompt_sha256": "8790ddaa60ae9c106e555d4e8b5e383910be89cf873d4adf43915a8c98cb2492", + "gold_sql_sha256": "868237e87feaf8ce4a6df1e357f08f70fb3d97fcc56652ad33eb264e73a536e4", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:227": { + "current_role": "paper_train", + "prompt_sha256": "d64f427a49bae8b2245b96ad15e68a9d9d4c1418afafe55e9359343bc7aaa808", + "gold_sql_sha256": "36f27621ffde427a27caabfdd90bf705b2b6a98362fdae6e0d1d2a5f09dfdcfc", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:228": { + "current_role": "paper_train", + "prompt_sha256": "7477653bd4809219d2334738ddc0f8900c50506ef11809965a31a278c7802626", + "gold_sql_sha256": "d1892b9be96395ffb159da06714714c594ef274da08f0762c27b1428737218af", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:239": { + "current_role": "paper_train", + "prompt_sha256": "14cc3b187ac31c80109a3496b87e5eb0d881f4818313ea33d012fb4fb57941e7", + "gold_sql_sha256": "70e3a3cf0b15279d77b535b78e758dc4300981611089fdb3bbb265585fcb4a9b", + "database_sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "revisql-train:571": { + "current_role": "paper_train", + "prompt_sha256": "248ba933a1e7d911a18f9f0c3209b06d7966356b77e755d2407d80cd644c200c", + "gold_sql_sha256": "94e38d9d98f5b3128a58a064cff137e5b27b5eb5be66e9fba1863fd4a6fa3c94", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:574": { + "current_role": "paper_train", + "prompt_sha256": "876f5e7eb985cd0ac18231a91e2ef896b6c33057bdf55db504a56bef1f68c75f", + "gold_sql_sha256": "f5eaec7f2575ef6d3a46550c1b702f45b4fd38fa533862307b7641052f7989db", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:575": { + "current_role": "paper_train", + "prompt_sha256": "6a86c82ebc2190999748389290db9fcb905f559f13ce29d8e4716e5518eb1c31", + "gold_sql_sha256": "42c806b86162824f93e5603d9f185c8ccb5ad46a30d034c7e2576b0abb66e233", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:588": { + "current_role": "paper_train", + "prompt_sha256": "bef4d86a31ad1ddc2ed86676d929a3d3e51c4d52521800c03ff8aec169c689ca", + "gold_sql_sha256": "51c7c15d5a31531a42c5b83b7c05aebce999b0afedadb846eb78f4239f978702", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:594": { + "current_role": "paper_train", + "prompt_sha256": "5550f5a4a0bd91361042a2f913e75da1e1bc827af351e49ec0369b2396c9a5fd", + "gold_sql_sha256": "5c790c2b853f9fc0cd62af4e906924044d1165d5282208dcb4a364d1bc900dcf", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:596": { + "current_role": "paper_train", + "prompt_sha256": "e77ec0cc81f4d252768f3a5961dd33075b25b55a36d035120f2690e676cdbb33", + "gold_sql_sha256": "9b7a22d9b3e5e2ca9768d1fdb8be433c86e8d7da831aeb6a1d472150126547ac", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:598": { + "current_role": "paper_train", + "prompt_sha256": "8446eeb9d54b0a2bf3308f6dfc35b867b6734bb4cdf148f9755520193bfa3cf4", + "gold_sql_sha256": "662b9bd5062f41f921cfd9e1951d6e205a9daa0c6068abe5465d1c02f65cd187", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:608": { + "current_role": "paper_train", + "prompt_sha256": "fa1243636ff8d6ddd76a79a2817cf3886598ec1d2ae30af3ab5de4475ceb2787", + "gold_sql_sha256": "5facbceba68435b53beb7047379684ff894a3f712be48ae14170d823271590aa", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:609": { + "current_role": "paper_train", + "prompt_sha256": "490617e2a9c0f60a20ee492fead6ddc39eda73ce1c418d050b40a11b284d5599", + "gold_sql_sha256": "a882440d66906f051b375ad05893a8c741e7d719fe6f1b97d117e235ad73ae23", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:611": { + "current_role": "paper_train", + "prompt_sha256": "7eb8cf8f73a28e40a5478e918664beaeb5f3612a09a69665898f2fb5e6913f9e", + "gold_sql_sha256": "dabfa20ddaecbdf459544aed6936872085e556e0078e72cab84fdc364aa10ecb", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:617": { + "current_role": "paper_train", + "prompt_sha256": "b1b58b92f282ab4c51c8cf5f95583dc33bba1bb663d1b345710151f06b16bcb9", + "gold_sql_sha256": "127fe4562b42573b4e7c87be5e486734c5c92ee0f443c598a9930bdfa620ff5d", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:618": { + "current_role": "paper_train", + "prompt_sha256": "af25620625c0bb4f0f0ad7067b18761a2e3d627706916193b5301dca9c23c2a1", + "gold_sql_sha256": "0869607903fe180c8747216d95c34750df6ea9ed333178f588f79b58eee85593", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:621": { + "current_role": "paper_train", + "prompt_sha256": "1df8f087b1c3e52b4c58761870c461bf1440abfd72058e140d2e590a321322cf", + "gold_sql_sha256": "f4984a6a8e6049ec968e4d6449dcf33308416c967968c663509a600bd67e19c3", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:630": { + "current_role": "paper_train", + "prompt_sha256": "39c4c6c564eba03e80d2acf3f84a7559611a126dfeaa7ad6958aafb73c21bac9", + "gold_sql_sha256": "d66da4c58b33147431825d990449b0185e6c6253bb58d12be0cc6d38927406de", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:636": { + "current_role": "paper_train", + "prompt_sha256": "8bab5bd5cab13b24445036f5c189005fd62e702624e8491f3015802b73fde9ae", + "gold_sql_sha256": "6b7b57b31e395671e5b6d2b3f6e5a70cd71356badff1ff9cf6e63a124d4c4f56", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:638": { + "current_role": "paper_train", + "prompt_sha256": "bcf8118b3349d17d99c0a710f5cda297ce153d931a81950022a2b22dc25d1a77", + "gold_sql_sha256": "09b702c84493b237c3f104d3db2bb9abeff130dd3b1171dd1f8386dd5bff0884", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:640": { + "current_role": "paper_train", + "prompt_sha256": "32cc534c64f457ecb8aec68cc8fa8d05611e1a6e7282fb75e319ae87d65da523", + "gold_sql_sha256": "0170dce63a9d095e8b100e5052a2fc85f5cdd74e9fa429dd66ed503756086b90", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:646": { + "current_role": "paper_train", + "prompt_sha256": "97ab06cac306c62074b97d8480dab9c97107653012d3f24f1fa3a3edf26ca236", + "gold_sql_sha256": "490c4883d628cd2affd2523e15720a663e71827183a16cb2edaf22ff065f4c0f", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:649": { + "current_role": "paper_train", + "prompt_sha256": "fd78dcdfb8b577fdd8450b9e3e03975cb4ba8065f37da06e4f20716434858cc5", + "gold_sql_sha256": "bb5ddf5f241be5ca0885fc947fc5286b84a9097ce70a2845337c67279b60348d", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:651": { + "current_role": "paper_train", + "prompt_sha256": "7f58366f1c067f7c9e42a88c2ee34506116a5745fe505e6501fee78ba3913083", + "gold_sql_sha256": "ac901b9ce9a489b692a806edc299cf110a43e2df93e78195117742ea5b2dbde6", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:654": { + "current_role": "paper_train", + "prompt_sha256": "d19446c868d13dc6658a5f0c2b69fed076d1c95022f63addb22a0eb341b31cf0", + "gold_sql_sha256": "bb549c0bc3cc19cee5072629c12a725900a56e30da4f46ef7055fb41b47d1d9d", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:656": { + "current_role": "paper_train", + "prompt_sha256": "19b863e777d832932d26faf62f6bb53679d099823e03c725836c9a1c5c27aa4c", + "gold_sql_sha256": "2ab79bd578bd8bf577df6e88a5856ea3aa803f0dd053670edc21ada108bf7e98", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:670": { + "current_role": "paper_train", + "prompt_sha256": "cd7711c03e5855e7e53815b9875a4c94fc021d33a1eb14cbba6d1143b5997517", + "gold_sql_sha256": "82423346e2c671732291dc88294fd08292b82386b8b1688398893ee1c19df4d0", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:678": { + "current_role": "paper_train", + "prompt_sha256": "4c3e599b86328262365f2e34d3e017309f08200d6be8d879649faf3409da0067", + "gold_sql_sha256": "5e6f7491fa08de14d71b188b2300b777a1ae2e21d111710dbd6251341640e9b5", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:681": { + "current_role": "paper_train", + "prompt_sha256": "6a33a03572202781e6574aa7ba7984bb23d10ab38b262d9304d11568921d47f2", + "gold_sql_sha256": "2490b6c098c839828995fecd77362bb7b295dfb3d88c7be5bc9ab8ca8083e771", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:688": { + "current_role": "paper_train", + "prompt_sha256": "b7351fe3eb8abadb6ac77add22ec31a81b8aacec25ee75bb95f32b8f2f1de188", + "gold_sql_sha256": "606016005a071ba635ce32510df3e15a8029b457a34af171a79bd95c7351c3af", + "database_sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "revisql-train:855": { + "current_role": "paper_train", + "prompt_sha256": "2f9a530f7abacb4ca72eebf897a061821d36d7d48bf6ff0191a8f0240fdcaac2", + "gold_sql_sha256": "116e5eec9708f5a1ae245c8377afbabf5c0375b71e1b7b18c8dfb4078ff69298", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:857": { + "current_role": "paper_train", + "prompt_sha256": "295e92063987f460bd22636d35f43bd1b64b7ebf65a1d5dcff711cf891f4ef25", + "gold_sql_sha256": "5f5510a33812b48cdd42c444db9486c82be0fb410f94e283c3a47705c95aca2c", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:862": { + "current_role": "paper_train", + "prompt_sha256": "2bcf601841f9d84ce7849c8a2997a1b17c53d965ec9fa64dcc01022bc5ace473", + "gold_sql_sha256": "a7a563d7c4d9e31e448c98a410bacef417269e050b0dbc690707e1616224e207", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:866": { + "current_role": "paper_train", + "prompt_sha256": "0ef3da0f3f1388166eb19f414fb5bdedcb6ce689c14c67e50c28972aa411b452", + "gold_sql_sha256": "69414bfb32564162b82e0ae6fc571ee7842c9ede49d792e6a416c5e030318784", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:868": { + "current_role": "paper_train", + "prompt_sha256": "0f3d987c95383e422caf3faf4db256199cda041a5cf8721fb8e7bd4bd9a84437", + "gold_sql_sha256": "7c001a6d9dd53bb7048b8228a2bd20b43bec0525e2e438efc25addf54d5a1411", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:869": { + "current_role": "paper_train", + "prompt_sha256": "f9d875fb9d8f382edd184339839a9de35abf74e0728c22bedd7ffbe00db3ead5", + "gold_sql_sha256": "ea9b414ee4ae76a88408c35ce4a0dfded44cd1fdb430162b90abec7e93a7c8fd", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:892": { + "current_role": "paper_train", + "prompt_sha256": "d55ff8c632eccfaac47a5ae9e183f01a9cfa5ef332b36f0279babe821f9c4195", + "gold_sql_sha256": "48f98bc89e2e6a01ca0cfdf4402a5c3f1a018e747e34a798b4c5f4b50f61197b", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:896": { + "current_role": "paper_train", + "prompt_sha256": "a0db39f4bed37792e3badd5fc8c0e27a4f41a71bf897831281c829e8f5e540d7", + "gold_sql_sha256": "e4af880d49c514e6c542b51833be5ca51c199d15cd851a1899210d297317b962", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:904": { + "current_role": "paper_train", + "prompt_sha256": "e23a667c4d44cb409c9d676fad5c0e7ef1c7f78b1d12434c7b05883380b98782", + "gold_sql_sha256": "a4466d1eff69cff8188d793b3c0887bdc3c67d1315f889ba27267c0658c36f01", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:907": { + "current_role": "paper_train", + "prompt_sha256": "be7ad9abb7e032606f870ae19eae6c90d8ed011f5f15e74494cdf88a35e3d346", + "gold_sql_sha256": "0eae70ce9d8c03f9b7c3ac7402eb2977effeee0cac7879e17adcec5c31313c79", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:916": { + "current_role": "paper_train", + "prompt_sha256": "e5de57cdcf68ff974da290b58d496c8dfc8a70f936e324ee3dd5f1375081e58c", + "gold_sql_sha256": "1651a4b99e45f00bd110adabb9c413a822473ecb588545c99ceb74772f978145", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:920": { + "current_role": "paper_train", + "prompt_sha256": "53b5cb349622b32e61e03a0aacee9ed150ac79db0503b3ecf973b92285059aa4", + "gold_sql_sha256": "26d9b17aca4164a36430069df41fd9b1446c5dd0dbc7071a9bb12753c8aadfb4", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:933": { + "current_role": "paper_train", + "prompt_sha256": "ecda1ba83f311115718804c4513b57a2db79befaf046fe13ab9beacd2d6341f5", + "gold_sql_sha256": "985427c260cdb370af185cf90abb01a5072fdc2d09eb4d2b36d7e4129532cedc", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:955": { + "current_role": "paper_train", + "prompt_sha256": "044faeb1935f8afd4d7b7e3a3f5966a4304ebe094adb195cec41aa12a460a600", + "gold_sql_sha256": "5de9dfbd803a0b92210a740d93c684d9f2c1487848dd96e3010e79b1b3a880f3", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:956": { + "current_role": "paper_train", + "prompt_sha256": "40a893506bf912a0648759818744208684a17f8ffb7b8235a123b0c4b9b23323", + "gold_sql_sha256": "0ee200de0ef37ba4f1ad222a0be9a40c4488727f2d56309d2f517a658a83f963", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:957": { + "current_role": "paper_train", + "prompt_sha256": "cc69b80b0cf0db4175cc7dc4f14033931cb6c8cc40601f00623db78e3de826a5", + "gold_sql_sha256": "2bab825029779fc43180495db915f93aaaecaebf0ee71c26c799eeac04aac24b", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:962": { + "current_role": "paper_train", + "prompt_sha256": "cba653c662800eb0167e32bcaab2eef30de852345b90ab8a34a906e9679a806e", + "gold_sql_sha256": "d32aa671624c2508a6b7949c84487bf96abbeb4822e9d31d1c8a3137b930e1f6", + "database_sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "revisql-train:968": { + "current_role": "paper_train", + "prompt_sha256": "ee5655d41193989b91e766f75381b525af486f282459c8d966a0b0b9e8a61f46", + "gold_sql_sha256": "9356e1c29beb4cdbe8360e9157e72256f89dae359766576f66b542ac20590ab9", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:972": { + "current_role": "paper_train", + "prompt_sha256": "e3d4fc26c6f7ccc73c66af929731d546b9bbc0285f7d163931fc0f161ad5930e", + "gold_sql_sha256": "528233e84439225c02d1fa3a40bb88c08c915badd4db4974b517fa46b41de6c4", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:974": { + "current_role": "paper_train", + "prompt_sha256": "66ea0f31a2a08af8ba769b3215855d4c50fc2f9e1b287e47ffcc72a1b0bfe50c", + "gold_sql_sha256": "361fab67177181364990b4de70a4836305e7d94840e9ff4720d9254bf5fd31ff", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:975": { + "current_role": "paper_train", + "prompt_sha256": "17bbe36a19850f0ef4ac0abb6a7763fa4f62243a95825b5ac75fdd01f5edbd26", + "gold_sql_sha256": "f6255f0a46451f49ced9dde6954c5ce35cc848596f5310dc018a543368db3973", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:980": { + "current_role": "paper_train", + "prompt_sha256": "3b8bd1784d72e79dd1db9edc7fd75c81aae2b07c1a23b10bfac63e73d7bd2c2c", + "gold_sql_sha256": "c41b12258ba717b8d5759319972e76426aec6908983321dbff4737f0e533068a", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:984": { + "current_role": "paper_train", + "prompt_sha256": "fd0da872adf6306c937f7a61484a11577b39a574db0652f998c9718d0bd58846", + "gold_sql_sha256": "93e27e2b4e0a89089b30202bc64001468f275d59eb2d67bcd01a2483a4a5b94f", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:989": { + "current_role": "paper_train", + "prompt_sha256": "2934da40dd3ba80eba2cf8b3b2886d21f12f1757fb25e82a82644f11f79b6050", + "gold_sql_sha256": "0eba68d5ff3533961021cbf92391d395cbcaf775a872c2f3e1e90f20e71d02df", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:990": { + "current_role": "paper_train", + "prompt_sha256": "bae2f6be8016806a3afae06d05ba387efa78490fe063a678025847d92e7f01de", + "gold_sql_sha256": "23a7aee33aaee5ac5e13264db9ddca6d8e4381728780712adc9b50e25eb5b123", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:991": { + "current_role": "paper_train", + "prompt_sha256": "c515b41c9de298c77e44ce56de8ad5d2241a6858928a384697eba36ae5258ec3", + "gold_sql_sha256": "feb3b9ad51160b72e5d2331f139511aa108c2f1e9c4e6eaf34cfacf5dd901c8e", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:992": { + "current_role": "paper_train", + "prompt_sha256": "4f667d912c9162d2bed304d9d3b5c0c116485dfb2bb88b1727bbc51ef1da42ee", + "gold_sql_sha256": "d5b27008c00615f6029826827774cd817eba173af9577b1a5dbfa5f074216440", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:994": { + "current_role": "paper_train", + "prompt_sha256": "6573973a64a385fd91005b944c0ec2b0f69088287f714bfa65873b751ad2f01e", + "gold_sql_sha256": "7f385c3c72b57eb731678d7d24cf5a824367f490d221d9e345662ddb8b6a08e4", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1000": { + "current_role": "paper_train", + "prompt_sha256": "99055ba6dc22c2f3a6f0fd62150edc949f30893641dfecd93844b43e9340bae5", + "gold_sql_sha256": "eb56c6deef5cfea7cb6c78440d090ec3722b8a0c9616b2c03570354217bee335", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1024": { + "current_role": "paper_train", + "prompt_sha256": "64fedc61333905fd789e731580d78ee9d7453013e5a97704b021535050ccb281", + "gold_sql_sha256": "cc4ab7d3b92052b21706b706d8a29982e1c6011f0db4d473376d2d90dfc3983e", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1025": { + "current_role": "paper_train", + "prompt_sha256": "0b59c45431759f909172976931776afbef373532139725852e9bfb6a88813fdc", + "gold_sql_sha256": "f3e831a751039df9bdc50d214b269a16740e7d7616de6bb31550a06be79ebce1", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1027": { + "current_role": "paper_train", + "prompt_sha256": "b540a39bc57b3e5e02d0c7803beda7d54e2576f2d0e7a038cc1ee2e99122c9a8", + "gold_sql_sha256": "d65a357f5f1ad79827809c0b7fb880165e81ca69c775fa50b346a042b5044405", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1028": { + "current_role": "paper_train", + "prompt_sha256": "dbf9fd17f4bd0ed722445e31c455fb7d07f09a768d2c9ed69550b3f57fe8f062", + "gold_sql_sha256": "9a9fe516f3a24a80654e4ab6333befeafd4969193247d3ae35c21c7d169c095f", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1029": { + "current_role": "paper_train", + "prompt_sha256": "048e9ae5e0cde7a42fc73905162d9814c30d718ae010741ab3352adb481a5c80", + "gold_sql_sha256": "e230546547aa45938d6e2b7dec6915c0de1ec06a3c0b04e62abcc3c6ad82fd4a", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1036": { + "current_role": "paper_train", + "prompt_sha256": "d45188bce880d73e3c938106fc561a158c0c0bab789ca12e67e837bc88e5f248", + "gold_sql_sha256": "ea287687abcc9a225371ca5798491422d7a82b3658340d951f02ed43c77a27b3", + "database_sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "revisql-train:1547": { + "current_role": "paper_train", + "prompt_sha256": "a970ce4cde9df1267fb7d87bb7bbaa223c685c7dee3c830e1decf0f04101b28a", + "gold_sql_sha256": "08d3d40a210ec876f95d342bc8ac3119aabdfd6e9b4836c52df3ea6dc7514e96", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1554": { + "current_role": "paper_train", + "prompt_sha256": "ba280e251039bf6152e32b6dae877da7a78bb38476084d08bbc3dcf7c0b6051d", + "gold_sql_sha256": "2aedef26ba99ea7b023294818f86a21169a5365cf812e1594cbd6c6de13d3f4d", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1565": { + "current_role": "paper_train", + "prompt_sha256": "58a4512b48a8ef00ec707bdfb01a243d2fc1e82371eb57558415f47ce559f177", + "gold_sql_sha256": "85f78484b1124bc26190c57aab1eac6c70e46fe9b3cbeebb62ca0bf8af90da55", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1568": { + "current_role": "paper_train", + "prompt_sha256": "fbece30ba118293de0917dc8a5d4d8fc918d88226265395607a4c55de3f00a03", + "gold_sql_sha256": "43d333bd50cad759e06d623bae02bdc3f29775e24fff4b5d3b01209569ddaeeb", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1573": { + "current_role": "paper_train", + "prompt_sha256": "5410e1e673b9983ed616ec41880634ea2197f26aa0ba2f5eed8a9aa3059a9466", + "gold_sql_sha256": "274978dce1cc0d3b34b65b81aa7267e58d6bf92d611a8def6a81f205bb591002", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1576": { + "current_role": "paper_train", + "prompt_sha256": "c986eebeb68dfacb29e40b885d284ce36a0fdce40d318ccc0a91c347f50d0fee", + "gold_sql_sha256": "fd2a78a2c4973bbf9b9775eda137dbef75de48df77ee79599138a11762f0c36c", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1578": { + "current_role": "paper_train", + "prompt_sha256": "0676f557fc951bc5c28b934ea8807d51459bed02e3379553bbd21b93c41a457e", + "gold_sql_sha256": "dd7abf029f089a136cbc152d7bbb64946f0ab8015297b0c219d3c968e0fc803c", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1582": { + "current_role": "paper_train", + "prompt_sha256": "7e349ad011495624ccee46684c3640846eb2c8b3e6dacd9796cc2f32355d7cb7", + "gold_sql_sha256": "23d8f95ab0144567bb029130bdfa623a4ba50ce5385eaecdf8ded520ac32758e", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1583": { + "current_role": "paper_train", + "prompt_sha256": "62eef686658b22f781907d8ceb04717fe811e8ed9178a30373c9ed8c566d4720", + "gold_sql_sha256": "871514524ec92694a41850a7b052879000cc9538b89d93511859336af802dbf0", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1584": { + "current_role": "paper_train", + "prompt_sha256": "aadd0d77c594fbbdd85f04d20f2498267982f085a38083d28cc616f69401909d", + "gold_sql_sha256": "a60eb29e59c0331324eb458554b6fd44aac9822955de7b8d531530b424cceae1", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1608": { + "current_role": "paper_train", + "prompt_sha256": "9a800fd4505ab1ef991e4aa067ed1ef486c4e295939f7946a79638834c0a73cc", + "gold_sql_sha256": "062a8990674f5ebd91cf4a0a6dae2ac8626b837002e2ec6840a88cee254c1484", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1609": { + "current_role": "paper_train", + "prompt_sha256": "4c73906ec03668befbea403fc0b53c7509e1892340f5d4839ba2d6605ff99d82", + "gold_sql_sha256": "0b7ce1bbeee7227cb23ae05ce5a34c473b611950d9953fd4d7670c3bf5be1595", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1615": { + "current_role": "paper_train", + "prompt_sha256": "e1f1d4dc09b61d9877b8c2e781fbaafacfb98d25088521e44c77a093b68c41e3", + "gold_sql_sha256": "b30b7f14f588fa1946e9401c1d1d627c2e4a1bc87ba862dff7e44c1f8e2dd339", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1620": { + "current_role": "paper_train", + "prompt_sha256": "6fd65281974a3a951d78833a04fc08d4a8257699af13a9903124e7b6ad344e69", + "gold_sql_sha256": "1f9443eff020bca5f317eba95e1ec1437d791b1eec8db581d81e401fdaaf606c", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1622": { + "current_role": "paper_train", + "prompt_sha256": "3e3d49d3be66dbee4655cb4d0901acbc291afc8ae7f275453602059d6cad005b", + "gold_sql_sha256": "c760a8e3a1d3162feeb8d6e9b9af25f1f78c5499324bfd269ae9907fb9de8d6d", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1624": { + "current_role": "paper_train", + "prompt_sha256": "c9cc98076b440e1e0b36d9bf774d573fe6bdde7165a602d2106bc69ee591b862", + "gold_sql_sha256": "157754c5df6160cc160a9c2f0acd711f2d976c44aa21ac2d7981fa9db223adc8", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1625": { + "current_role": "paper_train", + "prompt_sha256": "2b90bc9e57a4190e228dc11d98ba75cec7e36ab660f872020722394ee1859018", + "gold_sql_sha256": "a7278c3c1387354a69f9035a0467c7b20a10f9b8ef7555965eb15f3fa51888dc", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1626": { + "current_role": "paper_train", + "prompt_sha256": "ae13544755fbe0898961fc3bec46d6ab1be01fd631382c482ef9c8e609d27596", + "gold_sql_sha256": "89ff6f652da62d3a4396a9821aa17ffed540b0f24b63c421435d68f8a362c92d", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1627": { + "current_role": "paper_train", + "prompt_sha256": "7d48e94ea19030d92b2781e11054a511bf04b94f86507c7e1929cdcd105fba14", + "gold_sql_sha256": "448b08a77c12b44674c47108bdb5112bf87803f65a6cde3964242621ae2bb7fd", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1636": { + "current_role": "paper_train", + "prompt_sha256": "92b4f9a8598716d0539f89e6eb792185fea1051200d2a8691aafc827db88ef6c", + "gold_sql_sha256": "1c11103a7ed9ffb4a9f41c5a0b7fd4dc558447aaa11ddc433051cca7445a1f07", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1639": { + "current_role": "paper_train", + "prompt_sha256": "95fc03c7c0fd0a6374ba22088c51ea2184d8d049ed22774874fd637117137516", + "gold_sql_sha256": "9a29038e01ef348caba96ed1ccd781dec594c89815830c7a887f38c389aae4e8", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1640": { + "current_role": "paper_train", + "prompt_sha256": "98f7f8ec42261b8866be703c42822d5a16c855d9334df83da3afe895ff22de74", + "gold_sql_sha256": "be09bd75645a93f642869d549516a6b9bfe39cea032c20052475fe15c68fdffa", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1641": { + "current_role": "paper_train", + "prompt_sha256": "433531b1e1acef2363601655ddfa01018b35ce77c8e2382a9337f999df9b093b", + "gold_sql_sha256": "bf05f8bd3ed6aab9ff3ebceb0c100fdc1c644cb489518ec09033f8307d139890", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1643": { + "current_role": "paper_train", + "prompt_sha256": "8d5c737c25f651f55d648d507ca1e8ff5912c7c0c37478c1bfdc72f470d40d25", + "gold_sql_sha256": "ce7004b5443ba55d9298cfc4a45483eb657fd8e05dffa671ec4418f6d974d92b", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1644": { + "current_role": "paper_train", + "prompt_sha256": "7eb86b36992a6aa1efe537dfdf272b233b4b604f1e829567c493a498268c01d8", + "gold_sql_sha256": "a28889571d5429c5b9456face19e4345588c3483cd20003fd331240de383e3b0", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1652": { + "current_role": "paper_train", + "prompt_sha256": "9aa8150daee2e97052201450e3b0637b6a1597bfd455bcab48fb8b7c0d646242", + "gold_sql_sha256": "d25570d65c68c397773e3f53cf0ae1998d6864fe46bb6ca0caf3ffb63bc902d4", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1660": { + "current_role": "paper_train", + "prompt_sha256": "6fe93ecbfbdd520cad433b44af94dd2050bae947f78fbed769ab667aef430628", + "gold_sql_sha256": "d1b48d11c90b9311685ed1816c981d10945a6644587ae613f4969492f153d8d0", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1664": { + "current_role": "paper_train", + "prompt_sha256": "e2d8eab2844d593985e8e415ddeaafcdde8b486ff3f76cf7e253f99a10e0e864", + "gold_sql_sha256": "7b44980d30b241feada6b87e81cb6c03a4a1b9e8d078eab2548292c09525c2e3", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:1669": { + "current_role": "paper_train", + "prompt_sha256": "24d095b837b01c26777903e7f9ae7b36149273ded693d50dfc4e6bd41b6c9b49", + "gold_sql_sha256": "645f996eda5efbf3b79830c21e9123c0101b6209e4bbd942e7f29e6596fddeb2", + "database_sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "revisql-train:2518": { + "current_role": "paper_train", + "prompt_sha256": "1139982b67e8da830fcc656c14339368e9656d65b4f1eb3dcd1ddc5d17e4becd", + "gold_sql_sha256": "fa8c07b713030cb8d68ee8ebd124cdcdb420121a1472cf6a0d92049ce5916fbf", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2532": { + "current_role": "paper_train", + "prompt_sha256": "8a91a431dc9e685720fdab60eb8a42f2f221c319cd3a828422eb11e2ab55b32d", + "gold_sql_sha256": "bd26d59b816b72e874da46eb52b8cf358cf4b286d04c5b0d334eadd74f436cce", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2533": { + "current_role": "paper_train", + "prompt_sha256": "03eca8f32456168a91d9aaa1dcf44e0ae9da15c9e5c081e172049d43399c7dd7", + "gold_sql_sha256": "2783e844df64b5198e8cce87bf2f41dd42525c4459a5702a9be92140d885e155", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2535": { + "current_role": "paper_train", + "prompt_sha256": "1ea71ab12096674d80664b6046a7b06d80c5c74ca3ff1642ddd5edb00c0189ea", + "gold_sql_sha256": "73973a1eb14b72332047c087d5444a44589623838171379a651c42f9cbde26c2", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2539": { + "current_role": "paper_train", + "prompt_sha256": "022a847cf5f5b0266c0fae2a9dc26e1eb33165e323468c5026a3e518303a5cf6", + "gold_sql_sha256": "e7950ca308bddc960775c6f9a515637d663939657fc408e2091e95f0e0ee7f38", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2540": { + "current_role": "paper_train", + "prompt_sha256": "ec06f48b2cd044439d5dc5c16fad7b80d0f15bbf42df0287310bdcc757612081", + "gold_sql_sha256": "99b5b7c77cd0b7bc6886e06eb563b8038855e023632334747fc974fb1b429d1d", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2542": { + "current_role": "paper_train", + "prompt_sha256": "57abb5f9a43ce1dd9aa7a32d612f5d28e566ba7ef802a81d9150404f90fd56cf", + "gold_sql_sha256": "8cb7558e43a7df6365adadddae4a9153837100dec7e7b2abbda6cc16ef3cfb2c", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2546": { + "current_role": "paper_train", + "prompt_sha256": "139dbe6b511b3e0b91e714d2df471b51b9828fe0d0cb92798ce2faab14773298", + "gold_sql_sha256": "be9d3f885e180db57afe463211554b765b91a61c6e1d6fa0580166ce25ff73ef", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2551": { + "current_role": "paper_train", + "prompt_sha256": "2b96929607eee74f10e878611e31111ea461e8477bd3bed9f859f18fb0976b39", + "gold_sql_sha256": "dbeb3044068f301a14e5580a4d5fb716448bddef4362a2bf8a78c38dc840755b", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2557": { + "current_role": "paper_train", + "prompt_sha256": "c61b270d5387721c4659524b20d90c09e9a09800d5f193904fb03f684269c58f", + "gold_sql_sha256": "fa454951fd70c7d16b96c5c38d98eded892a8a1a24871c6c9bf12314858c454c", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2562": { + "current_role": "paper_train", + "prompt_sha256": "139b81187ba57f21aaf20f8c3b82fd687b9b41c0e31043258072731f31a49f1c", + "gold_sql_sha256": "d22b7431075a90c3ad6713d055c15bedea01a412588993132971c4708a224391", + "database_sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "revisql-train:2745": { + "current_role": "paper_train", + "prompt_sha256": "b100d2f955b5e6c636d9e1166bc8b01e7f14a0297e71e8615dad38fe275f060e", + "gold_sql_sha256": "92d504c6f9d4318da1dec839d41be45c52c9d16244b22027f96ae0573fc1b3cc", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2755": { + "current_role": "paper_train", + "prompt_sha256": "091376a8a3ed9e31196539b59b563b997d57bfbd29f1225b4fa5a267a2f95523", + "gold_sql_sha256": "d92e99bda517f67888f92be58ddf0c150ff9d14e0df7c879bfd146d5fd288324", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2764": { + "current_role": "paper_train", + "prompt_sha256": "f5334a080af7fbe711229ccc0ae6b96f00659eea9bfb1aa43fe30c818dd8cc86", + "gold_sql_sha256": "1ca103e88f2e594043f3d77a9e0a8877590b926d76fdb361254e119f4481c352", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2775": { + "current_role": "paper_train", + "prompt_sha256": "a6f4c216c4691dc73d65594b567c458ff229b5eebfc0a4d1d4cce1b881734f54", + "gold_sql_sha256": "0b66f5f51e4b84951a25cb123362c808047fbf4a778653e74db0c59fcf63abb1", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2782": { + "current_role": "paper_train", + "prompt_sha256": "170b240d376873bda482023ca1e62056a34df3b0e820fc297fbb615307bc8827", + "gold_sql_sha256": "1005da004f7a4ace7eaf3aa550253af189b2e5ae8e6ea46ebacbd7a9e8bff544", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2784": { + "current_role": "paper_train", + "prompt_sha256": "e0386680b122ddf95e241915e65b36c74646dc575a743184d9cd6ecce4f0aacf", + "gold_sql_sha256": "a23893dd58c4de90d16ef7b365895a3e7f4b41e45c2c2b5c61f3af8f20ccf6af", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2789": { + "current_role": "paper_train", + "prompt_sha256": "5d082260d0f79cd05867744d8c24bc82112618affb5528c10652b202eaa9aa34", + "gold_sql_sha256": "631339ff7dcf72a61ca0a2a339617bcf69b92eb670836bb8df5818d37f86230c", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:2795": { + "current_role": "paper_train", + "prompt_sha256": "1bdcb8a71b415b5e03d651d3d5ce7f471da24fcbc164cfd6d9d272a3784566b8", + "gold_sql_sha256": "dc55fd999be6774f3b6cfb679e8550f3346a70b63468ffd33722e941aa696359", + "database_sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "revisql-train:3066": { + "current_role": "paper_train", + "prompt_sha256": "7422027d6bb8f414b38b2ffae8c7bad49bccfa567f7e024751778125a97159bd", + "gold_sql_sha256": "13b9a1e0aa5e35894fda34569a38db74f175a72f5fe6e71ccae8c1908ab6bdb1", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3067": { + "current_role": "paper_train", + "prompt_sha256": "85f46178d09907ba33704eb7b2690078a51221ccab44c977183f054fbf4912b5", + "gold_sql_sha256": "de80e339b734255625bd0a3f4df13fa816ee7b71998d7e9174e35d6b0e6bd57a", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3083": { + "current_role": "paper_train", + "prompt_sha256": "fe2e7f2bf1ce6537b9ef7c7929e163fb82b88b776162907d94d01b3cd073b714", + "gold_sql_sha256": "dec0ee82980c2dce15ae3ed86e583d62deaaf4fd742d7ba24bf588aede84a44e", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3090": { + "current_role": "paper_train", + "prompt_sha256": "100f31032227a920101b49f3fa614602adc055c9cb02b54cfe7002052ebf8ce3", + "gold_sql_sha256": "a8ae8a4a561010ea316c6428d1d0f7cdcc3a4928839f599e3e9f57f073e45a51", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3095": { + "current_role": "paper_train", + "prompt_sha256": "0f8cd3222c3a338ce0fdf097638824fd282d33c7e8409aa0756e3f472328b3bd", + "gold_sql_sha256": "b5afd1a92dfda6c7c03fdd93c5bea590522a85075ac86489f30f10fc35b45aeb", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3104": { + "current_role": "paper_train", + "prompt_sha256": "0e61c061da9f1714abafeb827a54e5a0d639b3ccaf4a3a77a0b807b29f73d15e", + "gold_sql_sha256": "d8179449cd28e0a064ff87fd4e949cf4201262902f9912ab2b879723e1ce5d1b", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3107": { + "current_role": "paper_train", + "prompt_sha256": "ac02725f6cc69b486dec1556c5951d2464d12dd951eeb398f81279f3db87487b", + "gold_sql_sha256": "b46f0954172fcea5277a7f1609a0def4b87844800649a6e620db276ceac36dfb", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3115": { + "current_role": "paper_train", + "prompt_sha256": "2c6fb877ca79dc32a5ce49c0b63e0b4000c041e6ffd0f568daf7ec9447b6df92", + "gold_sql_sha256": "40f97e524a3cdf2109b937c8a609efc56b752d7482a7144f97828098d8fea59f", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3120": { + "current_role": "paper_train", + "prompt_sha256": "4e1adbe72e20895222da5f58dcac31d1455d7c00ce8545c06d6b1c29287d6868", + "gold_sql_sha256": "f82d534638c48668a2fc54e5e225264ea7575faff91ec2109b556ee6b0372482", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3122": { + "current_role": "paper_train", + "prompt_sha256": "29aaedc42b17d425d71c8e14c3bd36dec94125a1baec00fa4eda5146d99e8ffb", + "gold_sql_sha256": "fcc5e421b8eddb97245c7a505e0ba47d045561cce95ccb909ae68c179646d195", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3124": { + "current_role": "paper_train", + "prompt_sha256": "e105e157ffe7bedc6b16c01e052edeb7d2c08a62b6bdd114fd6f7815f5942c85", + "gold_sql_sha256": "af75520cc941dcadae4a807e1591bc3d7faa7210b409c9841bf94f539f73ea71", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3133": { + "current_role": "paper_train", + "prompt_sha256": "b552df1528c3ad076e4cb102ea14e2ed341dcbc9a182516edcbed4abe12acfa5", + "gold_sql_sha256": "46dfeaab8361415efe5beb09e558ecdac19cff2562a3910ad644a19e9f076de4", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3136": { + "current_role": "paper_train", + "prompt_sha256": "b7d410f1fdcea0188f276c8fb2b406c82b2dfd230b3deab767a550581f46b812", + "gold_sql_sha256": "dee2facba914d0cc0c701d0d1f9fd3f9e4d501585d60b043a7ed796a4323c927", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3142": { + "current_role": "paper_train", + "prompt_sha256": "3b2927a897dcd7649d4f98db38bfbaf1dc4ef02fb83f35d0cf728418991701dd", + "gold_sql_sha256": "03773cd197b44bd68eef1af3148950305ca6f78f2f1dadc5818c9cb9997b989d", + "database_sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "revisql-train:3150": { + "current_role": "paper_train", + "prompt_sha256": "f646c1f41cfc45aeae69d7aa4a569c710d303fd5b74bbca0c1421d2824c570b2", + "gold_sql_sha256": "4ab62e2936b6ae41df1cfadb964dd73c036f3ffbb07f5a20f2262a1a97e944e5", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3163": { + "current_role": "paper_train", + "prompt_sha256": "168366eded7fbe260e862286ff7fce113d7c8ca640c5a42583b1419a5af2b90e", + "gold_sql_sha256": "00a0eba52d538d2fff41532d06670b5a12029b66147073a4018a3cb756e3ff90", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3165": { + "current_role": "paper_train", + "prompt_sha256": "b41385ec134790f18357690efbfec8ef362fd0b256e96aa0c41d535be93ef971", + "gold_sql_sha256": "0a076a6dd4ae16528d15577675f5f865c5c7f9bcb46d043fc8fdbcca4cec84f9", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3166": { + "current_role": "paper_train", + "prompt_sha256": "a5737baa26aa62ef86ed111ee2c4c48f5596c4c20c5ae351686d5d4a48e28622", + "gold_sql_sha256": "dcd26a24012b6e012ca7fe969e30bb032a82c619089c8942a0131e24a24dcd8c", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3172": { + "current_role": "paper_train", + "prompt_sha256": "666204de4834cf3c656813d585a97f2c2e33f703e93d1f1e510b3067d1a49aea", + "gold_sql_sha256": "5d8088ea6a4135b659117de101b443e1fe073d5f77814e5971255f83549c594d", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3174": { + "current_role": "paper_train", + "prompt_sha256": "b66da75a69cd0e0b6728986c7b26fffe21c9b1fa0d97a2a64604c78644bffc43", + "gold_sql_sha256": "ebd8430889b1779769684bed16784e5b2a5dc4693d5306cdfc1763c0c1177013", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3175": { + "current_role": "paper_train", + "prompt_sha256": "1575b60105d48a3fe70773d7463bbb579e0888a7628fc70a72863bfb90b50cbe", + "gold_sql_sha256": "41b0ed5c25a059a4b8431aeb68b7c8a18d60d907408f732b8bb829b04a4dd373", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3179": { + "current_role": "paper_train", + "prompt_sha256": "22e1de735fc819bb1fd2b9076145044b9fb7e5e7b316c97935e4f83b37e6329e", + "gold_sql_sha256": "3f7aad1bfb849daad377f9fdb59734891f0b6880259db87e9d31057638173cf7", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3182": { + "current_role": "paper_train", + "prompt_sha256": "145947e91da513a3d05dbc8982da989891e3e80b3d56392e5e75ffc12e148d7c", + "gold_sql_sha256": "1b520ea036679233eff38b3225f80b92bc2ee6efe0c9935a66f4e20824f6d188", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3189": { + "current_role": "paper_train", + "prompt_sha256": "e4c53cbc2aac83932b9415b835f39035070541e6413f9d87250d9a841944539b", + "gold_sql_sha256": "1f03a71fd35f51702f0e527994129c505a070f68b23edd23d1aa3918ac508cbf", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3193": { + "current_role": "paper_train", + "prompt_sha256": "37da28a5e43eff22023ecde086928eb8f5d10afc9092ff7ceb3a85a9395fbb0a", + "gold_sql_sha256": "a8a1bb67df6802d28074b2778f39e6a963fa72269fc14edb22f3c565d597d079", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3194": { + "current_role": "paper_train", + "prompt_sha256": "fb16a7c4bec127025d7d32fa63726bff94e4325a87a363bbbf5dee5bedc8bb34", + "gold_sql_sha256": "e83764ef65a8c9cade5f9d9605d5a49b8d674c8f3bac0c00e0888e068e4b34c8", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3198": { + "current_role": "paper_train", + "prompt_sha256": "1ca99e81896607f21a207fdf055aae23936c1da532168e89bc67bb972e9e10be", + "gold_sql_sha256": "d76c2ebafe9c3b125ec5b53f82afe0da892d893721f3f930c5cb126e768d8306", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3199": { + "current_role": "paper_train", + "prompt_sha256": "fb1e9bd7c93c33c038b38dc05be2edf0b6b22d6936fcdbb3684f5448ee9524ff", + "gold_sql_sha256": "6203dac3c2987517726631710ca1648721a08f4b22518f883c698e0e51aa3469", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3207": { + "current_role": "paper_train", + "prompt_sha256": "eca2cbdb08a59f51767cde115a2f08437d00ab1c40c965844bbd16343099c7e7", + "gold_sql_sha256": "94d3a06e6b72ebfdc13008b87bba81d09bb000075afde9c070cd85a758f51304", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3221": { + "current_role": "paper_train", + "prompt_sha256": "1ec1c1dad4ad8fe03ec38891153395acd19bbfd8c960e348d4c88f1087940e94", + "gold_sql_sha256": "1abdc197b96421db795ef87c4092ed1c557a4972cc65eca0164b895e1abc88b2", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3223": { + "current_role": "paper_train", + "prompt_sha256": "b4bdd16c44ff8620f2243d74738fc7833d0f3695d336b3a8f0894018db024a6a", + "gold_sql_sha256": "eb5d203163c08247bd7a291635099a63d4139704bb12c06b0fc8620fdb28c978", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3231": { + "current_role": "paper_train", + "prompt_sha256": "9033b0d7a03f745a7440bd16c0215366d1b12c9d75a6e45dc03079b224f330ce", + "gold_sql_sha256": "e77feb48180c48c013831a69ef198a8e42c124872498a4bb64b43d944dafcfc8", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3233": { + "current_role": "paper_train", + "prompt_sha256": "61112e59356bf468d9145e1be611ca4b882789ee95b2e4fcaf08e93c840255d3", + "gold_sql_sha256": "492adfcc4c6f00415770407a04dfa9e62e3c705420c3c9a997c3c8a87da7ddf0", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3244": { + "current_role": "paper_train", + "prompt_sha256": "3cbafb37a7b2c5abe26936aaacc0cfa8ff97608750320c899517ce8e98b86896", + "gold_sql_sha256": "b2bcf0280eb169f6705fbeca95867b49dfda2d6060da91261ed7728fba6e1b25", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3248": { + "current_role": "paper_train", + "prompt_sha256": "68ec1ac9747e9937546214b65cdfedebbb3b3f8153775f9b87a6936c76b504fe", + "gold_sql_sha256": "58bc14b0fedb5c58431c0c65e02f1af9625add0e75a001eb062b23e7aa9c7977", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3260": { + "current_role": "paper_train", + "prompt_sha256": "4c44f178798a165e6bdcef0f3b3e7f7b45f5ce5d95faac1d66ec33f153f1aed3", + "gold_sql_sha256": "e930cfd321d21e4c3b13be6857935ecc062869d51c7552bfe9e96424f5386b3f", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3266": { + "current_role": "paper_train", + "prompt_sha256": "3412a526ea34d9b90402ae18f41e149fc8e28e7542d2fad6abc34da5715ed9cc", + "gold_sql_sha256": "3920bbc229ba008f9dda4982e2a3b3d6461983a24ec9c94ea8afb3082c9d5a2e", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3272": { + "current_role": "paper_train", + "prompt_sha256": "b0be95807e104ef7c8a1fbd068e7d4472a442eedbb63d6eb295da3b499dfcb4f", + "gold_sql_sha256": "2e0d0a087e75e780eafab0d455843c27de5d66f741410eab6689a48c2e4fca52", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3273": { + "current_role": "paper_train", + "prompt_sha256": "07fd53477433e33d9536f29665d89dd36ce00646b06e5ef987d484231e5765b7", + "gold_sql_sha256": "7252dfc478896e5d0aaafbb61b7fff4a78ac771b14ce7b17cff5f5c0e40c9ec0", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3275": { + "current_role": "paper_train", + "prompt_sha256": "06ef5decaf5d5bdbfac1ce4edceebc7d7bb4894b22bab4c424bc07cda47cee4c", + "gold_sql_sha256": "70e952fb5b40e5b600649e1b4dc1e6a0429ee27b0e256fc4d0dc7bbbe08f1ba6", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3283": { + "current_role": "paper_train", + "prompt_sha256": "e9c636bf632b7d4746f12be2a214193045a8613952b872d8a44a878f52e32298", + "gold_sql_sha256": "e180ef23dd15d02415dfbcd6e43fdb6ee5e12e4834d4db4512ca6e1d32352463", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3290": { + "current_role": "paper_train", + "prompt_sha256": "4d0ba4fac4a58b38a3e95863187cfd54a594729c68d5138d42aff9680a3bb4f4", + "gold_sql_sha256": "cc63060f4b99a613c33576cdce1f4db4dc21fca1479b5dbc88dfcde48120995b", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3296": { + "current_role": "paper_train", + "prompt_sha256": "c2a68230193c4913264783ce4767ee8fba322955bd807054b62e0bfcd2e2753d", + "gold_sql_sha256": "86c7eb8fe2cb390d98c29cf6896d529ad1edbeb510294f0efc733fd83fa6e2c1", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3299": { + "current_role": "paper_train", + "prompt_sha256": "04f6e29dc529a1c7d4cb0cd77be9666f2ccfa12e1c193b238f793e1bdbf78921", + "gold_sql_sha256": "3c591d88f32a96d553c15df410c1c5da565c4efb8ff7ed9769ff69e786801599", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3304": { + "current_role": "paper_train", + "prompt_sha256": "ded0f073cda2289b41321afc565575e240b3130232153e7967ea7ad6492e2c75", + "gold_sql_sha256": "a26f1010002c6abc333b1818e44b15f167b071f41befd5eab0559eeca6a06813", + "database_sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "revisql-train:3524": { + "current_role": "paper_train", + "prompt_sha256": "d8a33837f3564ec47a75d61891a0fb733f10320949462bdec43275520a69f774", + "gold_sql_sha256": "78404da7ce3cb5c4d2c9acb37cf3159b0313273e1a2d3ad24bac24c5f1fa5707", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3533": { + "current_role": "paper_train", + "prompt_sha256": "afcafb5cdcf1480182f983252e7a93eb61c6063c9612c010f7caf013592931df", + "gold_sql_sha256": "b6829df4bccf3621e1eef7e1be3f0a8e5abd1d5a33d07aed5335aa29a176b0bb", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3535": { + "current_role": "paper_train", + "prompt_sha256": "eed8db7c275c9e144db3a34232edfe6effbebeac07b5e35c83bce4cf10f44b15", + "gold_sql_sha256": "d32dbbc481932fec49ec45380073e644786d206843177e6855e1d982a821d797", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3537": { + "current_role": "paper_train", + "prompt_sha256": "c747dd92465ec46b54ebfeeda246751307e33cb4680a05d01a9c67bfbe313967", + "gold_sql_sha256": "5aa619daeea721c1f53085f778b877398136aa4fa937ac73d32d1c84b950fbbc", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3539": { + "current_role": "paper_train", + "prompt_sha256": "da103c48cafddf31b0839b0537401e2d89ad1a89dff36fee8db361fae63791a0", + "gold_sql_sha256": "cb21b9650becb79759fcf4d7c4b186b2e3c9df96e5eb08d22fbd484defb8e800", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3549": { + "current_role": "paper_train", + "prompt_sha256": "9d95856c65fd9277bc2d0a442bf287912ae3c04526efb44f50ac6b4573302b4c", + "gold_sql_sha256": "2101d95b3b81eb697f080242c26dbc0a72b8168edfa17338429c1487b5042904", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3554": { + "current_role": "paper_train", + "prompt_sha256": "bda6d2c4975b80efaecf30562eef8cdedc2503fcb2c78151bbf5598d3d375147", + "gold_sql_sha256": "b7b16ef84695a35cd4c17f29776a0b3c1879a426bd52249347a4ee2ccd14fc72", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3558": { + "current_role": "paper_train", + "prompt_sha256": "e3448c900ed427129bf019771fcb75faa26a582befa0f7415826babf96d8021a", + "gold_sql_sha256": "6722d1d52775deaec6f4c17f3b8d8e27b7fc382e3e6dbbd8bf4bd13b7499b131", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3560": { + "current_role": "paper_train", + "prompt_sha256": "4b501da3ecdbc967f583b2ccca6aee7f659152ffd0cc294a0ddc220987c39d66", + "gold_sql_sha256": "56c0e5b4ee55e37d15c21f06b6d27db6f951e86bdb885e78efe4de3abdc18ea4", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3564": { + "current_role": "paper_train", + "prompt_sha256": "3ad072b98503abfb4cab1baf9812634ed359a31d65da81e4dcd887d880ab550b", + "gold_sql_sha256": "ad52106b014ef4c7e637fa07349888313fd8dff24db7c1335125a8a4382c22bb", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3571": { + "current_role": "paper_train", + "prompt_sha256": "c0aa42c1013f3a6a0dc612c16f62b30406f91ae38abbbd3a9a2a304e35ffffc3", + "gold_sql_sha256": "1283e3b2cc385adcd5c618dbbac7fae9c423494ee35dbeea2615ced67428fc90", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3575": { + "current_role": "paper_train", + "prompt_sha256": "dd2d557973226b32366852158b09535965e5ca4a8e0aeed2947bce04fd54ed29", + "gold_sql_sha256": "7b17aeebcad30dafbc9f42894cd8bfcb8c0a61c3ac4361e47662d215f211ce3e", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3579": { + "current_role": "paper_train", + "prompt_sha256": "28b37dc5c243b44204ed8260f66e50bd707c202e9abe8b25eceaae51dccab277", + "gold_sql_sha256": "8192accece9cbd2d4a26091cc31c06d702ec70cd204db89b3a3e5ef9181c996f", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3580": { + "current_role": "paper_train", + "prompt_sha256": "6a7c9876474afbfb86a1c6fc8e4bca36e35c4ff627d6e9ee4681ceca965741e9", + "gold_sql_sha256": "8939c2304dc783b796a25c852d3b054ecb92a8febf8318fd5dba5794e1861507", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3581": { + "current_role": "paper_train", + "prompt_sha256": "e983e32467e13b51adace5a57175026002b5d4f3fe37819fa9c574a662b45542", + "gold_sql_sha256": "578fec09ce3bbd28d3a44c827d189ca05d421d5f79d6e46fae584331bf3e8125", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3584": { + "current_role": "paper_train", + "prompt_sha256": "59bebedaccbfcbf909fee23eaebcf9a3d701093c7460b4e4fb8bb93d5640add1", + "gold_sql_sha256": "3f83b71d7558a06d83a1f54022239fd6180ad541c2631345be8f281607d2c6c9", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3589": { + "current_role": "paper_train", + "prompt_sha256": "20a3534e593d2027e5bb1a771fedb7b1cf4b20a765aec62c1819b6a0749f1a6c", + "gold_sql_sha256": "6f79b43607ff229fc4e84223efd9066f63a76a51c5be904f49049c5b3417b46b", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3605": { + "current_role": "paper_train", + "prompt_sha256": "f3bc0a6ac14c8a00dbfe1b5a2179e4ba17c1b36fbe85b48ea190a22fb1121a83", + "gold_sql_sha256": "647d46b450ce7e944d0513383b09b37b2f8705558c981e70d84bfcc52b457c61", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3610": { + "current_role": "paper_train", + "prompt_sha256": "fdb4027b7619c47be98d2cee631a078a47f1666c2ea38b33b1cfa6758ccf8919", + "gold_sql_sha256": "db53aa2193908eb1d03a5e0ab5f022f9e2b665fcf7eeb7b6ddfc8d7b6c0a4dd6", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3613": { + "current_role": "paper_train", + "prompt_sha256": "53803b56e11478440a94d09a85b80676052977932c0257dbe7e84210b9b3a680", + "gold_sql_sha256": "035bb66820bd525f3c818cf8610af0f4e98042a247121f0946f918a8e8d0546d", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3614": { + "current_role": "paper_train", + "prompt_sha256": "3f6eb1eedbfb5a383c4d07f17b1bf9f2e7c9f7fb0f1d2686099a7dae604134e6", + "gold_sql_sha256": "8845dd2df865bbde78aac8b39b824d8962680ab92c604914a561df501a0dfa01", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3631": { + "current_role": "paper_train", + "prompt_sha256": "2af44671eae16e8cd322729af8489a798ccbd545711a7a7f4591a2ceb7b4ff71", + "gold_sql_sha256": "f91f374a434a24beabb8f275d167ae5aca5ac38a7eeb0af232acb6b72339d280", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3633": { + "current_role": "paper_train", + "prompt_sha256": "bc408ca8a443fab485848864d2a102c846c8858eff6e040327bd09e1efc64d98", + "gold_sql_sha256": "6d0c063dc5bcd65ea7779c1ee729a3a720366b69fa10798e3633b1067f712d2c", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3648": { + "current_role": "paper_train", + "prompt_sha256": "c2960b515e0e44b78045072b4309d0dc47536796710d3769e993f9caffbc5227", + "gold_sql_sha256": "8f6f39b53f5a478738203b2eb9f30c1085262c85ed17717db4b9671e0b480ed0", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3670": { + "current_role": "paper_train", + "prompt_sha256": "a08bae7b6a441aede8cc60be7ddd59e00694f27e618fbca4679906c7a06993a6", + "gold_sql_sha256": "735e4d0f47082c6c75e7d2b2acd071594ec062da48e5070d084a295f76d258eb", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3673": { + "current_role": "paper_train", + "prompt_sha256": "89767d94f4677aac571ef2e5aca20e0d1bf1fea8c89bbca70901fee0c451df0c", + "gold_sql_sha256": "b03fc859760633d486f7c709567a73c2573f4030105d3ca30ce940bcb72dba71", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3679": { + "current_role": "paper_train", + "prompt_sha256": "9eeb6f75000206a2e67fa09de2a99f4ffb6eaf589df09c84f98b3f856d36ebc6", + "gold_sql_sha256": "fe328bfca34b5d1209592e47c95387cc497a214015d0f55dec77e887b8e77a2a", + "database_sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "revisql-train:3686": { + "current_role": "paper_train", + "prompt_sha256": "619afc033ffd887290f4959378811beb3008326d5250991b427cee5fb47a656c", + "gold_sql_sha256": "b9a55cfd6199c2675e26098c65651e46ca04c733f39d238035e01a8d4840e4f9", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3688": { + "current_role": "paper_train", + "prompt_sha256": "75d6ece177e52466f3b5c3d0d087ae8ff6b84b4cbef0ae37301ff0d576f82464", + "gold_sql_sha256": "22637bca997e656b3ed1014906d18aee9cb6172aceb49b31f58b5d031075830b", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3693": { + "current_role": "paper_train", + "prompt_sha256": "ee46d53b2e0e8d0430813ac69d9a4ada4b637456093e4e9a97ed5069947e70ae", + "gold_sql_sha256": "8423766fe50fd80507ede110e9401b2c211c5bf006658328dd179460aa9ec5b1", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3694": { + "current_role": "paper_train", + "prompt_sha256": "69ce723c07a4127c7a3514bedbb9f10b938e00053723bf00d3ef857e5c08b3a0", + "gold_sql_sha256": "6703becb356df28a858f54caba75b6f1e3bac7a1cf79ebefa85f67290e544f10", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3695": { + "current_role": "paper_train", + "prompt_sha256": "928d10e0a7bdf6d59e7ddcf652778b89ea41f2af9d1c4930ab7890d4ab9f7b03", + "gold_sql_sha256": "223c348194f2b6c16207db13ab8fda2c5c326a042f36de7088233e03672d79ff", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3696": { + "current_role": "paper_train", + "prompt_sha256": "f18fd8e9c993f3d8802c6b6da2f819ee6949cb6180a8c7e11b93fcdeb6a87bbc", + "gold_sql_sha256": "e2a61e1584298fdaf5b59e4ee6566632781e941991338e479151edb7213f46f0", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3699": { + "current_role": "paper_train", + "prompt_sha256": "3a78ba0618211f04bffc01cc93d23c8768c3a1a129cfc5a3c740aadef36a8ffc", + "gold_sql_sha256": "bb1a0fc7f3c51d2f35491b460a1341159039d678562aa62723da8eeff0953c86", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3710": { + "current_role": "paper_train", + "prompt_sha256": "1011497fa8bc7e789d06255d7c5a3ea8323783338c0aac2556e55fdecbcf0923", + "gold_sql_sha256": "5b9dec944a7497a8c454edb2cbd4fbb1c1660a4b38304529a3e649e991287f0f", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3715": { + "current_role": "paper_train", + "prompt_sha256": "34d92dafd9b3a8607a52102539bd4c11c908a8aa5269d8e7d7c9e717d8b863e2", + "gold_sql_sha256": "17178c065b2110703a8e5b4f9e1dd904066caafea542c4f4e5b39c6a05d436e5", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3716": { + "current_role": "paper_train", + "prompt_sha256": "63738f3086bf4a707a1cc1b08452d4bbcf8effc1237458a7125bb68b139cbb39", + "gold_sql_sha256": "83bf8577234383d50abd002c563ee6ec52d633f9f97c74a20616ecaec34c0394", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3720": { + "current_role": "paper_train", + "prompt_sha256": "4bc36d2a863f6ebbf295af4fae334f9983b58a00a280e959a99043a73922413d", + "gold_sql_sha256": "99bfb85ccf729e7b9f7cd9e91afc17176470816f8f816ef6d344f1f2812c05e5", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3725": { + "current_role": "paper_train", + "prompt_sha256": "7cb69b4543805c196d42ee6992eb17e2ec121faa581a5a005e289c25f1bce2a1", + "gold_sql_sha256": "834d3e7d65c33e91198c75f135f61c63ca755ca2e8549d54a1b8068620413026", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3755": { + "current_role": "paper_train", + "prompt_sha256": "5ddb8a41d86aadbe280566c781785e972c19e35c6350f4776dd7577f76288f6c", + "gold_sql_sha256": "f1c2165a884e10f9c05aaa7d7cb57bc52fb545bbd771a248f37b65b14262eb38", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:3757": { + "current_role": "paper_train", + "prompt_sha256": "91bfd1b8cbd022ad791fe7c49197e6e056ee7db4f011e01ed3d69197876a2da7", + "gold_sql_sha256": "52d271224d3a8edaa6aa65fa7f91719be5f3c644653cc8f732868b33d3713599", + "database_sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "revisql-train:4144": { + "current_role": "paper_train", + "prompt_sha256": "a76c1812afc94b051587b54d8d6b5db7e99910efd21c1d1d1bd005a20b5d1740", + "gold_sql_sha256": "58e87a3f51b59aa8f138820653c894ba1785c7feca6efadd76f4b27a66305df4", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4154": { + "current_role": "paper_train", + "prompt_sha256": "9578c02fc331cab8c88b904fcfb19d4f94f28a756fb86e4ebc7fc5f00cf410a7", + "gold_sql_sha256": "206cb01404c674bc6bf1ae24d468aa5b72c14341dfc3b25fa19eb03b36dbb93d", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4155": { + "current_role": "paper_train", + "prompt_sha256": "7b0236563437abfb873852312b1888753bbd1016221dd4917c62db37ae18d6b3", + "gold_sql_sha256": "4608e141206ec49d804088a6a3734862dc462bac0b6c5a1ae7450ef8aae7b1cf", + "database_sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "revisql-train:4624": { + "current_role": "paper_train", + "prompt_sha256": "e237e4a4a52e8091bb87e4c29a14327cadf6cef7f7481036dec608a1f12d370a", + "gold_sql_sha256": "7f9585ebc383ed52bf15640faad6b8fe1e23394754289a458764a59a4ddf5fe1", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4632": { + "current_role": "paper_train", + "prompt_sha256": "929adf2024634d324c0739f6c455bc4240afadfb5525a03b1996cece5c1c8f5b", + "gold_sql_sha256": "d81d66bc717ee7de9e89eed3fb13d4500e10dab15acd3dac6abfc36d83ab6a3d", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4633": { + "current_role": "paper_train", + "prompt_sha256": "8722523c1cf5c7672cb4f755b7a66ed160973c985c1cd60ed89e565032200ac7", + "gold_sql_sha256": "db2cfbedd801e9d1da619543a6b6f20f2e076fdf6d5d6cb7eb3627c42a0c7dc5", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4635": { + "current_role": "paper_train", + "prompt_sha256": "09f0131b8ac08804c8c27481e2cf1fc200a33798fd357f28c75fe5750d3ad3b3", + "gold_sql_sha256": "0ea77fdcfabd882c08d715c89d46231913c702f9a0dfaf64c138e918f7b4824c", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4636": { + "current_role": "paper_train", + "prompt_sha256": "884a298c3e2d67bc9ffcd0e27277d4e8b9c41c1b1cf804d575348a1f687f6402", + "gold_sql_sha256": "2559e85b56448900dd7ae6689dc161a6cc7cf0e0d6ec952d0fc1091d07ea2ac1", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4639": { + "current_role": "paper_train", + "prompt_sha256": "dfa746d6b1b6888b209e59d4c20634c25fa56c63d43d9121b6bbf1a3f213d65f", + "gold_sql_sha256": "150d0ab2ede6bb6efcb63c564f5e76afaa7cfb54f8ae3b041e4f8a882d9ad83f", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4643": { + "current_role": "paper_train", + "prompt_sha256": "3a1286d294567b8903fa1586aae7ea239543a0a32b42ec2c82197f51469c7779", + "gold_sql_sha256": "248404e2b541f9c7585ddcd95c99a47813e95df11d865e45c5c875e61dd54222", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4644": { + "current_role": "paper_train", + "prompt_sha256": "4bcf02da30826ee33983403ac336d99b29df9c3b1c5a470d5574e05934090884", + "gold_sql_sha256": "5effb48507bd7da190063d21ea68fb037c71d0c912836f514fa4e836f3f2a578", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4646": { + "current_role": "paper_train", + "prompt_sha256": "37592c34947e131002a0370f937263b3235626fc2a170f51df6cf3b31e4cf2e9", + "gold_sql_sha256": "24e32c30b956a3dcfb0ad43798f2dc60e7c200b97fc6a5a3b19406b4e276522a", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4647": { + "current_role": "paper_train", + "prompt_sha256": "835653e187493554719c71cc56fe24f14848286b335b46529c8540efb9c58eff", + "gold_sql_sha256": "2e6cb9eb7f2988e2abd13145056df2ff6cfba799379abbbe42ec4df56716558a", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4648": { + "current_role": "paper_train", + "prompt_sha256": "8dfb15ec50b0dd73ec36160c08e2597cc79cc9d67cbfc8699ca1c1394b5afd52", + "gold_sql_sha256": "7182bdb7fdbb6e882a74fdf87201b22b202ed4b364af78690e69e37943afad25", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4656": { + "current_role": "paper_train", + "prompt_sha256": "97de795ef4eb3772c554e0669868db22d2828080fa95cb8c02be0e59a3814b3c", + "gold_sql_sha256": "fe7ab2d70e49a08d2a0f02598c68ab5b06212dce72c867ccadc584b70d599220", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4669": { + "current_role": "paper_train", + "prompt_sha256": "0cbfb427dd36f78dd9be29b4dcf9532cad2c974062db88217002d54f17e2a849", + "gold_sql_sha256": "cb441219ce21886d94167acd48be12b807de4bf0911d45f936d712aac224e9d8", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4675": { + "current_role": "paper_train", + "prompt_sha256": "6ede0099f5ec028fc2248ef5869753f3bbd08b27eed7b9cd29127aa20abddb19", + "gold_sql_sha256": "f8fabf8b86517a288dcd32b338ab071f3a12ef02784af68198be5258303781db", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4690": { + "current_role": "paper_train", + "prompt_sha256": "4e83a4d86e8bb81089803f5d6e1badbcec3602aa5a6a33fdd1c7f012b65d86c3", + "gold_sql_sha256": "2d387fe05711402f68ea835b020158f67f6f1ea0fb75b291157b3098d95dbbf5", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4691": { + "current_role": "paper_train", + "prompt_sha256": "4a3c38624fdc7ceb1f8508590c333ff809d736e6713e999225189264bad81211", + "gold_sql_sha256": "2f74d3d7414a6dc1e4721b753d3ac1a3eef12175854999c5589dbf86a35fd9e9", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4701": { + "current_role": "paper_train", + "prompt_sha256": "57e030e1df987c4addb5c5d8f496d08cdcb7e2987061211acdd269f17971b68f", + "gold_sql_sha256": "c756e12c30161ea91512da232b38f3019ba70b5486afbaa518495be2225297c5", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4719": { + "current_role": "paper_train", + "prompt_sha256": "b248b6b77236a63a8bd242f3f1902aba52d7c5731cf74250049d5189f2205b2d", + "gold_sql_sha256": "a143177983c944d550e7497d328b92267aa21be4dc7180a970468bda67a825b3", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4721": { + "current_role": "paper_train", + "prompt_sha256": "546ea14a1e4f4abdb0addadf89a172b6a9fe1abed252cf6a10b4ffa82ee17a99", + "gold_sql_sha256": "e6bbf13cf126719533ea91a2786e1170c3b3d555e0c2079cc609e4260986ca16", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4729": { + "current_role": "paper_train", + "prompt_sha256": "e9d1fc67bafc885e736139845772125b361cd9b4461ccf8a78838ea0164ed089", + "gold_sql_sha256": "7c6b7e2a08ad08031e2074ccc8ae6d35564b1948864a60af29344f5e961627fb", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4730": { + "current_role": "paper_train", + "prompt_sha256": "a71fe04358d22e0dcf73841eb609830c7aae74441b97fe58f938bfdaa369ec71", + "gold_sql_sha256": "f13b837e80fe142305a2e7321e9a70268f38d254bcf2bf76d64e5f2b8a74c531", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:4733": { + "current_role": "paper_train", + "prompt_sha256": "18689e6e34a78fbd1509fb7843884f769729405bfcf4c4716690e9994e1f1655", + "gold_sql_sha256": "a35e0007a2061a837f5c6cbcf959c9fa633e3b433b58a9d5485c9bffc7c7a376", + "database_sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "revisql-train:5088": { + "current_role": "paper_train", + "prompt_sha256": "6f862ed50d22c46a10e7087a182ebd926c00d2cf8bb5670d6a3d5715dff139fc", + "gold_sql_sha256": "abe7c3b380313253f250bb543a95b33bd702c46311b35831851aeef86c9d3a98", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5097": { + "current_role": "paper_train", + "prompt_sha256": "47468aea89e6efeb459674ca7a32d187859e9a1552d876f4cce65025b3d0039e", + "gold_sql_sha256": "4476aa375603d32364b3053b78aa49d25e794360e9a99b19f1dfe208441b2b85", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5108": { + "current_role": "paper_train", + "prompt_sha256": "f5587eb64fc444540f478b67bead6adbcbf462d7d02a96da29e3f84a01b62845", + "gold_sql_sha256": "2f2bbbc526e6ac3b0ed99a8119300d161f188f2bf46628e26508367378acb350", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5111": { + "current_role": "paper_train", + "prompt_sha256": "d9fe5ce203ad8e628841e55f098bc10cc95b8a2bd3783b2cee4c51e4e0c6313e", + "gold_sql_sha256": "6d8ae6f9a284d8747f9ab9604456e23e57f3ae1cc2679e54e3bdd9d57508208e", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5113": { + "current_role": "paper_train", + "prompt_sha256": "ab6e19b54b0259a33b4c1a54e568aa88a96b94db50aeaf19d393735fa7ec3863", + "gold_sql_sha256": "79c1ea04302dcdc36564beadafca20de9db7293fa9260d07f9ffd8c65ad715de", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5116": { + "current_role": "paper_train", + "prompt_sha256": "22dc1a1d35b797eb199ef6e35e6e78a73cacfe5d19f392ccc2a550fc1c957383", + "gold_sql_sha256": "dfd891bd21a6133d6e5d3614b46f76d27f58e62847bb4bdd2beb77bbcee02ab2", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5129": { + "current_role": "paper_train", + "prompt_sha256": "7f7e3361962a072344e7dad2dcded9c62f619ebeaecf5657f7f55223d3f09c58", + "gold_sql_sha256": "873b0607b1cf72c5fda5bad48927edc519446429cf09670dd01da302b8641f88", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5136": { + "current_role": "paper_train", + "prompt_sha256": "378cc9b76f450c28ee152422c41887d8bd2ace1eb38d721a486e9fda8d8f9d7a", + "gold_sql_sha256": "f0e4a0c746ef92c5939f543e731362b2208bf6471516c7cc7a429d559d223590", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5141": { + "current_role": "paper_train", + "prompt_sha256": "6e5620d456f46b97df2f68915a1239e6649bb08e4d09aa885f808c00478d6ef6", + "gold_sql_sha256": "13cd2e2e5d5d236a2693253d87670d757be9fd456590fddfb4e29cc535ef85c4", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5142": { + "current_role": "paper_train", + "prompt_sha256": "81f5611d1789292468dcef068bbedaf09df6a19091e51fe9884365e847a16528", + "gold_sql_sha256": "e91905150282bbe01c6f6d7a55a000497073b13929b9f4f09fbe0887768f3b2c", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5150": { + "current_role": "paper_train", + "prompt_sha256": "cc06be06bbcbdb907553600bf62481e78e1304cebb8e7a37fb71c1621516a160", + "gold_sql_sha256": "76197cd90b500cf58524003c46711d4a0221d855684b8c05dc4460712bf9c96a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5160": { + "current_role": "paper_train", + "prompt_sha256": "3925b13a9f422a20d6dd05c387e87e22e82428037a129358d1f75d167b6622a7", + "gold_sql_sha256": "1dc4350d81c245a2250b36cb95a49f06977fe5bff0a83da00d53dc3b6b77b8bc", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5170": { + "current_role": "paper_train", + "prompt_sha256": "461b40e3e5e37887ed49631a8facf6328ff9c65da6693de3e0421c26c8a58b75", + "gold_sql_sha256": "2543faa418d0fc2013682236a81d9395f4730f1694f6a855f7a333ef08f4ac1a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5173": { + "current_role": "paper_train", + "prompt_sha256": "95d834e1d4810a5dd080e45dc0a199e0a0b25d2e8814a0c9fd5e6683fb380746", + "gold_sql_sha256": "793b7a571558e5b43a767d4b9fad6bd54d8c7537c2fdafcda036f94c897f22f3", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5175": { + "current_role": "paper_train", + "prompt_sha256": "7cde6868e1a53a3ea9fede7ffda284207c2513bbd506535b7f12ca7b3c1be2f8", + "gold_sql_sha256": "5451038b9114be26eff120027124a81e97c3b80614d30dc49a320fec4766b1e8", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5177": { + "current_role": "paper_train", + "prompt_sha256": "0547b29479c66a51ab1eb4233952563439f7330c5615e31d035fd8b15ffc405e", + "gold_sql_sha256": "391f3d91dabf260060f12c11772c90f67bfb14851b2984220716929dd070cd4f", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5189": { + "current_role": "paper_train", + "prompt_sha256": "d89111c9f038a138e7778ba1c0926ecaed2f1aa3cf6dc13256dbdf1e163f6a27", + "gold_sql_sha256": "d8d66aa252cf5e535d50097a8ee9e3717912e7f5d02eff52de5a8f7bc2805387", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5191": { + "current_role": "paper_train", + "prompt_sha256": "de2a1d064b002b919145afa3fcb98f170041b3416f985fad52a0b30dbe556381", + "gold_sql_sha256": "328001e6d201a5fa5e9e214bf95d6107a8c3a7fcae44c8da00dc6252f559d06b", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5207": { + "current_role": "paper_train", + "prompt_sha256": "9d8b1df0e8f2e905cd5d30ccd4bc4a8537004fee6dab225a3822c05a58f8a5a1", + "gold_sql_sha256": "f8547c43f7631bba947e5a885cb8eaa940db248bf4727afa4d417b29e2dc2be9", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5214": { + "current_role": "paper_train", + "prompt_sha256": "fc5fae982e819ae6a2e4a93e1ab184882d99958f04e8e4490d18d54c3c4c51ca", + "gold_sql_sha256": "8a72c011fb5d9f08f78167ff0a37d31676ea7895d7e4065fcffa3f417c67cb95", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5219": { + "current_role": "paper_train", + "prompt_sha256": "a4ebeb0efc8f0c8b132bab9cf7d787d7472a9f5375f563f94d6c914a5d8887d5", + "gold_sql_sha256": "bde034bdf86dce29fff2af61de1b02e4636663e8720c4975a7870414868ec37a", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5229": { + "current_role": "paper_train", + "prompt_sha256": "345d3c18d223c5cba1d727815048658ff0037cbe4a7c42b9e35a61537374bbea", + "gold_sql_sha256": "8c2001358e10ce67489c04d5a807df6b079bd07109a9056983327a67b7512cd2", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5230": { + "current_role": "paper_train", + "prompt_sha256": "f915cdb52e1beeb457b63eaf2a854b28da4ba9f596a8feeb114c8122d1d93190", + "gold_sql_sha256": "027be510ce0826f88a155624969914519c249541c2b541c28ba2584d0c110811", + "database_sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "revisql-train:5238": { + "current_role": "paper_train", + "prompt_sha256": "466fb201c563cef465eedc56690f582bbd4dfb8a2dccc1c052392638b2db0c7d", + "gold_sql_sha256": "d0c468e2249e9e323d4ed8fe50224fb323f45659727f921331c0fde35a06f321", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5248": { + "current_role": "paper_train", + "prompt_sha256": "e6d7923acf12c7003dd35bc49f52dada5dcb3269d639663a0d16bc2e7c8809de", + "gold_sql_sha256": "cecf04ef5ed732fecaf57e183900b4a9759c6d98080f3178730e61ca7a999fea", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5249": { + "current_role": "paper_train", + "prompt_sha256": "4f0881d9b480d988be574dea8e12d1d84143215784ebf6ad057e544943e2c084", + "gold_sql_sha256": "4fd894d77968ae57e4c98c15ae7f834548e1f0c71a65229135599c26420a776a", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5250": { + "current_role": "paper_train", + "prompt_sha256": "bbb91f98c3050e97d5fc847b92df7e7d4c2165943e758923fa7080b9bd625b27", + "gold_sql_sha256": "6f27a137bb0dd4cfa6d9bb07c433a7d755df54f561f18238a28f3c5c1bd81e1f", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5262": { + "current_role": "paper_train", + "prompt_sha256": "0cf54d3718d8601177eb8cee72cb54d6f1a046e02ec047a66f4d43542930b9b4", + "gold_sql_sha256": "cb8559ebfa7167b5e8294455d3ec651ae06891b99d27bc4ce5624e2c46f138a6", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5266": { + "current_role": "paper_train", + "prompt_sha256": "0332e50f90b8d9e444c89aa281f4826e761a92cca7caa014d6a0fb9cca5acfc9", + "gold_sql_sha256": "3043057829b25fffb83a35897c59b7f7978803439be24168397a0e21d4490ed7", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5285": { + "current_role": "paper_train", + "prompt_sha256": "9314a07e1c55e1c8267cf014d751500aeb77a4c9608b530491b16d0b5bfc68d8", + "gold_sql_sha256": "3c489a619e7c073ad1356eb53b87b37ce63283ef302d957d598b509c15142bb1", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5295": { + "current_role": "paper_train", + "prompt_sha256": "385e176f42b59d82a90a1b81799efee569f3de8ea912cd10b5f4e93c53137808", + "gold_sql_sha256": "e9720056efc0383cf61ac1fecde4a32a3bd16d4e95903438b1db10bd8ac23320", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5302": { + "current_role": "paper_train", + "prompt_sha256": "15e87dbfbbcb503e201adea06c6e33efbde242f805fd178a47ef8689123e6668", + "gold_sql_sha256": "c2ad47fb4e1d3e2cc1e17b26e7d2c02bdfaac78fe5fe9c024d0a39dd64a2de14", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5304": { + "current_role": "paper_train", + "prompt_sha256": "96632f1f9b752b560782f850325c68096d59a4508efd9b0fa557bdfcd828c5e7", + "gold_sql_sha256": "6f552c36f17028458a2371566f3943691f8a6198e187680b010762fe1e51b5e3", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5308": { + "current_role": "paper_train", + "prompt_sha256": "bb6cdcd1d5f6dfb762b432607219d2bdb326fffcbc690b0cd94adf54f972f2e0", + "gold_sql_sha256": "04a585be008831abefde5834222af9234d6023bf1f523157938317b50ee67f10", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5311": { + "current_role": "paper_train", + "prompt_sha256": "e565b790ca99d32f894e16de470139b16c51782361f060b4c364bf8aaab5d286", + "gold_sql_sha256": "13addfa69696e8617e1793247b33b94fa020938cabc66153217048b40ef02f15", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5314": { + "current_role": "paper_train", + "prompt_sha256": "2ba50892710fddf12c0a58dbed39293766364c6fd6e2edee488ba071698af19b", + "gold_sql_sha256": "be01b3b326972ab5a6649446a4c93db1bd1aeb5c05a737c5c01b48e501ddbcd9", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5326": { + "current_role": "paper_train", + "prompt_sha256": "feb620e4be8e9dfc48758acdb842255eb8cb67909966125a4f055fa176f3ce2b", + "gold_sql_sha256": "4d9607e3fe2a6f4b45747ce1c85d1a2b14f9e68ad77b134075ca0d2f7706d2ef", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5329": { + "current_role": "paper_train", + "prompt_sha256": "101c1bfb28f4d8b6c29d552c667ae10f91f6f6334757c453881b9a39fe21b913", + "gold_sql_sha256": "57c84b2d5ee08c726afc46ff1e7942f91efd5c9ec087fc047cb60272fbbb3564", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5332": { + "current_role": "paper_train", + "prompt_sha256": "66706af57e79634b8cc5c0c0ea42dec68e5e25903ef0f734533fdfc331ab8c95", + "gold_sql_sha256": "8830c14d2ea6afcf2e69e7b86f34f235d3fba3e9b48ce14bfbf89514cc1dba8f", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5335": { + "current_role": "paper_train", + "prompt_sha256": "5aca439ca87e4abc18e04855e07f4ef64f32d17985b47c1d231d03952e056e52", + "gold_sql_sha256": "926dcb89f3971a9612928f22f6ec951e3be64f47e45d20810ccf55bbfc0f9c22", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5337": { + "current_role": "paper_train", + "prompt_sha256": "9becdb6c9210c4629c87169bc8af7f21bf572c0e748832a910c11e5409a76b28", + "gold_sql_sha256": "58f48bbfaa79486fb3c704f18f2f70795c9105935a69404046a24a827c87a316", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5342": { + "current_role": "paper_train", + "prompt_sha256": "da732b618a97f1ecd8177feec13f3a797aa82bcf660ae393b9bc252823b52d77", + "gold_sql_sha256": "f22cf3d84ecf0265ca15c69b8a5c1094bec4e1bd9f1c377cc821e6eeb3dfe4e2", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5347": { + "current_role": "paper_train", + "prompt_sha256": "50ec85f379dd220656d0c08cb57e87d94bc5a1432ca7aeafe3f4163396d6714d", + "gold_sql_sha256": "2315122d937aa08458b6e26bb2c0b856b59c201eff77eb398f73ec38323c4164", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5354": { + "current_role": "paper_train", + "prompt_sha256": "6695505a22645a36ce5fa32d4586367e6a97eebc4cd64221e0fff116cec9b938", + "gold_sql_sha256": "eac1cf40b882e5cbd1cb673ffc970f0f2525fa3b73d010b604dcbb7ebe067455", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5357": { + "current_role": "paper_train", + "prompt_sha256": "29c3a4c9a8b0e9907a4234ef6c1b9cdc1e6bad22898b80b4067fd482bfabe9a5", + "gold_sql_sha256": "12777be3d9982e56f283ad6af2567ef0f59fd11827a761c53b4e093e35cf0cd0", + "database_sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "revisql-train:5822": { + "current_role": "paper_train", + "prompt_sha256": "7f509f6d1f2545508753b9027ae7bc370ff632e08d53344eaf8bac54667670de", + "gold_sql_sha256": "ce2f083da01be2b98a241d7f428e8de7a69c5b8dd1e7cc12773f122caad190fe", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5828": { + "current_role": "paper_train", + "prompt_sha256": "dc46a7b2a5327fc3af1691cd16fa49a83d61b347707329553fa62e20228a15ba", + "gold_sql_sha256": "25ccda4256572f75bced4610d0a7dafd5f01f2e31410b643fdff0dd3adb09418", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5831": { + "current_role": "paper_train", + "prompt_sha256": "a18820c2e8709050e6e7b6255bdde50f0b772a8b6654689a0c1696193a7bfcf8", + "gold_sql_sha256": "d16a47bea40ae71111c16335b28221179340c2f23015ecb781efebecf4e2fb01", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5833": { + "current_role": "paper_train", + "prompt_sha256": "b282bba6c49c8df93b2c0a50bc169b9d46b5b7044eebdbbd04d9dc018eef96c4", + "gold_sql_sha256": "b8b73a54c3887d4bbb201367c6e65cfae6dbcdbfdf1d091b6d022f4bead22875", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5840": { + "current_role": "paper_train", + "prompt_sha256": "f6b7fd78e876da83cc5a63d537ce478f75f494b94133fdf2e8053a8acecc0db1", + "gold_sql_sha256": "b571afe6935c0c362c06f74d3bd6ab93855206e7cc8deef27836d977f9167788", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5842": { + "current_role": "paper_train", + "prompt_sha256": "3deb3d47db6f9fa4e57ff4b6a33b66ea285bb7a9122bc791a17d266bdcae5923", + "gold_sql_sha256": "671e695e8f2eb3b77cd94f1f42f718b601183befc8d7003cf1f54dbd3b74201c", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5847": { + "current_role": "paper_train", + "prompt_sha256": "6bcd63bc05f055ddf34b3f5e44bdef93318f6af6d6c48a86338d8fcd79346fe1", + "gold_sql_sha256": "3a82abc017424187d9a0961c31cf6cf64d7c7e473fd32372a96eacae9e502a77", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5852": { + "current_role": "paper_train", + "prompt_sha256": "a1503ec2b04b3f870bb2a978d9914c6ac25305d96fa9d4d9f31fadffa4694b20", + "gold_sql_sha256": "a9529d8175733cc716ffa349c7ada4682c5707b0bcc184795a57383ad98e1e5e", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5861": { + "current_role": "paper_train", + "prompt_sha256": "d9607064788aafd67f97c06b12d9c42d2891ffa405fc6add2cc2c50df76dd6ac", + "gold_sql_sha256": "ec7af4fd687a0734e9a58cb90dd186a6f29bd86c4135d49b841ba505c78b63ed", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5863": { + "current_role": "paper_train", + "prompt_sha256": "51ec51c99d749245c9081010efa5955d3954faba5bb01de80ad9a89011a5c194", + "gold_sql_sha256": "00ab30c78baa1e0064a387626dee9900d58c67f0f30faaeba5d994811aa620a7", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5873": { + "current_role": "paper_train", + "prompt_sha256": "24cb69c9a44d16a80df6ac840b93a4053af9fce96ef665410c2a29bb32576e41", + "gold_sql_sha256": "2cfc64c36aa8bea00eb41e9cc8cee92813a548273b97f0e767f9fb832e599cfd", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5881": { + "current_role": "paper_train", + "prompt_sha256": "6acdd31bbeb998a35e8e52ec8e08b855e07521a58bf241115681d0d026056657", + "gold_sql_sha256": "8f2127b509e5524e89d3b3e4fe1677fc7c243b53e2c0063419dd508735d575ac", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5882": { + "current_role": "paper_train", + "prompt_sha256": "ada9d0077f22299d736ef915b2bf7c15afe60f0c10f27ffaf37f6400ff26de54", + "gold_sql_sha256": "88f040732d4725e4097a2c64c2d6e8630884de6e3cb4193716d9e2498370e7ba", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5885": { + "current_role": "paper_train", + "prompt_sha256": "2584a99a2f973b598679bcc402083435b844badf72eafcc6e00187236a760cba", + "gold_sql_sha256": "5e1ff30622b86e57d1c33568da20789621fc2b2e86f092d921343846005a0728", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5886": { + "current_role": "paper_train", + "prompt_sha256": "1bd6ebda7ebc4ffda69921f708b6701025b547d65fd0681629c241e4034fa325", + "gold_sql_sha256": "c407036cb9e75016ecb8f9a23c75050dfe26bb93570d04188b88b7b17b633298", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5887": { + "current_role": "paper_train", + "prompt_sha256": "3082841e2061ee46582bba879a8ba7b8b32512d6e1c8862631a5ea7536555df8", + "gold_sql_sha256": "786c1cd4fe5ce4d22687673f678766b056a84ce8278bda68283014db0c656c21", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5889": { + "current_role": "paper_train", + "prompt_sha256": "99c707d7bf17065222d029725cfe5a9dbeefa1c640e0dc2a15c85b4f10f15058", + "gold_sql_sha256": "a9efe93cb1fd05f3f544b69f728955b4299417dc728e4585e1c18d514f7b0c52", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5891": { + "current_role": "paper_train", + "prompt_sha256": "6a6f3b1868872859195f05892a1fb83c4ca1ce8bfcfdc10bf781a05d1274b32a", + "gold_sql_sha256": "926863bf692c20f1852854075b149c2485c169554bfefab825cd107dded23ca4", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5902": { + "current_role": "paper_train", + "prompt_sha256": "a2be5d6edf9be722f5a832fdc5b31925a730a710fe63b600807133f4761a73a5", + "gold_sql_sha256": "ae91beb70a1e5c6de7098728acd28a44316e4b9bf86526d85ffeadb60bd0e7c6", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5904": { + "current_role": "paper_train", + "prompt_sha256": "9871c326f46591f3bb0bc813bbf53119a4117524e9354e3a372fba5d81f841a8", + "gold_sql_sha256": "2156a719d836d66715b85ef10ee6e5f7ff0b917231d2dcde2e28fbede5b7433e", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5911": { + "current_role": "paper_train", + "prompt_sha256": "cd16d11bce1dc33980c6dfa9cf30ba0923bd67be9164f8e9fc5785fbe252e4df", + "gold_sql_sha256": "80ea0e941864e7ed8a11c7f15fe953f5b6e55a18d7edc1d08f0608e197a95f0c", + "database_sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "revisql-train:5913": { + "current_role": "paper_train", + "prompt_sha256": "6bca3d7a59784e2dfa5e4d707cb82f7cc1d5d17574e20078c32836484915838e", + "gold_sql_sha256": "8bc138f9f824e78174e890923d9630009e57c60f98739d3191a36fb637686822", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5917": { + "current_role": "paper_train", + "prompt_sha256": "f6d748f91098fa12cc0958ef5551e5edfbe610f8d52b921003aa20a0dfbf3669", + "gold_sql_sha256": "9065fb565be723e4c462918c8fe2ecd06f7bfdd867df25f6233fbb05c0e5cf45", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5919": { + "current_role": "paper_train", + "prompt_sha256": "1efa513572c9e88065238271662a2ce6bc4d2b77e3dcbbd298621b4b09c16b69", + "gold_sql_sha256": "66a931c7ab5d7b2457d6f2c2b5ae8b37125c7497ce3fe476865ab30583275b13", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5926": { + "current_role": "paper_train", + "prompt_sha256": "39aa767ffbd1e02cb2aa3c95f6ac72ac1f5d863bf8946383811d3753a6a71419", + "gold_sql_sha256": "c9a394f5310b410d58f205f6a1c18faef1655e81ba4bf68ca74d5653b432f4d7", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5934": { + "current_role": "paper_train", + "prompt_sha256": "4df3999351cf65687b8706e8f139684132ce53f18fa483919bf85f89ed3dbb58", + "gold_sql_sha256": "8d57f96049dfec957a5dc770c3a56a68fd3d4844d8fa9dcf9ff190e51991b94c", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5938": { + "current_role": "paper_train", + "prompt_sha256": "f8ddf72b6ffaca11e65f48cf6c399a1be59097cd6ec496ba367b25c7e5d2244b", + "gold_sql_sha256": "53cad63c89a43c510663b00ed0918ef60d307b7960da771d84122656b5832876", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5946": { + "current_role": "paper_train", + "prompt_sha256": "55a1dba0e02e4f2b6664f2f3c85846e742dee4abcd58bf8031d31ebfb44af105", + "gold_sql_sha256": "3227be0a77efc9e8b506f75edb69f66fc9d850599dbd82e7c4c3e4e1837eacc3", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5947": { + "current_role": "paper_train", + "prompt_sha256": "86a087f7ec4533ff20d3e91ae91690a4f9f95a4489a7b47647930f16be979c8f", + "gold_sql_sha256": "d994c8b0d1b46150ad3551b98328a85f9e7d124814310f8b3c36e6daa1403dd9", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5949": { + "current_role": "paper_train", + "prompt_sha256": "ee1bf2aa636f56acccaf3b4641d2e69bf2f9fbc93ebea2d0b8da950164ece9e2", + "gold_sql_sha256": "0f3b831e18ed3ecf190d3ac077f5d75de50af2a973af68dc27560aa190de9964", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5960": { + "current_role": "paper_train", + "prompt_sha256": "aae145caa1bda765f0ddd3b51f4024a85c95bee88085d49c114abdffea9b7a96", + "gold_sql_sha256": "09eb67295980d3c6550ad1b7175114b8972ca9d49cc1d33b00907f0952eb47a9", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5966": { + "current_role": "paper_train", + "prompt_sha256": "199af75af887322e444be6ba3c3d250fcd314c8cb680103a758d3d2e23e84c8c", + "gold_sql_sha256": "4abf3c2be5fdcdeab39a3e4b0e98ebddfa71cb4ead47b844920da9533cc8747f", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5970": { + "current_role": "paper_train", + "prompt_sha256": "0525aa4bbeab433f9b88d85b8be4101e4ea68ebc91f190952303abe238c14c46", + "gold_sql_sha256": "d8fff08acd06d807dca4b888c8b2f99d1fa92403cc7b2fe47e2a1a535df51669", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5972": { + "current_role": "paper_train", + "prompt_sha256": "376b88d7a478f387ec452c7620056026947ad836c7746965c01cb661f3f039c6", + "gold_sql_sha256": "24e85bf9292dff6aad4e26c9aa2f7e54beb787b7e5ae17519c17e25e123d36c9", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5982": { + "current_role": "paper_train", + "prompt_sha256": "034eab06434cbac04a3accac81443f2d297bbb138dc533f8f12b59dd1c6bc42e", + "gold_sql_sha256": "6faed15f059548f0e29b0dd1038b138219b5d8a1326c97b484ba6f3a63e3418a", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5990": { + "current_role": "paper_train", + "prompt_sha256": "b3c12585d54e0f0ad9f9c5efb4a918e6f24fa39520fbdfa741fc297cdd766ed9", + "gold_sql_sha256": "6f3881ea8e1b2c8b6d5f8fb6ac3f9a884d65d7923215d0e23e170ed979bcedd6", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:5991": { + "current_role": "paper_train", + "prompt_sha256": "174b2d311ce9c83467ebb5bb9bef1fef29c441fb160d895acbefae93920223fe", + "gold_sql_sha256": "b91f177d71fc405d986f00d67f06e807ad99f46e779421c538a1eb1e3e338dea", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6015": { + "current_role": "paper_train", + "prompt_sha256": "f7145f04b0e955c0691057617fa831f5a14cc3bd3e68cfdff35d9925b075dd10", + "gold_sql_sha256": "436faa3a9bd5f5af4712a5dfd812460a5f4f51a3db875fab905474e7178bbe75", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6018": { + "current_role": "paper_train", + "prompt_sha256": "871f1dcd5c517bb3df545ea63eaf5f0b9ef48a4b7169adb273569053307d1855", + "gold_sql_sha256": "e2db08c2f767d729e827f2bdab9539b75f4898eebc5054036f16cd47fc80db91", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6024": { + "current_role": "paper_train", + "prompt_sha256": "a2092a52580b7e511a4bb3fe7b931cc958fc9054570d3fb13608672dfcff9714", + "gold_sql_sha256": "e5a407465b3c3e8b844995b93b38bbc51b36160887a1ae85a20c805609e06354", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6032": { + "current_role": "paper_train", + "prompt_sha256": "d67c36bc04dd5cfa1437a45aa252a38fb81836898827d0513a2770725d4500b4", + "gold_sql_sha256": "b75fba76926d51403375b4a30ac9cc5a28c086e33ba7bca79eddefb0d5d3255a", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6033": { + "current_role": "paper_train", + "prompt_sha256": "fe0d11f47ef5e739be1daf6d9c9a0f38b69a0f61934f25c97d8e14e680820795", + "gold_sql_sha256": "782b1d94487374114fdd0fb56e9a2c8e82a57ae9dae009d3e3b289b72b23e38c", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6038": { + "current_role": "paper_train", + "prompt_sha256": "9dab54aa8118a4ca05eea4bd0f09a230dc5573fee6aa441cdcb90e13094c5262", + "gold_sql_sha256": "bd69fa41a754dc8a747a5136d56230d02593fa20f755f1777f36693600bd134b", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6041": { + "current_role": "paper_train", + "prompt_sha256": "275dcd6dad3782540d51293c3e973c2a54a6d631ff5382c5c4ad1ee8e749c9e5", + "gold_sql_sha256": "058e5bde3589f43a32b14efd766b07b517da9c4cdf0f4255d2e98c873c8a3f01", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6044": { + "current_role": "paper_train", + "prompt_sha256": "be1316e32609b3c86cceaa58124b6195c5abc3ee9ea9aa206c6f70a630802c68", + "gold_sql_sha256": "9846f9c80ef3c2811513239a0c1b22aa7fc123764a1da6da2081b457525a4372", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6047": { + "current_role": "paper_train", + "prompt_sha256": "0257180d20c9cddf8c49be8fadbb789cdb602cdf98fb04a841298d99075daffd", + "gold_sql_sha256": "4ce3768046e2628fbdbf8067b66583300db060340b0363f176c1e4b319beb748", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6054": { + "current_role": "paper_train", + "prompt_sha256": "dd7798f02a41c3830a3de5df2a819d443d0c061bdca9e8f342e656c858b364d6", + "gold_sql_sha256": "1435bf86298e990e8c08acae49291b49384907f66238d82cb64c35270511d93e", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6062": { + "current_role": "paper_train", + "prompt_sha256": "70cff1309fb3d982259d716f87dee9edf7679760578abadafc15975ed6ae5562", + "gold_sql_sha256": "86f21ee263d26986a65b4524e456dee14197146b3c16931cf151276b1757fed0", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6064": { + "current_role": "paper_train", + "prompt_sha256": "1b4685ed7538a36dfccd5ccfd84f6e0a9c38679a99e2fc69909f66a84600818a", + "gold_sql_sha256": "1f0b2239ee13d1d30566748471b2264a798f5820484f8266ed04c0e61c1ef10d", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6066": { + "current_role": "paper_train", + "prompt_sha256": "298abe4f9f7b583790af8215e2356d8eb525b76da925f60a3ba9dfc569d0d905", + "gold_sql_sha256": "c8c3d65f7557232256cde7c5de1af91f94dc4cf7138f0711909ffe6b230ede1c", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6071": { + "current_role": "paper_train", + "prompt_sha256": "1802acb9d7e6e75bb08eb052e45f80c70cd6771b92875b70b4e67421f3313d63", + "gold_sql_sha256": "eb527d10f7aa7871d7319efa12a8772b9d116a203a1da227e30acbe50fb5dd23", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6077": { + "current_role": "paper_train", + "prompt_sha256": "e239e0c55a68ca853eec565963369c81e5e552fac58b71af184794b5320b1de6", + "gold_sql_sha256": "140e1bc2ad2b3db8645dace4a38becf6520ba0823cf9200c3298aaebd2390568", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6078": { + "current_role": "paper_train", + "prompt_sha256": "21539dacf77663e67b2ab74c756b5b2524183314ce1d9738176378b6f0b59e01", + "gold_sql_sha256": "500f0229160e3cf885b4ef7dcb2be68f346d8bcfc96cbe8aa77aa774465b75df", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6082": { + "current_role": "paper_train", + "prompt_sha256": "b14ba801c4f53c9aea4f8a5ed11ea31cb06b4f408a8deb3d0f11baeebd85ed63", + "gold_sql_sha256": "d31f2c70a6d96baacc809c411b0a762b337f6834c14d0b2de3bc2dbd881eb422", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6085": { + "current_role": "paper_train", + "prompt_sha256": "32c6fcad50403a19912f4320905cb5a90ab09350c288d54d1272920df562df1b", + "gold_sql_sha256": "08563c1b6f2d7fa3ac03ed673aa3500a11937c80672ae0a019adebbe21d03bfb", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6093": { + "current_role": "paper_train", + "prompt_sha256": "e39d11552bfbf26a3993c85841b01e652c94bb8319b748ad502566087b03a572", + "gold_sql_sha256": "2b99d7277ab2372fe20c4a3295d0385005973efb47180c8963b9928d4ff4b632", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6102": { + "current_role": "paper_train", + "prompt_sha256": "29147c3aaf00366889805a141b2ccecee20c771c67b452b46bc5edebc9d64f20", + "gold_sql_sha256": "408acb2e39f5bbde4c2ad876d9d37f4a076299375665885436f4199eeae4e674", + "database_sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "revisql-train:6113": { + "current_role": "paper_train", + "prompt_sha256": "2161c6659536266d062a37ed4712c25f837aaf93116ca407699a941157ffb857", + "gold_sql_sha256": "e30b2f51553534629717721ea7ec3da82b2ad7c567cbe8811129f9b56a7c6a11", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6117": { + "current_role": "paper_train", + "prompt_sha256": "96ce2c2decde063b8877167a3787cb4d58bcba8dde027a13ecd789e132bc036e", + "gold_sql_sha256": "027245118b49b9085b89ffb9c8f661481d155b9d9f28e02f8743163b362b8b90", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6118": { + "current_role": "paper_train", + "prompt_sha256": "90fd4a618a8ab3ee46e856b9582d3a5093ad2b8ed657859cf6dab36717c6b5bf", + "gold_sql_sha256": "57de96bda6e00a520af239b8ff3ced2e97a9974b678243b56c2637148f9f3257", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6122": { + "current_role": "paper_train", + "prompt_sha256": "f563e83007b0a3c8a1976ac657ff983aa10f4059fc41d35f538b671b6aa607a9", + "gold_sql_sha256": "98344e479de42235da86d11d5cdd1edd291d3bcb287a3084a7c6530cb3c01761", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6140": { + "current_role": "paper_train", + "prompt_sha256": "6a100b48dd331c763063e0d38251a9d64e856c724eb189a14f1a1652eaded181", + "gold_sql_sha256": "d44cca92230e40f2abe018e5de7523238e2045885bec6993526fb280b24f3431", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6141": { + "current_role": "paper_train", + "prompt_sha256": "f9dcdd1735ec0f0c4831efb03a7fc23b3b44df18bcf1f896fdf9410d4090edfd", + "gold_sql_sha256": "d0b28264a3fa4fe28e896a83150c737c430a6f1e66633c5796687ae6ee48d7d8", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6145": { + "current_role": "paper_train", + "prompt_sha256": "b1930884f767b09a881f7f02c4ca4a63fe4330ce8da97c9512432c025cb2c4df", + "gold_sql_sha256": "cf8b62157c5e31332bb8fa82095a7b4780934fa0ed09b508fed55db098eff500", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6146": { + "current_role": "paper_train", + "prompt_sha256": "7975d4aa2263542767c86642a5f4d3e86af9b0f9dee44b144d0d42ccee370713", + "gold_sql_sha256": "4375cfa7c6606a94d01e551bd54c2062002fd82ab21658c7cabcba0e5634f7da", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6149": { + "current_role": "paper_train", + "prompt_sha256": "c47a97625875212f79c5bf7d6c983313081778a39e08adc3d043f6dd4cc78db0", + "gold_sql_sha256": "5f452ccb9fdb41a1df896638f9096f8735a8525b4880f1b611bc64d0701f0a2b", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6151": { + "current_role": "paper_train", + "prompt_sha256": "3c148c1bf2551684fa1b73283d6ecd1bde56e0a19894c0e8a259b6efd2bfa21c", + "gold_sql_sha256": "adf2f2dd7c148d6073da0435e1fc8c595bf114780866ebf2cf214d42056d3aa1", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6163": { + "current_role": "paper_train", + "prompt_sha256": "ba178c65bf49f838e75692b14924d104b7b33d206287564bb29220a8ac5d66c4", + "gold_sql_sha256": "0d1fb2fe3d82cd36e8d483cd27ce6ecf8ccdf0c284fed4c2a7dd50fb891b1318", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6168": { + "current_role": "paper_train", + "prompt_sha256": "4fab61e146c8a39ad20dcaaa4917ea437dbfd017a353e9fe6da2a3720f4c1ed8", + "gold_sql_sha256": "5259d65c0508a02bea4a853353faebff3ae8af8e5e56b9f76340892317fb9683", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6169": { + "current_role": "paper_train", + "prompt_sha256": "09022fb8e783d85828d3915e1c5ef089f13231af42b34f6378ea8353fd324788", + "gold_sql_sha256": "daf21acc5d7ff3d97769193c115111d7767e107d76b01f9c3a9602f80bd1b597", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6173": { + "current_role": "paper_train", + "prompt_sha256": "e56f1fb7810aca20ec9f38e0568a425dd80bfa829b6864afd81c8933a8968807", + "gold_sql_sha256": "52f2473dd406049dec2d54c4eda526316ea25feeebf172b9a960c9a41371c207", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6175": { + "current_role": "paper_train", + "prompt_sha256": "ae15f04c2a726fbd82b411fd671dfbbc1351dc45cf626c79d9ad7a8ed8ce929e", + "gold_sql_sha256": "582f128b44f3c2bca5d6be263f3069494edf5105a444474adbf7cc83c3993be0", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6178": { + "current_role": "paper_train", + "prompt_sha256": "a6d36e640e44a13802e952d1875d3c740930f96cc6a5fd9a5a747a3dc9c153cf", + "gold_sql_sha256": "f941fecd1a3aa2d253252b1ef09d59acf215852059c0df2948d1308c89c2256e", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6181": { + "current_role": "paper_train", + "prompt_sha256": "9fcf5cd844e3ec258116426ac85ec40baf89aa272499212da265dd379dd700f0", + "gold_sql_sha256": "45e143f1128c4c8ead429967c74bd46b8f18c9bcfd1097997669bdc90eb0d757", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6185": { + "current_role": "paper_train", + "prompt_sha256": "33b0610e94087ba066b0860dd45967da9b64a32abe5c30cb9743fb485ce18c2b", + "gold_sql_sha256": "a89e9d19beb8a58aae08e1e1707c4e90fa6f30a148cbfa0ee13bdb7e2360f399", + "database_sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "revisql-train:6252": { + "current_role": "paper_train", + "prompt_sha256": "9a9a517a6624a128325fcfb6e47ee6a74784b98940c79b07c5baed031c407dce", + "gold_sql_sha256": "976fa41e70a971c2ecd662f5d909e2d90c479f6ea27a438fe14a5fe81484cef3", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6259": { + "current_role": "paper_train", + "prompt_sha256": "52ccb354d5a32ffb7dff96214cdbd8db367822322007ee7e6cd20eb6f9549e6c", + "gold_sql_sha256": "5a207e5ad8c0b55c6eb79662fcb014fd191069d1aba389870333f95eaf37bb16", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6263": { + "current_role": "paper_train", + "prompt_sha256": "733978491148324fc7a570c35db2d577111d674f8ffe38fd7d0629ed49e741ed", + "gold_sql_sha256": "c6221054d0aac9bfbe8bd56b11a85e735e0af0676befba14838e477832acc348", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6264": { + "current_role": "paper_train", + "prompt_sha256": "9d62577124104823d528bece656dd1ad94f39ad9fa33036bf9e4da02b930ce4e", + "gold_sql_sha256": "3ea2a3da9c0bc13bbeedf737f59ddd829bdb5fea7efdcf3eaa5f98182f386892", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6274": { + "current_role": "paper_train", + "prompt_sha256": "d679d85ef9fe2e5c8454bfbba6cd179216468ee77816fe06820025b57750fe4a", + "gold_sql_sha256": "ff9744a7a904dcdaa950777a5a598bb51cdbea585767abe1b2e52a633633bccf", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6291": { + "current_role": "paper_train", + "prompt_sha256": "3996086832adeaa5353c7495c8d93d339e27143101d15c9912c6e192857e2227", + "gold_sql_sha256": "6290cda81e3d159fc5c01e6e001903d33a139295038b5eecf67b65e082d0a4f5", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:6295": { + "current_role": "paper_train", + "prompt_sha256": "94668c4dad71163e8fd65f085e00f911c070af9d1ad7d34167da3718075202ec", + "gold_sql_sha256": "b7c09f09993be2ccf1d541d3f9ada3f16e0f328436f5264aaddc329bbb040892", + "database_sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "revisql-train:8588": { + "current_role": "paper_train", + "prompt_sha256": "56af6f5020c9cdaccaac3419bde93e50e58670110bb083d8552e988bc1720a77", + "gold_sql_sha256": "3892b2c2b4d67ad2d521aa9c4e6fe7f144cfd098c4dbcd4ea7b15ae01d0a9cec", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8592": { + "current_role": "paper_train", + "prompt_sha256": "e037fc783261b843f0b8278dd4644a3bf1ec8f30c8f8187a8e4f836a5c6736f9", + "gold_sql_sha256": "d3ece5b9fe5edf41cae21da607b9241f140f616a4102dcf8b42e489fd07e402b", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8604": { + "current_role": "paper_train", + "prompt_sha256": "e5ab89a855a1bc60357a59124077b53e23175c3cee4b7ecec44be318bc668238", + "gold_sql_sha256": "e1652f7ea90c16d32be06735da937d781e8e05881130179148333127670669ee", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8608": { + "current_role": "paper_train", + "prompt_sha256": "a890243ab1f4fead172d8d8e1a659ff6b2c1c455f1bd71f2c5a50b39a950a619", + "gold_sql_sha256": "a6f250e5a848b158b98c1175399e69361438baf70915527a5665764dc04c6cc3", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8648": { + "current_role": "paper_train", + "prompt_sha256": "14ca664b46965c0fc556b08145923163c9a20df12783041a2e44bcd8f69d280c", + "gold_sql_sha256": "c737f6c1cf62a4227bef771fbe1a33ee0a3212423b58bfa8a69ba28668779695", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8650": { + "current_role": "paper_train", + "prompt_sha256": "184860cfe5549262cccaf72298708b466f62e54bf52bbc06f06331d51e45130b", + "gold_sql_sha256": "7441d313aab07c898c5bf92d7203fa78d485a4f256c2090f8c77b7b1a9c141bd", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8653": { + "current_role": "paper_train", + "prompt_sha256": "3e12b08588db76dc9a6e9a9399fb06952d9338f0ae70615cd62c1172e287c068", + "gold_sql_sha256": "6ec9a20c1ebcbba6e6fea204fd3a00fc57352552d01c4c4906125c14900171e5", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8673": { + "current_role": "paper_train", + "prompt_sha256": "b750f0156ade12fc70e391d3f45c0c062e0dd8c62bf238c886024445911192ab", + "gold_sql_sha256": "377698fccef0e37576aa7ac3e785ae2c9a2909c6fad555c7b45543d0a7224902", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8687": { + "current_role": "paper_train", + "prompt_sha256": "47564cae1e781aac3fd3eaaf635945675143010d08a7afd8cffebb898e0d5459", + "gold_sql_sha256": "cf4509602ce18f9b0a3c7a2c893b4fad77734bbfe99511f4ae4e886849512d2d", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8692": { + "current_role": "paper_train", + "prompt_sha256": "57f9b00c89ae407f5ea1e03b644a7e1d7e31ed9ec5f0b7d9bbe4f8e0acab1b75", + "gold_sql_sha256": "cb91b9be0084bb51a94a8d2c8817cc81a129422e1538dca6f8b29cc57e2fd460", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8695": { + "current_role": "paper_train", + "prompt_sha256": "3d6698f69f7b62dab7195e08d28fa626848b90164677e6ed5b4aa6976a3bffa1", + "gold_sql_sha256": "8d5c4e6ed7e3ba9da387db8484df0167bd2cfa235e71412d6412bc4e112482bd", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8700": { + "current_role": "paper_train", + "prompt_sha256": "8d1c95b17a6349d8fb002cb217e581c6c9141b131c9ab1597f6f347d881a2769", + "gold_sql_sha256": "94fe0cdd20ca41305018cec6149510fdd4e47da7a852b75bd27c98347ea5d1fc", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8705": { + "current_role": "paper_train", + "prompt_sha256": "8b8771be2201a4ac360fccceb19690bfb03502c4f1646c743ffbfd6dc1492eed", + "gold_sql_sha256": "1d460e522c280cec8b5f7548ebc40389dae751496f14abca22fe18d42c2c3644", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8709": { + "current_role": "paper_train", + "prompt_sha256": "c4304d727dfb95aa6f8a21e122ece8f1ed8e5dc5271db9cd1ae5c4bf6aa3d764", + "gold_sql_sha256": "68b83a884ced3153270ce2964412f62c5643ea3ef83059265a784b8cf41c8803", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8710": { + "current_role": "paper_train", + "prompt_sha256": "b1d27d500ac4bc0d8e11cdeca6adb698c4fefa70ba9b5bf40e07b670d62ca2a2", + "gold_sql_sha256": "34358ff8aae89368ef4292ae2ba9de6834bb365c0dabe58e6e341a515b18ad0f", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8711": { + "current_role": "paper_train", + "prompt_sha256": "a5859469c4b4796271c889a094fa5b9175bad4698dbe91fa954c8ed95646ed29", + "gold_sql_sha256": "563fb3e539f684819cda84529dab58bbc802717999f4443ffe67ef497ab5c9dd", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8716": { + "current_role": "paper_train", + "prompt_sha256": "ed35c06d77cd99fd8cfced1601fc16bb3e9d1e26e238a460490e31696cfbed86", + "gold_sql_sha256": "4ff927d8560d29a84705f6c4287ec9def7228d0733675e4b3eeeee1d37f68958", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8721": { + "current_role": "paper_train", + "prompt_sha256": "dd4be001ae07f5e08b46cc2acb8770da20a8a5a06381cd973ed5d851b350c094", + "gold_sql_sha256": "a1d81b979498b40728095eba73d2da8ab19bb862ccb09834e3752e4fe7faf498", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8724": { + "current_role": "paper_train", + "prompt_sha256": "8b90d50ab68e89b29c3fd28fd3c39b7cfbb39f6f1d98efce58ab46ac69c6e1fa", + "gold_sql_sha256": "bedb122ac6fac114ae4697f371095fc68402e2f1970f6d04033daad3d49afde2", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8725": { + "current_role": "paper_train", + "prompt_sha256": "1e89a7ce043e7d2e4dd382ee753dfb1bd059637f164a056a813238f0b69a6294", + "gold_sql_sha256": "44714345b889c50acc54584f040c12e0e5ac50d0b12f68a98780421ea8e957dd", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8729": { + "current_role": "paper_train", + "prompt_sha256": "ffca11153da7b50a2de7771b43625b3ae1edfc3aa8660e6e61a36cd003b6e83c", + "gold_sql_sha256": "7a5f6373fc0e988000187844e1c8e35de066691fd6287513ce0fb1199ff8b4f2", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8730": { + "current_role": "paper_train", + "prompt_sha256": "ad10c9a888d56f8670e9a53d4adc83ad967137198ed593106656319b686ad4d5", + "gold_sql_sha256": "fd4acba39d83e71d801274351c8e80957f59bf3a172e1f68e48e4b6e9561547b", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8739": { + "current_role": "paper_train", + "prompt_sha256": "7380d95c42fc1b1b4b827e24d751aa93ee42efd8e7674d060b8ce09e143ab901", + "gold_sql_sha256": "cf4c2448c6bf58424ba64e582652c2365f367733ed27ea54cd0c811a16c06271", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8746": { + "current_role": "paper_train", + "prompt_sha256": "0e6e73d7f8224841e78dc2cb464d0fe69849cb011b0f4010842583b60107156d", + "gold_sql_sha256": "f843e74b6960e4fdf6176dea39a8e5e749ec4dbd7526cdd32aa9a47108008998", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8748": { + "current_role": "paper_train", + "prompt_sha256": "cdbe6f8138639e324c7a2a03b3a8d1d54a3e08597968d2e2a8179ac5109ec5d7", + "gold_sql_sha256": "d909d9c56722ddcd4b7f60778df59dee877fe196df60c90e95730992a1a65e56", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8755": { + "current_role": "paper_train", + "prompt_sha256": "0d297371cfeff3fa41f0bbdffe4f25af2a80e089a1afaa60fa757c1fd995016a", + "gold_sql_sha256": "499716d9a47ee69be3135ea1b291a9bfe7464c96401cbc246a02547c0d7df7f5", + "database_sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "revisql-train:8775": { + "current_role": "paper_train", + "prompt_sha256": "a1f1c288c4c34222787434fa40e34115b83012f958375d31edb0c5f095070456", + "gold_sql_sha256": "52b1ff8b5a92e4b4eda3431eaf47194ea286095570ad4fa924643cd5a192ee1d", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8777": { + "current_role": "paper_train", + "prompt_sha256": "f1740b47704a4c43a5ac86560a89472edefe55ca9e5888758d4e285b1618e201", + "gold_sql_sha256": "02a3b55c59bcfbf7d14b4f07768c24f6689e8f4e1309c77f5fb3d9d6e26e749f", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8784": { + "current_role": "paper_train", + "prompt_sha256": "a342594d74d1c6d162a73f8b1d1a9449a68cc88d536fbcb3113447a0f0a4c393", + "gold_sql_sha256": "c82516d4592f2a67b3081eeb4731a63c17bd3177722b1bf0e211f904461b2b23", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8788": { + "current_role": "paper_train", + "prompt_sha256": "b03d0e95793d0653cc1abd06cdd61acb04ab42af42c5b6def1c27b5ad32ebffc", + "gold_sql_sha256": "0abf0559541821f0c721a84cc53e997a40e679605bd1c3a25e7e45852a5a04a9", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8791": { + "current_role": "paper_train", + "prompt_sha256": "76fde87fdce0a19ff043119aecfa38dc83ef9302c96c2c5ba87ed7c982e5aeb1", + "gold_sql_sha256": "ff866d40c015e43a91708f2086f20f385e90cf79d601d62d35f0374dd10a5937", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8792": { + "current_role": "paper_train", + "prompt_sha256": "30d9b65121c4a6f04e1c7fa7ced1069928ec4d25860ea1aaac122b83226392da", + "gold_sql_sha256": "c6d19cd55ca2c9590f31a45ccf3187f92eb0b7da61d5783c7c5b1cc6e8cf9087", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8806": { + "current_role": "paper_train", + "prompt_sha256": "007ba17ef16c946d2d2ed4355a549efe5cb1540e43f2aea16c350084d778b47b", + "gold_sql_sha256": "94b4d455bd0ff4799c808c7c87768073f642af8332057b6a3303447c17a20963", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8810": { + "current_role": "paper_train", + "prompt_sha256": "7aac4ed0db3f1370fa9edf40dfa0d6253ad976fd72ec6aad26c851127f1137b9", + "gold_sql_sha256": "9411e889def698dd07cbf7eb50cd385a18394d386a46bf96f53567f9a4060b72", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8812": { + "current_role": "paper_train", + "prompt_sha256": "47b10d38fb32a9a996c96a3430ea93ad90d64ccf987cac271ca4266b198ba61b", + "gold_sql_sha256": "e952173636797ae0ecaa33c9793255844c120dcf74c9ebdbe07227ec90428301", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8824": { + "current_role": "paper_train", + "prompt_sha256": "6a1447cbff118cae317100065aee251f3eb2a51da03dd80ff16e187f97ca86ee", + "gold_sql_sha256": "f78db0c31ba3e3902747223d896d009d453b8e6f8f9db41fb36d42955c015b03", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8828": { + "current_role": "paper_train", + "prompt_sha256": "9da464452a7c554da424406c2186bbb1b9e32be8276d642a714fc6f876354b67", + "gold_sql_sha256": "c1869c71ca676c69a3791943fa802d4c8aa9abf872d2eecc1cb5f748fd5d71f2", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8829": { + "current_role": "paper_train", + "prompt_sha256": "93c9920dda5a1d18bc991ffaf569e3e1214bcc8b088bca9c9d2f2c04abaabc12", + "gold_sql_sha256": "be50221f1acb69446e996038fd28865f5a1e4fa52d8f085a8e6ce4e6dcfb331e", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8850": { + "current_role": "paper_train", + "prompt_sha256": "5ad1032a301b2c9c2a1d62574fd9af6c20dde6b7ec195f991d1366b3466265c7", + "gold_sql_sha256": "2b59cd81108c97d0e8669ed27bed219d3a6868bea742c42366298ba0d40fe9f3", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8851": { + "current_role": "paper_train", + "prompt_sha256": "cb0b42a6746ed66afb937f0e4f709f186351adbf069171c592abe53ed4851494", + "gold_sql_sha256": "93aca73005b511fcdff25fd7d477c708ce7d271f95ad6803ffcb9459c5b77d85", + "database_sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "revisql-train:8859": { + "current_role": "paper_train", + "prompt_sha256": "59a8d96918940ff2a866762ce1ed220e8bf5440947b56e9536b27affaf254d99", + "gold_sql_sha256": "9f2e4f353e287dbcac5883dbccd9680844e1714d60eccf18d8bd72f041cec336", + "database_sha256": "127bad8fbd45772d66f81aa3935e5b957eaeccce104ec3e933ff156efea168ea" + }, + "revisql-train:8868": { + "current_role": "paper_train", + "prompt_sha256": "27d93d6b967d3a564ddfa2d0375dae115b5e358906f5e0d11f8ff6cbb0cf4ceb", + "gold_sql_sha256": "e980e28caf1d8d37efd40afe263efbee025e971ad5b6ada05d789805f6cb0798", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8876": { + "current_role": "paper_train", + "prompt_sha256": "3ea4b4598111d9f0d8cae4ef1a11746b6084f5686eb3d17dda5783e165e55fc6", + "gold_sql_sha256": "3645fefb08d87ab667d3779493c1ffcc0ca165df6641a04e451f4c90e0b3f0bd", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8879": { + "current_role": "paper_train", + "prompt_sha256": "6b5454b36ef76cb5260af5ad32a5c7c6398dff38eea94dca746d7bcfa352a277", + "gold_sql_sha256": "b280e9778c676e733c68d878eee9a1549bf4801e2d09e9462d0b274837412912", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8889": { + "current_role": "paper_train", + "prompt_sha256": "7a30c63d270770ec1ba5345300de0a9bb724019c93cf24c1d3253b2ad25f59d1", + "gold_sql_sha256": "f63491de82c2b489830a3ada944629ac9dbfcf8e36574716904952e70be58f2c", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8891": { + "current_role": "paper_train", + "prompt_sha256": "62939b5c426c35c1e38e2706a7acb9cd368fb817357ec595733f389398ba1db6", + "gold_sql_sha256": "8b7b98f1eaa37c612c1b039b83ccee0a796842678152af372cb1829c739fa056", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8906": { + "current_role": "paper_train", + "prompt_sha256": "40ed7d4b290a58a493319435f7da882b86758945eae11f881b9df4eb96733c51", + "gold_sql_sha256": "2a05b7e6177db6c9f49b3b16b970d81df60655f07b12d7aa333f785b868cd99c", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8915": { + "current_role": "paper_train", + "prompt_sha256": "eb904af7670097e13d51c13bfd5f85c9c75fe5fc71a8c35b6157db22dcb5a708", + "gold_sql_sha256": "be374e2a1e33981efb71e82f089b84a47e9764abb889b23f01d162e9bdeb68fb", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8919": { + "current_role": "paper_train", + "prompt_sha256": "68a233b41d04fc6ba4578f7e32efbeb1ae2dcaf08155e0ba5cc1b55cb0d34f08", + "gold_sql_sha256": "7653be32850dcdab7095db66aa3eeed3810569aae541d590b778b18783860389", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8924": { + "current_role": "paper_train", + "prompt_sha256": "b3c9da2b73e65207114150c52e32f3e36b03ae9cb667f9528dd34fe6aebcaea1", + "gold_sql_sha256": "7e54f4e513092a2a512c8bd039a0946be2fc23bfbc277c12694c62296802fa84", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8930": { + "current_role": "paper_train", + "prompt_sha256": "754c557bc262374fa620cfa473453662114a178fcda539c90d3aee794785d28d", + "gold_sql_sha256": "04a9d3d23829686e6664cf0712657783577ad59f709e4b278d81d3c12d6a47cc", + "database_sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "revisql-train:8990": { + "current_role": "paper_train", + "prompt_sha256": "e8b46524ea3231f0e7ea34d40b41266029935d740944ce08470d528b78f7faa3", + "gold_sql_sha256": "b2f84843a29fd34bfed4ad38fd822ec3854ab3ddb8d82d43d5ad26f462191584", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9001": { + "current_role": "paper_train", + "prompt_sha256": "890e0d5def068106d6d835452604f223c3bf1133debee1e0dcf42a531bad9d4e", + "gold_sql_sha256": "2bc68742fa13dcc48e439f5a0a06c175c3b4ed170e4821e293e8a836a7829d42", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9003": { + "current_role": "paper_train", + "prompt_sha256": "407d0f088f61daf9b4cf3ea62ae1a26d7f37da929239d448f6b26d3c1700a1f1", + "gold_sql_sha256": "bc52f64202b6a7ddd16762b39ce5b6af912d8669368a9dbd1d3cb74451eecea5", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9008": { + "current_role": "paper_train", + "prompt_sha256": "f826ef37b4eff5399266f724b58c4b32deabcc37d4f5304c2e55474622388346", + "gold_sql_sha256": "acacb53bb29f564a495744ddb53740451da6c784c38c6b19558818ec68e80d3d", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9014": { + "current_role": "paper_train", + "prompt_sha256": "bce70eccbc0701ba5ba4818dd4c412b1d70341f912733145b1c57221ab84a421", + "gold_sql_sha256": "64c1137ffd6e073933172e261e2f14ef7cc72fd2e4e26d3cc544bde376c042a6", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9015": { + "current_role": "paper_train", + "prompt_sha256": "8c4126a2a7350cba67cbc96bfa56f0d1b9a03dd9031484bb05f71e35451f9ec2", + "gold_sql_sha256": "d30ace197acecbce3151a0e23a8b24d3374d67f0e599b92a512bf1475f363035", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9018": { + "current_role": "paper_train", + "prompt_sha256": "228c03393b0646ed8663cf2810d44d15e3cf3ea07ea8108bb9245701d4e4613a", + "gold_sql_sha256": "fd9bd370fe962117bd939772a57fa7f7250dccc3a0ba0bc5931eacbfc1b03274", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9023": { + "current_role": "paper_train", + "prompt_sha256": "5e9cc5b39e2b486fa690a205150e8fc35cf0d40610d3ccc14b8d58d4f2ba25c0", + "gold_sql_sha256": "d30d2846426d4529f70c1a07044029b7ed7c7f2b1c40b62f0738e3afbbcb0cc4", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9028": { + "current_role": "paper_train", + "prompt_sha256": "cf7059c18726ed2a1f70fed08f3d24480fce44916768e39d98feebef858dc6be", + "gold_sql_sha256": "bf2c4887b7cce1339773b7a188e256a1eb9953c9d067e295597942f80f3ebb1a", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9030": { + "current_role": "paper_train", + "prompt_sha256": "3cc55d7d74eafe86bc775134724a0f0ff5ad269f0ec040ec0d96126c16cced05", + "gold_sql_sha256": "fc5284485dad23f1fbf749d48d00c1fd27ef341c65cb87694d793e7f3972704c", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9040": { + "current_role": "paper_train", + "prompt_sha256": "ae88b556813953834eb27485fc8767a87221d6c3f7da2413e81c02eb939e4166", + "gold_sql_sha256": "6ee6be851d3627ff6bc7e3f4e73816827423787bf19bf30c9c2b89c1e7dc1832", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9047": { + "current_role": "paper_train", + "prompt_sha256": "c0371ecb004211469fe5e48017ad7334dbc7e8101da69cbedee30f20f2575b50", + "gold_sql_sha256": "d5c60458e84782b5655dbf8e2254b3c25a1fa97a9cbc6f5c51d003bcccdb1e86", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9058": { + "current_role": "paper_train", + "prompt_sha256": "716bc5c68372a80cc2117480a19a8198caaebdb14617c7e77145397c44da9ee6", + "gold_sql_sha256": "58a21e29522d526880ee39d34a1629fbc10df22d32aadf8de8cdf19050f3c2f4", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9062": { + "current_role": "paper_train", + "prompt_sha256": "875523b4763ddd2b011d1b9f1d8a61e495e53eb6cfff63b911a191e0bf4fd9ac", + "gold_sql_sha256": "86b1bcb55a84afa88154013a7a9b7642abb2088122fefeeab16cf365131b0887", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9072": { + "current_role": "paper_train", + "prompt_sha256": "54e6681afe93d27ad37f7ced7e2888327b1c9339027a819c192467d9bbc230bb", + "gold_sql_sha256": "92166c3944216de5d011f132a8dc6e7ea61c0dd067499f1fc4b7e9ec35f2f1b8", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9081": { + "current_role": "paper_train", + "prompt_sha256": "7d286725b9032f81b959f0d8d150bc2e200cc87bd94c5eef75b6d34027ba7dab", + "gold_sql_sha256": "95b94c19e356e7e3220c8e5bac31cb617ded40d4bc816f49a9c51b13d9c26e3a", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9087": { + "current_role": "paper_train", + "prompt_sha256": "96a5ccc6c710f986d59ce5ae1da7717287f693ba9a5c427663026683b8f14a35", + "gold_sql_sha256": "cdcb00685eb11b6b054ab2190b930a425c4d0216265e89db7174e9c6e9f6ccd3", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9089": { + "current_role": "paper_train", + "prompt_sha256": "c6639d93bd9ff132b34aac4a0f868e9e5e672c4e565bfbab784e39eda0bbb398", + "gold_sql_sha256": "4b6a63b8993d040b7bda1fe5891283b8e9ba76df5e16172daedb43cc6c8c051e", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9094": { + "current_role": "paper_train", + "prompt_sha256": "c001560f33de0db0edb364d0fba51fdb6d5b8d2da3175c0cd9be5376f85c0673", + "gold_sql_sha256": "6a2613a93d63f00adac18898e461f19233138bda6544085e2d936179061b0adb", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "revisql-train:9096": { + "current_role": "paper_train", + "prompt_sha256": "b628970218cabedf3065c9bc39da01fcd33b319933219f2bc1f2883a90ac44f6", + "gold_sql_sha256": "ed5cd7bc8b9fc1341d2f2ae8688635dfecb064791e03115d5c161e3bc12b6855", + "database_sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + } +} diff --git a/revisql-verified/hints/training-references.json b/revisql-verified/hints/training-references.json new file mode 100644 index 0000000000000000000000000000000000000000..71579e336909391260c5ac47ea7920d0a04b477e --- /dev/null +++ b/revisql-verified/hints/training-references.json @@ -0,0 +1,20173 @@ +{ + "model": "nvidia/Kimi-K2.6-NVFP4", + "prompt_sha256": "dece46b61a1037a65910b8a647a2ae4bbf78050bfdf36dca71d5cba9c4e0fbba", + "references": { + "revisql-train:100": { + "raw": "1. Join the ratings table with the movies table on movie_id to connect each user score to its corresponding film details.\n2. Filter the ratings side to user_id equal to 2941, applying the external knowledge that \"user 2941\" maps to that column.\n3. Filter the movies side to movie_release_year equal to 2003, applying the external knowledge that \"released in 2003\" maps to that column.\n4. Return only the movie_title column, since the request asks for the names of the films and \"film\" maps to movie.", + "steps": [ + "Join the ratings table with the movies table on movie_id to connect each user score to its corresponding film details.", + "Filter the ratings side to user_id equal to 2941, applying the external knowledge that \"user 2941\" maps to that column.", + "Filter the movies side to movie_release_year equal to 2003, applying the external knowledge that \"released in 2003\" maps to that column.", + "Return only the movie_title column, since the request asks for the names of the films and \"film\" maps to movie." + ] + }, + "revisql-train:1000": { + "raw": "1. Start from the person table and filter to rows where professor = 1, mapping the external knowledge that \"professor\" means person.professor equals 1.\n2. Left join taughtBy on p_id to associate professors with their taught courses while keeping every professor even if they have no matching course assignments.\n3. For the numerator, sum a conditional expression that counts 1 for each non-null tb.course_id and 0 for null rows, yielding the total number of course assignments across all professors.\n4. For the denominator, use COUNT(*) on the filtered, left-joined set so that every professor record—including those with zero courses—contributes to the average calculation.\n5. Cast the summed numerator to REAL and divide by the denominator to produce a precise decimal average.\n6. Return the result as a single column named avg_courses_per_prof.", + "steps": [ + "Start from the person table and filter to rows where professor = 1, mapping the external knowledge that \"professor\" means person.professor equals 1.", + "Left join taughtBy on p_id to associate professors with their taught courses while keeping every professor even if they have no matching course assignments.", + "For the numerator, sum a conditional expression that counts 1 for each non-null tb.course_id and 0 for null rows, yielding the total number of course assignments across all professors.", + "For the denominator, use COUNT(*) on the filtered, left-joined set so that every professor record—including those with zero courses—contributes to the average calculation.", + "Cast the summed numerator to REAL and divide by the denominator to produce a precise decimal average.", + "Return the result as a single column named avg_courses_per_prof." + ] + }, + "revisql-train:101": { + "raw": "1. Join the `ratings` table with the `movies` table on the `movie_id` column to link each rating to its corresponding movie title.\n2. Filter the joined results to keep only the movie where `movie_title` equals 'Patti Smith: Dream of Life'.\n3. Further filter the `ratings` rows to include only those where `user_trialist` is 0, which indicates the user was not a trialist when rating.\n4. Count the distinct `user_id` values from the qualifying ratings to return the number of unique non-trialist users.", + "steps": [ + "Join the `ratings` table with the `movies` table on the `movie_id` column to link each rating to its corresponding movie title.", + "Filter the joined results to keep only the movie where `movie_title` equals 'Patti Smith: Dream of Life'.", + "Further filter the `ratings` rows to include only those where `user_trialist` is 0, which indicates the user was not a trialist when rating.", + "Count the distinct `user_id` values from the qualifying ratings to return the number of unique non-trialist users." + ] + }, + "revisql-train:1010": { + "raw": "1. Join the person table to taughtBy on p_id to link individuals to the courses they instruct.\n2. Join the course table to taughtBy on course_id to bring in the courseLevel for each course.\n3. Filter the rows to only those where course_id equals 104.\n4. Apply the faculty professor condition by filtering person.hasPosition to be non-zero, mapping the external knowledge to that column check.\n5. Return person.p_id and course.courseLevel as the final output columns.", + "steps": [ + "Join the person table to taughtBy on p_id to link individuals to the courses they instruct.", + "Join the course table to taughtBy on course_id to bring in the courseLevel for each course.", + "Filter the rows to only those where course_id equals 104.", + "Apply the faculty professor condition by filtering person.hasPosition to be non-zero, mapping the external knowledge to that column check.", + "Return person.p_id and course.courseLevel as the final output columns." + ] + }, + "revisql-train:1018": { + "raw": "1. Join `taughtBy` to `person` on `p_id` and keep only rows where `person.professor = 1` to isolate actual professors.\n2. Group the filtered `taughtBy` records by `p_id` and count the number of courses each professor taught.\n3. In a subquery, repeat the same professor join and filter, group by `p_id`, and find the minimum value among those per-professor course counts.\n4. Apply a `HAVING` clause to the main grouped query so only professors whose course count equals that overall minimum are retained.\n5. Return `taughtBy.p_id` as the final answer column.", + "steps": [ + "Join `taughtBy` to `person` on `p_id` and keep only rows where `person.professor = 1` to isolate actual professors.", + "Group the filtered `taughtBy` records by `p_id` and count the number of courses each professor taught.", + "In a subquery, repeat the same professor join and filter, group by `p_id`, and find the minimum value among those per-professor course counts.", + "Apply a `HAVING` clause to the main grouped query so only professors whose course count equals that overall minimum are retained.", + "Return `taughtBy.p_id` as the final answer column." + ] + }, + "revisql-train:1023": { + "raw": "1. Use the `advisedBy` table, where `p_id_dummy` identifies the advisor and `p_id` identifies the student being advised.\n2. Join `advisedBy` to `person` on `p_id` to access the student's program year and enrollment status.\n3. Filter for students by requiring `person.student = 1`.\n4. Filter for first-year students by requiring `person.yearsInProgram = 'Year_1'`.\n5. Count distinct `advisedBy.p_id_dummy` to return the number of unique advisors who advise at least one first-year student.", + "steps": [ + "Use the `advisedBy` table, where `p_id_dummy` identifies the advisor and `p_id` identifies the student being advised.", + "Join `advisedBy` to `person` on `p_id` to access the student's program year and enrollment status.", + "Filter for students by requiring `person.student = 1`.", + "Filter for first-year students by requiring `person.yearsInProgram = 'Year_1'`.", + "Count distinct `advisedBy.p_id_dummy` to return the number of unique advisors who advise at least one first-year student." + ] + }, + "revisql-train:1024": { + "raw": "1. Filter the person table to rows where professor = 1 to isolate actual professors.\n2. Left join person to taughtBy on p_id, then left join to course on course_id with the additional join condition courseLevel = 'Level_400' (mapping \"high-level or harder undergraduate courses\"), preserving professors who teach zero such courses.\n3. Group the joined data by person.p_id to aggregate values per professor.\n4. Apply HAVING COUNT(DISTINCT course.course_id) <= 2 to enforce the \"no more than two\" limit on high-level courses per professor.\n5. Count the surviving professor p_ids with COUNT(*) to return the final single-number answer.", + "steps": [ + "Filter the person table to rows where professor = 1 to isolate actual professors.", + "Left join person to taughtBy on p_id, then left join to course on course_id with the additional join condition courseLevel = 'Level_400' (mapping \"high-level or harder undergraduate courses\"), preserving professors who teach zero such courses.", + "Group the joined data by person.p_id to aggregate values per professor.", + "Apply HAVING COUNT(DISTINCT course.course_id) <= 2 to enforce the \"no more than two\" limit on high-level courses per professor.", + "Count the surviving professor p_ids with COUNT(*) to return the final single-number answer." + ] + }, + "revisql-train:1025": { + "raw": "1. Join the `person` table to `taughtBy` on `p_id`, then join `taughtBy` to `course` on `course_id` to connect professors with the courses they teach.\n2. Filter `person` to faculty employee professors by requiring `hasPosition` = 'Faculty_eme' and `professor` = 1.\n3. Filter `course` to high-level or harder undergraduate courses by requiring `courseLevel` = 'Level_400'.\n4. Count distinct values of `person.p_id` so each professor is counted once even if they teach multiple qualifying courses.\n5. Return the count in a single column named `num_professors`.", + "steps": [ + "Join the `person` table to `taughtBy` on `p_id`, then join `taughtBy` to `course` on `course_id` to connect professors with the courses they teach.", + "Filter `person` to faculty employee professors by requiring `hasPosition` = 'Faculty_eme' and `professor` = 1.", + "Filter `course` to high-level or harder undergraduate courses by requiring `courseLevel` = 'Level_400'.", + "Count distinct values of `person.p_id` so each professor is counted once even if they teach multiple qualifying courses.", + "Return the count in a single column named `num_professors`." + ] + }, + "revisql-train:1027": { + "raw": "1. Join the `advisedBy` table to `person` on `p_id` to combine each student's advisor records with their profile data.\n2. Filter to rows where `person.student = 1`, using the external knowledge that students are identified by that value.\n3. Group the joined rows by `person.p_id` to aggregate all advisors belonging to each individual student.\n4. Keep only groups where the count of advisor entries per student exceeds 2, reflecting the external knowledge that \"more than 2 advisors\" means a count greater than 2.\n5. Return the `yearsInProgram` column from `person` for every student who meets that criterion.", + "steps": [ + "Join the `advisedBy` table to `person` on `p_id` to combine each student's advisor records with their profile data.", + "Filter to rows where `person.student = 1`, using the external knowledge that students are identified by that value.", + "Group the joined rows by `person.p_id` to aggregate all advisors belonging to each individual student.", + "Keep only groups where the count of advisor entries per student exceeds 2, reflecting the external knowledge that \"more than 2 advisors\" means a count greater than 2.", + "Return the `yearsInProgram` column from `person` for every student who meets that criterion." + ] + }, + "revisql-train:1028": { + "raw": "1. Use `taughtBy` as the central table linking instructors to courses, joining `course` on `course_id` and `person` on `p_id`.\n2. Apply the course-level filter by mapping \"basic or medium undergraduate courses\" to `course.courseLevel = 'Level_300'`.\n3. Apply the role filter by mapping \"professors\" to `person.professor = 1`.\n4. Count distinct `p_id` values from `taughtBy` so each professor is counted only once regardless of how many courses they teach.\n5. Return a single column containing that distinct count.", + "steps": [ + "Use `taughtBy` as the central table linking instructors to courses, joining `course` on `course_id` and `person` on `p_id`.", + "Apply the course-level filter by mapping \"basic or medium undergraduate courses\" to `course.courseLevel = 'Level_300'`.", + "Apply the role filter by mapping \"professors\" to `person.professor = 1`.", + "Count distinct `p_id` values from `taughtBy` so each professor is counted only once regardless of how many courses they teach.", + "Return a single column containing that distinct count." + ] + }, + "revisql-train:1029": { + "raw": "1. Query the `person` table to access student records and their program year data.\n2. Filter to only students by requiring the `student` column equals 1.\n3. Restrict to students who have an advisor by checking that their `p_id` exists in the `advisedBy` table.\n4. Group the remaining records by the `yearsInProgram` column to aggregate students by academic year.\n5. Count the students in each year, order the groups by that count in descending order, and keep only the first row to identify the majority.\n6. Return exactly the column `yearsInProgram`.", + "steps": [ + "Query the `person` table to access student records and their program year data.", + "Filter to only students by requiring the `student` column equals 1.", + "Restrict to students who have an advisor by checking that their `p_id` exists in the `advisedBy` table.", + "Group the remaining records by the `yearsInProgram` column to aggregate students by academic year.", + "Count the students in each year, order the groups by that count in descending order, and keep only the first row to identify the majority.", + "Return exactly the column `yearsInProgram`." + ] + }, + "revisql-train:1031": { + "raw": "1. Join taughtBy to course on course_id and to person on p_id to combine course levels with instructor records.\n2. Keep only professional or master/graduate courses by filtering courseLevel to 'Level_500' using the external knowledge mapping.\n3. Keep only professors by filtering the person table’s professor indicator to 1.\n4. Compute the average by casting the total count of matching rows to a real number and dividing by the count of distinct professor p_ids.\n5. Return a single column containing that calculated average as the result.", + "steps": [ + "Join taughtBy to course on course_id and to person on p_id to combine course levels with instructor records.", + "Keep only professional or master/graduate courses by filtering courseLevel to 'Level_500' using the external knowledge mapping.", + "Keep only professors by filtering the person table’s professor indicator to 1.", + "Compute the average by casting the total count of matching rows to a real number and dividing by the count of distinct professor p_ids.", + "Return a single column containing that calculated average as the result." + ] + }, + "revisql-train:1036": { + "raw": "1. Join the person table with the taughtBy table on the shared p_id column, using taughtBy.p_id to identify professors and person.hasPosition to obtain their university position.\n2. Group the joined records by person.p_id so that all courses taught by the same professor are aggregated together.\n3. Count the course_id values within each group to determine how many courses each professor taught.\n4. Order the groups by that course count in descending order and keep only the top row to isolate the professor who taught the most courses.\n5. Return the columns p_id and hasPosition as the final result.", + "steps": [ + "Join the person table with the taughtBy table on the shared p_id column, using taughtBy.p_id to identify professors and person.hasPosition to obtain their university position.", + "Group the joined records by person.p_id so that all courses taught by the same professor are aggregated together.", + "Count the course_id values within each group to determine how many courses each professor taught.", + "Order the groups by that course count in descending order and keep only the top row to isolate the professor who taught the most courses.", + "Return the columns p_id and hasPosition as the final result." + ] + }, + "revisql-train:1045": { + "raw": "1. Join `app_labels` with `label_categories` on `label_id` to link each app to its category name.\n2. Group by `category` and count distinct `app_id` per group to get the number of users in each category.\n3. Identify the maximum value among those user counts to find the largest group.\n4. Return the `category` whose user count equals that maximum.", + "steps": [ + "Join `app_labels` with `label_categories` on `label_id` to link each app to its category name.", + "Group by `category` and count distinct `app_id` per group to get the number of users in each category.", + "Identify the maximum value among those user counts to find the largest group.", + "Return the `category` whose user count equals that maximum." + ] + }, + "revisql-train:1046": { + "raw": "1. Join phone_brand_device_model2 with gender_age on device_id to link each device model to its user's age.\n2. Use the external knowledge that oldest user means maximum age to compute the single highest age value from the gender_age table.\n3. Filter the joined results to keep only rows where the user's age equals that maximum age.\n4. Return the device_model column from phone_brand_device_model2.", + "steps": [ + "Join phone_brand_device_model2 with gender_age on device_id to link each device model to its user's age.", + "Use the external knowledge that oldest user means maximum age to compute the single highest age value from the gender_age table.", + "Filter the joined results to keep only rows where the user's age equals that maximum age.", + "Return the device_model column from phone_brand_device_model2." + ] + }, + "revisql-train:1049": { + "raw": "1. Select the `gender_age` and `phone_brand_device_model2` tables and inner join them on the `device_id` key to link each user to their device model.\n2. Filter the `gender_age` table by `gender = 'F'` to isolate female users, applying the external knowledge mapping.\n3. Filter the `phone_brand_device_model2` table by `device_model = 'ZenFone 5'`, applying the external knowledge mapping.\n4. Count distinct `device_id` values to ensure each user is counted only once.\n5. Return the resulting count of distinct device IDs as the final answer.", + "steps": [ + "Select the `gender_age` and `phone_brand_device_model2` tables and inner join them on the `device_id` key to link each user to their device model.", + "Filter the `gender_age` table by `gender = 'F'` to isolate female users, applying the external knowledge mapping.", + "Filter the `phone_brand_device_model2` table by `device_model = 'ZenFone 5'`, applying the external knowledge mapping.", + "Count distinct `device_id` values to ensure each user is counted only once.", + "Return the resulting count of distinct device IDs as the final answer." + ] + }, + "revisql-train:1050": { + "raw": "1. Join app_events to events on event_id, then join events to gender_age on device_id to link activity status, event date and location, and user age.\n2. Filter app_events to active users only by requiring is_active equals 1, applying the external knowledge mapping for active user.\n3. Filter events to the requested date by matching timestamp to 2016-05-02, and to the requested coordinates using longitude 120 and latitude 32.\n4. Order the results by age in descending order and limit to the first row to identify the oldest user, mapping oldest user to maximum age.\n5. Return the age column from gender_age as the final answer.", + "steps": [ + "Join app_events to events on event_id, then join events to gender_age on device_id to link activity status, event date and location, and user age.", + "Filter app_events to active users only by requiring is_active equals 1, applying the external knowledge mapping for active user.", + "Filter events to the requested date by matching timestamp to 2016-05-02, and to the requested coordinates using longitude 120 and latitude 32.", + "Order the results by age in descending order and limit to the first row to identify the oldest user, mapping oldest user to maximum age.", + "Return the age column from gender_age as the final answer." + ] + }, + "revisql-train:1053": { + "raw": "1. Join `phone_brand_device_model2` and `gender_age` on `device_id` to link each device to its user's gender.\n2. Filter the joined rows to only those where `phone_brand` equals 'vivo'.\n3. Group the results by `gender` and count the `gender` values in each group; counting this column automatically excludes devices with missing gender information.\n4. Order the gender groups by the computed count in descending order to rank them from largest to smallest.\n5. Restrict the output to the first row only to isolate the gender with the highest count, matching the definition of majority.\n6. Return the `gender` column from that top row.", + "steps": [ + "Join `phone_brand_device_model2` and `gender_age` on `device_id` to link each device to its user's gender.", + "Filter the joined rows to only those where `phone_brand` equals 'vivo'.", + "Group the results by `gender` and count the `gender` values in each group; counting this column automatically excludes devices with missing gender information.", + "Order the gender groups by the computed count in descending order to rank them from largest to smallest.", + "Restrict the output to the first row only to isolate the gender with the highest count, matching the definition of majority.", + "Return the `gender` column from that top row." + ] + }, + "revisql-train:1055": { + "raw": "1. Use the `label_categories` table to locate the 'MOBA' value in its `category` column.\n2. Join `label_categories` to `app_labels` on the shared `label_id` column to link each category with its associated apps.\n3. Filter the joined rows to keep only those where `category` equals 'MOBA'.\n4. Count distinct values of `app_id` from the `app_labels` table, since each `app_id` represents a user, and return that count.", + "steps": [ + "Use the `label_categories` table to locate the 'MOBA' value in its `category` column.", + "Join `label_categories` to `app_labels` on the shared `label_id` column to link each category with its associated apps.", + "Filter the joined rows to keep only those where `category` equals 'MOBA'.", + "Count distinct values of `app_id` from the `app_labels` table, since each `app_id` represents a user, and return that count." + ] + }, + "revisql-train:1057": { + "raw": "1. Use only the `events` table; no joins are needed.\n2. Map the question’s \"locations\" to the `longitude` and `latitude` columns using the external knowledge that location comprises longitude and latitude.\n3. Filter rows where the `timestamp` value starts with '2016-05-08' to isolate events from 8 May 2016.\n4. Skip any aggregation or ordering.\n5. Return exactly the `longitude` and `latitude` columns.", + "steps": [ + "Use only the `events` table; no joins are needed.", + "Map the question’s \"locations\" to the `longitude` and `latitude` columns using the external knowledge that location comprises longitude and latitude.", + "Filter rows where the `timestamp` value starts with '2016-05-08' to isolate events from 8 May 2016.", + "Skip any aggregation or ordering.", + "Return exactly the `longitude` and `latitude` columns." + ] + }, + "revisql-train:106": { + "raw": "1. Join the ratings table to the movies table on the movie_id column to connect each rating score with its corresponding movie title.\n2. Filter the joined rows to only those where movie_title matches 'Versailles Rive-Gauche'.\n3. Compute the average of the rating_score column from the ratings table for the filtered set.\n4. Return the resulting average rating_score value.", + "steps": [ + "Join the ratings table to the movies table on the movie_id column to connect each rating score with its corresponding movie title.", + "Filter the joined rows to only those where movie_title matches 'Versailles Rive-Gauche'.", + "Compute the average of the rating_score column from the ratings table for the filtered set.", + "Return the resulting average rating_score value." + ] + }, + "revisql-train:1061": { + "raw": "1. Use the `gender_age` table, which holds `gender`, `group`, and `device_id` for every user.\n2. Identify male users in the 27-28 age group by filtering on `gender = 'M'` and `group = 'M27-28'`.\n3. Identify female users in the same age bracket by filtering on `gender = 'F'` and `group = 'F27-28'`.\n4. Compute the ratio by dividing the count of matching males by the count of matching females; express each count as a conditional sum (e.g., `SUM(IIF(condition, 1.0, 0.0))`) so both aggregates can be calculated in the same SELECT.\n5. Return the single resulting value in a column named `r`.", + "steps": [ + "Use the `gender_age` table, which holds `gender`, `group`, and `device_id` for every user.", + "Identify male users in the 27-28 age group by filtering on `gender = 'M'` and `group = 'M27-28'`.", + "Identify female users in the same age bracket by filtering on `gender = 'F'` and `group = 'F27-28'`.", + "Compute the ratio by dividing the count of matching males by the count of matching females; express each count as a conditional sum (e.g., `SUM(IIF(condition, 1.0, 0.0))`) so both aggregates can be calculated in the same SELECT.", + "Return the single resulting value in a column named `r`." + ] + }, + "revisql-train:1063": { + "raw": "1. Join the `events` table with `phone_brand_device_model2` on `device_id` to link event locations and dates to device brand and model information.\n2. Filter the `events` table by mapping \"on 5th May, 2016\" to `timestamp LIKE '2016-05-05%'` per the external knowledge.\n3. Filter the `events` table by mapping \"coordinates of (112,36)\" to `longitude = 112` and `latitude = 36` per the external knowledge.\n4. Use `DISTINCT` when returning `phone_brand` and `device_model` from the device table to ensure each brand-model pair is listed only once, since a single device may have multiple qualifying events.", + "steps": [ + "Join the `events` table with `phone_brand_device_model2` on `device_id` to link event locations and dates to device brand and model information.", + "Filter the `events` table by mapping \"on 5th May, 2016\" to `timestamp LIKE '2016-05-05%'` per the external knowledge.", + "Filter the `events` table by mapping \"coordinates of (112,36)\" to `longitude = 112` and `latitude = 36` per the external knowledge.", + "Use `DISTINCT` when returning `phone_brand` and `device_model` from the device table to ensure each brand-model pair is listed only once, since a single device may have multiple qualifying events." + ] + }, + "revisql-train:1064": { + "raw": "1. Map the external knowledge to columns: interpret \"app user IDs\" as app_id from app_events and \"time\" as timestamp from events.\n2. Identify app_events and events as the relevant tables, linked by the event_id column present in both.\n3. Join app_events to events on matching event_id values to associate each app user with the event's timestamp.\n4. Filter the joined rows to keep only those where event_id equals 82.\n5. Return the app_id and timestamp columns as the final output.", + "steps": [ + "Map the external knowledge to columns: interpret \"app user IDs\" as app_id from app_events and \"time\" as timestamp from events.", + "Identify app_events and events as the relevant tables, linked by the event_id column present in both.", + "Join app_events to events on matching event_id values to associate each app user with the event's timestamp.", + "Filter the joined rows to keep only those where event_id equals 82.", + "Return the app_id and timestamp columns as the final output." + ] + }, + "revisql-train:1067": { + "raw": "1. Use the `gender_age` table to retrieve each user's `age` and `gender`, and join it with the `events` table on matching `device_id` values to link users to their events.\n2. Filter the joined rows to only those located at the given coordinates by requiring `events.longitude` = -102 and `events.latitude` = 38.\n3. Group the filtered results by `gender_age.device_id` to aggregate per unique user.\n4. Count the `events.event_id` entries within each group to compute the number of events per user, returning this as `num_events`.\n5. Select the final columns `age`, `gender`, and `num_events`.", + "steps": [ + "Use the `gender_age` table to retrieve each user's `age` and `gender`, and join it with the `events` table on matching `device_id` values to link users to their events.", + "Filter the joined rows to only those located at the given coordinates by requiring `events.longitude` = -102 and `events.latitude` = 38.", + "Group the filtered results by `gender_age.device_id` to aggregate per unique user.", + "Count the `events.event_id` entries within each group to compute the number of events per user, returning this as `num_events`.", + "Select the final columns `age`, `gender`, and `num_events`." + ] + }, + "revisql-train:1068": { + "raw": "1. Start with `phone_brand_device_model2` to get the `phone_brand` and `device_model` columns.\n2. Join it to `events` using `device_id` as the common key to bring in location data for each device.\n3. Apply the coordinate filter by restricting `longitude` to 80 and `latitude` to 44, mapping the external knowledge value (80,44) to those two columns.\n4. Use `DISTINCT` on `phone_brand` and `device_model` so the result returns only unique brand-model combinations for users at that location.", + "steps": [ + "Start with `phone_brand_device_model2` to get the `phone_brand` and `device_model` columns.", + "Join it to `events` using `device_id` as the common key to bring in location data for each device.", + "Apply the coordinate filter by restricting `longitude` to 80 and `latitude` to 44, mapping the external knowledge value (80,44) to those two columns.", + "Use `DISTINCT` on `phone_brand` and `device_model` so the result returns only unique brand-model combinations for users at that location." + ] + }, + "revisql-train:107": { + "raw": "1. Join the ratings table with the movies table on the movie_id key to link each rating to its corresponding film.\n2. Filter the ratings table to only rows where user_id equals 59988436, mapping the specified user in the question.\n3. Further filter the ratings table to only rows where critic_comments equals 21, mapping the \"received 21 comments\" condition.\n4. Return the movie_title column from the movies table to output the names of the matching films.", + "steps": [ + "Join the ratings table with the movies table on the movie_id key to link each rating to its corresponding film.", + "Filter the ratings table to only rows where user_id equals 59988436, mapping the specified user in the question.", + "Further filter the ratings table to only rows where critic_comments equals 21, mapping the \"received 21 comments\" condition.", + "Return the movie_title column from the movies table to output the names of the matching films." + ] + }, + "revisql-train:1076": { + "raw": "1. Use only the `events` table; no joins are needed because the question asks for an overall total rather than device-specific details.\n2. Map the phrase \"in 2016\" to the `timestamp` column using the external knowledge, filtering to rows where the timestamp falls within the year 2016.\n3. Apply COUNT to the `event_id` column to compute the total number of events.\n4. Return exactly one column: the count of `event_id`.", + "steps": [ + "Use only the `events` table; no joins are needed because the question asks for an overall total rather than device-specific details.", + "Map the phrase \"in 2016\" to the `timestamp` column using the external knowledge, filtering to rows where the timestamp falls within the year 2016.", + "Apply COUNT to the `event_id` column to compute the total number of events.", + "Return exactly one column: the count of `event_id`." + ] + }, + "revisql-train:1079": { + "raw": "1. Identify the `gender_age` table as the source that contains the `age` column for each `device_id`.\n2. Map the phrase \"oldest device user\" to the maximum age using the external knowledge, which means applying the MAX aggregate to the `age` column.\n3. Since all required data resides in `gender_age`, no table joins or filter conditions are necessary.\n4. Return exactly one column: the maximum `age`.", + "steps": [ + "Identify the `gender_age` table as the source that contains the `age` column for each `device_id`.", + "Map the phrase \"oldest device user\" to the maximum age using the external knowledge, which means applying the MAX aggregate to the `age` column.", + "Since all required data resides in `gender_age`, no table joins or filter conditions are necessary.", + "Return exactly one column: the maximum `age`." + ] + }, + "revisql-train:1087": { + "raw": "1. Use the app_events table to access activity status and event identifiers, app_labels to map apps to behavioral labels, and label_categories to get the category names.\n2. Join app_labels to app_events on the app_id column to connect each event record with its corresponding labels.\n3. Join label_categories to app_labels on the label_id column to retrieve the category text for each label.\n4. Filter for rows where event_id equals 2 and is_active equals 0, mapping the external knowledge that \"event no.2\" means event_id = 2 and \"not active\" means is_active = 0.\n5. Return distinct values of the category column from label_categories to remove duplicates.", + "steps": [ + "Use the app_events table to access activity status and event identifiers, app_labels to map apps to behavioral labels, and label_categories to get the category names.", + "Join app_labels to app_events on the app_id column to connect each event record with its corresponding labels.", + "Join label_categories to app_labels on the label_id column to retrieve the category text for each label.", + "Filter for rows where event_id equals 2 and is_active equals 0, mapping the external knowledge that \"event no.2\" means event_id = 2 and \"not active\" means is_active = 0.", + "Return distinct values of the category column from label_categories to remove duplicates." + ] + }, + "revisql-train:1091": { + "raw": "1. Use the events table to isolate rows where event_id equals 4, mapping \"event no.\" to event_id.\n2. Use phone_brand_device_model2 to access device brands, mapping \"vivo devices\" to phone_brand = 'vivo'.\n3. Inner join the two tables on device_id to link every event 4 occurrence to its device's brand.\n4. Apply both filters simultaneously: event_id = 4 and phone_brand = 'vivo'.\n5. Count distinct device_id values from the phone brand table to avoid duplicate devices and return that single number.", + "steps": [ + "Use the events table to isolate rows where event_id equals 4, mapping \"event no.\" to event_id.", + "Use phone_brand_device_model2 to access device brands, mapping \"vivo devices\" to phone_brand = 'vivo'.", + "Inner join the two tables on device_id to link every event 4 occurrence to its device's brand.", + "Apply both filters simultaneously: event_id = 4 and phone_brand = 'vivo'.", + "Count distinct device_id values from the phone brand table to avoid duplicate devices and return that single number." + ] + }, + "revisql-train:1098": { + "raw": "1. Join gender_age with phone_brand_device_model2 on device_id to get user groups alongside phone brands.\n2. Filter the joined rows to phone_brand = 'vivo', mapping the external knowledge for vivo devices.\n3. Group by device_id to deduplicate any device with multiple model entries, keeping the group value.\n4. In the outer query, sum 1.0 when group = 'M23-26' (mapping the M23-26 knowledge) and 0 otherwise for the numerator, and count all device_id rows for the denominator.\n5. Divide the numerator by the denominator, multiply by 100, and return the single percentage column named per.", + "steps": [ + "Join gender_age with phone_brand_device_model2 on device_id to get user groups alongside phone brands.", + "Filter the joined rows to phone_brand = 'vivo', mapping the external knowledge for vivo devices.", + "Group by device_id to deduplicate any device with multiple model entries, keeping the group value.", + "In the outer query, sum 1.0 when group = 'M23-26' (mapping the M23-26 knowledge) and 0 otherwise for the numerator, and count all device_id rows for the denominator.", + "Divide the numerator by the denominator, multiply by 100, and return the single percentage column named per." + ] + }, + "revisql-train:11": { + "raw": "1. Join the `ratings` table to `movies` on `movie_id` to connect each rating with its corresponding movie title.\n2. Filter `ratings` to only rows where `rating_timestamp_utc` indicates the year 2020.\n3. Further filter to rows where `rating_score` is 4 or greater, mapping the \"4 and above\" requirement.\n4. Return distinct values of `movie_title` from the `movies` table to avoid duplicate titles when a movie has multiple qualifying ratings.", + "steps": [ + "Join the `ratings` table to `movies` on `movie_id` to connect each rating with its corresponding movie title.", + "Filter `ratings` to only rows where `rating_timestamp_utc` indicates the year 2020.", + "Further filter to rows where `rating_score` is 4 or greater, mapping the \"4 and above\" requirement.", + "Return distinct values of `movie_title` from the `movies` table to avoid duplicate titles when a movie has multiple qualifying ratings." + ] + }, + "revisql-train:1102": { + "raw": "1. Union the `age` and `gender` columns from `gender_age` and `gender_age_train` to gather all user records in one set.\n2. Filter the combined records to keep only rows where `gender` equals 'M'.\n3. Apply MAX to the `age` column of the filtered results to find the oldest male user's age.\n4. Return the resulting maximum age value as the sole output column.", + "steps": [ + "Union the `age` and `gender` columns from `gender_age` and `gender_age_train` to gather all user records in one set.", + "Filter the combined records to keep only rows where `gender` equals 'M'.", + "Apply MAX to the `age` column of the filtered results to find the oldest male user's age.", + "Return the resulting maximum age value as the sole output column." + ] + }, + "revisql-train:1104": { + "raw": "1. Use the `gender_age` table, which stores each user's `gender` and `age`.\n2. Filter rows to only those where `gender` equals `'F'` to isolate female users.\n3. Apply the `MIN` aggregate on the `age` column to find the youngest age among those users.\n4. Return only that minimum age value.", + "steps": [ + "Use the `gender_age` table, which stores each user's `gender` and `age`.", + "Filter rows to only those where `gender` equals `'F'` to isolate female users.", + "Apply the `MIN` aggregate on the `age` column to find the youngest age among those users.", + "Return only that minimum age value." + ] + }, + "revisql-train:1105": { + "raw": "1. Target the table phone_brand_device_model2, which stores phone brands and their associated device models; no joins are required.\n2. Map the question term \"models\" to the column device_model using the external knowledge.\n3. Filter rows to only those where phone_brand equals 'vivo'.\n4. Apply COUNT with DISTINCT on device_model to compute the number of unique models, since the same model can appear across multiple device_ids.\n5. Return the single aggregated count value as the final output.", + "steps": [ + "Target the table phone_brand_device_model2, which stores phone brands and their associated device models; no joins are required.", + "Map the question term \"models\" to the column device_model using the external knowledge.", + "Filter rows to only those where phone_brand equals 'vivo'.", + "Apply COUNT with DISTINCT on device_model to compute the number of unique models, since the same model can appear across multiple device_ids.", + "Return the single aggregated count value as the final output." + ] + }, + "revisql-train:1112": { + "raw": "1. Map the external knowledge: interpret \"oldest user\" as the maximum value in the `age` column of `gender_age`, and \"brand\" as the `phone_brand` column in `phone_brand_device_model2`.\n2. Compute the maximum `age` from `gender_age` to find the oldest user's age.\n3. Retrieve the `device_id`(s) from `gender_age` where `age` equals that maximum.\n4. Filter `phone_brand_device_model2` by those `device_id`s to get the corresponding rows.\n5. Return the distinct `phone_brand` values from the matched rows.", + "steps": [ + "Map the external knowledge: interpret \"oldest user\" as the maximum value in the `age` column of `gender_age`, and \"brand\" as the `phone_brand` column in `phone_brand_device_model2`.", + "Compute the maximum `age` from `gender_age` to find the oldest user's age.", + "Retrieve the `device_id`(s) from `gender_age` where `age` equals that maximum.", + "Filter `phone_brand_device_model2` by those `device_id`s to get the corresponding rows.", + "Return the distinct `phone_brand` values from the matched rows." + ] + }, + "revisql-train:1116": { + "raw": "1. Combine all device gender information by taking the union of device_id and gender from gender_age and gender_age_train.\n2. Join the combined set with phone_brand_device_model2 on device_id to obtain the corresponding device_model for each user.\n3. Filter the results to only female users by keeping rows where gender equals 'F'.\n4. Group by device_model and count the number of devices per model, using that count as the measure of how commonly a model is used.\n5. Order the results by that count in descending order and limit the output to the top 5 records.\n6. Return only the device_model column.", + "steps": [ + "Combine all device gender information by taking the union of device_id and gender from gender_age and gender_age_train.", + "Join the combined set with phone_brand_device_model2 on device_id to obtain the corresponding device_model for each user.", + "Filter the results to only female users by keeping rows where gender equals 'F'.", + "Group by device_model and count the number of devices per model, using that count as the measure of how commonly a model is used.", + "Order the results by that count in descending order and limit the output to the top 5 records.", + "Return only the device_model column." + ] + }, + "revisql-train:1119": { + "raw": "1. Target the table `phone_brand_device_model2`, which stores both device models and their corresponding phone brands.\n2. Filter rows where the `device_model` column exactly matches the value '坚果手机'.\n3. Apply DISTINCT on `phone_brand` to eliminate duplicate brand names from the result.\n4. Return only the `phone_brand` column.", + "steps": [ + "Target the table `phone_brand_device_model2`, which stores both device models and their corresponding phone brands.", + "Filter rows where the `device_model` column exactly matches the value '坚果手机'.", + "Apply DISTINCT on `phone_brand` to eliminate duplicate brand names from the result.", + "Return only the `phone_brand` column." + ] + }, + "revisql-train:1123": { + "raw": "1. Use the events table as the only source because it stores every event and its timestamp.\n2. Map the external knowledge date 2016/5/6 to the timestamp column, targeting the date portion while ignoring the time portion.\n3. Filter rows by checking that the timestamp starts with 2016-05-06 to include all events occurring on that specific day.\n4. Aggregate by counting event_id to produce the total number of events satisfying the date filter.\n5. Return the single computed count value as the answer.", + "steps": [ + "Use the events table as the only source because it stores every event and its timestamp.", + "Map the external knowledge date 2016/5/6 to the timestamp column, targeting the date portion while ignoring the time portion.", + "Filter rows by checking that the timestamp starts with 2016-05-06 to include all events occurring on that specific day.", + "Aggregate by counting event_id to produce the total number of events satisfying the date filter.", + "Return the single computed count value as the answer." + ] + }, + "revisql-train:1132": { + "raw": "1. Identify that the app_id 894384172610331350 is stored in the app_labels table, which maps apps to label_ids, while the human-readable category names reside in the label_categories table.\n2. Join label_categories to app_labels using label_id as the join key to connect each app label to its corresponding category text.\n3. Filter the joined rows to only those where app_labels.app_id equals 894384172610331350.\n4. Return the category column from label_categories as the final output.", + "steps": [ + "Identify that the app_id 894384172610331350 is stored in the app_labels table, which maps apps to label_ids, while the human-readable category names reside in the label_categories table.", + "Join label_categories to app_labels using label_id as the join key to connect each app label to its corresponding category text.", + "Filter the joined rows to only those where app_labels.app_id equals 894384172610331350.", + "Return the category column from label_categories as the final output." + ] + }, + "revisql-train:1133": { + "raw": "1. Join `app_events` with `events` on `event_id` to link app activity status and identifiers to event time and location.\n2. Filter `events.timestamp` to the value mapped from \"14:09:49 on 2016/5/6\" per the external knowledge.\n3. Filter `events.longitude` to 116 and `events.latitude` to 40, mapped from the coordinate (116, 40).\n4. Filter `app_events.is_active` to 1, mapped from the term \"active\".\n5. Return the count of distinct `app_events.app_id` as the number of unique active apps.", + "steps": [ + "Join `app_events` with `events` on `event_id` to link app activity status and identifiers to event time and location.", + "Filter `events.timestamp` to the value mapped from \"14:09:49 on 2016/5/6\" per the external knowledge.", + "Filter `events.longitude` to 116 and `events.latitude` to 40, mapped from the coordinate (116, 40).", + "Filter `app_events.is_active` to 1, mapped from the term \"active\".", + "Return the count of distinct `app_events.app_id` as the number of unique active apps." + ] + }, + "revisql-train:1135": { + "raw": "1. Select from the phone_brand_device_model2 table, which stores device_id and phone_brand.\n2. Filter rows where phone_brand equals 'vivo', applying the external knowledge that brand vivo maps to this exact column value.\n3. Count distinct device_id values to ensure each device is counted only once, since a device may have multiple model entries under the same brand.\n4. Return the resulting count as the single output value.", + "steps": [ + "Select from the phone_brand_device_model2 table, which stores device_id and phone_brand.", + "Filter rows where phone_brand equals 'vivo', applying the external knowledge that brand vivo maps to this exact column value.", + "Count distinct device_id values to ensure each device is counted only once, since a device may have multiple model entries under the same brand.", + "Return the resulting count as the single output value." + ] + }, + "revisql-train:1139": { + "raw": "1. Target the `gender_age` table, which contains both the `age` and `gender` for every device user.\n2. Compute the maximum `age` value across all rows in `gender_age` to identify the oldest device user's age.\n3. Filter `gender_age` to keep only rows where `age` equals that maximum value.\n4. Return the `gender` column from those rows, yielding 'F' or 'M' for the oldest user(s).", + "steps": [ + "Target the `gender_age` table, which contains both the `age` and `gender` for every device user.", + "Compute the maximum `age` value across all rows in `gender_age` to identify the oldest device user's age.", + "Filter `gender_age` to keep only rows where `age` equals that maximum value.", + "Return the `gender` column from those rows, yielding 'F' or 'M' for the oldest user(s)." + ] + }, + "revisql-train:1142": { + "raw": "1. Identify the two required tables: label_categories for the category name and app_labels for the app identifiers.\n2. Join label_categories to app_labels using the shared label_id column.\n3. Apply a filter requiring the category column to exactly match 'Securities'.\n4. Return distinct app_id values from the app_labels table to eliminate duplicates.", + "steps": [ + "Identify the two required tables: label_categories for the category name and app_labels for the app identifiers.", + "Join label_categories to app_labels using the shared label_id column.", + "Apply a filter requiring the category column to exactly match 'Securities'.", + "Return distinct app_id values from the app_labels table to eliminate duplicates." + ] + }, + "revisql-train:1144": { + "raw": "1. Start with the `gender_age` table for user group data and the `events` table for event timestamps.\n2. Inner join these two tables on the `device_id` column to link each event to its corresponding user's demographic record.\n3. Filter the joined rows to keep only those where the year extracted from `events.timestamp` equals 2016.\n4. Further filter those rows to keep only records where `gender_age`.`group` is exactly 'M23-26'.\n5. Count the distinct values of `device_id` to ensure each device is counted only once regardless of how many 2016 events it had.\n6. Return that distinct device count as the result.", + "steps": [ + "Start with the `gender_age` table for user group data and the `events` table for event timestamps.", + "Inner join these two tables on the `device_id` column to link each event to its corresponding user's demographic record.", + "Filter the joined rows to keep only those where the year extracted from `events.timestamp` equals 2016.", + "Further filter those rows to keep only records where `gender_age`.`group` is exactly 'M23-26'.", + "Count the distinct values of `device_id` to ensure each device is counted only once regardless of how many 2016 events it had.", + "Return that distinct device count as the result." + ] + }, + "revisql-train:1145": { + "raw": "1. Join `gender_age` with `phone_brand_device_model2` on `device_id` to link user demographic records to device brands.\n2. Filter the joined rows to only those where `gender_age`.`group` equals 'M23-26' using the external knowledge mapping.\n3. Group the results by `phone_brand` and count `gender_age`.`device_id` to compute the number of users per brand.\n4. Determine the maximum user count value across all brands.\n5. Return only the `phone_brand` column for brands whose user count matches that maximum.", + "steps": [ + "Join `gender_age` with `phone_brand_device_model2` on `device_id` to link user demographic records to device brands.", + "Filter the joined rows to only those where `gender_age`.`group` equals 'M23-26' using the external knowledge mapping.", + "Group the results by `phone_brand` and count `gender_age`.`device_id` to compute the number of users per brand.", + "Determine the maximum user count value across all brands.", + "Return only the `phone_brand` column for brands whose user count matches that maximum." + ] + }, + "revisql-train:1154": { + "raw": "1. Join `gender_age` with `events` on `device_id` to identify all users who have at least one event.\n2. Aggregate the resulting ages to find the maximum age, applying the external knowledge that \"oldest user\" maps to `MAX(age)`.\n3. Join `gender_age` with `events` again on `device_id` and filter to only rows where the age equals that maximum age.\n4. Return the `event_id` column from the events table.", + "steps": [ + "Join `gender_age` with `events` on `device_id` to identify all users who have at least one event.", + "Aggregate the resulting ages to find the maximum age, applying the external knowledge that \"oldest user\" maps to `MAX(age)`.", + "Join `gender_age` with `events` again on `device_id` and filter to only rows where the age equals that maximum age.", + "Return the `event_id` column from the events table." + ] + }, + "revisql-train:1155": { + "raw": "1. Use the `gender_age` table to isolate female users by filtering on `gender` = 'F'.\n2. Compute the minimum `age` within that female subset to identify the youngest age.\n3. Retrieve the `device_id`(s) from `gender_age` for females whose `age` equals that minimum value.\n4. In the `events` table, count all rows where `device_id` matches the identifier(s) found in step 3.\n5. Return that total count of events.", + "steps": [ + "Use the `gender_age` table to isolate female users by filtering on `gender` = 'F'.", + "Compute the minimum `age` within that female subset to identify the youngest age.", + "Retrieve the `device_id`(s) from `gender_age` for females whose `age` equals that minimum value.", + "In the `events` table, count all rows where `device_id` matches the identifier(s) found in step 3.", + "Return that total count of events." + ] + }, + "revisql-train:1156": { + "raw": "1. Use the `events` table to identify all events occurring on 2016-05-01 by filtering on the `timestamp` column.\n2. Join `gender_age` to `events` using `device_id` as the join key to access the gender of each device's user.\n3. Filter the joined results to keep only rows where `gender` equals 'M', mapping \"male\" from the external knowledge.\n4. Count distinct values of `device_id` from the `events` table to ensure each device is counted only once regardless of multiple events.\n5. Return that count as the final answer.", + "steps": [ + "Use the `events` table to identify all events occurring on 2016-05-01 by filtering on the `timestamp` column.", + "Join `gender_age` to `events` using `device_id` as the join key to access the gender of each device's user.", + "Filter the joined results to keep only rows where `gender` equals 'M', mapping \"male\" from the external knowledge.", + "Count distinct values of `device_id` from the `events` table to ensure each device is counted only once regardless of multiple events.", + "Return that count as the final answer." + ] + }, + "revisql-train:1157": { + "raw": "1. Join `app_labels` to `label_categories` on `label_id` to associate each app with its category text.\n2. Filter the joined rows to only those where the category is 'Securities' or 'Finance'.\n3. Compute distinct counts of `app_id` for the 'Securities' subset and for the 'Finance' subset to measure app users in each.\n4. Compare the two counts and select 'Securities' when its distinct count is greater; otherwise select 'Finance'.\n5. Return exactly one column named `category_with_more_app_users` holding the selected category name.", + "steps": [ + "Join `app_labels` to `label_categories` on `label_id` to associate each app with its category text.", + "Filter the joined rows to only those where the category is 'Securities' or 'Finance'.", + "Compute distinct counts of `app_id` for the 'Securities' subset and for the 'Finance' subset to measure app users in each.", + "Compare the two counts and select 'Securities' when its distinct count is greater; otherwise select 'Finance'.", + "Return exactly one column named `category_with_more_app_users` holding the selected category name." + ] + }, + "revisql-train:1162": { + "raw": "1. Use the `label_categories` table, which stores the mapping between label IDs and category names.\n2. Filter rows where the `category` column exactly equals \"Third-party card management\".\n3. No joins or aggregation are needed for this direct lookup.\n4. Return only the `label_id` column as the result.", + "steps": [ + "Use the `label_categories` table, which stores the mapping between label IDs and category names.", + "Filter rows where the `category` column exactly equals \"Third-party card management\".", + "No joins or aggregation are needed for this direct lookup.", + "Return only the `label_id` column as the result." + ] + }, + "revisql-train:1166": { + "raw": "1. Use the `events` table, which holds the event records and their location coordinates.\n2. Filter rows where the `longitude` column equals -156, treating the value as a number.\n3. Count the `event_id` values to compute the total number of events at that longitude.\n4. Return only that count column.", + "steps": [ + "Use the `events` table, which holds the event records and their location coordinates.", + "Filter rows where the `longitude` column equals -156, treating the value as a number.", + "Count the `event_id` values to compute the total number of events at that longitude.", + "Return only that count column." + ] + }, + "revisql-train:1167": { + "raw": "1. Use the `app_labels` table, which stores the relationship between app users and label IDs.\n2. Filter rows where `label_id` equals 48 to match the requested label.\n3. Count distinct `app_id` values to ensure each app user is only counted once.\n4. Return only that count.", + "steps": [ + "Use the `app_labels` table, which stores the relationship between app users and label IDs.", + "Filter rows where `label_id` equals 48 to match the requested label.", + "Count distinct `app_id` values to ensure each app user is only counted once.", + "Return only that count." + ] + }, + "revisql-train:1175": { + "raw": "1. Join the events table to phone_brand_device_model2 on device_id to link each event to the phone brand of the participating device.\n2. Filter phone_brand to the value 'OPPO', applying the external knowledge that OPPO refers to that specific brand string.\n3. Filter the event timestamp to the date 2016-05-01 and the hour 00, applying the external knowledge that \"around 12 AM on 1st May, 2016\" maps to those datetime components.\n4. Count distinct device_id values to obtain the number of unique users who participated, ensuring multiple events from the same device do not inflate the total.\n5. Return the resulting count as the single column named oppo_users_midnight.", + "steps": [ + "Join the events table to phone_brand_device_model2 on device_id to link each event to the phone brand of the participating device.", + "Filter phone_brand to the value 'OPPO', applying the external knowledge that OPPO refers to that specific brand string.", + "Filter the event timestamp to the date 2016-05-01 and the hour 00, applying the external knowledge that \"around 12 AM on 1st May, 2016\" maps to those datetime components.", + "Count distinct device_id values to obtain the number of unique users who participated, ensuring multiple events from the same device do not inflate the total.", + "Return the resulting count as the single column named oppo_users_midnight." + ] + }, + "revisql-train:1180": { + "raw": "1. Identify that the events table holds event_id and device_id, while phone brand and model information are stored in phone_brand_device_model2.\n2. Apply the external knowledge that \"model\" refers to the device_model column in phone_brand_device_model2.\n3. Join the events table to phone_brand_device_model2 on the shared device_id column to connect event 6701 with its device.\n4. Filter the result to only the row where event_id equals 6701.\n5. Return the phone_brand and device_model columns from phone_brand_device_model2.", + "steps": [ + "Identify that the events table holds event_id and device_id, while phone brand and model information are stored in phone_brand_device_model2.", + "Apply the external knowledge that \"model\" refers to the device_model column in phone_brand_device_model2.", + "Join the events table to phone_brand_device_model2 on the shared device_id column to connect event 6701 with its device.", + "Filter the result to only the row where event_id equals 6701.", + "Return the phone_brand and device_model columns from phone_brand_device_model2." + ] + }, + "revisql-train:1182": { + "raw": "1. Use the `events` table since it stores event records with identifiers and timing data.\n2. Map the requested \"time\" to the `timestamp` column in that table.\n3. Filter the rows to only the record where `event_id` equals 12.\n4. Return exactly the `timestamp` column.", + "steps": [ + "Use the `events` table since it stores event records with identifiers and timing data.", + "Map the requested \"time\" to the `timestamp` column in that table.", + "Filter the rows to only the record where `event_id` equals 12.", + "Return exactly the `timestamp` column." + ] + }, + "revisql-train:1183": { + "raw": "1. Query the app_events table, which stores activity flags and user identifiers for each event.\n2. Filter rows to only those where is_active equals 1, applying the external knowledge that \"active\" means is_active = 1.\n3. Treat app_id as the user identifier, since each app_id represents a distinct user.\n4. Compute the total by counting distinct app_id values to avoid double-counting the same user across multiple events.\n5. Return the single aggregated count column.", + "steps": [ + "Query the app_events table, which stores activity flags and user identifiers for each event.", + "Filter rows to only those where is_active equals 1, applying the external knowledge that \"active\" means is_active = 1.", + "Treat app_id as the user identifier, since each app_id represents a distinct user.", + "Compute the total by counting distinct app_id values to avoid double-counting the same user across multiple events.", + "Return the single aggregated count column." + ] + }, + "revisql-train:1187": { + "raw": "1. Identify that the requested \"age group\" maps to the `group` column in the `gender_age` table based on the external knowledge.\n2. Join `gender_age` with `phone_brand_device_model2` on the `device_id` key to associate each user with their device brand.\n3. Filter the joined rows to only those where `phone_brand` equals 'vivo'.\n4. Use DISTINCT on the `group` column to return each unique age group only once, avoiding duplicates from multiple users.\n5. Return solely the `group` column as the final output.", + "steps": [ + "Identify that the requested \"age group\" maps to the `group` column in the `gender_age` table based on the external knowledge.", + "Join `gender_age` with `phone_brand_device_model2` on the `device_id` key to associate each user with their device brand.", + "Filter the joined rows to only those where `phone_brand` equals 'vivo'.", + "Use DISTINCT on the `group` column to return each unique age group only once, avoiding duplicates from multiple users.", + "Return solely the `group` column as the final output." + ] + }, + "revisql-train:119": { + "raw": "1. Join the `ratings` table to the `movies` table on the shared `movie_id` column.\n2. Filter the `movies` table to rows where `movie_title` equals 'Downfall', mapping the movie name from the external knowledge.\n3. Filter the `ratings` table to rows where `rating_score` equals 4, mapping the rating value from the external knowledge.\n4. Count distinct `user_id` values from the `ratings` table to obtain the number of unique users who met both criteria.\n5. Return that single aggregated count.", + "steps": [ + "Join the `ratings` table to the `movies` table on the shared `movie_id` column.", + "Filter the `movies` table to rows where `movie_title` equals 'Downfall', mapping the movie name from the external knowledge.", + "Filter the `ratings` table to rows where `rating_score` equals 4, mapping the rating value from the external knowledge.", + "Count distinct `user_id` values from the `ratings` table to obtain the number of unique users who met both criteria.", + "Return that single aggregated count." + ] + }, + "revisql-train:1190": { + "raw": "1. Join `gender_age` and `phone_brand_device_model2` on the `device_id` key to connect each user's age with their device model.\n2. Filter the joined rows to only those where `device_model` equals the string 'R7'.\n3. In a subquery, select the `age` column and group by `device_id` to ensure each distinct user contributes only one age value, preventing duplication from the composite primary key.\n4. Apply the `AVG` aggregation to the `age` values produced by the subquery, using the external knowledge that average age maps to `AVG(age)`.\n5. Return the final result as a single column, `AVG(age)`.", + "steps": [ + "Join `gender_age` and `phone_brand_device_model2` on the `device_id` key to connect each user's age with their device model.", + "Filter the joined rows to only those where `device_model` equals the string 'R7'.", + "In a subquery, select the `age` column and group by `device_id` to ensure each distinct user contributes only one age value, preventing duplication from the composite primary key.", + "Apply the `AVG` aggregation to the `age` values produced by the subquery, using the external knowledge that average age maps to `AVG(age)`.", + "Return the final result as a single column, `AVG(age)`." + ] + }, + "revisql-train:1192": { + "raw": "1. Map the requested \"group of age\" to the `group` column in the `gender_age` table.\n2. Join `gender_age` with `phone_brand_device_model2` on the shared `device_id` key to link users with their phone brands.\n3. Filter the joined rows to keep only those where `phone_brand` equals 'LG'.\n4. Return the `group` column from `gender_age`, using DISTINCT to output each unique age group only once.", + "steps": [ + "Map the requested \"group of age\" to the `group` column in the `gender_age` table.", + "Join `gender_age` with `phone_brand_device_model2` on the shared `device_id` key to link users with their phone brands.", + "Filter the joined rows to keep only those where `phone_brand` equals 'LG'.", + "Return the `group` column from `gender_age`, using DISTINCT to output each unique age group only once." + ] + }, + "revisql-train:1195": { + "raw": "1. Use the gender_age and phone_brand_device_model2 tables, joining them on device_id to connect user demographics with device model information.\n2. Filter for male users by checking that gender_age.gender equals 'M', applying the external knowledge mapping.\n3. Filter for the specific device model by checking that phone_brand_device_model2.device_model equals 'Desire 820'.\n4. Count distinct device_id values to ensure each male user is counted only once.\n5. Return the resulting count of distinct device_id as the final answer column.", + "steps": [ + "Use the gender_age and phone_brand_device_model2 tables, joining them on device_id to connect user demographics with device model information.", + "Filter for male users by checking that gender_age.gender equals 'M', applying the external knowledge mapping.", + "Filter for the specific device model by checking that phone_brand_device_model2.device_model equals 'Desire 820'.", + "Count distinct device_id values to ensure each male user is counted only once.", + "Return the resulting count of distinct device_id as the final answer column." + ] + }, + "revisql-train:1205": { + "raw": "1. Union the device_id, age, and gender columns from gender_age_train and gender_age to gather all device demographics into a single combined source.\n2. Map the question's term \"id\" to the device_id column and \"women\" to gender = 'F' using the external knowledge.\n3. Map the age range \"29 to 31 years\" to an inclusive filter where age is between 29 and 31.\n4. Apply both the gender = 'F' and age-between-29-and-31 filters to the combined demographic records.\n5. Return only the device_id column as the final output.", + "steps": [ + "Union the device_id, age, and gender columns from gender_age_train and gender_age to gather all device demographics into a single combined source.", + "Map the question's term \"id\" to the device_id column and \"women\" to gender = 'F' using the external knowledge.", + "Map the age range \"29 to 31 years\" to an inclusive filter where age is between 29 and 31.", + "Apply both the gender = 'F' and age-between-29-and-31 filters to the combined demographic records.", + "Return only the device_id column as the final output." + ] + }, + "revisql-train:1217": { + "raw": "1. Target the `events` table because it stores `event_id`, `timestamp`, and `latitude`.\n2. Return only the `event_id` column.\n3. Use the external knowledge to filter `timestamp` with the `LIKE '2016-05-01%'` pattern for May 1st, 2016.\n4. Add the filter `latitude = 31` for the required coordinate.\n5. Formulate as a single-table query with no joins or aggregation.", + "steps": [ + "Target the `events` table because it stores `event_id`, `timestamp`, and `latitude`.", + "Return only the `event_id` column.", + "Use the external knowledge to filter `timestamp` with the `LIKE '2016-05-01%'` pattern for May 1st, 2016.", + "Add the filter `latitude = 31` for the required coordinate.", + "Formulate as a single-table query with no joins or aggregation." + ] + }, + "revisql-train:1220": { + "raw": "1. Use the `gender_age` table, which contains both `device_id` and `gender` for each user.\n2. Map the term \"female\" to the `gender` column value `'F'` using the external knowledge.\n3. Select only the `device_id` column to return device identifiers.\n4. Filter the rows to those where `gender = 'F'`.", + "steps": [ + "Use the `gender_age` table, which contains both `device_id` and `gender` for each user.", + "Map the term \"female\" to the `gender` column value `'F'` using the external knowledge.", + "Select only the `device_id` column to return device identifiers.", + "Filter the rows to those where `gender = 'F'`." + ] + }, + "revisql-train:1224": { + "raw": "1. Join gender_age to phone_brand_device_model2 on device_id to link each user's gender to their device model.\n2. Filter the joined rows to only those where device_model equals 'Galaxy Note 2'.\n3. Count male and female owners by summing binary indicators on the gender column for values 'M' and 'F', then subtract the female total from the male total.\n4. Apply the external knowledge rule: if the difference is greater than 0 return 'M', otherwise return 'F'.\n5. Return that final value as a single column named gender.", + "steps": [ + "Join gender_age to phone_brand_device_model2 on device_id to link each user's gender to their device model.", + "Filter the joined rows to only those where device_model equals 'Galaxy Note 2'.", + "Count male and female owners by summing binary indicators on the gender column for values 'M' and 'F', then subtract the female total from the male total.", + "Apply the external knowledge rule: if the difference is greater than 0 return 'M', otherwise return 'F'.", + "Return that final value as a single column named gender." + ] + }, + "revisql-train:1228": { + "raw": "1. Identify that the requested age and gender are stored in the `gender_age` table.\n2. Map the external knowledge so that \"device number\" refers to `device_id` = 29182687948017175 and \"event number\" refers to `event_id` = 1.\n3. Join the `gender_age` table with the `events` table on the `device_id` column to associate the user with the specific event.\n4. Filter the joined data where `device_id` equals 29182687948017175 and `event_id` equals 1.\n5. Return the `age` and `gender` columns from the `gender_age` table.", + "steps": [ + "Identify that the requested age and gender are stored in the `gender_age` table.", + "Map the external knowledge so that \"device number\" refers to `device_id` = 29182687948017175 and \"event number\" refers to `event_id` = 1.", + "Join the `gender_age` table with the `events` table on the `device_id` column to associate the user with the specific event.", + "Filter the joined data where `device_id` equals 29182687948017175 and `event_id` equals 1.", + "Return the `age` and `gender` columns from the `gender_age` table." + ] + }, + "revisql-train:1234": { + "raw": "1. Join `label_categories` to `app_labels` on the `label_id` key to link each app with its behavior category.\n2. Apply the external knowledge that \"behavior category\" maps to the `category` column and filter for rows where `category` equals 'Academic Information'.\n3. Count distinct `app_id` values in that filtered set to obtain the numerator.\n4. Count distinct `app_id` values across the entire `app_labels` table to obtain the denominator.\n5. Multiply the numerator by 100, divide by the denominator, and return the resulting percentage as a single calculated column.", + "steps": [ + "Join `label_categories` to `app_labels` on the `label_id` key to link each app with its behavior category.", + "Apply the external knowledge that \"behavior category\" maps to the `category` column and filter for rows where `category` equals 'Academic Information'.", + "Count distinct `app_id` values in that filtered set to obtain the numerator.", + "Count distinct `app_id` values across the entire `app_labels` table to obtain the denominator.", + "Multiply the numerator by 100, divide by the denominator, and return the resulting percentage as a single calculated column." + ] + }, + "revisql-train:1235": { + "raw": "1. From the `events` table, select distinct `device_id` values filtering the `timestamp` column to the 3rd of May 2016 so each device is counted only once regardless of multiple events.\n2. Join this device set with the `gender_age` table on matching `device_id` to access the demographic `group` for every active device.\n3. Calculate the percentage by dividing the number of joined rows where `group` equals 'F27-28' by the total number of joined rows, then multiplying that ratio by 100.0.\n4. Return the result as a single column named exactly `percentage_F27_28`.", + "steps": [ + "From the `events` table, select distinct `device_id` values filtering the `timestamp` column to the 3rd of May 2016 so each device is counted only once regardless of multiple events.", + "Join this device set with the `gender_age` table on matching `device_id` to access the demographic `group` for every active device.", + "Calculate the percentage by dividing the number of joined rows where `group` equals 'F27-28' by the total number of joined rows, then multiplying that ratio by 100.0.", + "Return the result as a single column named exactly `percentage_F27_28`." + ] + }, + "revisql-train:1242": { + "raw": "1. Use `phone_brand_device_model2` for device brands and models, and `events` for event timestamps.\n2. Inner join the two tables on `device_id` to link each event to its device's brand and model.\n3. Filter `events.timestamp` to exactly `'2016-05-07 06:03:22.0'` based on the external knowledge mapping for the specified date and time.\n4. Return the `phone_brand` and `device_model` columns.", + "steps": [ + "Use `phone_brand_device_model2` for device brands and models, and `events` for event timestamps.", + "Inner join the two tables on `device_id` to link each event to its device's brand and model.", + "Filter `events.timestamp` to exactly `'2016-05-07 06:03:22.0'` based on the external knowledge mapping for the specified date and time.", + "Return the `phone_brand` and `device_model` columns." + ] + }, + "revisql-train:1244": { + "raw": "1. Start from `phone_brand_device_model2` and left join `gender_age` on `device_id` to include every vivo device, preserving rows that lack user data.\n2. Filter rows to only those where `phone_brand` equals `'vivo'`.\n3. Treat \"no information\" as `gender` IS NULL, `age` IS NULL, and `group` IS NULL in the `gender_age` table.\n4. Calculate the percentage by summing a conditional expression that returns 1 when all three fields are NULL (otherwise 0), dividing that by the total number of vivo devices with `COUNT(*)`, and multiplying the result by `100.0`.\n5. Return a single column named `percentage_no_info` containing the computed percentage.", + "steps": [ + "Start from `phone_brand_device_model2` and left join `gender_age` on `device_id` to include every vivo device, preserving rows that lack user data.", + "Filter rows to only those where `phone_brand` equals `'vivo'`.", + "Treat \"no information\" as `gender` IS NULL, `age` IS NULL, and `group` IS NULL in the `gender_age` table.", + "Calculate the percentage by summing a conditional expression that returns 1 when all three fields are NULL (otherwise 0), dividing that by the total number of vivo devices with `COUNT(*)`, and multiplying the result by `100.0`.", + "Return a single column named `percentage_no_info` containing the computed percentage." + ] + }, + "revisql-train:1250": { + "raw": "1. Start with the Episode table and filter for rows where the title column equals 'Cherished', applying the external knowledge mapping.\n2. Join the filtered Episode rows with the Vote table using episode_id as the join key to access the vote breakdowns for that episode.\n3. Sum the votes column from the Vote table across all joined rows to calculate the total number of votes.\n4. Return only the resulting aggregated sum of votes.", + "steps": [ + "Start with the Episode table and filter for rows where the title column equals 'Cherished', applying the external knowledge mapping.", + "Join the filtered Episode rows with the Vote table using episode_id as the join key to access the vote breakdowns for that episode.", + "Sum the votes column from the Vote table across all joined rows to calculate the total number of votes.", + "Return only the resulting aggregated sum of votes." + ] + }, + "revisql-train:1254": { + "raw": "1. Map the question's entities using the external knowledge: \"who\" means return the `name` from Person, \"titled 'Cherished'\" means filter `Episode.title` to 'Cherished', \"technical advisor\" means filter `Credit.role` to 'technical advisor', and \"credited\" means filter `Credit.credited` to 'true'.\n2. Join `Episode` to `Credit` on `episode_id` to link the episode title to its associated credits.\n3. Join `Credit` to `Person` on `person_id` to link the qualifying credit to the person's name.\n4. Apply the three filters: `Episode.title = 'Cherished'`, `Credit.role = 'technical advisor'`, and `Credit.credited = 'true'`.\n5. Return the `name` column from the `Person` table.", + "steps": [ + "Map the question's entities using the external knowledge: \"who\" means return the `name` from Person, \"titled 'Cherished'\" means filter `Episode.title` to 'Cherished', \"technical advisor\" means filter `Credit.role` to 'technical advisor', and \"credited\" means filter `Credit.credited` to 'true'.", + "Join `Episode` to `Credit` on `episode_id` to link the episode title to its associated credits.", + "Join `Credit` to `Person` on `person_id` to link the qualifying credit to the person's name.", + "Apply the three filters: `Episode.title = 'Cherished'`, `Credit.role = 'technical advisor'`, and `Credit.credited = 'true'`.", + "Return the `name` column from the `Person` table." + ] + }, + "revisql-train:1262": { + "raw": "1. Map the phrase \"description of what happened\" to the `summary` column in the `Episode` table, and map \"award no.296\" to `award_id = 296` in the `Award` table.\n2. Join `Episode` and `Award` on their shared `episode_id` key to link the award record to the corresponding episode details.\n3. Filter the joined rows to only those where `Award.award_id` equals 296.\n4. Return the single `summary` column from the `Episode` table.", + "steps": [ + "Map the phrase \"description of what happened\" to the `summary` column in the `Episode` table, and map \"award no.296\" to `award_id = 296` in the `Award` table.", + "Join `Episode` and `Award` on their shared `episode_id` key to link the award record to the corresponding episode details.", + "Filter the joined rows to only those where `Award.award_id` equals 296.", + "Return the single `summary` column from the `Episode` table." + ] + }, + "revisql-train:1269": { + "raw": "1. Join Episode and Keyword on episode_id to associate each keyword record with its episode title.\n2. Map the episode names from the external knowledge to Episode.title values 'Refuge: Part 1' and 'Shield'.\n3. Use conditional aggregation to count keyword rows: sum 1 when the title is 'Refuge: Part 1', and sum 1 when the title is 'Shield'.\n4. Cast the sum for 'Refuge: Part 1' to REAL, then divide it by the sum for 'Shield' to obtain the decimal ratio.\n5. Return a single column containing this ratio.", + "steps": [ + "Join Episode and Keyword on episode_id to associate each keyword record with its episode title.", + "Map the episode names from the external knowledge to Episode.title values 'Refuge: Part 1' and 'Shield'.", + "Use conditional aggregation to count keyword rows: sum 1 when the title is 'Refuge: Part 1', and sum 1 when the title is 'Shield'.", + "Cast the sum for 'Refuge: Part 1' to REAL, then divide it by the sum for 'Shield' to obtain the decimal ratio.", + "Return a single column containing this ratio." + ] + }, + "revisql-train:1281": { + "raw": "1. Join the Episode table to the Award table on the shared episode_id key to pair each episode with its award nominations.\n2. Filter the joined rows to keep only episodes whose air_date falls in 1998.\n3. Apply the external knowledge mappings by restricting Award rows to organization = 'International Monitor Awards' and result = 'Winner'.\n4. Aggregate by counting distinct Episode.episode_id so that any episode with multiple matching awards is still counted only once.\n5. Return that single count value as the final answer.", + "steps": [ + "Join the Episode table to the Award table on the shared episode_id key to pair each episode with its award nominations.", + "Filter the joined rows to keep only episodes whose air_date falls in 1998.", + "Apply the external knowledge mappings by restricting Award rows to organization = 'International Monitor Awards' and result = 'Winner'.", + "Aggregate by counting distinct Episode.episode_id so that any episode with multiple matching awards is still counted only once.", + "Return that single count value as the final answer." + ] + }, + "revisql-train:1285": { + "raw": "1. Filter the Episode table to rows where the title column equals 'Agony', using the external knowledge mapping.\n2. Join the Award table to Episode on the episode_id key to access awards linked to that episode.\n3. Filter the Award rows to only those where the result column equals 'Winner', since \"win\" maps to that value.\n4. Count distinct values of the award_id column in the Award table to get the total unique awards won.\n5. Return that count as the single output column.", + "steps": [ + "Filter the Episode table to rows where the title column equals 'Agony', using the external knowledge mapping.", + "Join the Award table to Episode on the episode_id key to access awards linked to that episode.", + "Filter the Award rows to only those where the result column equals 'Winner', since \"win\" maps to that value.", + "Count distinct values of the award_id column in the Award table to get the total unique awards won.", + "Return that count as the single output column." + ] + }, + "revisql-train:1287": { + "raw": "1. Join the Person and Award tables on person_id to connect Constantine Makris to his award records.\n2. Filter to rows where Person.name is 'Constantine Makris' and Award.result is 'Winner', mapping the external knowledge that \"win\" corresponds to the result column value 'Winner'.\n3. Group the filtered results by Award.organization and count Award.award_id to compute the number of wins per organization.\n4. In a subquery, repeat the same join, filters, and grouping, order the per-organization counts descending by the counted awards, and limit to 1 to isolate the maximum win count (the \"most awards\").\n5. Return the Award.organization column from the outer grouped results only for groups whose counted awards equal that maximum subquery value.", + "steps": [ + "Join the Person and Award tables on person_id to connect Constantine Makris to his award records.", + "Filter to rows where Person.name is 'Constantine Makris' and Award.result is 'Winner', mapping the external knowledge that \"win\" corresponds to the result column value 'Winner'.", + "Group the filtered results by Award.organization and count Award.award_id to compute the number of wins per organization.", + "In a subquery, repeat the same join, filters, and grouping, order the per-organization counts descending by the counted awards, and limit to 1 to isolate the maximum win count (the \"most awards\").", + "Return the Award.organization column from the outer grouped results only for groups whose counted awards equal that maximum subquery value." + ] + }, + "revisql-train:1290": { + "raw": "1. Join the Episode and Credit tables on episode_id to link each episode with its crew records.\n2. Filter Credit rows to only those where category equals 'Art Department', mapping the external knowledge phrase \"in the Art Department\".\n3. Group the joined results by Episode.episode_id and count the crew records to obtain the number of Art Department crew members per episode.\n4. Compute the maximum of those per-episode counts by running a subquery on Credit with the same category filter grouped by episode_id, mapping \"highest number of crews\" to MAX(COUNT(*)).\n5. Use a HAVING clause to restrict the grouped results to only the episode(s) whose crew count equals that maximum, and return the Episode.title column.", + "steps": [ + "Join the Episode and Credit tables on episode_id to link each episode with its crew records.", + "Filter Credit rows to only those where category equals 'Art Department', mapping the external knowledge phrase \"in the Art Department\".", + "Group the joined results by Episode.episode_id and count the crew records to obtain the number of Art Department crew members per episode.", + "Compute the maximum of those per-episode counts by running a subquery on Credit with the same category filter grouped by episode_id, mapping \"highest number of crews\" to MAX(COUNT(*)).", + "Use a HAVING clause to restrict the grouped results to only the episode(s) whose crew count equals that maximum, and return the Episode.title column." + ] + }, + "revisql-train:1293": { + "raw": "1. Join the Credit and Person tables on person_id to link each role with the corresponding individual's name and birthdate.\n2. Filter the Credit table to only rows where the role contains 'clerk', applying the external knowledge mapping for a clerk role.\n3. Compute the maximum birthdate from the joined and filtered set to find the youngest person, since youngest corresponds to the latest birthdate.\n4. Return the name column from Person for the record(s) whose birthdate equals that maximum value.", + "steps": [ + "Join the Credit and Person tables on person_id to link each role with the corresponding individual's name and birthdate.", + "Filter the Credit table to only rows where the role contains 'clerk', applying the external knowledge mapping for a clerk role.", + "Compute the maximum birthdate from the joined and filtered set to find the youngest person, since youngest corresponds to the latest birthdate.", + "Return the name column from Person for the record(s) whose birthdate equals that maximum value." + ] + }, + "revisql-train:1295": { + "raw": "1. Identify that cast membership is recorded in the Credit table and that people's names are stored in the Person table.\n2. Join Credit to Person on the person_id key so that each credit record can be matched to the corresponding person's name.\n3. Filter the Credit rows to only those where the category column equals 'Cast', applying the external knowledge that \"cast member\" maps to category = 'Cast'.\n4. Select the name column from the Person table and apply DISTINCT so the result lists each unique cast member name only once.", + "steps": [ + "Identify that cast membership is recorded in the Credit table and that people's names are stored in the Person table.", + "Join Credit to Person on the person_id key so that each credit record can be matched to the corresponding person's name.", + "Filter the Credit rows to only those where the category column equals 'Cast', applying the external knowledge that \"cast member\" maps to category = 'Cast'.", + "Select the name column from the Person table and apply DISTINCT so the result lists each unique cast member name only once." + ] + }, + "revisql-train:1296": { + "raw": "1. Join Credit to Person on person_id, keeping only rows where Credit.category equals 'Cast' because \"appeared\" maps to cast credits.\n2. Group by person_id and count rows to obtain the number of episode appearances for each person.\n3. Determine the maximum appearance count across all cast members by evaluating the per-person counts from Credit with category = 'Cast'.\n4. Use a HAVING condition to retain only the person or persons whose appearance count equals that maximum value.\n5. Compute the percentage by dividing the retained person's appearance count by the total number of episodes in the Episode table and multiplying by 100.0.\n6. Return the person's name and the computed percentage as appearance_pct.", + "steps": [ + "Join Credit to Person on person_id, keeping only rows where Credit.category equals 'Cast' because \"appeared\" maps to cast credits.", + "Group by person_id and count rows to obtain the number of episode appearances for each person.", + "Determine the maximum appearance count across all cast members by evaluating the per-person counts from Credit with category = 'Cast'.", + "Use a HAVING condition to retain only the person or persons whose appearance count equals that maximum value.", + "Compute the percentage by dividing the retained person's appearance count by the total number of episodes in the Episode table and multiplying by 100.0.", + "Return the person's name and the computed percentage as appearance_pct." + ] + }, + "revisql-train:1300": { + "raw": "1. Target the Episode table exclusively; no joins are needed because both episode titles and ratings are stored there.\n2. Select the `title` column as the value to return.\n3. Map \"worst rated\" to the minimum `rating` by sorting all episodes in ascending order of `rating`.\n4. Restrict the output to the first 3 rows to isolate exactly the three lowest-rated episodes.", + "steps": [ + "Target the Episode table exclusively; no joins are needed because both episode titles and ratings are stored there.", + "Select the `title` column as the value to return.", + "Map \"worst rated\" to the minimum `rating` by sorting all episodes in ascending order of `rating`.", + "Restrict the output to the first 3 rows to isolate exactly the three lowest-rated episodes." + ] + }, + "revisql-train:1302": { + "raw": "1. Join the Person table to the Credit table on person_id to link people with their episode credits.\n2. Filter Person.birth_country to 'USA' using the external knowledge that \"born in the USA\" maps to that exact value.\n3. Filter Credit.category to 'Cast' to limit the results to actors only.\n4. Apply DISTINCT to Person.name because an actor may hold multiple credits and the question asks for unique names.\n5. Return only the name column from the Person table.", + "steps": [ + "Join the Person table to the Credit table on person_id to link people with their episode credits.", + "Filter Person.birth_country to 'USA' using the external knowledge that \"born in the USA\" maps to that exact value.", + "Filter Credit.category to 'Cast' to limit the results to actors only.", + "Apply DISTINCT to Person.name because an actor may hold multiple credits and the question asks for unique names.", + "Return only the name column from the Person table." + ] + }, + "revisql-train:1305": { + "raw": "1. Map the external knowledge that the episode titled \"Juvenile\" corresponds to Episode.title = 'Juvenile'.\n2. Join the Episode table with the Vote table on the episode_id key to access the per-star vote breakdowns for that episode.\n3. Filter the joined results to only rows where Episode.title equals 'Juvenile'.\n4. Sum the votes column from the Vote table across all matching star-rating rows to compute the total number of votes.\n5. Return the aggregated sum of the votes column as the final result.", + "steps": [ + "Map the external knowledge that the episode titled \"Juvenile\" corresponds to Episode.title = 'Juvenile'.", + "Join the Episode table with the Vote table on the episode_id key to access the per-star vote breakdowns for that episode.", + "Filter the joined results to only rows where Episode.title equals 'Juvenile'.", + "Sum the votes column from the Vote table across all matching star-rating rows to compute the total number of votes.", + "Return the aggregated sum of the votes column as the final result." + ] + }, + "revisql-train:1308": { + "raw": "1. Use the Credit table to locate the person associated with the role 'president of NBC West Coast', applying the external knowledge that this exact title maps to the role column.\n2. Join Credit to Person on the person_id key to access biographical details for that individual.\n3. Apply the external knowledge that the requested 'region' corresponds to the birth_region column in the Person table.\n4. Filter the joined results to only rows where Credit.role equals 'president of NBC West Coast'.\n5. Return the birth_region column from Person, using DISTINCT to avoid duplicate regions in case multiple credits exist for the same person.", + "steps": [ + "Use the Credit table to locate the person associated with the role 'president of NBC West Coast', applying the external knowledge that this exact title maps to the role column.", + "Join Credit to Person on the person_id key to access biographical details for that individual.", + "Apply the external knowledge that the requested 'region' corresponds to the birth_region column in the Person table.", + "Filter the joined results to only rows where Credit.role equals 'president of NBC West Coast'.", + "Return the birth_region column from Person, using DISTINCT to avoid duplicate regions in case multiple credits exist for the same person." + ] + }, + "revisql-train:1313": { + "raw": "1. Start from the Episode table to retrieve ratings and join it to Credit on episode_id to access crew associations.\n2. Join Credit to Person on person_id to enable filtering by the person's name.\n3. Filter the Person table where name equals 'Jace Alexander'.\n4. Return only the rating column from the Episode table.", + "steps": [ + "Start from the Episode table to retrieve ratings and join it to Credit on episode_id to access crew associations.", + "Join Credit to Person on person_id to enable filtering by the person's name.", + "Filter the Person table where name equals 'Jace Alexander'.", + "Return only the rating column from the Episode table." + ] + }, + "revisql-train:1315": { + "raw": "1. Filter the Person table to the row where the name column equals 'Jim Bracchitta'.\n2. Join Person to Credit via person_id, then Credit to Episode via episode_id, to retrieve every episode he worked on.\n3. Use distinct combinations of episode_id and rating to prevent counting the same episode multiple times if he holds multiple credits for it.\n4. Map the external knowledge's average star rating metric to the Episode.rating column, which stores the pre-computed average per episode.\n5. Aggregate by taking the average of those distinct episode ratings.\n6. Return the single resulting average rating column.", + "steps": [ + "Filter the Person table to the row where the name column equals 'Jim Bracchitta'.", + "Join Person to Credit via person_id, then Credit to Episode via episode_id, to retrieve every episode he worked on.", + "Use distinct combinations of episode_id and rating to prevent counting the same episode multiple times if he holds multiple credits for it.", + "Map the external knowledge's average star rating metric to the Episode.rating column, which stores the pre-computed average per episode.", + "Aggregate by taking the average of those distinct episode ratings.", + "Return the single resulting average rating column." + ] + }, + "revisql-train:1318": { + "raw": "1. Join Episode and Vote on episode_id to connect episode details with per-star vote tallies.\n2. Filter Episode.episode to 12 to isolate the requested episode number.\n3. Filter Vote.stars to 6, applying the external knowledge that a 6-star vote means stars equals 6.\n4. Select Vote.votes as the count of 6-star votes, along with Episode.air_date and Episode.rating.\n5. Return these three columns directly without aggregation, since Vote.votes already stores the pre-aggregated viewer count for that star level.", + "steps": [ + "Join Episode and Vote on episode_id to connect episode details with per-star vote tallies.", + "Filter Episode.episode to 12 to isolate the requested episode number.", + "Filter Vote.stars to 6, applying the external knowledge that a 6-star vote means stars equals 6.", + "Select Vote.votes as the count of 6-star votes, along with Episode.air_date and Episode.rating.", + "Return these three columns directly without aggregation, since Vote.votes already stores the pre-aggregated viewer count for that star level." + ] + }, + "revisql-train:1326": { + "raw": "1. Join the Credit table to the Person table on person_id to connect each cast record to the individual's birth country.\n2. Filter Credit to only rows with episode_id 'tt0629228'.\n3. Restrict to cast members by filtering Credit.category to 'Cast'.\n4. Isolate uncredited appearances by filtering Credit.credited to 'false'.\n5. Isolate American individuals by filtering Person.birth_country to 'USA'.\n6. Count the person_id values from the resulting rows and return that single count.", + "steps": [ + "Join the Credit table to the Person table on person_id to connect each cast record to the individual's birth country.", + "Filter Credit to only rows with episode_id 'tt0629228'.", + "Restrict to cast members by filtering Credit.category to 'Cast'.", + "Isolate uncredited appearances by filtering Credit.credited to 'false'.", + "Isolate American individuals by filtering Person.birth_country to 'USA'.", + "Count the person_id values from the resulting rows and return that single count." + ] + }, + "revisql-train:134": { + "raw": "1. Query the movies table to find the maximum movie_popularity value where movie_release_year equals 1995, applying the external knowledge that \"released in 1995\" maps to movie_release_year = 1995 and \"most popularity movie\" maps to MAX(movie_popularity).\n2. Join the ratings table with the movies table on the shared movie_id key so that each rating is paired with its corresponding movie metadata.\n3. Filter the joined results to only movies released in 1995 by enforcing movie_release_year = 1995.\n4. Further restrict the results to the single most popular movie identified in step 1 by requiring movie_popularity to equal that maximum value.\n5. Keep only poor ratings by filtering to rows where rating_score is less than 3, mapping the phrase \"lower than 3 ratings\" to rating_score < 3.\n6. Count the number of remaining rating_score values and return that count as the final answer.", + "steps": [ + "Query the movies table to find the maximum movie_popularity value where movie_release_year equals 1995, applying the external knowledge that \"released in 1995\" maps to movie_release_year = 1995 and \"most popularity movie\" maps to MAX(movie_popularity).", + "Join the ratings table with the movies table on the shared movie_id key so that each rating is paired with its corresponding movie metadata.", + "Filter the joined results to only movies released in 1995 by enforcing movie_release_year = 1995.", + "Further restrict the results to the single most popular movie identified in step 1 by requiring movie_popularity to equal that maximum value.", + "Keep only poor ratings by filtering to rows where rating_score is less than 3, mapping the phrase \"lower than 3 ratings\" to rating_score < 3.", + "Count the number of remaining rating_score values and return that count as the final answer." + ] + }, + "revisql-train:1351": { + "raw": "1. Use only the Episode table because its `votes` column already stores the total number of viewer votes per episode, eliminating the need to join or aggregate the Vote table.\n2. Compute the highest total vote count by finding the maximum value of the `votes` column across all episodes.\n3. Filter the Episode table to the row(s) whose `votes` equal that maximum total.\n4. Return the `title` column for the matched episode(s), since the external knowledge specifies that \"episode\" refers to title.", + "steps": [ + "Use only the Episode table because its `votes` column already stores the total number of viewer votes per episode, eliminating the need to join or aggregate the Vote table.", + "Compute the highest total vote count by finding the maximum value of the `votes` column across all episodes.", + "Filter the Episode table to the row(s) whose `votes` equal that maximum total.", + "Return the `title` column for the matched episode(s), since the external knowledge specifies that \"episode\" refers to title." + ] + }, + "revisql-train:1358": { + "raw": "1. Identify that the Episode table holds the episode title and the Vote table holds viewer enjoyment data.\n2. Join Episode to Vote on the episode_id column to match each episode with its vote records.\n3. Map the phrase \"most enjoyed by the viewers\" using the external knowledge to the condition that Vote.stars equals 10.\n4. Filter the joined results to only rows where stars is exactly 10.\n5. Return the title column from the Episode table as the answer.", + "steps": [ + "Identify that the Episode table holds the episode title and the Vote table holds viewer enjoyment data.", + "Join Episode to Vote on the episode_id column to match each episode with its vote records.", + "Map the phrase \"most enjoyed by the viewers\" using the external knowledge to the condition that Vote.stars equals 10.", + "Filter the joined results to only rows where stars is exactly 10.", + "Return the title column from the Episode table as the answer." + ] + }, + "revisql-train:1364": { + "raw": "1. Query the patients table to find the patient with first name Elly and last name Koss.\n2. Join the medications table on the patient ID to retrieve that patient's medication records.\n3. Filter the joined results to only medication rows where the description starts with Acetaminophen using a LIKE pattern.\n4. Calculate the duration by subtracting the Julian day value of the START date from the Julian day value of the STOP date in the medications table.\n5. Return the resulting day count in a column named days.", + "steps": [ + "Query the patients table to find the patient with first name Elly and last name Koss.", + "Join the medications table on the patient ID to retrieve that patient's medication records.", + "Filter the joined results to only medication rows where the description starts with Acetaminophen using a LIKE pattern.", + "Calculate the duration by subtracting the Julian day value of the START date from the Julian day value of the STOP date in the medications table.", + "Return the resulting day count in a column named days." + ] + }, + "revisql-train:1365": { + "raw": "1. Filter the patients table to the single record where first equals 'Elly' and last equals 'Koss'.\n2. Inner join that result to the medications table on patients.patient = medications.PATIENT to collect all prescriptions for that patient.\n3. Use the external knowledge that prescribed medications are represented by the DESCRIPTION column in medications.\n4. Select distinct values of medications.DESCRIPTION to return each unique medication name without duplicates.", + "steps": [ + "Filter the patients table to the single record where first equals 'Elly' and last equals 'Koss'.", + "Inner join that result to the medications table on patients.patient = medications.PATIENT to collect all prescriptions for that patient.", + "Use the external knowledge that prescribed medications are represented by the DESCRIPTION column in medications.", + "Select distinct values of medications.DESCRIPTION to return each unique medication name without duplicates." + ] + }, + "revisql-train:1374": { + "raw": "1. Filter the patients table to the row where prefix is 'Mrs.', first is 'Norman', and last is 'Berge'.\n2. Join the resulting patients subset with the careplans table on the patient identifier column.\n3. Count distinct values of the care plan ID column from the careplans table.\n4. Return that single count as the answer.", + "steps": [ + "Filter the patients table to the row where prefix is 'Mrs.', first is 'Norman', and last is 'Berge'.", + "Join the resulting patients subset with the careplans table on the patient identifier column.", + "Count distinct values of the care plan ID column from the careplans table.", + "Return that single count as the answer." + ] + }, + "revisql-train:1377": { + "raw": "1. Identify that `all_prevalences` holds the required `PREVALENCE RATE` and `conditions` holds the specific condition code.\n2. Join `all_prevalences` to `conditions` on a case-insensitive match between `all_prevalences.ITEM` and `conditions.DESCRIPTION`.\n3. Filter `conditions` where `CODE` equals `'368581000119106'`, mapping the given condition number to that column value.\n4. Use `DISTINCT` when retrieving `PREVALENCE RATE` from `all_prevalences` to prevent duplicate values from multiple matching condition rows.\n5. Return exactly the `PREVALENCE RATE` column.", + "steps": [ + "Identify that `all_prevalences` holds the required `PREVALENCE RATE` and `conditions` holds the specific condition code.", + "Join `all_prevalences` to `conditions` on a case-insensitive match between `all_prevalences.ITEM` and `conditions.DESCRIPTION`.", + "Filter `conditions` where `CODE` equals `'368581000119106'`, mapping the given condition number to that column value.", + "Use `DISTINCT` when retrieving `PREVALENCE RATE` from `all_prevalences` to prevent duplicate values from multiple matching condition rows.", + "Return exactly the `PREVALENCE RATE` column." + ] + }, + "revisql-train:1392": { + "raw": "1. Use the observations table and select the PATIENT column to obtain patient identifiers.\n2. Filter observations to only rows where DESCRIPTION equals 'Body Height', mapping the concept of \"tallest\" to body height records.\n3. Calculate the maximum VALUE within that same 'Body Height' subset to identify the greatest height.\n4. Retain only rows whose VALUE matches that maximum height.\n5. Return DISTINCT PATIENT values so each tallest patient appears once without duplicates.", + "steps": [ + "Use the observations table and select the PATIENT column to obtain patient identifiers.", + "Filter observations to only rows where DESCRIPTION equals 'Body Height', mapping the concept of \"tallest\" to body height records.", + "Calculate the maximum VALUE within that same 'Body Height' subset to identify the greatest height.", + "Retain only rows whose VALUE matches that maximum height.", + "Return DISTINCT PATIENT values so each tallest patient appears once without duplicates." + ] + }, + "revisql-train:1393": { + "raw": "1. Join the `conditions` table with `patients` on the patient ID to link each condition record to its corresponding demographic data.\n2. Filter the joined set to retain only female American patients by requiring gender equals F and ethnicity contains american.\n3. Group the filtered results by the condition description to aggregate occurrences per distinct condition.\n4. In a subquery with the same join and filters, calculate the distinct patient count for each condition description and determine the maximum of those counts.\n5. In the outer query, keep only groups whose distinct patient count equals that maximum via a HAVING clause, and return the condition description column.", + "steps": [ + "Join the `conditions` table with `patients` on the patient ID to link each condition record to its corresponding demographic data.", + "Filter the joined set to retain only female American patients by requiring gender equals F and ethnicity contains american.", + "Group the filtered results by the condition description to aggregate occurrences per distinct condition.", + "In a subquery with the same join and filters, calculate the distinct patient count for each condition description and determine the maximum of those counts.", + "In the outer query, keep only groups whose distinct patient count equals that maximum via a HAVING clause, and return the condition description column." + ] + }, + "revisql-train:1404": { + "raw": "1. Start from the conditions table and filter to rows where DESCRIPTION equals 'Prediabetes', applying the external knowledge that prediabetes patients are identified in this table by that description.\n2. Inner join the patients table on conditions.PATIENT = patients.patient to access patient demographics.\n3. Filter the joined results to only those where patients.gender equals 'F', using the external knowledge mapping that female corresponds to gender value 'F'.\n4. Count distinct values of patients.patient to ensure each patient is counted only once even if multiple prediabetes condition records exist.\n5. Return that final aggregated count.", + "steps": [ + "Start from the conditions table and filter to rows where DESCRIPTION equals 'Prediabetes', applying the external knowledge that prediabetes patients are identified in this table by that description.", + "Inner join the patients table on conditions.PATIENT = patients.patient to access patient demographics.", + "Filter the joined results to only those where patients.gender equals 'F', using the external knowledge mapping that female corresponds to gender value 'F'.", + "Count distinct values of patients.patient to ensure each patient is counted only once even if multiple prediabetes condition records exist.", + "Return that final aggregated count." + ] + }, + "revisql-train:1406": { + "raw": "1. Join the conditions table to the patients table on PATIENT = patient to link each diagnosis with its corresponding patient demographics.\n2. Filter the patients side to rows where first equals 'Giovanni' and last equals 'Russel'.\n3. Filter the conditions side to rows where DESCRIPTION equals 'Hypertension', applying the given mapping that hypertension corresponds to that exact description.\n4. Compute age by subtracting the birth year from the death year using strftime('%Y', deathdate) - strftime('%Y', birthdate), following the provided age definition.\n5. Return the calculated value in a single column named age.", + "steps": [ + "Join the conditions table to the patients table on PATIENT = patient to link each diagnosis with its corresponding patient demographics.", + "Filter the patients side to rows where first equals 'Giovanni' and last equals 'Russel'.", + "Filter the conditions side to rows where DESCRIPTION equals 'Hypertension', applying the given mapping that hypertension corresponds to that exact description.", + "Compute age by subtracting the birth year from the death year using strftime('%Y', deathdate) - strftime('%Y', birthdate), following the provided age definition.", + "Return the calculated value in a single column named age." + ] + }, + "revisql-train:1413": { + "raw": "1. Use the `careplans` table to locate the target care plan and the `patients` table to retrieve name information.\n2. Inner join `careplans` to `patients` on `careplans.PATIENT` matching `patients.patient`.\n3. Filter the joined results to only rows where `careplans.CODE` equals 315043002.\n4. Return the `first` and `last` columns from the `patients` table as the final output.", + "steps": [ + "Use the `careplans` table to locate the target care plan and the `patients` table to retrieve name information.", + "Inner join `careplans` to `patients` on `careplans.PATIENT` matching `patients.patient`.", + "Filter the joined results to only rows where `careplans.CODE` equals 315043002.", + "Return the `first` and `last` columns from the `patients` table as the final output." + ] + }, + "revisql-train:1415": { + "raw": "1. Identify that occurrence counts are stored in all_prevalences while disease codes are stored in conditions.\n2. Compute the maximum OCCURRENCES value in all_prevalences to determine the highest prevalence count.\n3. Join all_prevalences to conditions by matching ITEM to DESCRIPTION using case-insensitive equality to align the prevalent disease name with its condition records.\n4. Filter the joined results to keep only rows where OCCURRENCES equals that maximum value.\n5. Return the distinct CODE column from the conditions table.", + "steps": [ + "Identify that occurrence counts are stored in all_prevalences while disease codes are stored in conditions.", + "Compute the maximum OCCURRENCES value in all_prevalences to determine the highest prevalence count.", + "Join all_prevalences to conditions by matching ITEM to DESCRIPTION using case-insensitive equality to align the prevalent disease name with its condition records.", + "Filter the joined results to keep only rows where OCCURRENCES equals that maximum value.", + "Return the distinct CODE column from the conditions table." + ] + }, + "revisql-train:1431": { + "raw": "1. Create a set of distinct patients from the immunizations table where strftime('%Y', DATE) equals '2017' to establish the total 2017 immunized population.\n2. Create a second set of distinct patients from that same 2017 immunizations data where DESCRIPTION LIKE 'Influenza%seasonal%injectable%preservative%free'.\n3. Compute the percentage by dividing the count of the flu-specific patient set by the count of the total 2017 patient set and multiplying by 100.0.\n4. Join the flu-specific patient set to the patients table on the patient id to access ethnicity information.\n5. Filter that joined result to rows where ethnicity equals 'english' (case-insensitive), applying the external knowledge mapping that English refers to ethnicity = 'english', and count the matching patients.\n6. Return both final values named percentage_flu_patients and english_flu_patients.", + "steps": [ + "Create a set of distinct patients from the immunizations table where strftime('%Y', DATE) equals '2017' to establish the total 2017 immunized population.", + "Create a second set of distinct patients from that same 2017 immunizations data where DESCRIPTION LIKE 'Influenza%seasonal%injectable%preservative%free'.", + "Compute the percentage by dividing the count of the flu-specific patient set by the count of the total 2017 patient set and multiplying by 100.0.", + "Join the flu-specific patient set to the patients table on the patient id to access ethnicity information.", + "Filter that joined result to rows where ethnicity equals 'english' (case-insensitive), applying the external knowledge mapping that English refers to ethnicity = 'english', and count the matching patients.", + "Return both final values named percentage_flu_patients and english_flu_patients." + ] + }, + "revisql-train:1432": { + "raw": "1. Identify that patient first names are in the `patients` table (`first` column) and encounter reason descriptions are in the `encounters` table.\n2. Join `patients` to `encounters` on the patient identifier key: `patients.patient` equals `encounters.PATIENT`.\n3. Filter the encounters using the external knowledge by restricting `REASONDESCRIPTION` to exactly 'Normal pregnancy'.\n4. Apply `DISTINCT` on the `first` column to avoid duplicate names when a patient has multiple matching encounters.\n5. Return only the `first` column in the result.", + "steps": [ + "Identify that patient first names are in the `patients` table (`first` column) and encounter reason descriptions are in the `encounters` table.", + "Join `patients` to `encounters` on the patient identifier key: `patients.patient` equals `encounters.PATIENT`.", + "Filter the encounters using the external knowledge by restricting `REASONDESCRIPTION` to exactly 'Normal pregnancy'.", + "Apply `DISTINCT` on the `first` column to avoid duplicate names when a patient has multiple matching encounters.", + "Return only the `first` column in the result." + ] + }, + "revisql-train:144": { + "raw": "1. Query the lists table directly; no joins are needed since both required fields live there.\n2. Filter rows where list_movie_number >= 200 to satisfy the \"at least 200 movies\" condition from the external knowledge.\n3. Compute the average of list_followers across the filtered rows, applying the external knowledge mapping for \"average number of followers\".\n4. Return a single column containing that average value.", + "steps": [ + "Query the lists table directly; no joins are needed since both required fields live there.", + "Filter rows where list_movie_number >= 200 to satisfy the \"at least 200 movies\" condition from the external knowledge.", + "Compute the average of list_followers across the filtered rows, applying the external knowledge mapping for \"average number of followers\".", + "Return a single column containing that average value." + ] + }, + "revisql-train:1449": { + "raw": "1. Filter the allergies table to rows where DESCRIPTION equals 'Allergy to eggs' using the external knowledge mapping.\n2. Join the filtered allergies to the patients table on PATIENT = patient to link each allergy record to its patient.\n3. Join the patients table to the immunizations table on patient = PATIENT to attach vaccination records to those same patients.\n4. Filter the immunizations to only rows where DESCRIPTION equals 'Td (adult) preservative free' using the external knowledge mapping.\n5. Count distinct values of the patient column from the patients table to return the number of unique patients satisfying both conditions.", + "steps": [ + "Filter the allergies table to rows where DESCRIPTION equals 'Allergy to eggs' using the external knowledge mapping.", + "Join the filtered allergies to the patients table on PATIENT = patient to link each allergy record to its patient.", + "Join the patients table to the immunizations table on patient = PATIENT to attach vaccination records to those same patients.", + "Filter the immunizations to only rows where DESCRIPTION equals 'Td (adult) preservative free' using the external knowledge mapping.", + "Count distinct values of the patient column from the patients table to return the number of unique patients satisfying both conditions." + ] + }, + "revisql-train:1450": { + "raw": "1. Join careplans to patients on PATIENT = patient, then join observations on patient = PATIENT.\n2. Filter careplans to rows where DESCRIPTION equals 'Diabetes self management plan'.\n3. Filter observations to rows where DESCRIPTION is 'Body Weight', VALUE is greater than 100, and UNITS is 'kg'.\n4. Keep only observation dates that fall within the care plan period: on or after careplans.START and on or before careplans.STOP, treating a missing STOP as a far-future date.\n5. Count distinct patients.patient and return that count.", + "steps": [ + "Join careplans to patients on PATIENT = patient, then join observations on patient = PATIENT.", + "Filter careplans to rows where DESCRIPTION equals 'Diabetes self management plan'.", + "Filter observations to rows where DESCRIPTION is 'Body Weight', VALUE is greater than 100, and UNITS is 'kg'.", + "Keep only observation dates that fall within the care plan period: on or after careplans.START and on or before careplans.STOP, treating a missing STOP as a far-future date.", + "Count distinct patients.patient and return that count." + ] + }, + "revisql-train:1452": { + "raw": "1. Filter the patients table to rows where the last name column equals 'Dickinson'.\n2. Inner join the claims table on the patient identifier, matching patients.patient to claims.PATIENT.\n3. Map the question's phrase \"dates when the billable period begin\" to the BILLABLEPERIOD column in the claims table using the external knowledge.\n4. Apply DISTINCT to the BILLABLEPERIOD values to return only unique dates.\n5. Project exactly the BILLABLEPERIOD column as the final output.", + "steps": [ + "Filter the patients table to rows where the last name column equals 'Dickinson'.", + "Inner join the claims table on the patient identifier, matching patients.patient to claims.PATIENT.", + "Map the question's phrase \"dates when the billable period begin\" to the BILLABLEPERIOD column in the claims table using the external knowledge.", + "Apply DISTINCT to the BILLABLEPERIOD values to return only unique dates.", + "Project exactly the BILLABLEPERIOD column as the final output." + ] + }, + "revisql-train:1456": { + "raw": "1. Inner join the careplans and immunizations tables on their shared PATIENT column.\n2. Filter immunizations.DESCRIPTION to the monovalent rotavirus value per the external knowledge mapping.\n3. Filter careplans.STOP to the date 2013-11-23 per the external knowledge mapping for ceased care plans.\n4. Count distinct values in careplans.PATIENT to ensure each qualifying patient is counted only once.\n5. Return solely that aggregated patient count column.", + "steps": [ + "Inner join the careplans and immunizations tables on their shared PATIENT column.", + "Filter immunizations.DESCRIPTION to the monovalent rotavirus value per the external knowledge mapping.", + "Filter careplans.STOP to the date 2013-11-23 per the external knowledge mapping for ceased care plans.", + "Count distinct values in careplans.PATIENT to ensure each qualifying patient is counted only once.", + "Return solely that aggregated patient count column." + ] + }, + "revisql-train:1458": { + "raw": "1. Filter the patients table to rows where birthplace equals 'Pembroke MA US' to establish the denominator cohort.\n2. Filter the allergies table to rows where DESCRIPTION equals 'Allergy to grass pollen', selecting distinct PATIENT to avoid duplicate counts in the numerator cohort.\n3. Join the two cohorts on the patient identifier to count how many Pembroke-born patients have the allergy.\n4. Divide that intersection count by the total count of the Pembroke denominator cohort, multiply by 100.0, and return the result as a single column named percentage.", + "steps": [ + "Filter the patients table to rows where birthplace equals 'Pembroke MA US' to establish the denominator cohort.", + "Filter the allergies table to rows where DESCRIPTION equals 'Allergy to grass pollen', selecting distinct PATIENT to avoid duplicate counts in the numerator cohort.", + "Join the two cohorts on the patient identifier to count how many Pembroke-born patients have the allergy.", + "Divide that intersection count by the total count of the Pembroke denominator cohort, multiply by 100.0, and return the result as a single column named percentage." + ] + }, + "revisql-train:1468": { + "raw": "1. Join the `patients` table to the `medications` table on the patient identifier (`patients.patient` = `medications.PATIENT`).\n2. Filter for single patients by requiring `patients.marital = 'S'`.\n3. Apply the external knowledge mappings to filter `medications.DESCRIPTION` to 'Nitrofurantoin 5 MG/ML [Furadantin]' and `medications.REASONDESCRIPTION` to 'Cystitis'.\n4. Restrict to 2010 by verifying the year extracted from both `medications.START` and `medications.STOP` equals '2010'.\n5. Return the count of distinct `patients.patient` values.", + "steps": [ + "Join the `patients` table to the `medications` table on the patient identifier (`patients.patient` = `medications.PATIENT`).", + "Filter for single patients by requiring `patients.marital = 'S'`.", + "Apply the external knowledge mappings to filter `medications.DESCRIPTION` to 'Nitrofurantoin 5 MG/ML [Furadantin]' and `medications.REASONDESCRIPTION` to 'Cystitis'.", + "Restrict to 2010 by verifying the year extracted from both `medications.START` and `medications.STOP` equals '2010'.", + "Return the count of distinct `patients.patient` values." + ] + }, + "revisql-train:147": { + "raw": "1. Use the `lists` table to locate the record whose `list_title` matches 'Sound and Vision', applying the external knowledge that this list title is stored in the `list_title` column.\n2. Join `lists_users` to `lists` on both `list_id` and `user_id` to connect the list with its creator and capture the creator's subscription status at the time of creation.\n3. Filter the joined rows to only those where `lists.list_title` is 'Sound and Vision'.\n4. Return `lists_users.user_id` to identify the user who created the list.\n5. Convert the `lists_users.user_subscriber` value into a string: output 'true' if it equals 1 and 'false' otherwise, answering whether the creator was a subscriber when the list was created.", + "steps": [ + "Use the `lists` table to locate the record whose `list_title` matches 'Sound and Vision', applying the external knowledge that this list title is stored in the `list_title` column.", + "Join `lists_users` to `lists` on both `list_id` and `user_id` to connect the list with its creator and capture the creator's subscription status at the time of creation.", + "Filter the joined rows to only those where `lists.list_title` is 'Sound and Vision'.", + "Return `lists_users.user_id` to identify the user who created the list.", + "Convert the `lists_users.user_subscriber` value into a string: output 'true' if it equals 1 and 'false' otherwise, answering whether the creator was a subscriber when the list was created." + ] + }, + "revisql-train:1476": { + "raw": "1. Identify that the query requires the patients table to locate the individual and the observations table to retrieve their clinical data.\n2. Join patients to observations using the patient identifier key, equating patients.patient to observations.PATIENT.\n3. Filter the patients table to rows where first equals 'Bella' and last equals 'Rolfson'.\n4. Apply the external knowledge that \"observation information\" specifically refers to the DESCRIPTION, VALUE, and UNITS columns in the observations table.\n5. Return exactly those three columns—DESCRIPTION, VALUE, and UNITS—from the observations table.", + "steps": [ + "Identify that the query requires the patients table to locate the individual and the observations table to retrieve their clinical data.", + "Join patients to observations using the patient identifier key, equating patients.patient to observations.PATIENT.", + "Filter the patients table to rows where first equals 'Bella' and last equals 'Rolfson'.", + "Apply the external knowledge that \"observation information\" specifically refers to the DESCRIPTION, VALUE, and UNITS columns in the observations table.", + "Return exactly those three columns—DESCRIPTION, VALUE, and UNITS—from the observations table." + ] + }, + "revisql-train:1483": { + "raw": "1. Start with the conditions table and filter to rows where DESCRIPTION equals 'Normal pregnancy'.\n2. Inner join the patients table on conditions.PATIENT = patients.patient to access demographic data.\n3. Apply the external knowledge filters on patients: gender = 'F' for women and marital = 'S' for unmarried.\n4. Aggregate with COUNT(DISTINCT patients.patient) so each qualifying woman is counted only once.\n5. Return exactly one column: the count of distinct patients.", + "steps": [ + "Start with the conditions table and filter to rows where DESCRIPTION equals 'Normal pregnancy'.", + "Inner join the patients table on conditions.PATIENT = patients.patient to access demographic data.", + "Apply the external knowledge filters on patients: gender = 'F' for women and marital = 'S' for unmarried.", + "Aggregate with COUNT(DISTINCT patients.patient) so each qualifying woman is counted only once.", + "Return exactly one column: the count of distinct patients." + ] + }, + "revisql-train:1484": { + "raw": "1. Identify patients with a drug overdose history by filtering the encounters table where REASONDESCRIPTION equals 'Drug overdose', applying the external knowledge mapping.\n2. Join the procedures table to these qualifying encounters on the PATIENT column to retrieve every procedure ever prescribed to those patients.\n3. Select the DESCRIPTION column from the procedures table to capture the procedure names.\n4. Apply DISTINCT to that DESCRIPTION column so the final output lists each unique procedure only once.", + "steps": [ + "Identify patients with a drug overdose history by filtering the encounters table where REASONDESCRIPTION equals 'Drug overdose', applying the external knowledge mapping.", + "Join the procedures table to these qualifying encounters on the PATIENT column to retrieve every procedure ever prescribed to those patients.", + "Select the DESCRIPTION column from the procedures table to capture the procedure names.", + "Apply DISTINCT to that DESCRIPTION column so the final output lists each unique procedure only once." + ] + }, + "revisql-train:1490": { + "raw": "1. Target the medications table, where DESCRIPTION stores the administered drug and REASONDESCRIPTION stores the treatment reason.\n2. Filter rows to those with REASONDESCRIPTION equal to 'Child attention deficit disorder', mapping the condition to that column value.\n3. Group the filtered results by DESCRIPTION to aggregate records per drug.\n4. Count rows within each group to compute administration frequency.\n5. Determine the highest frequency through a subquery that applies the same filter, groups by DESCRIPTION, counts, orders the counts descending, and limits to the top one.\n6. Return the DESCRIPTION value(s) whose group count equals that maximum frequency.", + "steps": [ + "Target the medications table, where DESCRIPTION stores the administered drug and REASONDESCRIPTION stores the treatment reason.", + "Filter rows to those with REASONDESCRIPTION equal to 'Child attention deficit disorder', mapping the condition to that column value.", + "Group the filtered results by DESCRIPTION to aggregate records per drug.", + "Count rows within each group to compute administration frequency.", + "Determine the highest frequency through a subquery that applies the same filter, groups by DESCRIPTION, counts, orders the counts descending, and limits to the top one.", + "Return the DESCRIPTION value(s) whose group count equals that maximum frequency." + ] + }, + "revisql-train:150": { + "raw": "1. Start from the `ratings` table and join it to the `movies` table on the shared `movie_id` key to link each rating to its movie title.\n2. Filter the `ratings` rows to only those where `user_id` equals 39115684, since the external knowledge maps \"user 39115684\" to that exact column value.\n3. Select `movie_title` from `movies` for the requested title, `rating_timestamp_utc` from `ratings` for the rating date, and `rating_score` from `ratings` for the score.\n4. Return exactly these three columns in the final result set.", + "steps": [ + "Start from the `ratings` table and join it to the `movies` table on the shared `movie_id` key to link each rating to its movie title.", + "Filter the `ratings` rows to only those where `user_id` equals 39115684, since the external knowledge maps \"user 39115684\" to that exact column value.", + "Select `movie_title` from `movies` for the requested title, `rating_timestamp_utc` from `ratings` for the rating date, and `rating_score` from `ratings` for the score.", + "Return exactly these three columns in the final result set." + ] + }, + "revisql-train:1501": { + "raw": "1. Join the encounters table with patients on encounters.PATIENT = patients.patient to link each encounter to the corresponding patient name.\n2. Filter the joined rows to keep only those where patients.first equals 'Lorri', patients.last equals 'Simonis', and the year of encounters.DATE falls between 2010 and 2017.\n3. Count all remaining encounter rows to produce the total number of encounters.\n4. Within the same aggregation, conditionally count rows where encounters.DESCRIPTION is 'Prenatal visit' or 'Prenatal initial visit', divide that count by the total, multiply by 100.0, and round to two decimals to get the prenatal percentage.\n5. Return the final output as two columns named total_encounters and prenatal_percentage.", + "steps": [ + "Join the encounters table with patients on encounters.PATIENT = patients.patient to link each encounter to the corresponding patient name.", + "Filter the joined rows to keep only those where patients.first equals 'Lorri', patients.last equals 'Simonis', and the year of encounters.DATE falls between 2010 and 2017.", + "Count all remaining encounter rows to produce the total number of encounters.", + "Within the same aggregation, conditionally count rows where encounters.DESCRIPTION is 'Prenatal visit' or 'Prenatal initial visit', divide that count by the total, multiply by 100.0, and round to two decimals to get the prenatal percentage.", + "Return the final output as two columns named total_encounters and prenatal_percentage." + ] + }, + "revisql-train:1503": { + "raw": "1. Join the careplans table to the patients table on the patient ID key (careplans.PATIENT = patients.patient).\n2. Filter the joined rows to only those where patients.maiden equals 'Adams'.\n3. Map the requested start date to the careplans.START column per the external knowledge.\n4. Group the results by careplans.ID to treat each care plan individually.\n5. Return distinct values of careplans.START as the final output.", + "steps": [ + "Join the careplans table to the patients table on the patient ID key (careplans.PATIENT = patients.patient).", + "Filter the joined rows to only those where patients.maiden equals 'Adams'.", + "Map the requested start date to the careplans.START column per the external knowledge.", + "Group the results by careplans.ID to treat each care plan individually.", + "Return distinct values of careplans.START as the final output." + ] + }, + "revisql-train:1504": { + "raw": "1. Join careplans to patients on the patient identifier to connect care plan start dates with patient demographics and names.\n2. Filter for male patients by requiring gender equals 'M'.\n3. Compute the earliest care plan start date among all male patients by taking the minimum START date from that filtered set.\n4. In the main query, keep only care plan records whose START date equals that computed minimum.\n5. Group by patient identifier to ensure one row per patient, accounting for multiple care plans that may begin on the same earliest date.\n6. Return the first and last name columns of the qualifying patient(s).", + "steps": [ + "Join careplans to patients on the patient identifier to connect care plan start dates with patient demographics and names.", + "Filter for male patients by requiring gender equals 'M'.", + "Compute the earliest care plan start date among all male patients by taking the minimum START date from that filtered set.", + "In the main query, keep only care plan records whose START date equals that computed minimum.", + "Group by patient identifier to ensure one row per patient, accounting for multiple care plans that may begin on the same earliest date.", + "Return the first and last name columns of the qualifying patient(s)." + ] + }, + "revisql-train:1506": { + "raw": "1. Join the careplans table with the patients table on careplans.PATIENT = patients.patient to link care plan records to patient names.\n2. Filter the patients table to first = 'Angelo' and last = 'Buckridge'.\n3. Map the requested \"description of the reason why... needs the care plan\" to the careplans.REASONDESCRIPTION column using the external knowledge.\n4. Return distinct values of careplans.REASONDESCRIPTION.", + "steps": [ + "Join the careplans table with the patients table on careplans.PATIENT = patients.patient to link care plan records to patient names.", + "Filter the patients table to first = 'Angelo' and last = 'Buckridge'.", + "Map the requested \"description of the reason why... needs the care plan\" to the careplans.REASONDESCRIPTION column using the external knowledge.", + "Return distinct values of careplans.REASONDESCRIPTION." + ] + }, + "revisql-train:1512": { + "raw": "1. Join the careplans table with the patients table on the patient ID column (careplans.PATIENT = patients.patient).\n2. Filter for dead patients by requiring patients.deathdate IS NOT NULL, mapping \"dead patients\" to the deathdate column.\n3. Exclude incomplete records by requiring careplans.STOP IS NOT NULL, mapping \"stop date of the care plan\" to the STOP column.\n4. Apply DISTINCT to the careplans.STOP column to return only unique stop dates.\n5. Return exactly one column: the care plan stop date (careplans.STOP).", + "steps": [ + "Join the careplans table with the patients table on the patient ID column (careplans.PATIENT = patients.patient).", + "Filter for dead patients by requiring patients.deathdate IS NOT NULL, mapping \"dead patients\" to the deathdate column.", + "Exclude incomplete records by requiring careplans.STOP IS NOT NULL, mapping \"stop date of the care plan\" to the STOP column.", + "Apply DISTINCT to the careplans.STOP column to return only unique stop dates.", + "Return exactly one column: the care plan stop date (careplans.STOP)." + ] + }, + "revisql-train:1519": { + "raw": "1. Join the patients table to the conditions table on the patient identifier (patients.patient = conditions.PATIENT).\n2. Filter the conditions rows to only those where the DESCRIPTION column equals 'Viral sinusitis (disorder)', applying the external knowledge mapping.\n3. Group the joined results by the gender column from the patients table to separate females and males.\n4. Count the distinct patient identifiers in each gender group to get the unique number of patients.\n5. Return the gender column and the distinct patient count column.", + "steps": [ + "Join the patients table to the conditions table on the patient identifier (patients.patient = conditions.PATIENT).", + "Filter the conditions rows to only those where the DESCRIPTION column equals 'Viral sinusitis (disorder)', applying the external knowledge mapping.", + "Group the joined results by the gender column from the patients table to separate females and males.", + "Count the distinct patient identifiers in each gender group to get the unique number of patients.", + "Return the gender column and the distinct patient count column." + ] + }, + "revisql-train:1530": { + "raw": "1. Join the `observations` table to `patients` on `observations.PATIENT` = `patients.patient`.\n2. Filter `patients.race` to 'white' and `observations.DESCRIPTION` to 'Body Height' using the external knowledge mappings.\n3. Group by `observations.PATIENT` and aggregate `AVG(observations.VALUE)` to obtain each individual white patient's average body height.\n4. Wrap that grouped result to compute the overall `AVG` of those per-patient average heights.\n5. Return a single column containing that final overall average body height value.", + "steps": [ + "Join the `observations` table to `patients` on `observations.PATIENT` = `patients.patient`.", + "Filter `patients.race` to 'white' and `observations.DESCRIPTION` to 'Body Height' using the external knowledge mappings.", + "Group by `observations.PATIENT` and aggregate `AVG(observations.VALUE)` to obtain each individual white patient's average body height.", + "Wrap that grouped result to compute the overall `AVG` of those per-patient average heights.", + "Return a single column containing that final overall average body height value." + ] + }, + "revisql-train:1538": { + "raw": "1. Join `conditions` to `patients` on `conditions.PATIENT = patients.patient`.\n2. Filter for rows where `conditions.DESCRIPTION` equals 'Hypertension' and `patients.gender` equals 'M', applying the external knowledge mappings for hypertension and male.\n3. In a subquery, group by `conditions.PATIENT` and select `patients.deathdate` and `patients.birthdate` to ensure each qualifying patient is represented only once.\n4. In the outer query, compute each patient's age with a conditional expression: if `deathdate` is NULL, calculate the Julian day difference between the current date and `birthdate`; otherwise between `deathdate` and `birthdate`; divide that difference by 365 and round.\n5. Sum all computed ages, divide by `COUNT(*)`, and return the result as a single value representing the average age.", + "steps": [ + "Join `conditions` to `patients` on `conditions.PATIENT = patients.patient`.", + "Filter for rows where `conditions.DESCRIPTION` equals 'Hypertension' and `patients.gender` equals 'M', applying the external knowledge mappings for hypertension and male.", + "In a subquery, group by `conditions.PATIENT` and select `patients.deathdate` and `patients.birthdate` to ensure each qualifying patient is represented only once.", + "In the outer query, compute each patient's age with a conditional expression: if `deathdate` is NULL, calculate the Julian day difference between the current date and `birthdate`; otherwise between `deathdate` and `birthdate`; divide that difference by 365 and round.", + "Sum all computed ages, divide by `COUNT(*)`, and return the result as a single value representing the average age." + ] + }, + "revisql-train:1547": { + "raw": "1. Join the customers table to orders on customerNumber, then join orders to orderdetails on orderNumber to connect the customer with every product line they ordered.\n2. Filter the customerName column to exactly 'Rovelli Gifts', applying the external knowledge that this value maps to Rovelli Gifts Distributors Ltd.\n3. Restrict the orders to those whose status is 'Shipped' and whose shippedDate falls between '2003-01-01' and '2003-12-31', using the external knowledge date range.\n4. For each matched order line, calculate the line total by multiplying quantityOrdered by priceEach in the orderdetails table, per the external knowledge formula.\n5. Aggregate all line totals with a SUM and alias the result as total_price.\n6. Return only the single column total_price.", + "steps": [ + "Join the customers table to orders on customerNumber, then join orders to orderdetails on orderNumber to connect the customer with every product line they ordered.", + "Filter the customerName column to exactly 'Rovelli Gifts', applying the external knowledge that this value maps to Rovelli Gifts Distributors Ltd.", + "Restrict the orders to those whose status is 'Shipped' and whose shippedDate falls between '2003-01-01' and '2003-12-31', using the external knowledge date range.", + "For each matched order line, calculate the line total by multiplying quantityOrdered by priceEach in the orderdetails table, per the external knowledge formula.", + "Aggregate all line totals with a SUM and alias the result as total_price.", + "Return only the single column total_price." + ] + }, + "revisql-train:1554": { + "raw": "1. Count all rows in the `customers` table where `creditLimit` is less than or equal to 100000 to get the number of qualifying customers.\n2. Join `customers` with `payments` on `customerNumber` to link each payment record to the corresponding customer's name.\n3. Filter the joined records to only those payments whose `paymentDate` falls in the year 2004.\n4. Group the filtered results by `customerNumber` and `customerName`, then aggregate with `SUM` on the `amount` column to compute each customer's total payment for that year.\n5. Order the grouped results by the summed total in descending order and keep only the top row to isolate the customer with the highest total payment in 2004.\n6. Return both results as two columns in a single output: the count from step 1 and the `customerName` from step 5.", + "steps": [ + "Count all rows in the `customers` table where `creditLimit` is less than or equal to 100000 to get the number of qualifying customers.", + "Join `customers` with `payments` on `customerNumber` to link each payment record to the corresponding customer's name.", + "Filter the joined records to only those payments whose `paymentDate` falls in the year 2004.", + "Group the filtered results by `customerNumber` and `customerName`, then aggregate with `SUM` on the `amount` column to compute each customer's total payment for that year.", + "Order the grouped results by the summed total in descending order and keep only the top row to isolate the customer with the highest total payment in 2004.", + "Return both results as two columns in a single output: the count from step 1 and the `customerName` from step 5." + ] + }, + "revisql-train:1558": { + "raw": "1. Join `orderdetails` and `orders` on the shared `orderNumber` key to link each line item’s quantity with its order date.\n2. Filter the joined rows to keep only those where the year of `orders.orderDate` is 2003.\n3. Group the results by `orderNumber` so that quantities are aggregated per entire order rather than per line item.\n4. Use a HAVING clause to retain only those groups where the sum of `quantityOrdered` across all line items in the order is strictly less than 30.\n5. Count the remaining groups, since each group corresponds to one distinct order that meets both the date and total-quantity conditions.", + "steps": [ + "Join `orderdetails` and `orders` on the shared `orderNumber` key to link each line item’s quantity with its order date.", + "Filter the joined rows to keep only those where the year of `orders.orderDate` is 2003.", + "Group the results by `orderNumber` so that quantities are aggregated per entire order rather than per line item.", + "Use a HAVING clause to retain only those groups where the sum of `quantityOrdered` across all line items in the order is strictly less than 30.", + "Count the remaining groups, since each group corresponds to one distinct order that meets both the date and total-quantity conditions." + ] + }, + "revisql-train:1564": { + "raw": "1. Identify the employees table as the source containing both job titles and office assignments.\n2. Filter the jobTitle column to the value 'Sales Rep' to isolate sales representatives per the external knowledge mapping.\n3. Filter the officeCode column to the value 1.\n4. Apply COUNT on officeCode to compute the total number of matching employees.\n5. Return only the resulting count column.", + "steps": [ + "Identify the employees table as the source containing both job titles and office assignments.", + "Filter the jobTitle column to the value 'Sales Rep' to isolate sales representatives per the external knowledge mapping.", + "Filter the officeCode column to the value 1.", + "Apply COUNT on officeCode to compute the total number of matching employees.", + "Return only the resulting count column." + ] + }, + "revisql-train:1565": { + "raw": "1. Use the payments and customers tables, joining them on the customerNumber key to link payment records to customer names.\n2. Apply the external knowledge threshold by filtering payments.amount to values strictly greater than 50000.\n3. Because a customer might have multiple qualifying payments, ensure distinct customerName values from the customers table.\n4. Return only the customerName column.", + "steps": [ + "Use the payments and customers tables, joining them on the customerNumber key to link payment records to customer names.", + "Apply the external knowledge threshold by filtering payments.amount to values strictly greater than 50000.", + "Because a customer might have multiple qualifying payments, ensure distinct customerName values from the customers table.", + "Return only the customerName column." + ] + }, + "revisql-train:1567": { + "raw": "1. Identify that the required metric is total payments, which means computing the sum of the `amount` column from the `payments` table.\n2. Filter the `payments` table to include only rows where the year of `paymentDate` is 2003.\n3. From the `customers` table, select all `customerNumber` values where `creditLimit` is greater than 10000.\n4. Restrict the filtered payments to only those records whose `customerNumber` matches the set of high-credit-limit customers found in step 3.\n5. Aggregate the remaining rows by calculating `SUM(amount)` and return that single aggregated value as the result.", + "steps": [ + "Identify that the required metric is total payments, which means computing the sum of the `amount` column from the `payments` table.", + "Filter the `payments` table to include only rows where the year of `paymentDate` is 2003.", + "From the `customers` table, select all `customerNumber` values where `creditLimit` is greater than 10000.", + "Restrict the filtered payments to only those records whose `customerNumber` matches the set of high-credit-limit customers found in step 3.", + "Aggregate the remaining rows by calculating `SUM(amount)` and return that single aggregated value as the result." + ] + }, + "revisql-train:1568": { + "raw": "1. Identify that customer name and phone reside in the customers table, while order cancellation status resides in the orders table.\n2. Join orders to customers using the customerNumber foreign key to associate each order with its customer.\n3. Apply the filter status = 'Cancelled' on the orders table, mapping the external knowledge that cancelled orders have this exact status.\n4. Return the customerName and phone columns from the customers side of the join.", + "steps": [ + "Identify that customer name and phone reside in the customers table, while order cancellation status resides in the orders table.", + "Join orders to customers using the customerNumber foreign key to associate each order with its customer.", + "Apply the filter status = 'Cancelled' on the orders table, mapping the external knowledge that cancelled orders have this exact status.", + "Return the customerName and phone columns from the customers side of the join." + ] + }, + "revisql-train:1569": { + "raw": "1. Join the `orders` table with the `customers` table on the `customerNumber` column to link each order to its customer's country.\n2. Filter the joined rows so that `customers.country` equals 'France' and `orders.status` equals 'Cancelled', mapping \"French\" to the country column and \"cancelled orders\" to the status column.\n3. Group the filtered results by `orders.customerNumber` to count how many cancelled orders each customer has.\n4. Apply a HAVING clause to keep only those groups where the count of cancelled orders is exactly 2.\n5. Wrap the grouped query as a subquery and have the outer SELECT return COUNT(*) to produce the final single-column answer showing how many customers meet the criteria.", + "steps": [ + "Join the `orders` table with the `customers` table on the `customerNumber` column to link each order to its customer's country.", + "Filter the joined rows so that `customers.country` equals 'France' and `orders.status` equals 'Cancelled', mapping \"French\" to the country column and \"cancelled orders\" to the status column.", + "Group the filtered results by `orders.customerNumber` to count how many cancelled orders each customer has.", + "Apply a HAVING clause to keep only those groups where the count of cancelled orders is exactly 2.", + "Wrap the grouped query as a subquery and have the outer SELECT return COUNT(*) to produce the final single-column answer showing how many customers meet the criteria." + ] + }, + "revisql-train:157": { + "raw": "1. Filter the `movies` table to rows where `movie_release_year` is between 1970 and 1979, keeping `movie_id`, `director_id`, and `director_name`.\n2. Group that filtered set by `director_id` and count `movie_id` to get each director’s number of 70s movies.\n3. Compute the maximum of those counts to identify the highest number of 70s movies any director achieved.\n4. Retain only the `director_id` and `director_name` records whose count equals that maximum, preserving all ties.\n5. Join those top directors back to the filtered 70s movies, then left join to `ratings` on `movie_id` to bring in user rating scores.\n6. Group by `director_id` and `director_name`, returning `director_name` and the maximum `rating_score` as the highest rating.", + "steps": [ + "Filter the `movies` table to rows where `movie_release_year` is between 1970 and 1979, keeping `movie_id`, `director_id`, and `director_name`.", + "Group that filtered set by `director_id` and count `movie_id` to get each director’s number of 70s movies.", + "Compute the maximum of those counts to identify the highest number of 70s movies any director achieved.", + "Retain only the `director_id` and `director_name` records whose count equals that maximum, preserving all ties.", + "Join those top directors back to the filtered 70s movies, then left join to `ratings` on `movie_id` to bring in user rating scores.", + "Group by `director_id` and `director_name`, returning `director_name` and the maximum `rating_score` as the highest rating." + ] + }, + "revisql-train:1573": { + "raw": "1. Target the employees table and use the reportsTo column to capture the \"staff of\" relationship, filtering to rows where reportsTo equals 1002.\n2. Join the offices table on the officeCode key to bring in location data for those employees.\n3. Apply a filter on the offices.city column to restrict results to 'San Francisco'.\n4. Return only the email column from the employees table as the final answer.", + "steps": [ + "Target the employees table and use the reportsTo column to capture the \"staff of\" relationship, filtering to rows where reportsTo equals 1002.", + "Join the offices table on the officeCode key to bring in location data for those employees.", + "Apply a filter on the offices.city column to restrict results to 'San Francisco'.", + "Return only the email column from the employees table as the final answer." + ] + }, + "revisql-train:1575": { + "raw": "1. Use the employees table for emails and job titles, and the offices table for city locations.\n2. Inner join employees to offices on the officeCode column to link each employee to their office.\n3. Filter the employees table to rows where the jobTitle column contains 'Sales Manager' using a LIKE pattern.\n4. Filter the offices table to rows where the city column equals 'Sydney'.\n5. Return only the email column from the employees table.", + "steps": [ + "Use the employees table for emails and job titles, and the offices table for city locations.", + "Inner join employees to offices on the officeCode column to link each employee to their office.", + "Filter the employees table to rows where the jobTitle column contains 'Sales Manager' using a LIKE pattern.", + "Filter the offices table to rows where the city column equals 'Sydney'.", + "Return only the email column from the employees table." + ] + }, + "revisql-train:1576": { + "raw": "1. Join `employees` to `offices` on `officeCode` and to `customers` on `salesRepEmployeeNumber` to link employee locations with their customers.\n2. Apply the location filter by restricting `offices.country` to 'Australia', using the external knowledge that Australia is a country.\n3. Apply the credit filter by keeping only rows where `customers.creditLimit` is less than 200000, using the provided threshold.\n4. Reduce the result to distinct `employeeNumber` values so each employee is counted once even if multiple customers qualify.\n5. Count the distinct employees and return the total in a single column named `num_employees`.", + "steps": [ + "Join `employees` to `offices` on `officeCode` and to `customers` on `salesRepEmployeeNumber` to link employee locations with their customers.", + "Apply the location filter by restricting `offices.country` to 'Australia', using the external knowledge that Australia is a country.", + "Apply the credit filter by keeping only rows where `customers.creditLimit` is less than 200000, using the provided threshold.", + "Reduce the result to distinct `employeeNumber` values so each employee is counted once even if multiple customers qualify.", + "Count the distinct employees and return the total in a single column named `num_employees`." + ] + }, + "revisql-train:1578": { + "raw": "1. Start from the `customers` table; no joins are required.\n2. Map \"Australian\" to filter the `country` column to `'Australia'` and \"credit line\" to the `creditLimit` column.\n3. Apply the condition `creditLimit < 220000` together with the country condition.\n4. Return a single aggregated result by counting the matching rows, specifically `COUNT(creditLimit)`.", + "steps": [ + "Start from the `customers` table; no joins are required.", + "Map \"Australian\" to filter the `country` column to `'Australia'` and \"credit line\" to the `creditLimit` column.", + "Apply the condition `creditLimit < 220000` together with the country condition.", + "Return a single aggregated result by counting the matching rows, specifically `COUNT(creditLimit)`." + ] + }, + "revisql-train:1579": { + "raw": "1. Start from the payments table, which stores each customer's individual payment amount.\n2. Group all rows by customerNumber to aggregate payments per customer.\n3. Sum the amount column for each group, using the external knowledge that \"amount of payment\" maps to amount.\n4. Order the grouped results by that summed total in descending order to surface the highest payers first.\n5. Limit the result set to the top 3 rows.\n6. Return only the customerNumber column in the final output.", + "steps": [ + "Start from the payments table, which stores each customer's individual payment amount.", + "Group all rows by customerNumber to aggregate payments per customer.", + "Sum the amount column for each group, using the external knowledge that \"amount of payment\" maps to amount.", + "Order the grouped results by that summed total in descending order to surface the highest payers first.", + "Limit the result set to the top 3 rows.", + "Return only the customerNumber column in the final output." + ] + }, + "revisql-train:1582": { + "raw": "1. Join the customers table to the employees table on customers.salesRepEmployeeNumber = employees.employeeNumber to link each customer to their sales representative.\n2. Filter the joined rows where customers.country equals UK and employees.jobTitle equals Sales Rep, applying the external knowledge that UK is a country and Sales Rep is a job title.\n3. Order the filtered results by customers.creditLimit in descending order and keep only the top three records to capture the highest-credit customers.\n4. Use the salesRepEmployeeNumber values from those top three records to join back to the employees table on employeeNumber.\n5. Return the distinct employees.email values to list the unique email addresses of the identified sales representatives.", + "steps": [ + "Join the customers table to the employees table on customers.salesRepEmployeeNumber = employees.employeeNumber to link each customer to their sales representative.", + "Filter the joined rows where customers.country equals UK and employees.jobTitle equals Sales Rep, applying the external knowledge that UK is a country and Sales Rep is a job title.", + "Order the filtered results by customers.creditLimit in descending order and keep only the top three records to capture the highest-credit customers.", + "Use the salesRepEmployeeNumber values from those top three records to join back to the employees table on employeeNumber.", + "Return the distinct employees.email values to list the unique email addresses of the identified sales representatives." + ] + }, + "revisql-train:1583": { + "raw": "1. Start from the customers table.\n2. Filter rows where the country column equals 'Norway'.\n3. Further filter rows where the creditLimit column is less than 220000, mapping \"credit line\" to creditLimit.\n4. Count the number of matching rows using the creditLimit column.\n5. Return a single column containing that count.", + "steps": [ + "Start from the customers table.", + "Filter rows where the country column equals 'Norway'.", + "Further filter rows where the creditLimit column is less than 220000, mapping \"credit line\" to creditLimit.", + "Count the number of matching rows using the creditLimit column.", + "Return a single column containing that count." + ] + }, + "revisql-train:1584": { + "raw": "1. Join the employees table to the offices table using officeCode as the join key to link each employee to their office location.\n2. Filter the joined rows where the offices.city column equals 'Paris', applying the external knowledge that Paris is a city.\n3. From the employees table, select the firstName and lastName columns to compose the full name, per the external knowledge that full name consists of firstName and lastName.\n4. Also select the email column from the employees table.\n5. Return exactly the three columns firstName, lastName, and email in the final result.", + "steps": [ + "Join the employees table to the offices table using officeCode as the join key to link each employee to their office location.", + "Filter the joined rows where the offices.city column equals 'Paris', applying the external knowledge that Paris is a city.", + "From the employees table, select the firstName and lastName columns to compose the full name, per the external knowledge that full name consists of firstName and lastName.", + "Also select the email column from the employees table.", + "Return exactly the three columns firstName, lastName, and email in the final result." + ] + }, + "revisql-train:1589": { + "raw": "1. Join products to orderdetails on productCode, then to orders on orderNumber, and then to customers on customerNumber to connect each product’s orders to the customer’s country.\n2. Filter to rows where products.productLine equals 'Motorcycles', products.productScale equals '1:10', and customers.country equals 'USA'.\n3. Group by products.productName and sum orderdetails.quantityOrdered to compute the total units ordered for each qualifying motorcycle by American customers.\n4. Identify the maximum value among those summed order totals.\n5. Return only the productName whose total ordered quantity equals that maximum value.", + "steps": [ + "Join products to orderdetails on productCode, then to orders on orderNumber, and then to customers on customerNumber to connect each product’s orders to the customer’s country.", + "Filter to rows where products.productLine equals 'Motorcycles', products.productScale equals '1:10', and customers.country equals 'USA'.", + "Group by products.productName and sum orderdetails.quantityOrdered to compute the total units ordered for each qualifying motorcycle by American customers.", + "Identify the maximum value among those summed order totals.", + "Return only the productName whose total ordered quantity equals that maximum value." + ] + }, + "revisql-train:1590": { + "raw": "1. Join the payments table with the customers table on the customerNumber column to link each check to its customer name.\n2. Filter the joined rows to keep only those where customerName equals 'Mini Gifts Distributors Ltd.'.\n3. Apply the date range filter so that paymentDate is between '2003-08-01' and '2004-08-30'.\n4. Return only the checkNumber column from the payments table.", + "steps": [ + "Join the payments table with the customers table on the customerNumber column to link each check to its customer name.", + "Filter the joined rows to keep only those where customerName equals 'Mini Gifts Distributors Ltd.'.", + "Apply the date range filter so that paymentDate is between '2003-08-01' and '2004-08-30'.", + "Return only the checkNumber column from the payments table." + ] + }, + "revisql-train:1592": { + "raw": "1. Join the products table to orderdetails on productCode, then join orderdetails to orders on orderNumber.\n2. Filter orders to only rows where status equals 'Shipped' and orderDate falls within 2003 through 2004.\n3. Filter products to only rows where productLine equals 'Vintage Cars'.\n4. For each matched row, compute the line value by multiplying orderdetails.priceEach by orderdetails.quantityOrdered, mapping to the total value definition.\n5. Sum all line values and return a single column containing that aggregated total value.", + "steps": [ + "Join the products table to orderdetails on productCode, then join orderdetails to orders on orderNumber.", + "Filter orders to only rows where status equals 'Shipped' and orderDate falls within 2003 through 2004.", + "Filter products to only rows where productLine equals 'Vintage Cars'.", + "For each matched row, compute the line value by multiplying orderdetails.priceEach by orderdetails.quantityOrdered, mapping to the total value definition.", + "Sum all line values and return a single column containing that aggregated total value." + ] + }, + "revisql-train:1593": { + "raw": "1. Compute the maximum payment amount from the payments table to identify the highest payment.\n2. Join employees to customers on employeeNumber = salesRepEmployeeNumber to match each sales agent with their customer.\n3. Join payments on customerNumber and filter to keep only records whose amount equals that maximum payment.\n4. Self-join employees on reportsTo = employeeNumber to retrieve each sales agent's supervisor, using the external knowledge that reportsTo represents the leader.\n5. Return firstName and lastName for the sales agent and firstName and lastName for the supervisor to provide both full names.", + "steps": [ + "Compute the maximum payment amount from the payments table to identify the highest payment.", + "Join employees to customers on employeeNumber = salesRepEmployeeNumber to match each sales agent with their customer.", + "Join payments on customerNumber and filter to keep only records whose amount equals that maximum payment.", + "Self-join employees on reportsTo = employeeNumber to retrieve each sales agent's supervisor, using the external knowledge that reportsTo represents the leader.", + "Return firstName and lastName for the sales agent and firstName and lastName for the supervisor to provide both full names." + ] + }, + "revisql-train:1595": { + "raw": "1. Join the orders table to customers on customerNumber, then to orderdetails on orderNumber, and finally to products on productCode to connect each order line with its product cost and the customer's country.\n2. Filter for American customers by requiring customers.country to equal 'USA', and restrict the order date range by checking orders.orderDate is between '2003-01-06' and '2005-05-09'.\n3. For each matching order line, calculate the profit by subtracting products.buyPrice from orderdetails.priceEach, then multiply that margin by orderdetails.quantityOrdered to get the total profit for that line.\n4. Aggregate all rows by summing those line-level profit values into a single total.\n5. Return exactly one column named total_actual_profit containing the final summed value.", + "steps": [ + "Join the orders table to customers on customerNumber, then to orderdetails on orderNumber, and finally to products on productCode to connect each order line with its product cost and the customer's country.", + "Filter for American customers by requiring customers.country to equal 'USA', and restrict the order date range by checking orders.orderDate is between '2003-01-06' and '2005-05-09'.", + "For each matching order line, calculate the profit by subtracting products.buyPrice from orderdetails.priceEach, then multiply that margin by orderdetails.quantityOrdered to get the total profit for that line.", + "Aggregate all rows by summing those line-level profit values into a single total.", + "Return exactly one column named total_actual_profit containing the final summed value." + ] + }, + "revisql-train:1596": { + "raw": "1. Join orders to orderdetails on orderNumber, customers on customerNumber, and employees on salesRepEmployeeNumber matching employeeNumber, filtering for jobTitle 'Sales Rep' and orderDate in 2005.\n2. Aggregate total sales per salesRepEmployeeNumber by summing quantityOrdered multiplied by priceEach.\n3. Determine the highest total sales amount from these aggregated results.\n4. Isolate the employeeNumber(s) whose total sales equal that maximum value.\n5. Join those employeeNumber(s) back to employees and then to offices on officeCode to retrieve the full address, combining addressLine1 and addressLine2, and the phone number.\n6. Return the columns employeeNumber, addressLine1, addressLine2, and phone.", + "steps": [ + "Join orders to orderdetails on orderNumber, customers on customerNumber, and employees on salesRepEmployeeNumber matching employeeNumber, filtering for jobTitle 'Sales Rep' and orderDate in 2005.", + "Aggregate total sales per salesRepEmployeeNumber by summing quantityOrdered multiplied by priceEach.", + "Determine the highest total sales amount from these aggregated results.", + "Isolate the employeeNumber(s) whose total sales equal that maximum value.", + "Join those employeeNumber(s) back to employees and then to offices on officeCode to retrieve the full address, combining addressLine1 and addressLine2, and the phone number.", + "Return the columns employeeNumber, addressLine1, addressLine2, and phone." + ] + }, + "revisql-train:1597": { + "raw": "1. Start from the customers table, which contains the phone, contactLastName, and country columns needed without any joins.\n2. Map the requirement that the contact person's last name starts with M to the filter contactLastName LIKE 'M%'.\n3. Map the requirement that the company is not from Germany to the filter country <> 'Germany'.\n4. Combine both conditions with AND to restrict the rows.\n5. Return only the phone column for the matching companies.", + "steps": [ + "Start from the customers table, which contains the phone, contactLastName, and country columns needed without any joins.", + "Map the requirement that the contact person's last name starts with M to the filter contactLastName LIKE 'M%'.", + "Map the requirement that the company is not from Germany to the filter country <> 'Germany'.", + "Combine both conditions with AND to restrict the rows.", + "Return only the phone column for the matching companies." + ] + }, + "revisql-train:16": { + "raw": "1. Target the `lists` table exclusively; it contains both the list names and follower counts, so no joins are needed.\n2. Map \"most followed\" to the maximum value of the `list_followers` column.\n3. Calculate that maximum by running a subquery that selects `MAX(list_followers)` from `lists`.\n4. In the outer query, select `list_title` from `lists` and filter to rows where `list_followers` equals the subquery result.", + "steps": [ + "Target the `lists` table exclusively; it contains both the list names and follower counts, so no joins are needed.", + "Map \"most followed\" to the maximum value of the `list_followers` column.", + "Calculate that maximum by running a subquery that selects `MAX(list_followers)` from `lists`.", + "In the outer query, select `list_title` from `lists` and filter to rows where `list_followers` equals the subquery result." + ] + }, + "revisql-train:1606": { + "raw": "1. Join the `productlines` and `products` tables on the shared `productLine` column to link each product’s description to its pricing and vendor data.\n2. Filter the `products` table to rows where `productVendor` equals 'Carousel DieCast Legends', using the external knowledge that seller and product vendor are synonyms.\n3. Filter the `productlines` table to rows where `textDescription` contains the phrase \"perfect holiday or anniversary gift for executives\" using a LIKE condition with wildcards.\n4. Calculate the total profit by summing `(MSRP - buyPrice) * quantityInStock` across the filtered rows, following the provided profit formula.\n5. Return only the single aggregated profit column.", + "steps": [ + "Join the `productlines` and `products` tables on the shared `productLine` column to link each product’s description to its pricing and vendor data.", + "Filter the `products` table to rows where `productVendor` equals 'Carousel DieCast Legends', using the external knowledge that seller and product vendor are synonyms.", + "Filter the `productlines` table to rows where `textDescription` contains the phrase \"perfect holiday or anniversary gift for executives\" using a LIKE condition with wildcards.", + "Calculate the total profit by summing `(MSRP - buyPrice) * quantityInStock` across the filtered rows, following the provided profit formula.", + "Return only the single aggregated profit column." + ] + }, + "revisql-train:1608": { + "raw": "1. Join the `products` table with `orderdetails` on `productCode` to connect the product name to its order lines.\n2. Filter the joined rows to only those where `productName` equals '18th Century Vintage Horse Carriage'.\n3. Compute the total quantity ordered by summing `quantityOrdered` from `orderdetails`.\n4. Compute the quantity-weighted average price as `SUM(quantityOrdered * priceEach) / SUM(quantityOrdered)`.\n5. Return the two results: the total quantity ordered and the weighted average price.", + "steps": [ + "Join the `products` table with `orderdetails` on `productCode` to connect the product name to its order lines.", + "Filter the joined rows to only those where `productName` equals '18th Century Vintage Horse Carriage'.", + "Compute the total quantity ordered by summing `quantityOrdered` from `orderdetails`.", + "Compute the quantity-weighted average price as `SUM(quantityOrdered * priceEach) / SUM(quantityOrdered)`.", + "Return the two results: the total quantity ordered and the weighted average price." + ] + }, + "revisql-train:1609": { + "raw": "1. Use the `orderdetails` table, which records every product line included in an order.\n2. Map the question’s \"kinds of products\" to the `productCode` column using the external knowledge that products are referenced by `productCode`.\n3. Filter the rows to only those where `orderNumber` equals 10252.\n4. Aggregate by counting the `productCode` values; the table’s composite primary key guarantees each product appears once per order, so the row count equals the number of product kinds.\n5. Return a single column containing that count.", + "steps": [ + "Use the `orderdetails` table, which records every product line included in an order.", + "Map the question’s \"kinds of products\" to the `productCode` column using the external knowledge that products are referenced by `productCode`.", + "Filter the rows to only those where `orderNumber` equals 10252.", + "Aggregate by counting the `productCode` values; the table’s composite primary key guarantees each product appears once per order, so the row count equals the number of product kinds.", + "Return a single column containing that count." + ] + }, + "revisql-train:1615": { + "raw": "1. Identify that the check number \"NR157385\" is stored in the payments table, which also contains the customerNumber linking to the customer.\n2. Join the payments table to the customers table on customerNumber to reach the contact name columns.\n3. Filter the payments table for checkNumber equal to 'NR157385' to isolate the single relevant record.\n4. Map the requested \"contact name\" to the customers table columns contactFirstName and contactLastName per the external knowledge.\n5. Return exactly contactFirstName and contactLastName as the output columns.", + "steps": [ + "Identify that the check number \"NR157385\" is stored in the payments table, which also contains the customerNumber linking to the customer.", + "Join the payments table to the customers table on customerNumber to reach the contact name columns.", + "Filter the payments table for checkNumber equal to 'NR157385' to isolate the single relevant record.", + "Map the requested \"contact name\" to the customers table columns contactFirstName and contactLastName per the external knowledge.", + "Return exactly contactFirstName and contactLastName as the output columns." + ] + }, + "revisql-train:1618": { + "raw": "1. Locate the product record in the `products` table using the product code S18_2949.\n2. Join the `productlines` table to `products` on the shared `productLine` column.\n3. Filter the result to only the row where `products.productCode` equals S18_2949.\n4. Return the `textDescription` column from the `productlines` table.", + "steps": [ + "Locate the product record in the `products` table using the product code S18_2949.", + "Join the `productlines` table to `products` on the shared `productLine` column.", + "Filter the result to only the row where `products.productCode` equals S18_2949.", + "Return the `textDescription` column from the `productlines` table." + ] + }, + "revisql-train:1620": { + "raw": "1. Join the customers table with the employees table on customers.salesRepEmployeeNumber = employees.employeeNumber to associate each customer with their sales representative.\n2. Filter the customers to only those where country equals 'France', applying the definition of a French customer.\n3. Filter the employees to only the record where firstName equals 'Gerard' and lastName equals 'Hernandez', identifying the specific employee.\n4. Count the customerNumber values from the filtered result set to return the total number of French customers he takes care of.", + "steps": [ + "Join the customers table with the employees table on customers.salesRepEmployeeNumber = employees.employeeNumber to associate each customer with their sales representative.", + "Filter the customers to only those where country equals 'France', applying the definition of a French customer.", + "Filter the employees to only the record where firstName equals 'Gerard' and lastName equals 'Hernandez', identifying the specific employee.", + "Count the customerNumber values from the filtered result set to return the total number of French customers he takes care of." + ] + }, + "revisql-train:1622": { + "raw": "1. Join the `products` table with `orderdetails` on `productCode` to bring together `MSRP` and `priceEach`.\n2. Filter rows where `productCode` equals `'S18_3482'`, mapping product No. S18_3482 to that column value.\n3. Also filter rows where `orderNumber` equals `10108` to isolate the specific order.\n4. Calculate the discount using the formula `(MSRP - priceEach) / MSRP` as defined externally.\n5. Return only this computed discount value as the single result column.", + "steps": [ + "Join the `products` table with `orderdetails` on `productCode` to bring together `MSRP` and `priceEach`.", + "Filter rows where `productCode` equals `'S18_3482'`, mapping product No. S18_3482 to that column value.", + "Also filter rows where `orderNumber` equals `10108` to isolate the specific order.", + "Calculate the discount using the formula `(MSRP - priceEach) / MSRP` as defined externally.", + "Return only this computed discount value as the single result column." + ] + }, + "revisql-train:1624": { + "raw": "1. Use the employees table exclusively, as it contains both email addresses and job titles, so no joins are necessary.\n2. Apply the external knowledge that the requested role \"President\" maps to the jobTitle column.\n3. Filter the rows to only those where jobTitle equals 'President'.\n4. Return exactly the email column from the resulting record.", + "steps": [ + "Use the employees table exclusively, as it contains both email addresses and job titles, so no joins are necessary.", + "Apply the external knowledge that the requested role \"President\" maps to the jobTitle column.", + "Filter the rows to only those where jobTitle equals 'President'.", + "Return exactly the email column from the resulting record." + ] + }, + "revisql-train:1625": { + "raw": "1. Filter the customers table to the row where customerName equals 'Muscle Machine Inc', mapping the external knowledge company name to that column.\n2. Join the customers table to the employees table on salesRepEmployeeNumber = employeeNumber.\n3. Identify the matched employee record as the sales representative for that customer.\n4. Select firstName and lastName from the employees table.\n5. Return exactly these two columns as the employee's full name.", + "steps": [ + "Filter the customers table to the row where customerName equals 'Muscle Machine Inc', mapping the external knowledge company name to that column.", + "Join the customers table to the employees table on salesRepEmployeeNumber = employeeNumber.", + "Identify the matched employee record as the sales representative for that customer.", + "Select firstName and lastName from the employees table.", + "Return exactly these two columns as the employee's full name." + ] + }, + "revisql-train:1626": { + "raw": "1. Filter the customers table to the single row where customerName is 'Muscle Machine Inc'.\n2. Join that customer record to the employees table on salesRepEmployeeNumber equals employeeNumber to find the assigned sales representative.\n3. Join the employees table again on the sales representative's reportsTo equals the other employee's employeeNumber, using the fact that reportsTo identifies the leader.\n4. Return only the email column from the superior employee record.", + "steps": [ + "Filter the customers table to the single row where customerName is 'Muscle Machine Inc'.", + "Join that customer record to the employees table on salesRepEmployeeNumber equals employeeNumber to find the assigned sales representative.", + "Join the employees table again on the sales representative's reportsTo equals the other employee's employeeNumber, using the fact that reportsTo identifies the leader.", + "Return only the email column from the superior employee record." + ] + }, + "revisql-train:1627": { + "raw": "1. Use the customers table to retrieve customer names and the employees table to identify the sales representative.\n2. Join customers to employees on salesRepEmployeeNumber = employeeNumber to link each customer with their sales rep.\n3. Filter the joined rows by employees.firstName = 'Steve' and employees.lastName = 'Patterson', applying the external knowledge that Steve Patterson is an employee.\n4. Return only the customerName column from the customers table.", + "steps": [ + "Use the customers table to retrieve customer names and the employees table to identify the sales representative.", + "Join customers to employees on salesRepEmployeeNumber = employeeNumber to link each customer with their sales rep.", + "Filter the joined rows by employees.firstName = 'Steve' and employees.lastName = 'Patterson', applying the external knowledge that Steve Patterson is an employee.", + "Return only the customerName column from the customers table." + ] + }, + "revisql-train:1636": { + "raw": "1. Identify that you need the `orders` table for shipment dates and the `customers` table for the customer name.\n2. Join `orders` to `customers` using the `customerNumber` foreign key relationship.\n3. Apply a filter on `customers.customerName` to match the external knowledge value 'Cruz & Sons Co.'.\n4. Apply a filter on `orders.orderDate` to match the external knowledge date '2003-03-03'.\n5. Return only the `shippedDate` column from the `orders` table.", + "steps": [ + "Identify that you need the `orders` table for shipment dates and the `customers` table for the customer name.", + "Join `orders` to `customers` using the `customerNumber` foreign key relationship.", + "Apply a filter on `customers.customerName` to match the external knowledge value 'Cruz & Sons Co.'.", + "Apply a filter on `orders.orderDate` to match the external knowledge date '2003-03-03'.", + "Return only the `shippedDate` column from the `orders` table." + ] + }, + "revisql-train:1639": { + "raw": "1. Map the phrase \"still processing\" to the orders.status value 'In Process' using the external knowledge.\n2. Join the orders table with the customers table on the customerNumber key to link each order to its corresponding customer.\n3. Filter the joined rows to keep only those where the order status equals 'In Process'.\n4. Return the customerName column from the customers table.", + "steps": [ + "Map the phrase \"still processing\" to the orders.status value 'In Process' using the external knowledge.", + "Join the orders table with the customers table on the customerNumber key to link each order to its corresponding customer.", + "Filter the joined rows to keep only those where the order status equals 'In Process'.", + "Return the customerName column from the customers table." + ] + }, + "revisql-train:1640": { + "raw": "1. Use only the `orders` table; no joins are required.\n2. Filter to rows where `status` equals 'Shipped', mapping the external definition of \"orders shipped\" to that column value.\n3. Map the \"at least 3 days before the required date\" rule to a date-difference condition between `requiredDate` and `shippedDate` that evaluates to 3 or greater.\n4. Compute the percentage by taking a conditional count of orders satisfying the early-ship condition, dividing by the total count of shipped orders, and multiplying by 100.\n5. Return exactly one column named `early_ship_pct` representing the calculated percentage.", + "steps": [ + "Use only the `orders` table; no joins are required.", + "Filter to rows where `status` equals 'Shipped', mapping the external definition of \"orders shipped\" to that column value.", + "Map the \"at least 3 days before the required date\" rule to a date-difference condition between `requiredDate` and `shippedDate` that evaluates to 3 or greater.", + "Compute the percentage by taking a conditional count of orders satisfying the early-ship condition, dividing by the total count of shipped orders, and multiplying by 100.", + "Return exactly one column named `early_ship_pct` representing the calculated percentage." + ] + }, + "revisql-train:1641": { + "raw": "1. Join payments with customers on customerNumber to access customer names for each payment.\n2. Filter paymentDate to include only rows where the year is 2005, mapping the year reference to that date column.\n3. Group by customerNumber and customerName to prepare per-customer payment totals.\n4. Sum the amount per customer and sort descending to apply the highest-payment definition as max(sum(amount)).\n5. Return only the top row, selecting customerName as the output column.", + "steps": [ + "Join payments with customers on customerNumber to access customer names for each payment.", + "Filter paymentDate to include only rows where the year is 2005, mapping the year reference to that date column.", + "Group by customerNumber and customerName to prepare per-customer payment totals.", + "Sum the amount per customer and sort descending to apply the highest-payment definition as max(sum(amount)).", + "Return only the top row, selecting customerName as the output column." + ] + }, + "revisql-train:1642": { + "raw": "1. Aggregate `orderdetails` by `productCode`, summing `quantityOrdered` to compute total ordered quantity per product, then filter to keep only the `productCode`(s) whose total equals the maximum total across all products.\n2. Join the retained `productCode`(s) with the `products` table on the `productCode` key to access `productName`, `MSRP`, and `buyPrice`.\n3. Compute the expected profit margin per piece by subtracting `buyPrice` from `MSRP`, applying the external knowledge mapping for profit calculation.\n4. Return `productName` and the calculated profit margin per piece as the final result columns.", + "steps": [ + "Aggregate `orderdetails` by `productCode`, summing `quantityOrdered` to compute total ordered quantity per product, then filter to keep only the `productCode`(s) whose total equals the maximum total across all products.", + "Join the retained `productCode`(s) with the `products` table on the `productCode` key to access `productName`, `MSRP`, and `buyPrice`.", + "Compute the expected profit margin per piece by subtracting `buyPrice` from `MSRP`, applying the external knowledge mapping for profit calculation.", + "Return `productName` and the calculated profit margin per piece as the final result columns." + ] + }, + "revisql-train:1643": { + "raw": "1. In the orderdetails table, group by orderNumber and sum quantityOrdered to calculate the total quantity of products ordered for each order.\n2. Order those totals descending and limit to the first row to identify the single order with the most products ordered.\n3. Join that orderNumber to the orders table on orderNumber to retrieve the associated customerNumber.\n4. Join the customers table on customerNumber to obtain the name of the customer who placed the order.\n5. Return only the customerName column.", + "steps": [ + "In the orderdetails table, group by orderNumber and sum quantityOrdered to calculate the total quantity of products ordered for each order.", + "Order those totals descending and limit to the first row to identify the single order with the most products ordered.", + "Join that orderNumber to the orders table on orderNumber to retrieve the associated customerNumber.", + "Join the customers table on customerNumber to obtain the name of the customer who placed the order.", + "Return only the customerName column." + ] + }, + "revisql-train:1644": { + "raw": "1. Identify that disputed orders are represented by `status = 'Disputed'` in the `orders` table and that customer names reside in `customers.customerName`.\n2. Join `orders` to `customers` using `customerNumber` as the matching key to associate each order with its customer.\n3. Filter the result to keep only rows where the order `status` equals 'Disputed'.\n4. Return distinct values of `customerName` so each customer is listed once regardless of how many disputed orders they have.", + "steps": [ + "Identify that disputed orders are represented by `status = 'Disputed'` in the `orders` table and that customer names reside in `customers.customerName`.", + "Join `orders` to `customers` using `customerNumber` as the matching key to associate each order with its customer.", + "Filter the result to keep only rows where the order `status` equals 'Disputed'.", + "Return distinct values of `customerName` so each customer is listed once regardless of how many disputed orders they have." + ] + }, + "revisql-train:1645": { + "raw": "1. Join the `offices` table with the `employees` table on the `officeCode` column to associate every employee with their office city.\n2. Count all `employeeNumber` values to obtain the total number of employees.\n3. Conditionally count `employeeNumber` values, including only rows where the joined `city` equals 'Paris', to obtain the Paris office count.\n4. Cast the Paris count to a real number, multiply by 100, and divide by the total employee count to compute the percentage.\n5. Return a single column containing the resulting calculated percentage.", + "steps": [ + "Join the `offices` table with the `employees` table on the `officeCode` column to associate every employee with their office city.", + "Count all `employeeNumber` values to obtain the total number of employees.", + "Conditionally count `employeeNumber` values, including only rows where the joined `city` equals 'Paris', to obtain the Paris office count.", + "Cast the Paris count to a real number, multiply by 100, and divide by the total employee count to compute the percentage.", + "Return a single column containing the resulting calculated percentage." + ] + }, + "revisql-train:1649": { + "raw": "1. Join the customers and payments tables on customerNumber to link each customer's name to their payment amounts.\n2. Filter the results to only payments made in 2004 by extracting the year from paymentDate, applying the external knowledge time constraint.\n3. Sum the amount column for rows where customerName equals 'Atelier graphique' to get the customer-specific total.\n4. Sum the amount column across all rows passing the 2004 filter to get the overall total.\n5. Divide the customer-specific total by the overall total, multiply by 100 to compute the percentage, and return that single calculated percentage value.", + "steps": [ + "Join the customers and payments tables on customerNumber to link each customer's name to their payment amounts.", + "Filter the results to only payments made in 2004 by extracting the year from paymentDate, applying the external knowledge time constraint.", + "Sum the amount column for rows where customerName equals 'Atelier graphique' to get the customer-specific total.", + "Sum the amount column across all rows passing the 2004 filter to get the overall total.", + "Divide the customer-specific total by the overall total, multiply by 100 to compute the percentage, and return that single calculated percentage value." + ] + }, + "revisql-train:1652": { + "raw": "1. Target the `orderdetails` table, which stores each order line's `quantityOrdered` and `priceEach` tied to an `orderNumber`.\n2. Filter rows to only those where `orderNumber` equals '10100'.\n3. Compute every line's subtotal by multiplying `quantityOrdered` by `priceEach`.\n4. Apply a `SUM` aggregate across all those subtotals to get the complete order total.\n5. Return the single resulting summed value.", + "steps": [ + "Target the `orderdetails` table, which stores each order line's `quantityOrdered` and `priceEach` tied to an `orderNumber`.", + "Filter rows to only those where `orderNumber` equals '10100'.", + "Compute every line's subtotal by multiplying `quantityOrdered` by `priceEach`.", + "Apply a `SUM` aggregate across all those subtotals to get the complete order total.", + "Return the single resulting summed value." + ] + }, + "revisql-train:166": { + "raw": "1. Start from the `movies` table and left join `ratings` on `movie_id` so every movie is kept even if it has no ratings.\n2. Filter out any movies where `movie_release_year` is null, since only known years can be used to find the oldest.\n3. Group by `movie_id`, `director_name`, and `movie_release_year` to collapse all ratings into one row per movie.\n4. Compute the average rating per movie by aggregating `rating_score` with `AVG`, matching the external knowledge that average rating score refers to this aggregate.\n5. Order the results by `movie_release_year` ascending—interpreting “oldest movies” as the earliest years—and break ties by `movie_title` ascending.\n6. Limit the result to 10 rows and return exactly `movie_id`, the computed average rating, `director_name`, and `movie_release_year`.", + "steps": [ + "Start from the `movies` table and left join `ratings` on `movie_id` so every movie is kept even if it has no ratings.", + "Filter out any movies where `movie_release_year` is null, since only known years can be used to find the oldest.", + "Group by `movie_id`, `director_name`, and `movie_release_year` to collapse all ratings into one row per movie.", + "Compute the average rating per movie by aggregating `rating_score` with `AVG`, matching the external knowledge that average rating score refers to this aggregate.", + "Order the results by `movie_release_year` ascending—interpreting “oldest movies” as the earliest years—and break ties by `movie_title` ascending.", + "Limit the result to 10 rows and return exactly `movie_id`, the computed average rating, `director_name`, and `movie_release_year`." + ] + }, + "revisql-train:1660": { + "raw": "1. Start from the payments table, which contains the amount and paymentDate for each transaction.\n2. Apply a WHERE filter on the amount column to keep only rows where the transaction amount is less than 10000.\n3. Derive the year from the paymentDate column to use for grouping.\n4. Group the filtered records by that derived year.\n5. Count the customerNumber within each year group to obtain the number of qualifying transactions.\n6. Return the year and the resulting transaction count as the two output columns.", + "steps": [ + "Start from the payments table, which contains the amount and paymentDate for each transaction.", + "Apply a WHERE filter on the amount column to keep only rows where the transaction amount is less than 10000.", + "Derive the year from the paymentDate column to use for grouping.", + "Group the filtered records by that derived year.", + "Count the customerNumber within each year group to obtain the number of qualifying transactions.", + "Return the year and the resulting transaction count as the two output columns." + ] + }, + "revisql-train:1664": { + "raw": "1. Recognize that customerName and country are stored in the customers table, while the checkNumber filter value resides in the payments table.\n2. Join payments to customers using customerNumber as the common key.\n3. Restrict the results to only the row where checkNumber equals 'GG31455'.\n4. Return the customerName and country columns from the customers table.", + "steps": [ + "Recognize that customerName and country are stored in the customers table, while the checkNumber filter value resides in the payments table.", + "Join payments to customers using customerNumber as the common key.", + "Restrict the results to only the row where checkNumber equals 'GG31455'.", + "Return the customerName and country columns from the customers table." + ] + }, + "revisql-train:1665": { + "raw": "1. Identify that the quantity ordered is stored in the `quantityOrdered` column of the `orderdetails` table and the product name is stored in the `productName` column of the `products` table.\n2. Join `orderdetails` with `products` on the shared `productCode` key to associate each order line with its product name.\n3. Apply a filter on the joined data where `productName` equals '2001 Ferrari Enzo', using the external knowledge that this string refers to the `productName` column.\n4. Aggregate the matching rows by computing the sum of `quantityOrdered` to get the total units ordered.\n5. Return the resulting sum in a column named `totalOrdered`.", + "steps": [ + "Identify that the quantity ordered is stored in the `quantityOrdered` column of the `orderdetails` table and the product name is stored in the `productName` column of the `products` table.", + "Join `orderdetails` with `products` on the shared `productCode` key to associate each order line with its product name.", + "Apply a filter on the joined data where `productName` equals '2001 Ferrari Enzo', using the external knowledge that this string refers to the `productName` column.", + "Aggregate the matching rows by computing the sum of `quantityOrdered` to get the total units ordered.", + "Return the resulting sum in a column named `totalOrdered`." + ] + }, + "revisql-train:1666": { + "raw": "1. Join the `products` and `orderdetails` tables on `productCode` using a LEFT JOIN so products with no orders are preserved.\n2. Group the results by `productCode` and `productName` to aggregate per product.\n3. Calculate the total ordered quantity for each product with `SUM(quantityOrdered)`, applying `COALESCE(..., 0)` to treat unmatched rows as zero.\n4. Order the grouped results in ascending order by that total to surface the lowest quantities first.\n5. Restrict the output to the first 5 rows.\n6. Return only the `productName` column in the final result.", + "steps": [ + "Join the `products` and `orderdetails` tables on `productCode` using a LEFT JOIN so products with no orders are preserved.", + "Group the results by `productCode` and `productName` to aggregate per product.", + "Calculate the total ordered quantity for each product with `SUM(quantityOrdered)`, applying `COALESCE(..., 0)` to treat unmatched rows as zero.", + "Order the grouped results in ascending order by that total to surface the lowest quantities first.", + "Restrict the output to the first 5 rows.", + "Return only the `productName` column in the final result." + ] + }, + "revisql-train:1669": { + "raw": "1. Join customers to orders on customerNumber, orders to orderdetails on orderNumber, and orderdetails to products on productCode.\n2. Filter for rows where customerName equals 'Land of Toys Inc.', status equals 'Shipped', and productLine equals 'Classic Cars'.\n3. Compute each order line's total by multiplying quantityOrdered by priceEach in the orderdetails table.\n4. Sum all of those line totals to calculate the overall total price.\n5. Return exactly one column: the aggregated sum of quantityOrdered times priceEach.", + "steps": [ + "Join customers to orders on customerNumber, orders to orderdetails on orderNumber, and orderdetails to products on productCode.", + "Filter for rows where customerName equals 'Land of Toys Inc.', status equals 'Shipped', and productLine equals 'Classic Cars'.", + "Compute each order line's total by multiplying quantityOrdered by priceEach in the orderdetails table.", + "Sum all of those line totals to calculate the overall total price.", + "Return exactly one column: the aggregated sum of quantityOrdered times priceEach." + ] + }, + "revisql-train:1670": { + "raw": "1. Use only the generalinfo table, as it contains both the unique restaurant identifier and the review scores needed to answer the question.\n2. Apply the external knowledge to interpret \"have not obtained a minimum of 3 in their reviews\" as a filter on the review column for values strictly less than 3.\n3. Filter the generalinfo rows to those where review is below 3.\n4. Count the id_restaurant values in the filtered set to compute how many restaurants meet the condition.\n5. Return exactly one column: the resulting count of restaurants.", + "steps": [ + "Use only the generalinfo table, as it contains both the unique restaurant identifier and the review scores needed to answer the question.", + "Apply the external knowledge to interpret \"have not obtained a minimum of 3 in their reviews\" as a filter on the review column for values strictly less than 3.", + "Filter the generalinfo rows to those where review is below 3.", + "Count the id_restaurant values in the filtered set to compute how many restaurants meet the condition.", + "Return exactly one column: the resulting count of restaurants." + ] + }, + "revisql-train:1679": { + "raw": "1. Join `generalinfo` to `location` on the shared `id_restaurant` key to connect each restaurant’s food type with its address.\n2. Filter the `location` rows to `street_name = 'adeline st'`, using the external knowledge that “Adeline Street” maps to that exact value.\n3. Apply an additional filter on `location` for `city = 'berkeley'` to satisfy the Berkeley city requirement.\n4. Map the requested “type of food” to the `food_type` column in `generalinfo` per the external knowledge.\n5. Return only the `food_type` column from `generalinfo`.", + "steps": [ + "Join `generalinfo` to `location` on the shared `id_restaurant` key to connect each restaurant’s food type with its address.", + "Filter the `location` rows to `street_name = 'adeline st'`, using the external knowledge that “Adeline Street” maps to that exact value.", + "Apply an additional filter on `location` for `city = 'berkeley'` to satisfy the Berkeley city requirement.", + "Map the requested “type of food” to the `food_type` column in `generalinfo` per the external knowledge.", + "Return only the `food_type` column from `generalinfo`." + ] + }, + "revisql-train:168": { + "raw": "1. Join the sales table with titles on title_id to connect order records with title names.\n2. Filter to rows where the year of ord_date is 1992, mapping the requested year to the date column.\n3. Group by title_id and sum the qty column to get the total ordered quantity per title.\n4. Order the results by that summed quantity descending and keep only the top record to capture the most ordered title.\n5. Return the title column from titles.", + "steps": [ + "Join the sales table with titles on title_id to connect order records with title names.", + "Filter to rows where the year of ord_date is 1992, mapping the requested year to the date column.", + "Group by title_id and sum the qty column to get the total ordered quantity per title.", + "Order the results by that summed quantity descending and keep only the top record to capture the most ordered title.", + "Return the title column from titles." + ] + }, + "revisql-train:1681": { + "raw": "1. Use the generalinfo table as the source for restaurant labels and filter for rows where label equals 'a & w root beer', applying the external knowledge mapping for A&W Root Beer Restaurant.\n2. Inner join the geographic table on the city column to retrieve the county associated with each matching restaurant's city.\n3. Apply DISTINCT to the county values to ensure each county appears only once, even when multiple restaurants are located within it.\n4. Return solely the county column from the geographic table.", + "steps": [ + "Use the generalinfo table as the source for restaurant labels and filter for rows where label equals 'a & w root beer', applying the external knowledge mapping for A&W Root Beer Restaurant.", + "Inner join the geographic table on the city column to retrieve the county associated with each matching restaurant's city.", + "Apply DISTINCT to the county values to ensure each county appears only once, even when multiple restaurants are located within it.", + "Return solely the county column from the geographic table." + ] + }, + "revisql-train:1684": { + "raw": "1. Join the `location` and `generalinfo` tables on `id_restaurant` to combine street data with restaurant food type data.\n2. Map the term \"street\" to the `location.street_name` column and \"seafood\" to `generalinfo.food_type = 'seafood'`.\n3. Filter for rows where `location.city` equals 'san francisco', `generalinfo.food_type` equals 'seafood', and `location.street_name` is not NULL.\n4. Apply `DISTINCT` to `street_name` so each qualifying street appears only once.\n5. Return solely the `street_name` column.", + "steps": [ + "Join the `location` and `generalinfo` tables on `id_restaurant` to combine street data with restaurant food type data.", + "Map the term \"street\" to the `location.street_name` column and \"seafood\" to `generalinfo.food_type = 'seafood'`.", + "Filter for rows where `location.city` equals 'san francisco', `generalinfo.food_type` equals 'seafood', and `location.street_name` is not NULL.", + "Apply `DISTINCT` to `street_name` so each qualifying street appears only once.", + "Return solely the `street_name` column." + ] + }, + "revisql-train:169": { + "raw": "1. Recognize that the requested output columns—title, price, and publication date—are stored in the titles table, while the payment-terms condition resides in the sales table.\n2. Join the sales table to the titles table using the shared title_id column to link each sale record to its corresponding title details.\n3. Apply a filter on the sales table where payterms equals 'ON invoice', using the external knowledge that \"payment terms\" maps to the payterms column.\n4. Return only the title, price, and pubdate columns from the titles table in the final result.", + "steps": [ + "Recognize that the requested output columns—title, price, and publication date—are stored in the titles table, while the payment-terms condition resides in the sales table.", + "Join the sales table to the titles table using the shared title_id column to link each sale record to its corresponding title details.", + "Apply a filter on the sales table where payterms equals 'ON invoice', using the external knowledge that \"payment terms\" maps to the payterms column.", + "Return only the title, price, and pubdate columns from the titles table in the final result." + ] + }, + "revisql-train:1692": { + "raw": "1. Join the location and generalinfo tables on id_restaurant to combine street address data with restaurant names and review scores.\n2. Filter the joined rows to only those where street_name equals 'alameda de las pulgas' and city equals 'menlo park'.\n3. In a subquery over the same joined and filtered set, compute the minimum review value to identify the worst rating.\n4. In the outer query, keep only the row(s) whose review matches that minimum value.\n5. Return the label column from generalinfo as the restaurant name.", + "steps": [ + "Join the location and generalinfo tables on id_restaurant to combine street address data with restaurant names and review scores.", + "Filter the joined rows to only those where street_name equals 'alameda de las pulgas' and city equals 'menlo park'.", + "In a subquery over the same joined and filtered set, compute the minimum review value to identify the worst rating.", + "In the outer query, keep only the row(s) whose review matches that minimum value.", + "Return the label column from generalinfo as the restaurant name." + ] + }, + "revisql-train:1697": { + "raw": "1. Identify geographic and generalinfo as the relevant tables, linked by the city column.\n2. Inner join geographic to generalinfo on city to associate each restaurant's review with its county.\n3. Filter the joined rows to only those where geographic.county equals 'santa cruz county'.\n4. Map the external knowledge concept of average rating to an AVG aggregation applied to the generalinfo.review column.\n5. Return the single computed average value of the review column.", + "steps": [ + "Identify geographic and generalinfo as the relevant tables, linked by the city column.", + "Inner join geographic to generalinfo on city to associate each restaurant's review with its county.", + "Filter the joined rows to only those where geographic.county equals 'santa cruz county'.", + "Map the external knowledge concept of average rating to an AVG aggregation applied to the generalinfo.review column.", + "Return the single computed average value of the review column." + ] + }, + "revisql-train:17": { + "raw": "1. Query only the `lists` table, as it contains every attribute needed to answer the question.\n2. Map \"URL to the list page on Mubi\" to the `list_url` column; this is the sole column to return.\n3. Map \"followers between 1-2\" to the `list_followers` column and restrict its values to the inclusive range 1 through 2.\n4. Map \"last update timestamp was on 2012\" to `list_update_timestamp_utc` and keep only rows where the timestamp begins with '2012'.\n5. Combine the two filters with AND so that only rows satisfying both conditions are returned.", + "steps": [ + "Query only the `lists` table, as it contains every attribute needed to answer the question.", + "Map \"URL to the list page on Mubi\" to the `list_url` column; this is the sole column to return.", + "Map \"followers between 1-2\" to the `list_followers` column and restrict its values to the inclusive range 1 through 2.", + "Map \"last update timestamp was on 2012\" to `list_update_timestamp_utc` and keep only rows where the timestamp begins with '2012'.", + "Combine the two filters with AND so that only rows satisfying both conditions are returned." + ] + }, + "revisql-train:1710": { + "raw": "1. Map the question term \"restaurants\" to the `label` column in `generalinfo`, and use the external knowledge to interpret \"19th St. Oakland\" as `street_name = '19th st'` paired with `city = 'oakland'`.\n2. Identify that `generalinfo` stores restaurant labels while `location` stores street addresses, so both tables are required.\n3. Join `generalinfo` and `location` on the shared `id_restaurant` key to link each restaurant to its physical address.\n4. Filter the joined results to rows where `location.street_name` equals '19th st' and `generalinfo.city` equals 'oakland'.\n5. Return only the `label` column from `generalinfo` as the output.", + "steps": [ + "Map the question term \"restaurants\" to the `label` column in `generalinfo`, and use the external knowledge to interpret \"19th St. Oakland\" as `street_name = '19th st'` paired with `city = 'oakland'`.", + "Identify that `generalinfo` stores restaurant labels while `location` stores street addresses, so both tables are required.", + "Join `generalinfo` and `location` on the shared `id_restaurant` key to link each restaurant to its physical address.", + "Filter the joined results to rows where `location.street_name` equals '19th st' and `generalinfo.city` equals 'oakland'.", + "Return only the `label` column from `generalinfo` as the output." + ] + }, + "revisql-train:1712": { + "raw": "1. Map \"unidentified region\" to geographic.region = 'unknown' and \"restaurant name\" to generalinfo.label per the external knowledge.\n2. Join location to generalinfo on id_restaurant to connect restaurant identifiers with their labels and cities.\n3. Join geographic to generalinfo on city to bring in the region data for each restaurant's location.\n4. Filter the results to only rows where geographic.region equals 'unknown'.\n5. Return the label column from generalinfo as the restaurant name.", + "steps": [ + "Map \"unidentified region\" to geographic.region = 'unknown' and \"restaurant name\" to generalinfo.label per the external knowledge.", + "Join location to generalinfo on id_restaurant to connect restaurant identifiers with their labels and cities.", + "Join geographic to generalinfo on city to bring in the region data for each restaurant's location.", + "Filter the results to only rows where geographic.region equals 'unknown'.", + "Return the label column from generalinfo as the restaurant name." + ] + }, + "revisql-train:1713": { + "raw": "1. Identify that restaurant names are stored in the `label` column of `generalinfo`, while address details are in `location`.\n2. Join `generalinfo` and `location` on `id_restaurant` to link a restaurant's cuisine and name with its street address.\n3. Filter `generalinfo` for `food_type = 'chinese'` to restrict results to Chinese restaurants.\n4. Apply the address constraints to the `location` table: `street_num = 104`, `street_name LIKE '%san tomas aquino rd%'`, and `city = 'campbell'`.\n5. Return only the `label` column to get the restaurant's name.", + "steps": [ + "Identify that restaurant names are stored in the `label` column of `generalinfo`, while address details are in `location`.", + "Join `generalinfo` and `location` on `id_restaurant` to link a restaurant's cuisine and name with its street address.", + "Filter `generalinfo` for `food_type = 'chinese'` to restrict results to Chinese restaurants.", + "Apply the address constraints to the `location` table: `street_num = 104`, `street_name LIKE '%san tomas aquino rd%'`, and `city = 'campbell'`.", + "Return only the `label` column to get the restaurant's name." + ] + }, + "revisql-train:1714": { + "raw": "1. Use tables generalinfo and location, joining them on the shared id_restaurant key.\n2. Map \"Thai restaurant\" to the column generalinfo.food_type with the value 'thai'.\n3. Map \"Albany\" to generalinfo.city = 'albany' and \"San Pablo Ave\" to location.street_name = 'san pablo ave'.\n4. Filter the joined rows where all three conditions in steps 2 and 3 are satisfied simultaneously.\n5. Count the generalinfo.id_restaurant values to compute the total number of matching restaurants.\n6. Return only the count of id_restaurant.", + "steps": [ + "Use tables generalinfo and location, joining them on the shared id_restaurant key.", + "Map \"Thai restaurant\" to the column generalinfo.food_type with the value 'thai'.", + "Map \"Albany\" to generalinfo.city = 'albany' and \"San Pablo Ave\" to location.street_name = 'san pablo ave'.", + "Filter the joined rows where all three conditions in steps 2 and 3 are satisfied simultaneously.", + "Count the generalinfo.id_restaurant values to compute the total number of matching restaurants.", + "Return only the count of id_restaurant." + ] + }, + "revisql-train:1718": { + "raw": "1. Join `generalinfo` and `location` on `id_restaurant` to link restaurant details with street addresses.\n2. Filter by location: match `city` in `generalinfo` to \"berkeley\" and `street_name` in `location` to \"shattuck ave\" (case-insensitive).\n3. Filter by cuisine: match `food_type` in `generalinfo` to \"Indian restaurant\" (case-insensitive).\n4. Find the minimum `review` value within that filtered set to determine the least popular.\n5. Restrict the results to only those rows whose `review` equals that minimum value.\n6. Return the `label` column from `generalinfo` as the restaurant name.", + "steps": [ + "Join `generalinfo` and `location` on `id_restaurant` to link restaurant details with street addresses.", + "Filter by location: match `city` in `generalinfo` to \"berkeley\" and `street_name` in `location` to \"shattuck ave\" (case-insensitive).", + "Filter by cuisine: match `food_type` in `generalinfo` to \"Indian restaurant\" (case-insensitive).", + "Find the minimum `review` value within that filtered set to determine the least popular.", + "Restrict the results to only those rows whose `review` equals that minimum value.", + "Return the `label` column from `generalinfo` as the restaurant name." + ] + }, + "revisql-train:1719": { + "raw": "1. Join the geographic and generalinfo tables on the city column to link each restaurant’s review data to its corresponding region.\n2. Filter the joined rows to only those where geographic.region equals 'bay area'.\n3. Map the phrase \"scored over 4\" to generalinfo.review > 4 using the external knowledge.\n4. Compute the numerator by conditionally counting restaurants with review > 4, and compute the denominator by counting all id_restaurant values in the filtered Bay Area set.\n5. Cast the numerator to REAL, multiply by 100, and divide by the denominator to calculate the percentage.\n6. Return the single resulting percentage value.", + "steps": [ + "Join the geographic and generalinfo tables on the city column to link each restaurant’s review data to its corresponding region.", + "Filter the joined rows to only those where geographic.region equals 'bay area'.", + "Map the phrase \"scored over 4\" to generalinfo.review > 4 using the external knowledge.", + "Compute the numerator by conditionally counting restaurants with review > 4, and compute the denominator by counting all id_restaurant values in the filtered Bay Area set.", + "Cast the numerator to REAL, multiply by 100, and divide by the denominator to calculate the percentage.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:1721": { + "raw": "1. Use the generalinfo table since it contains both the unique restaurant identifier and the review ratings.\n2. Filter rows where the review column is greater than 4, mapping the phrase \"more than 4 star reviews\" using the provided external knowledge.\n3. Aggregate by counting the id_restaurant values to get the total number of qualifying restaurants.\n4. Return a single column named cnt containing this count.", + "steps": [ + "Use the generalinfo table since it contains both the unique restaurant identifier and the review ratings.", + "Filter rows where the review column is greater than 4, mapping the phrase \"more than 4 star reviews\" using the provided external knowledge.", + "Aggregate by counting the id_restaurant values to get the total number of qualifying restaurants.", + "Return a single column named cnt containing this count." + ] + }, + "revisql-train:1738": { + "raw": "1. Join the geographic table to the location table on city to link region information with restaurants that have recorded locations.\n2. Use the external knowledge that Bay Area corresponds to geographic.region = 'bay area'.\n3. Compute the Bay Area count by conditionally summing 1 for rows where region is 'bay area' and 0 otherwise.\n4. Compute the total count as the count of all id_restaurant values from the location table.\n5. Calculate the percentage by dividing the Bay Area count by the total count, multiplying by 100, and casting the numerator to real to avoid integer division.\n6. Return exactly one column containing the final computed percentage.", + "steps": [ + "Join the geographic table to the location table on city to link region information with restaurants that have recorded locations.", + "Use the external knowledge that Bay Area corresponds to geographic.region = 'bay area'.", + "Compute the Bay Area count by conditionally summing 1 for rows where region is 'bay area' and 0 otherwise.", + "Compute the total count as the count of all id_restaurant values from the location table.", + "Calculate the percentage by dividing the Bay Area count by the total count, multiplying by 100, and casting the numerator to real to avoid integer division.", + "Return exactly one column containing the final computed percentage." + ] + }, + "revisql-train:1740": { + "raw": "1. Use only the location table, as it contains both the street_name and city columns needed.\n2. Filter rows where the city column matches san francisco.\n3. Extract the street_name values from the filtered rows.\n4. No joins or aggregation are required.", + "steps": [ + "Use only the location table, as it contains both the street_name and city columns needed.", + "Filter rows where the city column matches san francisco.", + "Extract the street_name values from the filtered rows.", + "No joins or aggregation are required." + ] + }, + "revisql-train:1748": { + "raw": "1. Join `generalinfo` to `geographic` on the `city` column to link each restaurant to its county.\n2. Filter the joined rows to only those where `food_type` equals `'italian'`.\n3. Group by `county` and count distinct `id_restaurant` to compute the number of Italian restaurants per county.\n4. Determine the maximum value among those per-county counts.\n5. Return the `county` whose restaurant count matches that maximum value.", + "steps": [ + "Join `generalinfo` to `geographic` on the `city` column to link each restaurant to its county.", + "Filter the joined rows to only those where `food_type` equals `'italian'`.", + "Group by `county` and count distinct `id_restaurant` to compute the number of Italian restaurants per county.", + "Determine the maximum value among those per-county counts.", + "Return the `county` whose restaurant count matches that maximum value." + ] + }, + "revisql-train:175": { + "raw": "1. Identify that titles holds the required title, notes, and pubdate, while publishers holds the publisher name (pub_name).\n2. Join titles and publishers using the common pub_id column.\n3. Filter to rows where the year portion of pubdate is 1991.\n4. Return the columns title, notes, and pub_name.", + "steps": [ + "Identify that titles holds the required title, notes, and pubdate, while publishers holds the publisher name (pub_name).", + "Join titles and publishers using the common pub_id column.", + "Filter to rows where the year portion of pubdate is 1991.", + "Return the columns title, notes, and pub_name." + ] + }, + "revisql-train:1751": { + "raw": "1. Start with the geographic table, as it stores the city names alongside their associated counties.\n2. Apply the external knowledge that \"unknown county\" translates to filtering the county column to the exact value 'unknown'.\n3. Restrict the result set to only rows where county equals 'unknown'.\n4. Return solely the city column from those filtered rows, with no joins, aggregation, or ordering needed.", + "steps": [ + "Start with the geographic table, as it stores the city names alongside their associated counties.", + "Apply the external knowledge that \"unknown county\" translates to filtering the county column to the exact value 'unknown'.", + "Restrict the result set to only rows where county equals 'unknown'.", + "Return solely the city column from those filtered rows, with no joins, aggregation, or ordering needed." + ] + }, + "revisql-train:1767": { + "raw": "1. Join the `location` and `generalinfo` tables on `id_restaurant` to link address data with food type.\n2. Filter `location.city` to 'san francisco' using the external knowledge mapping for San Francisco.\n3. Filter `location.street_name` to 'front' using the external knowledge mapping for Front.\n4. Filter `generalinfo.food_type` to 'american' using the external knowledge mapping for American restaurant.\n5. Apply COUNT(*) to aggregate the number of rows satisfying all three filters.\n6. Return a single column containing that count.", + "steps": [ + "Join the `location` and `generalinfo` tables on `id_restaurant` to link address data with food type.", + "Filter `location.city` to 'san francisco' using the external knowledge mapping for San Francisco.", + "Filter `location.street_name` to 'front' using the external knowledge mapping for Front.", + "Filter `generalinfo.food_type` to 'american' using the external knowledge mapping for American restaurant.", + "Apply COUNT(*) to aggregate the number of rows satisfying all three filters.", + "Return a single column containing that count." + ] + }, + "revisql-train:1768": { + "raw": "1. Join generalinfo and location on id_restaurant to combine review, food_type, and street_num.\n2. Apply the external knowledge mappings: filter to rows where food_type equals 'american' and street_num is greater than 2000.\n3. Compute the average review across this filtered American high-street-number group.\n4. Filter that same group again, keeping only restaurants where the review is greater than 0.7 multiplied by that average review.\n5. Select and return the id_restaurant column.", + "steps": [ + "Join generalinfo and location on id_restaurant to combine review, food_type, and street_num.", + "Apply the external knowledge mappings: filter to rows where food_type equals 'american' and street_num is greater than 2000.", + "Compute the average review across this filtered American high-street-number group.", + "Filter that same group again, keeping only restaurants where the review is greater than 0.7 multiplied by that average review.", + "Select and return the id_restaurant column." + ] + }, + "revisql-train:177": { + "raw": "1. Group `sales` by `stor_id`, sum `qty` to determine the store with the highest overall quantity, and retain that single `stor_id`.\n2. Join that store’s `sales` records to `stores` on `stor_id` and to `titles` on `title_id` to access `stor_name` and `title`.\n3. Group by `stor_id` and `title` to compute per-title quantity totals for the top store.\n4. Find the minimum per-title quantity total within that store.\n5. Return `stor_name` and `title` for the title(s) whose per-title total equals that minimum.", + "steps": [ + "Group `sales` by `stor_id`, sum `qty` to determine the store with the highest overall quantity, and retain that single `stor_id`.", + "Join that store’s `sales` records to `stores` on `stor_id` and to `titles` on `title_id` to access `stor_name` and `title`.", + "Group by `stor_id` and `title` to compute per-title quantity totals for the top store.", + "Find the minimum per-title quantity total within that store.", + "Return `stor_name` and `title` for the title(s) whose per-title total equals that minimum." + ] + }, + "revisql-train:1770": { + "raw": "1. Target the generalinfo table, which holds the restaurant label, food type, city, and review rating.\n2. Filter rows to only those with food_type equal to 'asian' and city equal to 'san francisco'.\n3. Determine the highest review value within that filtered group to find the most popular restaurant.\n4. Identify the row(s) in the same filtered set whose review matches that maximum value.\n5. Return the label column as the restaurant's name.", + "steps": [ + "Target the generalinfo table, which holds the restaurant label, food type, city, and review rating.", + "Filter rows to only those with food_type equal to 'asian' and city equal to 'san francisco'.", + "Determine the highest review value within that filtered group to find the most popular restaurant.", + "Identify the row(s) in the same filtered set whose review matches that maximum value.", + "Return the label column as the restaurant's name." + ] + }, + "revisql-train:1775": { + "raw": "1. Use the generalinfo table as the base because it contains the review scores that define popularity.\n2. Inner join geographic on the shared city column to link each restaurant to its region.\n3. Order the combined records by review descending and restrict to the first 4 rows to capture the top 4 most popular restaurants.\n4. From those 4 rows, select the region column provided by the geographic table.\n5. Apply DISTINCT to the region values so the final result lists each relevant region only once.", + "steps": [ + "Use the generalinfo table as the base because it contains the review scores that define popularity.", + "Inner join geographic on the shared city column to link each restaurant to its region.", + "Order the combined records by review descending and restrict to the first 4 rows to capture the top 4 most popular restaurants.", + "From those 4 rows, select the region column provided by the geographic table.", + "Apply DISTINCT to the region values so the final result lists each relevant region only once." + ] + }, + "revisql-train:1776": { + "raw": "1. Join generalinfo and location on id_restaurant to link each restaurant’s food type and city with its street address.\n2. Use the external knowledge to filter generalinfo to food_type = 'chinese' and city = 'livermore'.\n3. Use the external knowledge to filter location to street_name = '1st st'.\n4. Apply COUNT to id_restaurant on the joined result to total the matching restaurants.\n5. Return only that count.", + "steps": [ + "Join generalinfo and location on id_restaurant to link each restaurant’s food type and city with its street address.", + "Use the external knowledge to filter generalinfo to food_type = 'chinese' and city = 'livermore'.", + "Use the external knowledge to filter location to street_name = '1st st'.", + "Apply COUNT to id_restaurant on the joined result to total the matching restaurants.", + "Return only that count." + ] + }, + "revisql-train:1780": { + "raw": "1. Join the generalinfo table to the geographic table on the city column to link each restaurant to its region.\n2. Filter the joined rows to only those where the label column in generalinfo equals 'baskin robbins', per the external knowledge mapping.\n3. Group the results by the region column from geographic and count the number of cities (or restaurant entries) in each group to get per-region totals.\n4. Use a subquery that repeats the same join, filter, and grouping to compute the maximum value among those per-region counts.\n5. Apply a condition to keep only the groups whose per-region count equals that computed maximum.\n6. Return the region column for the surviving group(s).", + "steps": [ + "Join the generalinfo table to the geographic table on the city column to link each restaurant to its region.", + "Filter the joined rows to only those where the label column in generalinfo equals 'baskin robbins', per the external knowledge mapping.", + "Group the results by the region column from geographic and count the number of cities (or restaurant entries) in each group to get per-region totals.", + "Use a subquery that repeats the same join, filter, and grouping to compute the maximum value among those per-region counts.", + "Apply a condition to keep only the groups whose per-region count equals that computed maximum.", + "Return the region column for the surviving group(s)." + ] + }, + "revisql-train:1793": { + "raw": "1. Map the name \"SC Ganguly\" to the Player table using the external knowledge that it corresponds to Player_Name = 'SC Ganguly'.\n2. Note that the Player table stores Bowling_skill only as a foreign key integer ID, so the Bowling_Style table must be joined to retrieve the descriptive skill.\n3. Join Player to Bowling_Style on Player.Bowling_skill = Bowling_Style.Bowling_Id.\n4. Filter the joined rows to only those where Player_Name equals 'SC Ganguly'.\n5. Return the Bowling_Skill column from the Bowling_Style table.", + "steps": [ + "Map the name \"SC Ganguly\" to the Player table using the external knowledge that it corresponds to Player_Name = 'SC Ganguly'.", + "Note that the Player table stores Bowling_skill only as a foreign key integer ID, so the Bowling_Style table must be joined to retrieve the descriptive skill.", + "Join Player to Bowling_Style on Player.Bowling_skill = Bowling_Style.Bowling_Id.", + "Filter the joined rows to only those where Player_Name equals 'SC Ganguly'.", + "Return the Bowling_Skill column from the Bowling_Style table." + ] + }, + "revisql-train:1795": { + "raw": "1. Begin with the Player table to retrieve Player_Name, noting that Batting_hand and Country_Name are foreign key integers requiring joins.\n2. Join Batting_Style on Player.Batting_hand = Batting_Style.Batting_Id to access the batting hand description.\n3. Join Country on Player.Country_Name = Country.Country_Id to access the country name text.\n4. Filter Batting_Style.Batting_Hand to 'Right-hand bat' using the external knowledge mapping for right-handed batters.\n5. Filter Country.Country_Name to 'Australia' using the external knowledge mapping for the country.\n6. Return only Player.Player_Name with no aggregation or ordering applied.", + "steps": [ + "Begin with the Player table to retrieve Player_Name, noting that Batting_hand and Country_Name are foreign key integers requiring joins.", + "Join Batting_Style on Player.Batting_hand = Batting_Style.Batting_Id to access the batting hand description.", + "Join Country on Player.Country_Name = Country.Country_Id to access the country name text.", + "Filter Batting_Style.Batting_Hand to 'Right-hand bat' using the external knowledge mapping for right-handed batters.", + "Filter Country.Country_Name to 'Australia' using the external knowledge mapping for the country.", + "Return only Player.Player_Name with no aggregation or ordering applied." + ] + }, + "revisql-train:1799": { + "raw": "1. Start with the Match table and filter to the row where Match_Date is '2008-04-18', applying the external knowledge that \"on 2008/4/18\" maps to this column.\n2. Use the Man_of_the_Match column in that row, which stores the Player_Id of the award winner.\n3. Join the Player table to the filtered Match row on Player.Player_Id = Match.Man_of_the_Match.\n4. Return only the Player_Name column from the Player table, since \"name of player\" maps to that column.", + "steps": [ + "Start with the Match table and filter to the row where Match_Date is '2008-04-18', applying the external knowledge that \"on 2008/4/18\" maps to this column.", + "Use the Man_of_the_Match column in that row, which stores the Player_Id of the award winner.", + "Join the Player table to the filtered Match row on Player.Player_Id = Match.Man_of_the_Match.", + "Return only the Player_Name column from the Player table, since \"name of player\" maps to that column." + ] + }, + "revisql-train:1803": { + "raw": "1. Map 'SC Ganguly' to the Player_Name column and filter the Player table to that name to get the corresponding Player_Id.\n2. Join Player with Player_Match on Player_Id to gather all distinct Match_Id values for that player.\n3. Filter the Match table to only those Match_Id values and remove any records where Win_Margin is null.\n4. Compute the average of the Win_Margin column across the filtered match set.\n5. Return the result in a single column named avg_win_margin.", + "steps": [ + "Map 'SC Ganguly' to the Player_Name column and filter the Player table to that name to get the corresponding Player_Id.", + "Join Player with Player_Match on Player_Id to gather all distinct Match_Id values for that player.", + "Filter the Match table to only those Match_Id values and remove any records where Win_Margin is null.", + "Compute the average of the Win_Margin column across the filtered match set.", + "Return the result in a single column named avg_win_margin." + ] + }, + "revisql-train:181": { + "raw": "1. Identify the employee table as the sole source; no joins are needed because first name, last name, and hire date all reside there.\n2. Map the external knowledge that \"hired before year 1990\" means extracting the year from the hire_date column and comparing it to 1990.\n3. Apply a filter keeping only rows where the extracted year is strictly less than 1990, with no aggregation or ordering required.\n4. Return exactly the fname and lname columns as the final output.", + "steps": [ + "Identify the employee table as the sole source; no joins are needed because first name, last name, and hire date all reside there.", + "Map the external knowledge that \"hired before year 1990\" means extracting the year from the hire_date column and comparing it to 1990.", + "Apply a filter keeping only rows where the extracted year is strictly less than 1990, with no aggregation or ordering required.", + "Return exactly the fname and lname columns as the final output." + ] + }, + "revisql-train:1813": { + "raw": "1. Start from the Season table and filter to Season_Id = 7 to isolate the 7th season.\n2. Join Season to Player on Season.Purple_Cap = Player.Player_Id to get the Purple Cap winner's record.\n3. Join Player to Country on Player.Country_Name = Country.Country_Id to resolve the player's nationality foreign key into the actual country name.\n4. Return Country_Name from the Country table as the nationality.", + "steps": [ + "Start from the Season table and filter to Season_Id = 7 to isolate the 7th season.", + "Join Season to Player on Season.Purple_Cap = Player.Player_Id to get the Purple Cap winner's record.", + "Join Player to Country on Player.Country_Name = Country.Country_Id to resolve the player's nationality foreign key into the actual country name.", + "Return Country_Name from the Country table as the nationality." + ] + }, + "revisql-train:1817": { + "raw": "1. Filter the Player table to the row where Player_Name equals 'MK Pandey' using the external knowledge mapping.\n2. Note that Player.Batting_hand is a foreign key referencing Batting_Style.Batting_Id.\n3. Join Player to Batting_Style on Batting_hand = Batting_Id to reach the hand description.\n4. Return only the Batting_hand column from the Batting_Style table.", + "steps": [ + "Filter the Player table to the row where Player_Name equals 'MK Pandey' using the external knowledge mapping.", + "Note that Player.Batting_hand is a foreign key referencing Batting_Style.Batting_Id.", + "Join Player to Batting_Style on Batting_hand = Batting_Id to reach the hand description.", + "Return only the Batting_hand column from the Batting_Style table." + ] + }, + "revisql-train:182": { + "raw": "1. Use only the `employee` table because first name, last name, hire date, and job level all reside there; no joins are needed.\n2. Compute the minimum value of `job_lvl` across the entire `employee` table to identify the lowest job level per the external knowledge.\n3. Filter the `employee` rows to only those where `job_lvl` equals that minimum value.\n4. Return exactly the columns `fname`, `lname`, and `hire_date` for the qualifying employee(s).", + "steps": [ + "Use only the `employee` table because first name, last name, hire date, and job level all reside there; no joins are needed.", + "Compute the minimum value of `job_lvl` across the entire `employee` table to identify the lowest job level per the external knowledge.", + "Filter the `employee` rows to only those where `job_lvl` equals that minimum value.", + "Return exactly the columns `fname`, `lname`, and `hire_date` for the qualifying employee(s)." + ] + }, + "revisql-train:183": { + "raw": "1. Use the employee table, which contains hire_date and emp_id; no joins are required.\n2. Derive the calendar year from the hire_date column for each record.\n3. Group the rows by that derived year and count emp_id within each group to compute the total hires per year.\n4. Apply the external knowledge that \"most hired employees\" means the maximum count: order the groups by the hire count descending and keep only the top row.\n5. Return exactly the derived year column as the result.", + "steps": [ + "Use the employee table, which contains hire_date and emp_id; no joins are required.", + "Derive the calendar year from the hire_date column for each record.", + "Group the rows by that derived year and count emp_id within each group to compute the total hires per year.", + "Apply the external knowledge that \"most hired employees\" means the maximum count: order the groups by the hire count descending and keep only the top row.", + "Return exactly the derived year column as the result." + ] + }, + "revisql-train:1837": { + "raw": "1. Join Team to Player_Match on Team_Id, then to Rolee on Role_Id, then to Player on Player_Id to link team names, roles, and player identities.\n2. Apply the external knowledge filters: restrict to Deccan Chargers using Team_Name = 'Deccan Chargers' and Team_Id = 8, and to captain roles using Role_Desc = 'Captain' and Role_Id = 1.\n3. Group by Player_Id and count the rows per player to compute the number of captain appearances.\n4. Determine the maximum value of those counts to find the highest number of captain roles.\n5. Return only the Player_Name(s) whose count equals that maximum.", + "steps": [ + "Join Team to Player_Match on Team_Id, then to Rolee on Role_Id, then to Player on Player_Id to link team names, roles, and player identities.", + "Apply the external knowledge filters: restrict to Deccan Chargers using Team_Name = 'Deccan Chargers' and Team_Id = 8, and to captain roles using Role_Desc = 'Captain' and Role_Id = 1.", + "Group by Player_Id and count the rows per player to compute the number of captain appearances.", + "Determine the maximum value of those counts to find the highest number of captain roles.", + "Return only the Player_Name(s) whose count equals that maximum." + ] + }, + "revisql-train:1839": { + "raw": "1. Use the Player table since it holds both the player names and date of birth.\n2. Map the requested name to the Player_Name column.\n3. Map the birth date \"July 7, 1981\" to the DOB column with the exact value '1981-07-07'.\n4. Filter the Player table to only rows where DOB equals '1981-07-07'.\n5. Return only the Player_Name column from the matching row.", + "steps": [ + "Use the Player table since it holds both the player names and date of birth.", + "Map the requested name to the Player_Name column.", + "Map the birth date \"July 7, 1981\" to the DOB column with the exact value '1981-07-07'.", + "Filter the Player table to only rows where DOB equals '1981-07-07'.", + "Return only the Player_Name column from the matching row." + ] + }, + "revisql-train:1840": { + "raw": "1. Use the Player_Match table, which links players to the matches they participated in.\n2. Filter rows to only those where Player_Id equals 2, matching the specified player ID.\n3. Since a player can have multiple roles in the same match, apply a distinct count on Match_Id to avoid duplicate matches.\n4. Return the resulting count as the total number of matches played.", + "steps": [ + "Use the Player_Match table, which links players to the matches they participated in.", + "Filter rows to only those where Player_Id equals 2, matching the specified player ID.", + "Since a player can have multiple roles in the same match, apply a distinct count on Match_Id to avoid duplicate matches.", + "Return the resulting count as the total number of matches played." + ] + }, + "revisql-train:1842": { + "raw": "1. Start from the Venue table and filter rows where Venue_Name equals 'St George''s Park', applying the external knowledge mapping for St. George's Park.\n2. Join the Venue table to the City table on City_Id to link the venue to its corresponding city.\n3. Join the City table to the Country table on Country_id to link that city to its country.\n4. Return the Country_Name column from the Country table, using the external knowledge that \"country\" refers to Country_Name.", + "steps": [ + "Start from the Venue table and filter rows where Venue_Name equals 'St George''s Park', applying the external knowledge mapping for St. George's Park.", + "Join the Venue table to the City table on City_Id to link the venue to its corresponding city.", + "Join the City table to the Country table on Country_id to link that city to its country.", + "Return the Country_Name column from the Country table, using the external knowledge that \"country\" refers to Country_Name." + ] + }, + "revisql-train:1843": { + "raw": "1. Join `Player` to `Player_Match` on `Player_Id` to connect player names with their match appearances.\n2. Join `Team` to `Player_Match` on `Team_Id` to access the team name for each appearance.\n3. Filter `Player_Match` to `Match_Id` = 335990, mapping the given match identifier to this column.\n4. Filter `Team` to `Team_Name` = 'Mumbai Indians', applying the external knowledge mapping for the team.\n5. Use `DISTINCT` when returning `Player_Name` from `Player` to avoid duplicates in case a player has multiple roles in the match.", + "steps": [ + "Join `Player` to `Player_Match` on `Player_Id` to connect player names with their match appearances.", + "Join `Team` to `Player_Match` on `Team_Id` to access the team name for each appearance.", + "Filter `Player_Match` to `Match_Id` = 335990, mapping the given match identifier to this column.", + "Filter `Team` to `Team_Name` = 'Mumbai Indians', applying the external knowledge mapping for the team.", + "Use `DISTINCT` when returning `Player_Name` from `Player` to avoid duplicates in case a player has multiple roles in the match." + ] + }, + "revisql-train:1847": { + "raw": "1. Join the Match table with the Team table on Team.Team_Id = Match.Match_Winner to link every match winner to its team name.\n2. Apply the external knowledge that \"Pune Warriors\" maps to Team_Name = 'Pune Warriors' and that a win is recorded when a team's id equals Match_Winner.\n3. Compute the total by summing a conditional expression that returns 1 when Team_Name is 'Pune Warriors' and 0 otherwise.\n4. Return exactly one column: the resulting aggregated numeric total of won matches.", + "steps": [ + "Join the Match table with the Team table on Team.Team_Id = Match.Match_Winner to link every match winner to its team name.", + "Apply the external knowledge that \"Pune Warriors\" maps to Team_Name = 'Pune Warriors' and that a win is recorded when a team's id equals Match_Winner.", + "Compute the total by summing a conditional expression that returns 1 when Team_Name is 'Pune Warriors' and 0 otherwise.", + "Return exactly one column: the resulting aggregated numeric total of won matches." + ] + }, + "revisql-train:1848": { + "raw": "1. Start from the Match table to locate the record with Match_Id equal to 829770 and restrict to 2015 by filtering Match_Date with the LIKE '2015%' pattern.\n2. Recognize from the external knowledge that the winning team is identified by the Match_Winner column in the Match table.\n3. Join the Team table on Team_Id = Match_Winner to translate the winning team ID into the team name.\n4. Return only the Team_Name column as the final output.", + "steps": [ + "Start from the Match table to locate the record with Match_Id equal to 829770 and restrict to 2015 by filtering Match_Date with the LIKE '2015%' pattern.", + "Recognize from the external knowledge that the winning team is identified by the Match_Winner column in the Match table.", + "Join the Team table on Team_Id = Match_Winner to translate the winning team ID into the team name.", + "Return only the Team_Name column as the final output." + ] + }, + "revisql-train:1850": { + "raw": "1. Join the City table to the Country table on their shared Country_Id key to link each city with its country's name.\n2. Map the term South Africa from the question to the Country_Name column value 'South Africa' using the external knowledge.\n3. Within a SUM aggregate, use a conditional expression that returns 1 if Country_Name equals 'South Africa' and 0 for any other value.\n4. Compute the total sum across all rows to obtain the count of cities in South Africa.\n5. Return exactly one column: the resulting aggregated count.", + "steps": [ + "Join the City table to the Country table on their shared Country_Id key to link each city with its country's name.", + "Map the term South Africa from the question to the Country_Name column value 'South Africa' using the external knowledge.", + "Within a SUM aggregate, use a conditional expression that returns 1 if Country_Name equals 'South Africa' and 0 for any other value.", + "Compute the total sum across all rows to obtain the count of cities in South Africa.", + "Return exactly one column: the resulting aggregated count." + ] + }, + "revisql-train:1859": { + "raw": "1. Identify the Player table as the source for both player names and birth dates.\n2. Map the requested output \"players' names\" to the Player_name column.\n3. Apply the filter for \"born in 1971\" on the DOB column using the pattern LIKE '1971%'.\n4. Return only the Player_name column in the result.", + "steps": [ + "Identify the Player table as the source for both player names and birth dates.", + "Map the requested output \"players' names\" to the Player_name column.", + "Apply the filter for \"born in 1971\" on the DOB column using the pattern LIKE '1971%'.", + "Return only the Player_name column in the result." + ] + }, + "revisql-train:1864": { + "raw": "1. Join the Player table to the Country table on Player.Country_Name = Country.Country_Id to link each player record to its text country name.\n2. Filter for players born in 1977 by applying the external knowledge mapping to restrict Player.DOB with LIKE '1977%'.\n3. Filter for players from England by applying the external knowledge mapping to restrict Country.Country_Name to 'England'.\n4. Return only the Player_Name and DOB columns as the requested name and birthdate.", + "steps": [ + "Join the Player table to the Country table on Player.Country_Name = Country.Country_Id to link each player record to its text country name.", + "Filter for players born in 1977 by applying the external knowledge mapping to restrict Player.DOB with LIKE '1977%'.", + "Filter for players from England by applying the external knowledge mapping to restrict Country.Country_Name to 'England'.", + "Return only the Player_Name and DOB columns as the requested name and birthdate." + ] + }, + "revisql-train:1867": { + "raw": "1. Use Player_Match as the central table to link players, teams, and matches.\n2. Join Team on Team_Id and filter for Team_Name = 'Gujarat Lions' per the external knowledge mapping.\n3. Join Match on Match_Id and filter for Match_Date = '2016-04-11' per the external knowledge mapping.\n4. Join Player on Player_Id to access the player names via Player_Name.\n5. Join Country on Country_Id = Player.Country_Name to resolve the country reference and access Country_Name.\n6. Return Player_Name and Country_Name as the output columns with no aggregation or ordering required.", + "steps": [ + "Use Player_Match as the central table to link players, teams, and matches.", + "Join Team on Team_Id and filter for Team_Name = 'Gujarat Lions' per the external knowledge mapping.", + "Join Match on Match_Id and filter for Match_Date = '2016-04-11' per the external knowledge mapping.", + "Join Player on Player_Id to access the player names via Player_Name.", + "Join Country on Country_Id = Player.Country_Name to resolve the country reference and access Country_Name.", + "Return Player_Name and Country_Name as the output columns with no aggregation or ordering required." + ] + }, + "revisql-train:1879": { + "raw": "1. Start from the Match table and join it to the Team table on Match.Match_Winner = Team.Team_Id so the winning team’s name can be evaluated.\n2. Map the external knowledge that “won” corresponds to the Match_Winner column and that “Mumbai Indians” corresponds to Team_Name = 'Mumbai Indians'.\n3. For each match row, produce a value of 1 when the joined Team_Name equals 'Mumbai Indians' and 0 otherwise.\n4. Sum those values to compute the total number of matches won by Mumbai Indians.\n5. Return a single aggregated column containing that total count.", + "steps": [ + "Start from the Match table and join it to the Team table on Match.Match_Winner = Team.Team_Id so the winning team’s name can be evaluated.", + "Map the external knowledge that “won” corresponds to the Match_Winner column and that “Mumbai Indians” corresponds to Team_Name = 'Mumbai Indians'.", + "For each match row, produce a value of 1 when the joined Team_Name equals 'Mumbai Indians' and 0 otherwise.", + "Sum those values to compute the total number of matches won by Mumbai Indians.", + "Return a single aggregated column containing that total count." + ] + }, + "revisql-train:1881": { + "raw": "1. Identify that the Match table stores the winning team ID and the Team table stores team names.\n2. Apply the external knowledge that \"won\" maps to Match.Match_Winner and \"name of the team\" maps to Team.Team_Name.\n3. Join the Team table to the Match table on Team.Team_Id = Match.Match_Winner to resolve the winner's ID into a name.\n4. Filter Match to the single row where Match_Id is 336000.\n5. Return only the Team_Name column from the Team table.", + "steps": [ + "Identify that the Match table stores the winning team ID and the Team table stores team names.", + "Apply the external knowledge that \"won\" maps to Match.Match_Winner and \"name of the team\" maps to Team.Team_Name.", + "Join the Team table to the Match table on Team.Team_Id = Match.Match_Winner to resolve the winner's ID into a name.", + "Filter Match to the single row where Match_Id is 336000.", + "Return only the Team_Name column from the Team table." + ] + }, + "revisql-train:1886": { + "raw": "1. Start from the Match table and note that winning team IDs correspond to the Match_Winner column.\n2. Join the Venue table to Match using Venue_Id as the join key to bring in venue names.\n3. Filter the results by checking that Venue_Name begins with St George, matching the external knowledge for St George's Park.\n4. Apply DISTINCT on Match_Winner to return each winning team ID only once.\n5. Output solely the Match_Winner column.", + "steps": [ + "Start from the Match table and note that winning team IDs correspond to the Match_Winner column.", + "Join the Venue table to Match using Venue_Id as the join key to bring in venue names.", + "Filter the results by checking that Venue_Name begins with St George, matching the external knowledge for St George's Park.", + "Apply DISTINCT on Match_Winner to return each winning team ID only once.", + "Output solely the Match_Winner column." + ] + }, + "revisql-train:1888": { + "raw": "1. Identify that winning refers to the Match_Winner column in the Match table, and Deccan Chargers refers to Team_Name in the Team table.\n2. Join the Match table to the Team table on Team_Id equaling Match_Winner to resolve each winning team ID to its name.\n3. Filter the joined rows to only those where Team_Name equals 'Deccan Chargers'.\n4. Count all matching rows and return the result in a single column named total_wins.", + "steps": [ + "Identify that winning refers to the Match_Winner column in the Match table, and Deccan Chargers refers to Team_Name in the Team table.", + "Join the Match table to the Team table on Team_Id equaling Match_Winner to resolve each winning team ID to its name.", + "Filter the joined rows to only those where Team_Name equals 'Deccan Chargers'.", + "Count all matching rows and return the result in a single column named total_wins." + ] + }, + "revisql-train:189": { + "raw": "1. Join the titles and publishers tables on pub_id to connect each title record with its publisher name.\n2. Filter to only titles whose pubdate falls in 1991 by extracting the year from the datetime column.\n3. Group the results by publisher id and publisher name to prepare per-publisher aggregates.\n4. In a subquery, count titles per publisher for 1991, order those counts from highest to lowest, and limit to the top value to find the maximum number of titles.\n5. In the main query, count titles per publisher for 1991 and keep only the group(s) whose count equals that subquery maximum.\n6. Return the pub_name column as the final answer.", + "steps": [ + "Join the titles and publishers tables on pub_id to connect each title record with its publisher name.", + "Filter to only titles whose pubdate falls in 1991 by extracting the year from the datetime column.", + "Group the results by publisher id and publisher name to prepare per-publisher aggregates.", + "In a subquery, count titles per publisher for 1991, order those counts from highest to lowest, and limit to the top value to find the maximum number of titles.", + "In the main query, count titles per publisher for 1991 and keep only the group(s) whose count equals that subquery maximum.", + "Return the pub_name column as the final answer." + ] + }, + "revisql-train:1892": { + "raw": "1. Start from the Match table to ensure every match is represented, including those with no second-innings extras.\n2. Left join Extra_Runs on Match_Id, filtering the joined rows to Innings_No equal to 2 to isolate the second innings as defined in the external knowledge.\n3. Group the combined rows by Match_Id so that calculations are performed separately for each match.\n4. Compute the average of Extra_Runs for each group, using COALESCE to return 0 whenever a match has no corresponding second-innings extra runs.\n5. Return Match_Id and the calculated average value, aliasing it as avg_extra_runs.", + "steps": [ + "Start from the Match table to ensure every match is represented, including those with no second-innings extras.", + "Left join Extra_Runs on Match_Id, filtering the joined rows to Innings_No equal to 2 to isolate the second innings as defined in the external knowledge.", + "Group the combined rows by Match_Id so that calculations are performed separately for each match.", + "Compute the average of Extra_Runs for each group, using COALESCE to return 0 whenever a match has no corresponding second-innings extra runs.", + "Return Match_Id and the calculated average value, aliasing it as avg_extra_runs." + ] + }, + "revisql-train:1898": { + "raw": "1. Use the Wicket_Taken table to access dismissal records, specifically the Player_Out and Kind_Out columns.\n2. Inner join with Out_Type on Wicket_Taken.Kind_Out = Out_Type.Out_Id to link each wicket to its descriptive out name.\n3. Filter the joined results to rows where Out_Name equals 'hit wicket', applying the external knowledge mapping.\n4. In an inner query, select Player_Out to isolate the identifiers of players dismissed in this manner.\n5. Wrap in an outer query that counts distinct Player_Out values to return the total unique players out by hit wicket.", + "steps": [ + "Use the Wicket_Taken table to access dismissal records, specifically the Player_Out and Kind_Out columns.", + "Inner join with Out_Type on Wicket_Taken.Kind_Out = Out_Type.Out_Id to link each wicket to its descriptive out name.", + "Filter the joined results to rows where Out_Name equals 'hit wicket', applying the external knowledge mapping.", + "In an inner query, select Player_Out to isolate the identifiers of players dismissed in this manner.", + "Wrap in an outer query that counts distinct Player_Out values to return the total unique players out by hit wicket." + ] + }, + "revisql-train:19": { + "raw": "1. Query the `ratings` table directly, as it contains every column needed: `movie_id`, `rating_score`, `user_has_payment_method`, `user_eligible_for_trial`, and `user_id`.\n2. Filter to rows where `movie_id` equals 1269.\n3. Apply the rating filter using the external knowledge mapping: keep only rows with `rating_score` less than or equal to 2.\n4. Apply the user status filters using external knowledge: require `user_has_payment_method = 1` for paying subscribers and `user_eligible_for_trial = 1` for trial eligibility.\n5. Count distinct `user_id` values to ensure each user is counted only once.\n6. Return a single column containing that aggregated count.", + "steps": [ + "Query the `ratings` table directly, as it contains every column needed: `movie_id`, `rating_score`, `user_has_payment_method`, `user_eligible_for_trial`, and `user_id`.", + "Filter to rows where `movie_id` equals 1269.", + "Apply the rating filter using the external knowledge mapping: keep only rows with `rating_score` less than or equal to 2.", + "Apply the user status filters using external knowledge: require `user_has_payment_method = 1` for paying subscribers and `user_eligible_for_trial = 1` for trial eligibility.", + "Count distinct `user_id` values to ensure each user is counted only once.", + "Return a single column containing that aggregated count." + ] + }, + "revisql-train:1904": { + "raw": "1. Join the `Match` table with the `Venue` table on `Venue_Id` to connect each match to its venue name.\n2. Group the outer query by `Venue_Name` and count the number of matches per venue.\n3. Build a subquery using the same `Match`-to-`Venue` join and grouping, order the match counts descending, and limit to 1 to isolate the highest match count.\n4. Apply a `HAVING` clause in the outer query to keep only venues whose match count equals that subquery maximum.\n5. Return the `Venue_Name` column.", + "steps": [ + "Join the `Match` table with the `Venue` table on `Venue_Id` to connect each match to its venue name.", + "Group the outer query by `Venue_Name` and count the number of matches per venue.", + "Build a subquery using the same `Match`-to-`Venue` join and grouping, order the match counts descending, and limit to 1 to isolate the highest match count.", + "Apply a `HAVING` clause in the outer query to keep only venues whose match count equals that subquery maximum.", + "Return the `Venue_Name` column." + ] + }, + "revisql-train:1912": { + "raw": "1. Identify that the `Match` table contains the records for each game and its `Match_Date`.\n2. Apply the external knowledge that March 2010 corresponds to the `Match_Date` column beginning with '2010-03'.\n3. Use a conditional aggregation to sum 1 for every row where the date matches that pattern and 0 otherwise, producing a total game count.\n4. Return a single aggregated numeric column with no other fields.", + "steps": [ + "Identify that the `Match` table contains the records for each game and its `Match_Date`.", + "Apply the external knowledge that March 2010 corresponds to the `Match_Date` column beginning with '2010-03'.", + "Use a conditional aggregation to sum 1 for every row where the date matches that pattern and 0 otherwise, producing a total game count.", + "Return a single aggregated numeric column with no other fields." + ] + }, + "revisql-train:1934": { + "raw": "1. Join `Match` to `Venue` on `Venue_Id` and filter where `Venue_Name` = 'Kingsmead', keeping `Match_Id` and `Match_Date`.\n2. Select the distinct `Match_Date` values from that Kingsmead subset.\n3. Assign an ordered row number by `Match_Date` and subtract that many days from each date to form a sequence group; identical values mark consecutive days.\n4. Keep only sequence groups that contain three or more distinct dates.\n5. Return `Match_Id` and `Match_Date` from the original Kingsmead set whose date falls into one of those valid groups, ordered by `Match_Date` and then `Match_Id`.", + "steps": [ + "Join `Match` to `Venue` on `Venue_Id` and filter where `Venue_Name` = 'Kingsmead', keeping `Match_Id` and `Match_Date`.", + "Select the distinct `Match_Date` values from that Kingsmead subset.", + "Assign an ordered row number by `Match_Date` and subtract that many days from each date to form a sequence group; identical values mark consecutive days.", + "Keep only sequence groups that contain three or more distinct dates.", + "Return `Match_Id` and `Match_Date` from the original Kingsmead set whose date falls into one of those valid groups, ordered by `Match_Date` and then `Match_Id`." + ] + }, + "revisql-train:1943": { + "raw": "1. Use the `Season` table as the base because it stores both `Man_of_the_Series` and `Orange_Cap` player IDs for every season.\n2. Join `Player` on `Player_Id` = `Man_of_the_Series` to convert the award winner’s ID into a readable name, applying the external knowledge that “Who” refers to `Player_Name`.\n3. Filter the rows so that `Man_of_the_Series` equals `Orange_Cap`, guaranteeing the same player won both awards in that season.\n4. Return `Player_Name` with `DISTINCT` so each player appears only once even if they swept both awards across multiple seasons.", + "steps": [ + "Use the `Season` table as the base because it stores both `Man_of_the_Series` and `Orange_Cap` player IDs for every season.", + "Join `Player` on `Player_Id` = `Man_of_the_Series` to convert the award winner’s ID into a readable name, applying the external knowledge that “Who” refers to `Player_Name`.", + "Filter the rows so that `Man_of_the_Series` equals `Orange_Cap`, guaranteeing the same player won both awards in that season.", + "Return `Player_Name` with `DISTINCT` so each player appears only once even if they swept both awards across multiple seasons." + ] + }, + "revisql-train:1955": { + "raw": "1. Join the `City` table to the `country` table on the `Country_id` key to link each city to its country's name.\n2. Apply the external knowledge that \"U.A.E\" maps to the value 'U.A.E' in the `country.Country_Name` column.\n3. Use conditional aggregation by summing a `CASE` expression that evaluates to 1 when `Country_Name` is 'U.A.E' and 0 otherwise, effectively counting only cities in that country.\n4. Return the single resulting aggregated numeric column representing the total number of cities in U.A.E.", + "steps": [ + "Join the `City` table to the `country` table on the `Country_id` key to link each city to its country's name.", + "Apply the external knowledge that \"U.A.E\" maps to the value 'U.A.E' in the `country.Country_Name` column.", + "Use conditional aggregation by summing a `CASE` expression that evaluates to 1 when `Country_Name` is 'U.A.E' and 0 otherwise, effectively counting only cities in that country.", + "Return the single resulting aggregated numeric column representing the total number of cities in U.A.E." + ] + }, + "revisql-train:1957": { + "raw": "1. Join the `Player` table to `Bowling_Style` on `Player.Bowling_skill` = `Bowling_Style.Bowling_Id` to translate the integer bowling skill into its text description.\n2. Apply the filter `Bowling_Style.Bowling_skill` = `'Legbreak'` using the external knowledge that legbreak style maps to that exact value.\n3. Aggregate the filtered rows with `COUNT(*)` to compute the total number of matching players.\n4. Return the single aggregated result under the alias `Num_players`.", + "steps": [ + "Join the `Player` table to `Bowling_Style` on `Player.Bowling_skill` = `Bowling_Style.Bowling_Id` to translate the integer bowling skill into its text description.", + "Apply the filter `Bowling_Style.Bowling_skill` = `'Legbreak'` using the external knowledge that legbreak style maps to that exact value.", + "Aggregate the filtered rows with `COUNT(*)` to compute the total number of matching players.", + "Return the single aggregated result under the alias `Num_players`." + ] + }, + "revisql-train:1963": { + "raw": "1. Join the Player and Season tables on Player_Id = Purple_Cap to get each Purple Cap winner’s name, date of birth, and the season year they won.\n2. Calculate each winner’s age by subtracting the year extracted from their DOB from Season_Year.\n3. Determine the minimum age value across all Purple Cap winners.\n4. Filter the joined results to keep only the rows where the calculated age equals that minimum age.\n5. Return the Player_Name column for those youngest winners.", + "steps": [ + "Join the Player and Season tables on Player_Id = Purple_Cap to get each Purple Cap winner’s name, date of birth, and the season year they won.", + "Calculate each winner’s age by subtracting the year extracted from their DOB from Season_Year.", + "Determine the minimum age value across all Purple Cap winners.", + "Filter the joined results to keep only the rows where the calculated age equals that minimum age.", + "Return the Player_Name column for those youngest winners." + ] + }, + "revisql-train:1964": { + "raw": "1. Join Venue to City on City_Id, then join Country on Country_Id, and join Match on Venue_Id to collect Venue_Name, City_Name, Country_Name, and Match_Date.\n2. Apply the external knowledge that venue, city, and country names correspond to Venue_Name, City_Name, and Country_Name, while last match means the maximum Match_Date.\n3. Calculate the latest match date by taking the maximum Match_Date across all joined records.\n4. Filter the result set to keep only rows where Match_Date equals that maximum date.\n5. Return exactly the three columns Venue_Name, City_Name, and Country_Name.", + "steps": [ + "Join Venue to City on City_Id, then join Country on Country_Id, and join Match on Venue_Id to collect Venue_Name, City_Name, Country_Name, and Match_Date.", + "Apply the external knowledge that venue, city, and country names correspond to Venue_Name, City_Name, and Country_Name, while last match means the maximum Match_Date.", + "Calculate the latest match date by taking the maximum Match_Date across all joined records.", + "Filter the result set to keep only rows where Match_Date equals that maximum date.", + "Return exactly the three columns Venue_Name, City_Name, and Country_Name." + ] + }, + "revisql-train:1972": { + "raw": "1. Begin with Player_Match and inner join it to Player on the shared Player_Id column to access player names alongside match records.\n2. Map Mohammad Hafeez to Player_Name = 'Mohammad Hafeez' using the provided external knowledge.\n3. Aggregate with SUM(CASE WHEN Player_Name equals 'Mohammad Hafeez' THEN 1 ELSE 0 END) to count only rows belonging to him.\n4. Return a single column containing the final aggregated count of his match participations.", + "steps": [ + "Begin with Player_Match and inner join it to Player on the shared Player_Id column to access player names alongside match records.", + "Map Mohammad Hafeez to Player_Name = 'Mohammad Hafeez' using the provided external knowledge.", + "Aggregate with SUM(CASE WHEN Player_Name equals 'Mohammad Hafeez' THEN 1 ELSE 0 END) to count only rows belonging to him.", + "Return a single column containing the final aggregated count of his match participations." + ] + }, + "revisql-train:1981": { + "raw": "1. Start from the Extra_Runs table because it records per-match extra events and holds the Match_Id to return.\n2. Join Extra_Type on Extra_Type_Id = Extra_Id to translate the numeric extra type into its descriptive name.\n3. Apply the external knowledge filter by restricting rows where Extra_Name equals 'penalty'.\n4. Select distinct Match_Id from Extra_Runs so each match appears only once even if multiple penalty extras occurred.", + "steps": [ + "Start from the Extra_Runs table because it records per-match extra events and holds the Match_Id to return.", + "Join Extra_Type on Extra_Type_Id = Extra_Id to translate the numeric extra type into its descriptive name.", + "Apply the external knowledge filter by restricting rows where Extra_Name equals 'penalty'.", + "Select distinct Match_Id from Extra_Runs so each match appears only once even if multiple penalty extras occurred." + ] + }, + "revisql-train:1982": { + "raw": "1. Start with the `Team` table to get team names, and join it to the `Match` table on `Team.Team_Id` matching either `Match.Team_1` or `Match.Team_2` so both participating teams in each fixture are included.\n2. Join `Match` to `Win_By` on `Match.Win_Type` = `Win_By.Win_Id` to access the winning type description.\n3. Filter the rows by extracting the year from `Match.Match_Date` and keeping only those equal to 2015.\n4. Further filter to keep only matches where `Win_By.Win_Type` is 'Tie'.\n5. Return distinct values of `Team_Name` to list each team once without duplicates.", + "steps": [ + "Start with the `Team` table to get team names, and join it to the `Match` table on `Team.Team_Id` matching either `Match.Team_1` or `Match.Team_2` so both participating teams in each fixture are included.", + "Join `Match` to `Win_By` on `Match.Win_Type` = `Win_By.Win_Id` to access the winning type description.", + "Filter the rows by extracting the year from `Match.Match_Date` and keeping only those equal to 2015.", + "Further filter to keep only matches where `Win_By.Win_Type` is 'Tie'.", + "Return distinct values of `Team_Name` to list each team once without duplicates." + ] + }, + "revisql-train:1990": { + "raw": "1. Join the Venue table to the City table on City_Id, then join City to the Country table on Country_Id to link each venue to its city and country names.\n2. Filter City.city_name to 'Centurion' and Country.country_name to 'South Africa' using the external knowledge mappings.\n3. Count the Venue_name values from the Venue table to compute the total number of matching venues.\n4. Return only that aggregated count.", + "steps": [ + "Join the Venue table to the City table on City_Id, then join City to the Country table on Country_Id to link each venue to its city and country names.", + "Filter City.city_name to 'Centurion' and Country.country_name to 'South Africa' using the external knowledge mappings.", + "Count the Venue_name values from the Venue table to compute the total number of matching venues.", + "Return only that aggregated count." + ] + }, + "revisql-train:1995": { + "raw": "1. Locate the row in the Match table where match_id equals 336039.\n2. Determine the losing Team_Id by comparing Team_1 to Match_Winner: if Team_1 is the winner, select Team_2 as the loser, otherwise select Team_1 as the loser.\n3. Use that losing Team_Id to look up the corresponding row in the Team table.\n4. Return only the Team_Name column.", + "steps": [ + "Locate the row in the Match table where match_id equals 336039.", + "Determine the losing Team_Id by comparing Team_1 to Match_Winner: if Team_1 is the winner, select Team_2 as the loser, otherwise select Team_1 as the loser.", + "Use that losing Team_Id to look up the corresponding row in the Team table.", + "Return only the Team_Name column." + ] + }, + "revisql-train:1997": { + "raw": "1. Identify that the second team is stored in `Match.Team_2` and team names reside in `Team.Team_Name`, requiring both the `Match` and `Team` tables.\n2. Join `Team` to `Match` on `Team.Team_Id = Match.Team_2` to map the second team’s ID to its name.\n3. Compute the lowest winning margin by taking the minimum non-null `Win_Margin` from the `Match` table.\n4. Filter the joined rows to only those where `Match.Win_Margin` equals that minimum value.\n5. Return `Team_Name` from the `Team` table as the result.", + "steps": [ + "Identify that the second team is stored in `Match.Team_2` and team names reside in `Team.Team_Name`, requiring both the `Match` and `Team` tables.", + "Join `Team` to `Match` on `Team.Team_Id = Match.Team_2` to map the second team’s ID to its name.", + "Compute the lowest winning margin by taking the minimum non-null `Win_Margin` from the `Match` table.", + "Filter the joined rows to only those where `Match.Win_Margin` equals that minimum value.", + "Return `Team_Name` from the `Team` table as the result." + ] + }, + "revisql-train:2008": { + "raw": "1. Join the Player table to the Batting_Style table on Player.Batting_hand = Batting_Style.Batting_Id to link players to their batting hand descriptions.\n2. Map the requirement \"play by the left hand\" to the Batting_Style.Batting_hand column using the external knowledge that it equals 'Left-hand bat'.\n3. Filter the joined rows to only those where Batting_Style.Batting_hand is 'Left-hand bat'.\n4. Return only the Player_Name column from the Player table.", + "steps": [ + "Join the Player table to the Batting_Style table on Player.Batting_hand = Batting_Style.Batting_Id to link players to their batting hand descriptions.", + "Map the requirement \"play by the left hand\" to the Batting_Style.Batting_hand column using the external knowledge that it equals 'Left-hand bat'.", + "Filter the joined rows to only those where Batting_Style.Batting_hand is 'Left-hand bat'.", + "Return only the Player_Name column from the Player table." + ] + }, + "revisql-train:2014": { + "raw": "1. Filter the Player table on Player_Name = 'SC Ganguly', applying the external knowledge that \"SC Ganguly\" refers to that column.\n2. Join Player_Match on Player_Id to retrieve all match records and their associated Role_Id values for that player.\n3. Join Rolee on Role_Id to map each role identifier to its descriptive text in Role_Desc, since \"role\" corresponds to Role_Desc.\n4. Group the results by Role_Desc to list every distinct role the player has held across matches.\n5. Return only the Role_Desc column as the answer.", + "steps": [ + "Filter the Player table on Player_Name = 'SC Ganguly', applying the external knowledge that \"SC Ganguly\" refers to that column.", + "Join Player_Match on Player_Id to retrieve all match records and their associated Role_Id values for that player.", + "Join Rolee on Role_Id to map each role identifier to its descriptive text in Role_Desc, since \"role\" corresponds to Role_Desc.", + "Group the results by Role_Desc to list every distinct role the player has held across matches.", + "Return only the Role_Desc column as the answer." + ] + }, + "revisql-train:2015": { + "raw": "1. Select the Player_Name column from the Player table as the result to return.\n2. Join Player_Match to Player on Player_Id to link each player with their match appearances and assigned roles.\n3. Join Rolee to Player_Match on Role_Id to access the role description text.\n4. Filter the rows where Role_Desc is exactly 'Keeper', mapping the requirement \"played as a keeper\" to this column value.\n5. Group the results by Player_Name so each qualifying player appears only once in the final list.", + "steps": [ + "Select the Player_Name column from the Player table as the result to return.", + "Join Player_Match to Player on Player_Id to link each player with their match appearances and assigned roles.", + "Join Rolee to Player_Match on Role_Id to access the role description text.", + "Filter the rows where Role_Desc is exactly 'Keeper', mapping the requirement \"played as a keeper\" to this column value.", + "Group the results by Player_Name so each qualifying player appears only once in the final list." + ] + }, + "revisql-train:2019": { + "raw": "1. Map the question’s phrase “type of match won” to the Win_Type column using the external knowledge.\n2. Filter the Match table to the row where Match_Id is 336000.\n3. Inner join the Win_By table on Match.Win_Type = Win_By.Win_Id to convert the stored ID into its text description.\n4. Return only the Win_Type column from Win_By.", + "steps": [ + "Map the question’s phrase “type of match won” to the Win_Type column using the external knowledge.", + "Filter the Match table to the row where Match_Id is 336000.", + "Inner join the Win_By table on Match.Win_Type = Win_By.Win_Id to convert the stored ID into its text description.", + "Return only the Win_Type column from Win_By." + ] + }, + "revisql-train:2022": { + "raw": "1. Start from the `Match` table to locate the row for match ID 392195.\n2. Inner join the `Outcome` table on `Match.Outcome_type = Outcome.Outcome_Id` to map the foreign key to its descriptive text.\n3. Apply a WHERE filter restricting `Match.Match_Id` to 392195.\n4. Return only the `Outcome_Type` column from the `Outcome` table.", + "steps": [ + "Start from the `Match` table to locate the row for match ID 392195.", + "Inner join the `Outcome` table on `Match.Outcome_type = Outcome.Outcome_Id` to map the foreign key to its descriptive text.", + "Apply a WHERE filter restricting `Match.Match_Id` to 392195.", + "Return only the `Outcome_Type` column from the `Outcome` table." + ] + }, + "revisql-train:2023": { + "raw": "1. Join the Player table to the Country table on Player.Country_Name = Country.Country_Id to retrieve each player alongside their country's name.\n2. Form an intermediate result containing Player_Name, Country_Name, and DOB so it can be referenced twice.\n3. Compute the maximum DOB from that intermediate result to find the latest birth date, identifying the youngest player.\n4. Filter the intermediate result to only the row(s) whose DOB equals that maximum value.\n5. Return exactly the Player_Name and Country_Name columns in the final output.", + "steps": [ + "Join the Player table to the Country table on Player.Country_Name = Country.Country_Id to retrieve each player alongside their country's name.", + "Form an intermediate result containing Player_Name, Country_Name, and DOB so it can be referenced twice.", + "Compute the maximum DOB from that intermediate result to find the latest birth date, identifying the youngest player.", + "Filter the intermediate result to only the row(s) whose DOB equals that maximum value.", + "Return exactly the Player_Name and Country_Name columns in the final output." + ] + }, + "revisql-train:2029": { + "raw": "1. Start from the Match table to isolate the row where Match_Id equals 335993, keeping its Match_Winner and Win_Type values.\n2. Join Win_By on Match.Win_Type = Win_By.Win_Id to verify the match was won by wickets by checking Win_Type = 'wickets'.\n3. Join Team on Match.Match_Winner = Team.Team_Id to translate the winning team ID into the corresponding Team_Name.\n4. Apply the filters Match_Id = 335993 and Win_By.Win_Type = 'wickets'.\n5. Return Team_Name, using the external knowledge that \"team\" maps to the Team_Name column.", + "steps": [ + "Start from the Match table to isolate the row where Match_Id equals 335993, keeping its Match_Winner and Win_Type values.", + "Join Win_By on Match.Win_Type = Win_By.Win_Id to verify the match was won by wickets by checking Win_Type = 'wickets'.", + "Join Team on Match.Match_Winner = Team.Team_Id to translate the winning team ID into the corresponding Team_Name.", + "Apply the filters Match_Id = 335993 and Win_By.Win_Type = 'wickets'.", + "Return Team_Name, using the external knowledge that \"team\" maps to the Team_Name column." + ] + }, + "revisql-train:2032": { + "raw": "1. Join the Match table to Season on Season_Id and filter for Season_Year equal to 2008 in the WHERE clause, mapping the external knowledge for season year.\n2. Join Match to Player on Man_of_the_Match equals Player_Id to reach the Player_Name column, since the required output is the player’s name.\n3. Group the joined records by Player_Id so that each player’s man-of-the-match awards are aggregated together.\n4. Apply a HAVING condition with COUNT(*) greater than 3 to keep only players who won man of the match more than three times.\n5. Return only the Player_Name column in the final result.", + "steps": [ + "Join the Match table to Season on Season_Id and filter for Season_Year equal to 2008 in the WHERE clause, mapping the external knowledge for season year.", + "Join Match to Player on Man_of_the_Match equals Player_Id to reach the Player_Name column, since the required output is the player’s name.", + "Group the joined records by Player_Id so that each player’s man-of-the-match awards are aggregated together.", + "Apply a HAVING condition with COUNT(*) greater than 3 to keep only players who won man of the match more than three times.", + "Return only the Player_Name column in the final result." + ] + }, + "revisql-train:2040": { + "raw": "1. Join the Match table with the Venue table on Venue_Id to make venue names accessible for filtering.\n2. Map the external knowledge for the location to the Venue_Name column and filter to only rows equal to 'St George''s Park'.\n3. Map the external knowledge for highest winning margin points to MAX(Win_Margin) and compute that maximum across the same St. George's Park matches.\n4. In the main query, keep only the match whose Win_Margin equals that computed maximum value.\n5. Return exactly the Match_Id column.", + "steps": [ + "Join the Match table with the Venue table on Venue_Id to make venue names accessible for filtering.", + "Map the external knowledge for the location to the Venue_Name column and filter to only rows equal to 'St George''s Park'.", + "Map the external knowledge for highest winning margin points to MAX(Win_Margin) and compute that maximum across the same St. George's Park matches.", + "In the main query, keep only the match whose Win_Margin equals that computed maximum value.", + "Return exactly the Match_Id column." + ] + }, + "revisql-train:2041": { + "raw": "1. Identify the Player table as the source for player records since the question asks for a count of players.\n2. Join the Country table on Player.Country_Name = Country.Country_ID to translate the stored country identifier into the actual country name.\n3. Filter the results using the external knowledge that \"from Sri Lanka\" corresponds to Country.Country_Name = 'Sri Lanka'.\n4. Aggregate the filtered rows with COUNT(*) to calculate the total number of matching players.\n5. Return exactly one column: the resulting count of players from Sri Lanka.", + "steps": [ + "Identify the Player table as the source for player records since the question asks for a count of players.", + "Join the Country table on Player.Country_Name = Country.Country_ID to translate the stored country identifier into the actual country name.", + "Filter the results using the external knowledge that \"from Sri Lanka\" corresponds to Country.Country_Name = 'Sri Lanka'.", + "Aggregate the filtered rows with COUNT(*) to calculate the total number of matching players.", + "Return exactly one column: the resulting count of players from Sri Lanka." + ] + }, + "revisql-train:2045": { + "raw": "1. Identify that all required information resides in the torrents table, so no joins are necessary.\n2. Map the question entities to columns via external knowledge: release title is groupName, Ron Hunt corresponds to artist, 1979 corresponds to groupYear, single corresponds to releaseType, and downloaded 156 times corresponds to totalSnatched.\n3. Filter the torrents rows to those where the artist contains Ron Hunt, the groupYear equals 1979, the releaseType equals single, and the totalSnatched equals exactly 156.\n4. Recognize that no grouping, aggregation, or ordering is required because the criteria specify a precise lookup.\n5. Project only the groupName column in the result set to obtain the release title.", + "steps": [ + "Identify that all required information resides in the torrents table, so no joins are necessary.", + "Map the question entities to columns via external knowledge: release title is groupName, Ron Hunt corresponds to artist, 1979 corresponds to groupYear, single corresponds to releaseType, and downloaded 156 times corresponds to totalSnatched.", + "Filter the torrents rows to those where the artist contains Ron Hunt, the groupYear equals 1979, the releaseType equals single, and the totalSnatched equals exactly 156.", + "Recognize that no grouping, aggregation, or ordering is required because the criteria specify a precise lookup.", + "Project only the groupName column in the result set to obtain the release title." + ] + }, + "revisql-train:2051": { + "raw": "1. Filter the `torrents` table to rows where `releaseType` equals 'live album'.\n2. Order those rows by `totalSnatched` ascending and limit to the first 5 records, retaining their `id` values.\n3. Filter the `tags` table to only rows where `id` matches one of the 5 ids found above.\n4. Return the distinct values from the `tag` column.", + "steps": [ + "Filter the `torrents` table to rows where `releaseType` equals 'live album'.", + "Order those rows by `totalSnatched` ascending and limit to the first 5 records, retaining their `id` values.", + "Filter the `tags` table to only rows where `id` matches one of the 5 ids found above.", + "Return the distinct values from the `tag` column." + ] + }, + "revisql-train:2052": { + "raw": "1. Join the `torrents` and `tags` tables on their shared `id` column to associate each release with its tags.\n2. Filter the joined set to only rows where `releaseType` is 'single'.\n3. Calculate the maximum `totalSnatched` value found exclusively among singles to identify the most downloaded single.\n4. Further filter the result to keep only the single whose `totalSnatched` equals that calculated maximum.\n5. Return the `tag` column from the tags table and the `artist` column from the torrents table.", + "steps": [ + "Join the `torrents` and `tags` tables on their shared `id` column to associate each release with its tags.", + "Filter the joined set to only rows where `releaseType` is 'single'.", + "Calculate the maximum `totalSnatched` value found exclusively among singles to identify the most downloaded single.", + "Further filter the result to keep only the single whose `totalSnatched` equals that calculated maximum.", + "Return the `tag` column from the tags table and the `artist` column from the torrents table." + ] + }, + "revisql-train:2057": { + "raw": "1. Start from the torrents table and filter rows where groupName equals 'city funk', using the external knowledge that the release title maps to that column.\n2. Join the tags table on the id column, matching torrents.id to tags.id, since both tables use this field as the release identifier.\n3. Count distinct values of the tag column from the tags table to get the total number of unique tags for that release.\n4. Return only that count.", + "steps": [ + "Start from the torrents table and filter rows where groupName equals 'city funk', using the external knowledge that the release title maps to that column.", + "Join the tags table on the id column, matching torrents.id to tags.id, since both tables use this field as the release identifier.", + "Count distinct values of the tag column from the tags table to get the total number of unique tags for that release.", + "Return only that count." + ] + }, + "revisql-train:206": { + "raw": "1. Map the external knowledge phrase \"Life Without Fear\" to the title column in the titles table.\n2. Join the titles table with the publishers table on the pub_id key to link the book to its publisher.\n3. Filter for rows where titles.title equals exactly 'Life Without Fear'.\n4. Return only the country column from the publishers table.", + "steps": [ + "Map the external knowledge phrase \"Life Without Fear\" to the title column in the titles table.", + "Join the titles table with the publishers table on the pub_id key to link the book to its publisher.", + "Filter for rows where titles.title equals exactly 'Life Without Fear'.", + "Return only the country column from the publishers table." + ] + }, + "revisql-train:2060": { + "raw": "1. Inner join torrents with tags on their shared id column to associate each release with its tags.\n2. Filter the tags table to only rows where tag equals 'pop', applying the external knowledge.\n3. Filter the torrents table to only rows where artist equals 'michael jackson'.\n4. Count distinct id values from the torrents table so each release is counted once regardless of multiple tags.\n5. Return that count.", + "steps": [ + "Inner join torrents with tags on their shared id column to associate each release with its tags.", + "Filter the tags table to only rows where tag equals 'pop', applying the external knowledge.", + "Filter the torrents table to only rows where artist equals 'michael jackson'.", + "Count distinct id values from the torrents table so each release is counted once regardless of multiple tags.", + "Return that count." + ] + }, + "revisql-train:2063": { + "raw": "1. Use the torrents table, as it contains both the release titles and download counts with no need for joins.\n2. Apply the external knowledge to map \"title\" to the groupName column and \"highest number of downloads\" to the totalSnatched column.\n3. Select only the groupName column to return the release titles.\n4. Order the results by totalSnatched in descending order to surface the most-downloaded releases first.\n5. Restrict the output to the first three rows to satisfy the \"top three\" requirement.", + "steps": [ + "Use the torrents table, as it contains both the release titles and download counts with no need for joins.", + "Apply the external knowledge to map \"title\" to the groupName column and \"highest number of downloads\" to the totalSnatched column.", + "Select only the groupName column to return the release titles.", + "Order the results by totalSnatched in descending order to surface the most-downloaded releases first.", + "Restrict the output to the first three rows to satisfy the \"top three\" requirement." + ] + }, + "revisql-train:2073": { + "raw": "1. Join the torrents table with the tags table on the shared id column to connect each release with its tags.\n2. Filter the joined rows to keep only those where the tag is 'funk' and the release year (groupYear) is 1980.\n3. Group the remaining rows by artist so that download counts can be aggregated per artist.\n4. Apply a group-level filter requiring the sum of totalSnatched per artist to be no more than 100.\n5. Return the artist column from the torrents table as the final result.", + "steps": [ + "Join the torrents table with the tags table on the shared id column to connect each release with its tags.", + "Filter the joined rows to keep only those where the tag is 'funk' and the release year (groupYear) is 1980.", + "Group the remaining rows by artist so that download counts can be aggregated per artist.", + "Apply a group-level filter requiring the sum of totalSnatched per artist to be no more than 100.", + "Return the artist column from the torrents table as the final result." + ] + }, + "revisql-train:2074": { + "raw": "1. Join the torrents table with the tags table on the shared id column, which links each release to its tags.\n2. Filter the joined rows to keep only those where tag equals 'soul' and releaseType equals 'single'.\n3. Group by artist and count distinct torrents.id to compute the number of soul singles per artist.\n4. Compute the maximum value among those per-artist counts to identify the highest number of soul singles.\n5. Return the artist column for whichever artist(s) have a count equal to that maximum.", + "steps": [ + "Join the torrents table with the tags table on the shared id column, which links each release to its tags.", + "Filter the joined rows to keep only those where tag equals 'soul' and releaseType equals 'single'.", + "Group by artist and count distinct torrents.id to compute the number of soul singles per artist.", + "Compute the maximum value among those per-artist counts to identify the highest number of soul singles.", + "Return the artist column for whichever artist(s) have a count equal to that maximum." + ] + }, + "revisql-train:2075": { + "raw": "1. Join the torrents and tags tables on their shared id column to associate each release with its tags.\n2. Restrict the torrents rows to those with an id between 10 and 30.\n3. Further filter the torrents rows to only those with a groupYear equal to 1980.\n4. Keep only the joined rows where the tag column in tags equals 'funk'.\n5. Select distinct values of the artist column from torrents as the final result.", + "steps": [ + "Join the torrents and tags tables on their shared id column to associate each release with its tags.", + "Restrict the torrents rows to those with an id between 10 and 30.", + "Further filter the torrents rows to only those with a groupYear equal to 1980.", + "Keep only the joined rows where the tag column in tags equals 'funk'.", + "Select distinct values of the artist column from torrents as the final result." + ] + }, + "revisql-train:2077": { + "raw": "1. Identify that the genre tag resides in the `tag` column of the `tags` table, while the identifier 16 refers to the `id` column in the `torrents` table.\n2. Join the `torrents` table to the `tags` table on their common `id` columns (`torrents.id = tags.id`).\n3. Filter the joined rows to only the record where `torrents.id` equals 16.\n4. Return the `tag` value from the `tags` table as the result.", + "steps": [ + "Identify that the genre tag resides in the `tag` column of the `tags` table, while the identifier 16 refers to the `id` column in the `torrents` table.", + "Join the `torrents` table to the `tags` table on their common `id` columns (`torrents.id = tags.id`).", + "Filter the joined rows to only the record where `torrents.id` equals 16.", + "Return the `tag` value from the `tags` table as the result." + ] + }, + "revisql-train:2086": { + "raw": "1. Start with the `torrents` table, noting that release titles correspond to the `groupName` column.\n2. Inner join the `tags` table on `torrents.id = tags.id` to associate each release with its tags.\n3. Filter the results to rows where `torrents.groupYear` is 2005 (from the external knowledge mapping year to that column) and `tags.tag` matches `jazz`.\n4. Return only the `groupName` column from `torrents` as the final output.", + "steps": [ + "Start with the `torrents` table, noting that release titles correspond to the `groupName` column.", + "Inner join the `tags` table on `torrents.id = tags.id` to associate each release with its tags.", + "Filter the results to rows where `torrents.groupYear` is 2005 (from the external knowledge mapping year to that column) and `tags.tag` matches `jazz`.", + "Return only the `groupName` column from `torrents` as the final output." + ] + }, + "revisql-train:209": { + "raw": "1. Identify that \"books\" refers to the `titles` table and \"sell the best\" means the highest total `qty` from the `sales` table.\n2. Group `sales` by `title_id`, sum `qty` to get total sales per book, order by that sum descending, and keep only the top 4 results.\n3. Join those 4 best-selling `title_id` values back to the `titles` table on the `title_id` key.\n4. Select and return only the `notes` column from `titles` to provide the detailed note information requested.", + "steps": [ + "Identify that \"books\" refers to the `titles` table and \"sell the best\" means the highest total `qty` from the `sales` table.", + "Group `sales` by `title_id`, sum `qty` to get total sales per book, order by that sum descending, and keep only the top 4 results.", + "Join those 4 best-selling `title_id` values back to the `titles` table on the `title_id` key.", + "Select and return only the `notes` column from `titles` to provide the detailed note information requested." + ] + }, + "revisql-train:2096": { + "raw": "1. Start from the Country table and filter for rows where IncomeGroup equals 'Low income' and LendingCategory equals 'IDA'.\n2. Access the CountryNotes table to locate entries tied to the series code 'SM.POP.TOTL'.\n3. Inner join Country and CountryNotes on their matching country code columns.\n4. Apply the filter on CountryNotes.Seriescode to restrict results to 'SM.POP.TOTL'.\n5. Count the CountryCode values from the Country table to return the final numeric answer.", + "steps": [ + "Start from the Country table and filter for rows where IncomeGroup equals 'Low income' and LendingCategory equals 'IDA'.", + "Access the CountryNotes table to locate entries tied to the series code 'SM.POP.TOTL'.", + "Inner join Country and CountryNotes on their matching country code columns.", + "Apply the filter on CountryNotes.Seriescode to restrict results to 'SM.POP.TOTL'.", + "Count the CountryCode values from the Country table to return the final numeric answer." + ] + }, + "revisql-train:2099": { + "raw": "1. Identify that the footnote description resides in the Footnotes table’s Description column and that Aruba must be resolved via the Country table.\n2. Join Country to Footnotes on CountryCode, linking the country’s unique identifier to the footnote’s country code.\n3. Filter the Country table to ShortName = 'Aruba' per the external knowledge mapping the country name to that column.\n4. Filter the Footnotes table to Seriescode = 'AG.LND.FRST.K2' and map the requested year 1990 to the text value 'YR1990' in the Year column.\n5. Return only the Description column from the Footnotes table.", + "steps": [ + "Identify that the footnote description resides in the Footnotes table’s Description column and that Aruba must be resolved via the Country table.", + "Join Country to Footnotes on CountryCode, linking the country’s unique identifier to the footnote’s country code.", + "Filter the Country table to ShortName = 'Aruba' per the external knowledge mapping the country name to that column.", + "Filter the Footnotes table to Seriescode = 'AG.LND.FRST.K2' and map the requested year 1990 to the text value 'YR1990' in the Year column.", + "Return only the Description column from the Footnotes table." + ] + }, + "revisql-train:2100": { + "raw": "1. Filter the Country table to the row where ShortName equals 'Aruba' to obtain its CountryCode, using the external knowledge that Aruba's short name is 'Aruba'.\n2. Join the Country table with the Footnotes table on CountryCode matching Countrycode to retrieve all footnote records associated with Aruba.\n3. Filter the Footnotes results to keep only rows where Seriescode is 'AG.LND.FRST.K2'.\n4. Return the Year column from the Footnotes table as the final answer.", + "steps": [ + "Filter the Country table to the row where ShortName equals 'Aruba' to obtain its CountryCode, using the external knowledge that Aruba's short name is 'Aruba'.", + "Join the Country table with the Footnotes table on CountryCode matching Countrycode to retrieve all footnote records associated with Aruba.", + "Filter the Footnotes results to keep only rows where Seriescode is 'AG.LND.FRST.K2'.", + "Return the Year column from the Footnotes table as the final answer." + ] + }, + "revisql-train:2105": { + "raw": "1. Filter the `Indicators` table to rows where `IndicatorName` LIKE 'Adolescent fertility rate%' to capture the adolescent fertility rate records indicated by the external knowledge.\n2. Group the filtered results by `CountryCode` and compute `AVG(Value)` to obtain each country's average adolescent fertility rate.\n3. Identify the country with the highest average rate by selecting the maximum of those computed averages.\n4. Join the resulting `CountryCode` to the `Country` table on `CountryCode` to retrieve the corresponding `SpecialNotes`.\n5. Return only the `SpecialNotes` column in the final output.", + "steps": [ + "Filter the `Indicators` table to rows where `IndicatorName` LIKE 'Adolescent fertility rate%' to capture the adolescent fertility rate records indicated by the external knowledge.", + "Group the filtered results by `CountryCode` and compute `AVG(Value)` to obtain each country's average adolescent fertility rate.", + "Identify the country with the highest average rate by selecting the maximum of those computed averages.", + "Join the resulting `CountryCode` to the `Country` table on `CountryCode` to retrieve the corresponding `SpecialNotes`.", + "Return only the `SpecialNotes` column in the final output." + ] + }, + "revisql-train:2110": { + "raw": "1. Use the Series table, which contains the Topic, LicenseType, and SeriesCode columns needed for this request.\n2. Filter to rows where Topic is exactly 'Environment: Emissions'.\n3. Further filter those rows to only ones where LicenseType is exactly 'Restricted'.\n4. Return the SeriesCode column from the resulting rows.", + "steps": [ + "Use the Series table, which contains the Topic, LicenseType, and SeriesCode columns needed for this request.", + "Filter to rows where Topic is exactly 'Environment: Emissions'.", + "Further filter those rows to only ones where LicenseType is exactly 'Restricted'.", + "Return the SeriesCode column from the resulting rows." + ] + }, + "revisql-train:2111": { + "raw": "1. Join the Indicators table with the Country table on CountryCode to combine emission values with regional country data.\n2. Filter Indicators.Year to 1970.\n3. Filter Indicators.IndicatorName to 'CO2 emissions from gaseous fuel consumption (kt)'.\n4. Filter Country.Region to 'Middle East & North Africa'.\n5. Filter Indicators.Value to rows greater than 600.\n6. Count CountryCode from the Country side to return the number of qualifying countries.", + "steps": [ + "Join the Indicators table with the Country table on CountryCode to combine emission values with regional country data.", + "Filter Indicators.Year to 1970.", + "Filter Indicators.IndicatorName to 'CO2 emissions from gaseous fuel consumption (kt)'.", + "Filter Country.Region to 'Middle East & North Africa'.", + "Filter Indicators.Value to rows greater than 600.", + "Count CountryCode from the Country side to return the number of qualifying countries." + ] + }, + "revisql-train:2114": { + "raw": "1. Identify that footnote descriptions are stored in the Footnotes table under the Description column, and map the country name Albania to the ShortName column in the Country table.\n2. Join Footnotes to Country on Footnotes.Countrycode matching Country.CountryCode to link each footnote to its country.\n3. Filter the joined rows to those where Country.ShortName equals 'Albania'.\n4. Further filter to rows where Footnotes.Year equals 'YR1981' to isolate the year 1981.\n5. Return only the distinct values of Footnotes.Description to avoid duplicate footnote texts.", + "steps": [ + "Identify that footnote descriptions are stored in the Footnotes table under the Description column, and map the country name Albania to the ShortName column in the Country table.", + "Join Footnotes to Country on Footnotes.Countrycode matching Country.CountryCode to link each footnote to its country.", + "Filter the joined rows to those where Country.ShortName equals 'Albania'.", + "Further filter to rows where Footnotes.Year equals 'YR1981' to isolate the year 1981.", + "Return only the distinct values of Footnotes.Description to avoid duplicate footnote texts." + ] + }, + "revisql-train:2120": { + "raw": "1. Join the `Indicators` table to the `Country` table on `CountryCode` so that fertility values can be paired with country short names.\n2. Filter `Indicators` to rows where `Year` equals 1979 and `IndicatorName` is exactly 'Fertility rate, total (births per woman)'.\n3. Restrict the result to rows where the `Value` column in `Indicators` is between 4 and 5 inclusive.\n4. Exclude any `Country` rows that have no `Region` assigned by ensuring the region field is neither null nor empty.\n5. Select distinct `ShortName` from the `Country` table as the final output column.", + "steps": [ + "Join the `Indicators` table to the `Country` table on `CountryCode` so that fertility values can be paired with country short names.", + "Filter `Indicators` to rows where `Year` equals 1979 and `IndicatorName` is exactly 'Fertility rate, total (births per woman)'.", + "Restrict the result to rows where the `Value` column in `Indicators` is between 4 and 5 inclusive.", + "Exclude any `Country` rows that have no `Region` assigned by ensuring the region field is neither null nor empty.", + "Select distinct `ShortName` from the `Country` table as the final output column." + ] + }, + "revisql-train:2131": { + "raw": "1. Join Country to Indicators on CountryCode to pair each country’s income group with its indicator values.\n2. Filter the joined rows to keep only those where IncomeGroup is 'Upper middle income' and IndicatorName is 'CO2 emissions (kt)'.\n3. In a subquery, apply the same join and filters to compute the minimum Value, which represents the lowest CO2 emissions figure for that income group.\n4. In the outer query, retain only rows whose indicator Value equals that minimum subquery result.\n5. Return distinct CountryCode values from the matching rows.", + "steps": [ + "Join Country to Indicators on CountryCode to pair each country’s income group with its indicator values.", + "Filter the joined rows to keep only those where IncomeGroup is 'Upper middle income' and IndicatorName is 'CO2 emissions (kt)'.", + "In a subquery, apply the same join and filters to compute the minimum Value, which represents the lowest CO2 emissions figure for that income group.", + "In the outer query, retain only rows whose indicator Value equals that minimum subquery result.", + "Return distinct CountryCode values from the matching rows." + ] + }, + "revisql-train:2135": { + "raw": "1. Start from the Series table and filter its Source column using the provided LIKE pattern for the International Monetary Fund source.\n2. Join the Indicators table on Indicators.IndicatorCode = Series.SeriesCode to link series definitions with actual indicator observations.\n3. Map the external year constraint to Indicators.Year and filter it to 2005.\n4. Because multiple countries may report the same indicator in that year, apply DISTINCT on Series.SeriesCode.\n5. The final output must contain only the SeriesCode column.", + "steps": [ + "Start from the Series table and filter its Source column using the provided LIKE pattern for the International Monetary Fund source.", + "Join the Indicators table on Indicators.IndicatorCode = Series.SeriesCode to link series definitions with actual indicator observations.", + "Map the external year constraint to Indicators.Year and filter it to 2005.", + "Because multiple countries may report the same indicator in that year, apply DISTINCT on Series.SeriesCode.", + "The final output must contain only the SeriesCode column." + ] + }, + "revisql-train:214": { + "raw": "1. Target the `titles` table, which contains both the book `type` and the pre-paid amount stored in the `advance` column.\n2. Map the question’s phrase “most pre-paid amount” to the `advance` column, interpreting “most” as the maximum value.\n3. Sort all records by `advance` in descending order so the row with the highest pre-paid amount appears first.\n4. Limit the result to only the first row from that sorted set to isolate the single type with the top advance.\n5. Return exactly the `type` column.", + "steps": [ + "Target the `titles` table, which contains both the book `type` and the pre-paid amount stored in the `advance` column.", + "Map the question’s phrase “most pre-paid amount” to the `advance` column, interpreting “most” as the maximum value.", + "Sort all records by `advance` in descending order so the row with the highest pre-paid amount appears first.", + "Limit the result to only the first row from that sorted set to isolate the single type with the top advance.", + "Return exactly the `type` column." + ] + }, + "revisql-train:2141": { + "raw": "1. Start from the `Indicators` table for `IndicatorName`, `Year`, and `Value`, and join it to `Series` on `Indicators.IndicatorCode = Series.SeriesCode` to reach the license type.\n2. Map the external knowledge \"from 1968 to 1970\" to a filter on `Indicators.Year` between 1968 and 1970 inclusive.\n3. Map \"license type is open\" to the filter `Series.LicenseType = 'Open'`.\n4. Map \"values are less than 100\" to the filter `Indicators.Value < 100`.\n5. Return distinct values of `IndicatorName` from `Indicators`.", + "steps": [ + "Start from the `Indicators` table for `IndicatorName`, `Year`, and `Value`, and join it to `Series` on `Indicators.IndicatorCode = Series.SeriesCode` to reach the license type.", + "Map the external knowledge \"from 1968 to 1970\" to a filter on `Indicators.Year` between 1968 and 1970 inclusive.", + "Map \"license type is open\" to the filter `Series.LicenseType = 'Open'`.", + "Map \"values are less than 100\" to the filter `Indicators.Value < 100`.", + "Return distinct values of `IndicatorName` from `Indicators`." + ] + }, + "revisql-train:2142": { + "raw": "1. Join the Indicators table with the Series table on IndicatorName to access topic classifications, keeping only rows where Series.Topic equals 'Private Sector & Trade: Exports'.\n2. Map the question's \"country\" to the Indicators.CountryName column and exclude aggregate group entries by filtering out the specific CountryName values: 'World', 'High income', 'OECD members', 'High income: OECD', 'Europe & Central Asia (all income levels)', 'European Union', 'East Asia & Pacific (all income levels)', 'Low & middle income', 'Middle income', 'Euro area', 'Upper middle income', 'High income: nonOECD', and 'East Asia & Pacific (developing only)'.\n3. Use a subquery with the same Indicators-Series join and the same topic and country-name exclusion filters to determine the maximum Value across all remaining rows.\n4. In the main query, keep only the rows whose Value equals that subquery maximum.\n5. Return exactly the columns CountryName and IndicatorName.", + "steps": [ + "Join the Indicators table with the Series table on IndicatorName to access topic classifications, keeping only rows where Series.Topic equals 'Private Sector & Trade: Exports'.", + "Map the question's \"country\" to the Indicators.CountryName column and exclude aggregate group entries by filtering out the specific CountryName values: 'World', 'High income', 'OECD members', 'High income: OECD', 'Europe & Central Asia (all income levels)', 'European Union', 'East Asia & Pacific (all income levels)', 'Low & middle income', 'Middle income', 'Euro area', 'Upper middle income', 'High income: nonOECD', and 'East Asia & Pacific (developing only)'.", + "Use a subquery with the same Indicators-Series join and the same topic and country-name exclusion filters to determine the maximum Value across all remaining rows.", + "In the main query, keep only the rows whose Value equals that subquery maximum.", + "Return exactly the columns CountryName and IndicatorName." + ] + }, + "revisql-train:2145": { + "raw": "1. Join the Indicators table to the Series table on the IndicatorName column so you can filter for rows where Series.Topic equals 'Health: Population: Structure'.\n2. Restrict the result to years 1960 through 1965 by filtering the Indicators.Year column, mapping the phrase \"From 1960 to 1965\" to that range.\n3. Compute the minimum Value across that same joined, topic-filtered, and year-restricted set, because \"lowest value\" maps to MIN(Value).\n4. In the outer query, keep only rows whose Value equals that computed minimum, maintaining the same topic and year filters.\n5. Return distinct CountryName, since \"country\" maps to that column and you need all countries that share the lowest value.", + "steps": [ + "Join the Indicators table to the Series table on the IndicatorName column so you can filter for rows where Series.Topic equals 'Health: Population: Structure'.", + "Restrict the result to years 1960 through 1965 by filtering the Indicators.Year column, mapping the phrase \"From 1960 to 1965\" to that range.", + "Compute the minimum Value across that same joined, topic-filtered, and year-restricted set, because \"lowest value\" maps to MIN(Value).", + "In the outer query, keep only rows whose Value equals that computed minimum, maintaining the same topic and year filters.", + "Return distinct CountryName, since \"country\" maps to that column and you need all countries that share the lowest value." + ] + }, + "revisql-train:2150": { + "raw": "1. Identify that country long names reside in the Country table and indicator records are stored in the Indicators table.\n2. Join Country to Indicators on the CountryCode column to associate each country with its indicator rows.\n3. Filter the Indicators rows to only those having IndicatorCode equal to 'DT.DOD.DSTC.CD'.\n4. Apply DISTINCT to the LongName values because a country can have multiple year entries for the same indicator.\n5. Return the LongName column from the Country table.", + "steps": [ + "Identify that country long names reside in the Country table and indicator records are stored in the Indicators table.", + "Join Country to Indicators on the CountryCode column to associate each country with its indicator rows.", + "Filter the Indicators rows to only those having IndicatorCode equal to 'DT.DOD.DSTC.CD'.", + "Apply DISTINCT to the LongName values because a country can have multiple year entries for the same indicator.", + "Return the LongName column from the Country table." + ] + }, + "revisql-train:2155": { + "raw": "1. Use the Country table to locate countries with CurrencyUnit = 'Australian dollar', and apply the external knowledge that \"lower middle income group\" maps to IncomeGroup = 'Lower middle income'.\n2. Join Country to CountryNotes on the country identifier, matching Country.CountryCode to CountryNotes.Countrycode, to access each country's series codes.\n3. Filter the joined results to rows where CurrencyUnit is 'Australian dollar' and IncomeGroup is 'Lower middle income'.\n4. Return CountryCode from Country and SeriesCode from CountryNotes.", + "steps": [ + "Use the Country table to locate countries with CurrencyUnit = 'Australian dollar', and apply the external knowledge that \"lower middle income group\" maps to IncomeGroup = 'Lower middle income'.", + "Join Country to CountryNotes on the country identifier, matching Country.CountryCode to CountryNotes.Countrycode, to access each country's series codes.", + "Filter the joined results to rows where CurrencyUnit is 'Australian dollar' and IncomeGroup is 'Lower middle income'.", + "Return CountryCode from Country and SeriesCode from CountryNotes." + ] + }, + "revisql-train:2157": { + "raw": "1. Filter the Country table for rows where CurrencyUnit is 'Euro' and IncomeGroup is either 'High income: OECD' or 'High income: nonOECD', applying the external knowledge that rich countries are the high-income OECD and non-OECD groups.\n2. Inner join the filtered Country table with the Indicators table on CountryCode to retrieve the associated country names.\n3. Apply DISTINCT to avoid duplicate rows caused by multiple indicator entries per country.\n4. Return CountryCode from the Country table and CountryName from the Indicators table.", + "steps": [ + "Filter the Country table for rows where CurrencyUnit is 'Euro' and IncomeGroup is either 'High income: OECD' or 'High income: nonOECD', applying the external knowledge that rich countries are the high-income OECD and non-OECD groups.", + "Inner join the filtered Country table with the Indicators table on CountryCode to retrieve the associated country names.", + "Apply DISTINCT to avoid duplicate rows caused by multiple indicator entries per country.", + "Return CountryCode from the Country table and CountryName from the Indicators table." + ] + }, + "revisql-train:216": { + "raw": "1. Look in the `employee` table since it stores staff records including names and job levels.\n2. Map the question's phrase \"job level\" to the `job_lvl` column using the external knowledge.\n3. Map the surname \"O'Rourke\" to the `lname` column, escaping the embedded apostrophe as two single quotes in the string literal.\n4. Filter rows where `lname` equals that escaped value.\n5. Return only the `job_lvl` column.", + "steps": [ + "Look in the `employee` table since it stores staff records including names and job levels.", + "Map the question's phrase \"job level\" to the `job_lvl` column using the external knowledge.", + "Map the surname \"O'Rourke\" to the `lname` column, escaping the embedded apostrophe as two single quotes in the string literal.", + "Filter rows where `lname` equals that escaped value.", + "Return only the `job_lvl` column." + ] + }, + "revisql-train:2165": { + "raw": "1. Query the Country table, since it holds the CountryCode, IncomeGroup, and Region columns required.\n2. Map the geographic requirement to the Region column, filtering for the exact value 'East Asia & Pacific'.\n3. Map the high-income requirement to the IncomeGroup column, keeping rows where the value is either 'High income: OECD' or 'High income: nonOECD' using an OR condition.\n4. Combine the region and income filters with AND so only countries meeting both criteria are retained.\n5. Return only the CountryCode column, with no joins, aggregation, or ordering needed.", + "steps": [ + "Query the Country table, since it holds the CountryCode, IncomeGroup, and Region columns required.", + "Map the geographic requirement to the Region column, filtering for the exact value 'East Asia & Pacific'.", + "Map the high-income requirement to the IncomeGroup column, keeping rows where the value is either 'High income: OECD' or 'High income: nonOECD' using an OR condition.", + "Combine the region and income filters with AND so only countries meeting both criteria are retained.", + "Return only the CountryCode column, with no joins, aggregation, or ordering needed." + ] + }, + "revisql-train:2167": { + "raw": "1. Start with the Country and Indicators tables and join them on CountryCode.\n2. Filter the Country table to rows where IncomeGroup equals 'Low income' per the external knowledge.\n3. Filter the Indicators table to rows where IndicatorCode equals 'DT.DOD.DECT.CD'.\n4. Because Indicators holds multiple years per country, apply DISTINCT to the CountryCode from Indicators to get unique countries.\n5. Return only the CountryCode column.", + "steps": [ + "Start with the Country and Indicators tables and join them on CountryCode.", + "Filter the Country table to rows where IncomeGroup equals 'Low income' per the external knowledge.", + "Filter the Indicators table to rows where IndicatorCode equals 'DT.DOD.DECT.CD'.", + "Because Indicators holds multiple years per country, apply DISTINCT to the CountryCode from Indicators to get unique countries.", + "Return only the CountryCode column." + ] + }, + "revisql-train:2174": { + "raw": "1. Join the Country table to the Indicators table on the CountryCode column to link each country to its indicator values.\n2. Because every country has multiple indicators and years, use DISTINCT so each country appears only once in the results.\n3. Map the phrase \"highest value\" from the external knowledge to the Indicators.Value column and order the combined results by this column in descending order.\n4. Apply a LIMIT of 5 to restrict the output to the top five countries.\n5. Return exactly the CountryCode and Region columns from the Country table.", + "steps": [ + "Join the Country table to the Indicators table on the CountryCode column to link each country to its indicator values.", + "Because every country has multiple indicators and years, use DISTINCT so each country appears only once in the results.", + "Map the phrase \"highest value\" from the external knowledge to the Indicators.Value column and order the combined results by this column in descending order.", + "Apply a LIMIT of 5 to restrict the output to the top five countries.", + "Return exactly the CountryCode and Region columns from the Country table." + ] + }, + "revisql-train:2175": { + "raw": "1. Identify that the query needs the Country table (to represent each country via CountryCode) and the CountryNotes table (to inspect note descriptions).\n2. Join Country to CountryNotes on their shared CountryCode/Countrycode column to associate every country with its note records.\n3. Filter the results to keep only rows where CountryNotes.Description equals exactly 'Sources: UN Energy Statistics (2014)'.\n4. Apply COUNT(DISTINCT CountryCode) on the filtered set to obtain the number of unique countries matching that description.\n5. Return the resulting count as the final answer.", + "steps": [ + "Identify that the query needs the Country table (to represent each country via CountryCode) and the CountryNotes table (to inspect note descriptions).", + "Join Country to CountryNotes on their shared CountryCode/Countrycode column to associate every country with its note records.", + "Filter the results to keep only rows where CountryNotes.Description equals exactly 'Sources: UN Energy Statistics (2014)'.", + "Apply COUNT(DISTINCT CountryCode) on the filtered set to obtain the number of unique countries matching that description.", + "Return the resulting count as the final answer." + ] + }, + "revisql-train:2177": { + "raw": "1. Identify CountryNotes as the table holding the required Seriescode and the description filter.\n2. Identify Country as the table holding the required Wb2Code attribute.\n3. Inner join Country and CountryNotes on their common country identifier, matching CountryCode to Countrycode.\n4. Filter the joined rows to only those where CountryNotes.Description equals exactly 'Data sources : Eurostat'.\n5. Return CountryNotes.Seriescode and Country.Wb2Code as the final columns.", + "steps": [ + "Identify CountryNotes as the table holding the required Seriescode and the description filter.", + "Identify Country as the table holding the required Wb2Code attribute.", + "Inner join Country and CountryNotes on their common country identifier, matching CountryCode to Countrycode.", + "Filter the joined rows to only those where CountryNotes.Description equals exactly 'Data sources : Eurostat'.", + "Return CountryNotes.Seriescode and Country.Wb2Code as the final columns." + ] + }, + "revisql-train:2178": { + "raw": "1. Join the Country and Indicators tables on CountryCode to connect each country’s income classification with its indicator values.\n2. Filter the joined rows to keep only those where IncomeGroup is 'Low income' and IndicatorName is 'Adolescent fertility rate (births per 1,000 women ages 15-19)', mapping the external knowledge to the corresponding columns.\n3. Isolate CountryName and Value from the filtered set into an intermediate result representing fertility rates for low-income countries.\n4. Compute the minimum Value across that intermediate result to find the lowest fertility rate.\n5. Return distinct CountryName(s) from the intermediate result whose Value equals that minimum.", + "steps": [ + "Join the Country and Indicators tables on CountryCode to connect each country’s income classification with its indicator values.", + "Filter the joined rows to keep only those where IncomeGroup is 'Low income' and IndicatorName is 'Adolescent fertility rate (births per 1,000 women ages 15-19)', mapping the external knowledge to the corresponding columns.", + "Isolate CountryName and Value from the filtered set into an intermediate result representing fertility rates for low-income countries.", + "Compute the minimum Value across that intermediate result to find the lowest fertility rate.", + "Return distinct CountryName(s) from the intermediate result whose Value equals that minimum." + ] + }, + "revisql-train:2193": { + "raw": "1. Start from the Country table and bring in the Footnotes table, joining on CountryCode to connect each country with its series references.\n2. Join the Series table on Seriescode to access the topic classification for each referenced series.\n3. Apply a filter where Series.Topic equals the exact string 'Poverty: Shared prosperity'.\n4. Select the LongName column from Country to provide the full country names.\n5. Use DISTINCT on the country long names to ensure each qualifying country appears only once in the result.", + "steps": [ + "Start from the Country table and bring in the Footnotes table, joining on CountryCode to connect each country with its series references.", + "Join the Series table on Seriescode to access the topic classification for each referenced series.", + "Apply a filter where Series.Topic equals the exact string 'Poverty: Shared prosperity'.", + "Select the LongName column from Country to provide the full country names.", + "Use DISTINCT on the country long names to ensure each qualifying country appears only once in the result." + ] + }, + "revisql-train:2196": { + "raw": "1. Use the Country table exclusively; no joins are needed because both ShortName and CurrencyUnit reside there.\n2. Map the requested output \"short names\" to the ShortName column.\n3. Map the condition \"use U.S. dollar\" to a filter on the CurrencyUnit column with the exact value 'U.S. dollar'.\n4. Apply the external knowledge that \"any 3 countries\" maps to a count of ShortName greater than 3, though the query simply returns ShortName for all matching rows.\n5. Return only the ShortName column in the result.", + "steps": [ + "Use the Country table exclusively; no joins are needed because both ShortName and CurrencyUnit reside there.", + "Map the requested output \"short names\" to the ShortName column.", + "Map the condition \"use U.S. dollar\" to a filter on the CurrencyUnit column with the exact value 'U.S. dollar'.", + "Apply the external knowledge that \"any 3 countries\" maps to a count of ShortName greater than 3, though the query simply returns ShortName for all matching rows.", + "Return only the ShortName column in the result." + ] + }, + "revisql-train:2200": { + "raw": "1. Use the Indicators table, which stores CountryName, IndicatorName, and Value.\n2. Filter rows to only those where IndicatorName is exactly 'Arable land (% of land area)'.\n3. Compute the minimum Value ever recorded for that specific indicator by evaluating the same table with the same indicator filter.\n4. Keep only the rows whose Value equals that global minimum.\n5. Group by CountryName so that each country tied for the lowest recorded percentage is returned once, and return only the CountryName column.", + "steps": [ + "Use the Indicators table, which stores CountryName, IndicatorName, and Value.", + "Filter rows to only those where IndicatorName is exactly 'Arable land (% of land area)'.", + "Compute the minimum Value ever recorded for that specific indicator by evaluating the same table with the same indicator filter.", + "Keep only the rows whose Value equals that global minimum.", + "Group by CountryName so that each country tied for the lowest recorded percentage is returned once, and return only the CountryName column." + ] + }, + "revisql-train:2206": { + "raw": "1. Query only the Country table; no joins are needed because Region, IncomeGroup, and CountryCode are all in this table.\n2. Filter rows to Region = 'Sub-Saharan Africa', applying the external knowledge mapping for the region phrase.\n3. Map the phrase \"lower middle incomes\" to the IncomeGroup column with the value 'Lower middle income'.\n4. Compute the proportion by conditionally counting rows where IncomeGroup matches (summing 1 per match), multiplying by 100.0, and dividing by the total COUNT(CountryCode) within the filtered region.\n5. Return the single calculated result as a column named persentage.", + "steps": [ + "Query only the Country table; no joins are needed because Region, IncomeGroup, and CountryCode are all in this table.", + "Filter rows to Region = 'Sub-Saharan Africa', applying the external knowledge mapping for the region phrase.", + "Map the phrase \"lower middle incomes\" to the IncomeGroup column with the value 'Lower middle income'.", + "Compute the proportion by conditionally counting rows where IncomeGroup matches (summing 1 per match), multiplying by 100.0, and dividing by the total COUNT(CountryCode) within the filtered region.", + "Return the single calculated result as a column named persentage." + ] + }, + "revisql-train:2213": { + "raw": "1. Map the phrase \"country's footnotes\" to the Footnotes table and apply the external knowledge that \"unspecified\" means the Description column equals 'Not specified'.\n2. Join the Country table with the Footnotes table using CountryCode as the join key to link each country to its footnote records.\n3. Filter the joined results to keep only rows where Footnotes.Description is 'Not specified'.\n4. Count distinct CountryCode values from the Country table to ensure each country is counted only once, even if multiple footnote rows match.\n5. Return that single count as the final result.", + "steps": [ + "Map the phrase \"country's footnotes\" to the Footnotes table and apply the external knowledge that \"unspecified\" means the Description column equals 'Not specified'.", + "Join the Country table with the Footnotes table using CountryCode as the join key to link each country to its footnote records.", + "Filter the joined results to keep only rows where Footnotes.Description is 'Not specified'.", + "Count distinct CountryCode values from the Country table to ensure each country is counted only once, even if multiple footnote rows match.", + "Return that single count as the final result." + ] + }, + "revisql-train:222": { + "raw": "1. Identify that the requested \"notes\" column is in the titles table and that \"order happened on\" maps to ord_date in the sales table.\n2. Join titles with sales on title_id to link each order record to its corresponding title details.\n3. Filter the results to only orders whose ord_date falls on September 14, 1994, by comparing the extracted date portion to 1994-09-14.\n4. Use DISTINCT on the notes values to eliminate duplicates in case multiple sales rows exist for the same title on that date.\n5. Return only the notes column.", + "steps": [ + "Identify that the requested \"notes\" column is in the titles table and that \"order happened on\" maps to ord_date in the sales table.", + "Join titles with sales on title_id to link each order record to its corresponding title details.", + "Filter the results to only orders whose ord_date falls on September 14, 1994, by comparing the extracted date portion to 1994-09-14.", + "Use DISTINCT on the notes values to eliminate duplicates in case multiple sales rows exist for the same title on that date.", + "Return only the notes column." + ] + }, + "revisql-train:2221": { + "raw": "1. Use the Indicators table, which stores indicator values by country and year without requiring any joins.\n2. Filter IndicatorName to exactly 'Agricultural land (sq. km)' to capture the agricultural land area in sq. km.\n3. Filter CountryName to exactly 'Italy' to isolate the requested country.\n4. Filter Year to 1968 to restrict the result to the specified year.\n5. Return only the Value column as the final output.", + "steps": [ + "Use the Indicators table, which stores indicator values by country and year without requiring any joins.", + "Filter IndicatorName to exactly 'Agricultural land (sq. km)' to capture the agricultural land area in sq. km.", + "Filter CountryName to exactly 'Italy' to isolate the requested country.", + "Filter Year to 1968 to restrict the result to the specified year.", + "Return only the Value column as the final output." + ] + }, + "revisql-train:2226": { + "raw": "1. Use the Country table to access LendingCategory and the Indicators table to find the specific cereal production record.\n2. Inner join Country to Indicators on CountryCode to match each country with its indicator values.\n3. Apply the external knowledge filters to Indicators: IndicatorName must be 'Cereal production (metric tons)', Value must equal 6140000, and Year must be 1966.\n4. Return exactly the LendingCategory column from Country.", + "steps": [ + "Use the Country table to access LendingCategory and the Indicators table to find the specific cereal production record.", + "Inner join Country to Indicators on CountryCode to match each country with its indicator values.", + "Apply the external knowledge filters to Indicators: IndicatorName must be 'Cereal production (metric tons)', Value must equal 6140000, and Year must be 1966.", + "Return exactly the LendingCategory column from Country." + ] + }, + "revisql-train:2231": { + "raw": "1. Identify that the question asks for a country's latest household survey, which points to the Country table.\n2. Use the external knowledge to map the country reference \"Angola\" to the ShortName column.\n3. Filter the Country table to the single row where ShortName equals 'Angola'.\n4. Retrieve only the LatestHouseholdSurvey column as the result.", + "steps": [ + "Identify that the question asks for a country's latest household survey, which points to the Country table.", + "Use the external knowledge to map the country reference \"Angola\" to the ShortName column.", + "Filter the Country table to the single row where ShortName equals 'Angola'.", + "Retrieve only the LatestHouseholdSurvey column as the result." + ] + }, + "revisql-train:2238": { + "raw": "1. Map the requested \"note\" to the `Description` column in the `CountryNotes` table.\n2. Identify that \"Australia\" corresponds to `ShortName = 'Australia'` in the `Country` table.\n3. Map the indicator \"SP.ADO.TFRT\" to `Seriescode = 'SP.ADO.TFRT'` in `CountryNotes`.\n4. Join `Country` to `CountryNotes` on `CountryCode` to link the country name with its note record.\n5. Filter the joined rows by `ShortName = 'Australia'` and `Seriescode = 'SP.ADO.TFRT'`.\n6. Return the `Description` column from `CountryNotes`.", + "steps": [ + "Map the requested \"note\" to the `Description` column in the `CountryNotes` table.", + "Identify that \"Australia\" corresponds to `ShortName = 'Australia'` in the `Country` table.", + "Map the indicator \"SP.ADO.TFRT\" to `Seriescode = 'SP.ADO.TFRT'` in `CountryNotes`.", + "Join `Country` to `CountryNotes` on `CountryCode` to link the country name with its note record.", + "Filter the joined rows by `ShortName = 'Australia'` and `Seriescode = 'SP.ADO.TFRT'`.", + "Return the `Description` column from `CountryNotes`." + ] + }, + "revisql-train:2239": { + "raw": "1. Filter the Country table to the row where ShortName equals 'Aruba', per the external knowledge mapping the country name to that column.\n2. Join CountryNotes on CountryCode = Countrycode to retrieve all notes associated with Aruba.\n3. Join Series on Seriescode = SeriesCode to bring in the topic classification for each note.\n4. Filter Series.Topic to exactly 'Environment: Energy production & use' to keep only indicators in that category.\n5. Return the Description column from CountryNotes as the final result, since external knowledge maps \"note\" to Description.", + "steps": [ + "Filter the Country table to the row where ShortName equals 'Aruba', per the external knowledge mapping the country name to that column.", + "Join CountryNotes on CountryCode = Countrycode to retrieve all notes associated with Aruba.", + "Join Series on Seriescode = SeriesCode to bring in the topic classification for each note.", + "Filter Series.Topic to exactly 'Environment: Energy production & use' to keep only indicators in that category.", + "Return the Description column from CountryNotes as the final result, since external knowledge maps \"note\" to Description." + ] + }, + "revisql-train:2240": { + "raw": "1. Start from the Country table and join it to CountryNotes on CountryCode = Countrycode to identify countries that have associated country notes.\n2. Join CountryNotes to Series on Seriescode = SeriesCode to link each note to its indicator series definition.\n3. Apply the external knowledge that indicator BX.KLT.DINV.CD.WD corresponds to Seriescode = 'BX.KLT.DINV.CD.WD', filtering the results to that exact series code.\n4. No aggregation or ordering is needed; return only the ShortName column from Country.", + "steps": [ + "Start from the Country table and join it to CountryNotes on CountryCode = Countrycode to identify countries that have associated country notes.", + "Join CountryNotes to Series on Seriescode = SeriesCode to link each note to its indicator series definition.", + "Apply the external knowledge that indicator BX.KLT.DINV.CD.WD corresponds to Seriescode = 'BX.KLT.DINV.CD.WD', filtering the results to that exact series code.", + "No aggregation or ordering is needed; return only the ShortName column from Country." + ] + }, + "revisql-train:2246": { + "raw": "1. Join Country and Indicators on CountryCode to connect the Alpha2Code filter with indicator values.\n2. Filter Country to only the row where Alpha2Code equals '1A'.\n3. Apply the external knowledge to restrict Indicators to rows where IndicatorName is exactly 'Adolescent fertility rate (births per 1,000 women ages 15-19)'.\n4. Calculate the average by casting the sum of Value as real and dividing by the count of Year records.\n5. Return a single computed column representing that average value.", + "steps": [ + "Join Country and Indicators on CountryCode to connect the Alpha2Code filter with indicator values.", + "Filter Country to only the row where Alpha2Code equals '1A'.", + "Apply the external knowledge to restrict Indicators to rows where IndicatorName is exactly 'Adolescent fertility rate (births per 1,000 women ages 15-19)'.", + "Calculate the average by casting the sum of Value as real and dividing by the count of Year records.", + "Return a single computed column representing that average value." + ] + }, + "revisql-train:2248": { + "raw": "1. Join u2base with users on the userid key to link each rating to the corresponding user's gender.\n2. Filter u2base to keep only rows where the rating equals 5.\n3. Filter users to keep only rows where u_gender is 'M', applying the external knowledge that male users are coded as 'M'.\n4. Count distinct userid values so each male user is counted once even if they gave multiple 5-ratings.\n5. Return the count of distinct user IDs.", + "steps": [ + "Join u2base with users on the userid key to link each rating to the corresponding user's gender.", + "Filter u2base to keep only rows where the rating equals 5.", + "Filter users to keep only rows where u_gender is 'M', applying the external knowledge that male users are coded as 'M'.", + "Count distinct userid values so each male user is counted once even if they gave multiple 5-ratings.", + "Return the count of distinct user IDs." + ] + }, + "revisql-train:2249": { + "raw": "1. Join movies2actors to movies2directors on movieid to link the actor’s movies with their genres.\n2. Join actors on actorid to access the actor identifier for the filter condition.\n3. Keep only rows where actorid equals 851.\n4. Return distinct values of the genre column from movies2directors.", + "steps": [ + "Join movies2actors to movies2directors on movieid to link the actor’s movies with their genres.", + "Join actors on actorid to access the actor identifier for the filter condition.", + "Keep only rows where actorid equals 851.", + "Return distinct values of the genre column from movies2directors." + ] + }, + "revisql-train:2252": { + "raw": "1. Use the `users` table to get the `occupation` and the `u2base` table to get `rating`, linking them through the shared `userid` key.\n2. From `u2base`, cast the `rating` text values to real numbers and keep only rows where the rating is 2 or less; collect the distinct `userid`s from this filtered set.\n3. Restrict `users` to only those rows whose `userid` appears among the distinct low-rating users identified above.\n4. Cast the `occupation` text values in the filtered `users` set to real numbers and compute their average.\n5. Return exactly one column named `avg_occupation`.", + "steps": [ + "Use the `users` table to get the `occupation` and the `u2base` table to get `rating`, linking them through the shared `userid` key.", + "From `u2base`, cast the `rating` text values to real numbers and keep only rows where the rating is 2 or less; collect the distinct `userid`s from this filtered set.", + "Restrict `users` to only those rows whose `userid` appears among the distinct low-rating users identified above.", + "Cast the `occupation` text values in the filtered `users` set to real numbers and compute their average.", + "Return exactly one column named `avg_occupation`." + ] + }, + "revisql-train:2255": { + "raw": "1. Start from the movies table because it contains both the country and language columns needed.\n2. Filter rows where country equals 'other' to restrict results to movies from other countries.\n3. Apply the external knowledge that not in English corresponds to isEnglish = 'F' and filter on that value.\n4. Return only the movieid column to identify the matching movies.", + "steps": [ + "Start from the movies table because it contains both the country and language columns needed.", + "Filter rows where country equals 'other' to restrict results to movies from other countries.", + "Apply the external knowledge that not in English corresponds to isEnglish = 'F' and filter on that value.", + "Return only the movieid column to identify the matching movies." + ] + }, + "revisql-train:2259": { + "raw": "1. Join u2base to movies on movieid and to users on userid to link ratings with movie attributes and user gender.\n2. Filter the movies table to country = 'France' and runningtime = 2.\n3. Apply the external knowledge that male users means u_gender = 'M' in the users table.\n4. Filter u2base to only rows where the rating value is less than 3.\n5. Return distinct userid values from u2base to list each qualifying male user once without duplicates.", + "steps": [ + "Join u2base to movies on movieid and to users on userid to link ratings with movie attributes and user gender.", + "Filter the movies table to country = 'France' and runningtime = 2.", + "Apply the external knowledge that male users means u_gender = 'M' in the users table.", + "Filter u2base to only rows where the rating value is less than 3.", + "Return distinct userid values from u2base to list each qualifying male user once without duplicates." + ] + }, + "revisql-train:226": { + "raw": "1. Identify the target employee in the employee table by filtering fname to 'Victoria', minit to 'P', and lname to 'Ashworth'.\n2. Recognize that the employee table does not contain a city column; city is stored in the publishers table linked by pub_id.\n3. Inner join employee to publishers on the pub_id column to connect the employee to their publisher's location.\n4. Return only the city column from the publishers table as the final answer.", + "steps": [ + "Identify the target employee in the employee table by filtering fname to 'Victoria', minit to 'P', and lname to 'Ashworth'.", + "Recognize that the employee table does not contain a city column; city is stored in the publishers table linked by pub_id.", + "Inner join employee to publishers on the pub_id column to connect the employee to their publisher's location.", + "Return only the city column from the publishers table as the final answer." + ] + }, + "revisql-train:2264": { + "raw": "1. Join the movies table to movies2actors on movieid, then join that result to actors on actorid to link each movie's year with its cast members' gender data.\n2. Filter the joined rows to keep only those where the movie year equals 4.\n3. Apply the external knowledge that female actors are represented by a_gender = 'F' to retain only female cast members.\n4. Count distinct actorid values so each actress is tallied once regardless of how many year-4 movies she appeared in, and return that count.", + "steps": [ + "Join the movies table to movies2actors on movieid, then join that result to actors on actorid to link each movie's year with its cast members' gender data.", + "Filter the joined rows to keep only those where the movie year equals 4.", + "Apply the external knowledge that female actors are represented by a_gender = 'F' to retain only female cast members.", + "Count distinct actorid values so each actress is tallied once regardless of how many year-4 movies she appeared in, and return that count." + ] + }, + "revisql-train:227": { + "raw": "1. Join the sales table with the stores table on the stor_id column to connect orders to store locations.\n2. Filter the results to only rows where stores.city equals 'Remulade', applying the external knowledge that Remulade is a city.\n3. Count distinct values of sales.ord_num, since the external knowledge specifies that sales in the store refers to the ord_num column.\n4. Return the single aggregated count column as the final answer.", + "steps": [ + "Join the sales table with the stores table on the stor_id column to connect orders to store locations.", + "Filter the results to only rows where stores.city equals 'Remulade', applying the external knowledge that Remulade is a city.", + "Count distinct values of sales.ord_num, since the external knowledge specifies that sales in the store refers to the ord_num column.", + "Return the single aggregated count column as the final answer." + ] + }, + "revisql-train:2270": { + "raw": "1. Map the term \"audiences\" to the users table using the external knowledge that audience and user are equivalent.\n2. Join the u2base table with the users table on the shared userid key to connect each movie rating with the corresponding viewer's demographic record.\n3. Filter the joined results to keep only rows where the rating value in u2base equals 3.\n4. Return distinct values of the age column from the users table to list each unique age group without duplicates.", + "steps": [ + "Map the term \"audiences\" to the users table using the external knowledge that audience and user are equivalent.", + "Join the u2base table with the users table on the shared userid key to connect each movie rating with the corresponding viewer's demographic record.", + "Filter the joined results to keep only rows where the rating value in u2base equals 3.", + "Return distinct values of the age column from the users table to list each unique age group without duplicates." + ] + }, + "revisql-train:2272": { + "raw": "1. Map the phrase \"received a rating of 5\" to the `actors` table by filtering `a_quality` = 5, and collect the resulting `actorid` values.\n2. Use `actorid` as the key to connect those qualifying actors to the `movies2actors` bridge table.\n3. Filter `movies2actors` to retain only rows where `actorid` matches the set of actors identified in step 1.\n4. Deduplicate the output with DISTINCT on `movieid`, because a single movie may feature multiple actors who meet the quality threshold.\n5. Return exactly the `movieid` column.", + "steps": [ + "Map the phrase \"received a rating of 5\" to the `actors` table by filtering `a_quality` = 5, and collect the resulting `actorid` values.", + "Use `actorid` as the key to connect those qualifying actors to the `movies2actors` bridge table.", + "Filter `movies2actors` to retain only rows where `actorid` matches the set of actors identified in step 1.", + "Deduplicate the output with DISTINCT on `movieid`, because a single movie may feature multiple actors who meet the quality threshold.", + "Return exactly the `movieid` column." + ] + }, + "revisql-train:2277": { + "raw": "1. Join the `movies` table with `movies2directors` on `movieid` to combine movie metadata with genre data.\n2. Filter `movies` to rows where `country` is `'USA'`.\n3. Apply the external knowledge that not in English maps to `isEnglish = 'F'` and filter on that value.\n4. Filter `movies2directors` to rows where `genre` is `'Action'`.\n5. Return the count of distinct `movieid` values from the `movies` table as the final answer.", + "steps": [ + "Join the `movies` table with `movies2directors` on `movieid` to combine movie metadata with genre data.", + "Filter `movies` to rows where `country` is `'USA'`.", + "Apply the external knowledge that not in English maps to `isEnglish = 'F'` and filter on that value.", + "Filter `movies2directors` to rows where `genre` is `'Action'`.", + "Return the count of distinct `movieid` values from the `movies` table as the final answer." + ] + }, + "revisql-train:228": { + "raw": "1. Join the sales table to stores on stor_id to pair every order quantity with its store city.\n2. Filter the joined rows to orders placed in 1993 by checking the year of ord_date.\n3. Compute two conditional sums of qty from sales: one total where city is 'Fremont' and another where city is 'Portland'.\n4. Calculate the percentage difference by subtracting the Portland total from the Fremont total, multiplying by 100.0, and dividing by the Portland total.\n5. Return the final calculated value as a single column named percent_more.", + "steps": [ + "Join the sales table to stores on stor_id to pair every order quantity with its store city.", + "Filter the joined rows to orders placed in 1993 by checking the year of ord_date.", + "Compute two conditional sums of qty from sales: one total where city is 'Fremont' and another where city is 'Portland'.", + "Calculate the percentage difference by subtracting the Portland total from the Fremont total, multiplying by 100.0, and dividing by the Portland total.", + "Return the final calculated value as a single column named percent_more." + ] + }, + "revisql-train:2288": { + "raw": "1. Join movies to u2base on movieid to access user ratings, and to movies2directors on movieid to access genre.\n2. Filter rows where movies.country equals 'USA' and movies2directors.genre equals 'Action'.\n3. Group the joined data by movies.movieid to compute an average rating per movie from u2base.rating.\n4. Order the grouped results by that computed average rating in descending order.\n5. Limit the output to the first row to isolate the highest average.\n6. Return the average rating value.", + "steps": [ + "Join movies to u2base on movieid to access user ratings, and to movies2directors on movieid to access genre.", + "Filter rows where movies.country equals 'USA' and movies2directors.genre equals 'Action'.", + "Group the joined data by movies.movieid to compute an average rating per movie from u2base.rating.", + "Order the grouped results by that computed average rating in descending order.", + "Limit the output to the first row to isolate the highest average.", + "Return the average rating value." + ] + }, + "revisql-train:2299": { + "raw": "1. Start with the `u2base` table to locate every rating record associated with the target movie.\n2. Join the `users` table on the shared `userid` key to bring in demographic data for each person who left a rating.\n3. Filter the results to keep only rows where `movieid` equals 1695219.\n4. Output the `userid` and `age` columns from the `users` table.", + "steps": [ + "Start with the `u2base` table to locate every rating record associated with the target movie.", + "Join the `users` table on the shared `userid` key to bring in demographic data for each person who left a rating.", + "Filter the results to keep only rows where `movieid` equals 1695219.", + "Output the `userid` and `age` columns from the `users` table." + ] + }, + "revisql-train:230": { + "raw": "1. Use only the `employee` table since all required fields are present there.\n2. Select the `fname`, `minit`, and `lname` columns to compose the full name.\n3. Filter rows by extracting the year from `hire_date` and keeping those between 1990 and 1995 inclusive.\n4. Order the output by `job_lvl` in descending order.", + "steps": [ + "Use only the `employee` table since all required fields are present there.", + "Select the `fname`, `minit`, and `lname` columns to compose the full name.", + "Filter rows by extracting the year from `hire_date` and keeping those between 1990 and 1995 inclusive.", + "Order the output by `job_lvl` in descending order." + ] + }, + "revisql-train:2301": { + "raw": "1. Select the movies2actors and movies2directors tables, which contain the actorid and directorid associations to movies.\n2. Inner join the two tables on their shared movieid key to combine actor and director records for each film.\n3. Apply a filter requiring movieid to equal 1949144 to isolate the requested movie.\n4. Count distinct actorid values to compute the number of unique actors attached to that movie.\n5. Count distinct directorid values to compute the number of unique directors attached to that movie.\n6. Return both computed counts as the two result columns.", + "steps": [ + "Select the movies2actors and movies2directors tables, which contain the actorid and directorid associations to movies.", + "Inner join the two tables on their shared movieid key to combine actor and director records for each film.", + "Apply a filter requiring movieid to equal 1949144 to isolate the requested movie.", + "Count distinct actorid values to compute the number of unique actors attached to that movie.", + "Count distinct directorid values to compute the number of unique directors attached to that movie.", + "Return both computed counts as the two result columns." + ] + }, + "revisql-train:2303": { + "raw": "1. Start from movies2directors and filter to rows where genre is 'Action', selecting distinct directorid values so each action director is counted only once.\n2. Join that result with directors on directorid to access avg_revenue and d_quality for every action director.\n3. Map the 'box office success paradox' definition by checking whether a director's avg_revenue is greater than their d_quality.\n4. Aggregate by summing 1 for each director who satisfies the paradox condition, dividing by the total number of action directors, and multiplying by 100.0 to get a percentage.\n5. Return a single column named proportion_paradox_directors.", + "steps": [ + "Start from movies2directors and filter to rows where genre is 'Action', selecting distinct directorid values so each action director is counted only once.", + "Join that result with directors on directorid to access avg_revenue and d_quality for every action director.", + "Map the 'box office success paradox' definition by checking whether a director's avg_revenue is greater than their d_quality.", + "Aggregate by summing 1 for each director who satisfies the paradox condition, dividing by the total number of action directors, and multiplying by 100.0 to get a percentage.", + "Return a single column named proportion_paradox_directors." + ] + }, + "revisql-train:2315": { + "raw": "1. Join the movies table to u2base on movieid to bring in user ratings for each film.\n2. Filter for American movies by requiring country to equal USA in both the main query and the denominator subquery.\n3. For the numerator, count distinct movieid values in the joined result where rating equals 1, applying the external knowledge that negative critical reception means a rating of 1.\n4. For the denominator, count all rows from movies where country equals USA to establish the total number of American movies.\n5. Divide the distinct negative-reception count by the total American movie count, multiply by 100.0, and return the result as neg_crit_pct.", + "steps": [ + "Join the movies table to u2base on movieid to bring in user ratings for each film.", + "Filter for American movies by requiring country to equal USA in both the main query and the denominator subquery.", + "For the numerator, count distinct movieid values in the joined result where rating equals 1, applying the external knowledge that negative critical reception means a rating of 1.", + "For the denominator, count all rows from movies where country equals USA to establish the total number of American movies.", + "Divide the distinct negative-reception count by the total American movie count, multiply by 100.0, and return the result as neg_crit_pct." + ] + }, + "revisql-train:2325": { + "raw": "1. Join u2base to movies2actors on movieid so every rating is paired with the actors from that movie.\n2. Compute the highest average rating value by grouping the joined data by movieid, averaging the rating, ordering those averages descending, and keeping the top one; this applies the external knowledge that highest average rating means MAX(AVG(rating)).\n3. Group the same joined data by movieid again and filter with a HAVING clause so only movie groups whose average rating equals that top value are retained.\n4. Within each retained movie group, count distinct actorid to obtain the number of unique actors appearing in that specific top-rated movie.\n5. Sum all of those per-movie distinct actor counts and return the total as a single aggregated output column.", + "steps": [ + "Join u2base to movies2actors on movieid so every rating is paired with the actors from that movie.", + "Compute the highest average rating value by grouping the joined data by movieid, averaging the rating, ordering those averages descending, and keeping the top one; this applies the external knowledge that highest average rating means MAX(AVG(rating)).", + "Group the same joined data by movieid again and filter with a HAVING clause so only movie groups whose average rating equals that top value are retained.", + "Within each retained movie group, count distinct actorid to obtain the number of unique actors appearing in that specific top-rated movie.", + "Sum all of those per-movie distinct actor counts and return the total as a single aggregated output column." + ] + }, + "revisql-train:2337": { + "raw": "1. Join the directors table to movies2directors using directorid to connect each director's quality and revenue attributes with their associated movies.\n2. Restrict the results to only those directors where d_quality equals 4 and avg_revenue equals 4.\n3. Compute the total by counting distinct movieid values from the movies2directors records to avoid duplicate movies.\n4. Return the final result in a single column named total_movies.", + "steps": [ + "Join the directors table to movies2directors using directorid to connect each director's quality and revenue attributes with their associated movies.", + "Restrict the results to only those directors where d_quality equals 4 and avg_revenue equals 4.", + "Compute the total by counting distinct movieid values from the movies2directors records to avoid duplicate movies.", + "Return the final result in a single column named total_movies." + ] + }, + "revisql-train:2339": { + "raw": "1. Join actors to movies2actors on actorid, then join movies2actors to movies on movieid to connect gender data with movie details.\n2. Filter the joined rows to only the movie with movieid equal to 2312852.\n3. Count female actresses by applying the external knowledge that a_gender = 'F' means female, using a conditional sum that returns 1 for each match and 0 otherwise.\n4. Group the results by the movies table's country and runningtime columns, since these are single movie-level values required alongside the aggregated actor count.\n5. Return the computed count of female actresses, the country, and the runningtime.", + "steps": [ + "Join actors to movies2actors on actorid, then join movies2actors to movies on movieid to connect gender data with movie details.", + "Filter the joined rows to only the movie with movieid equal to 2312852.", + "Count female actresses by applying the external knowledge that a_gender = 'F' means female, using a conditional sum that returns 1 for each match and 0 otherwise.", + "Group the results by the movies table's country and runningtime columns, since these are single movie-level values required alongside the aggregated actor count.", + "Return the computed count of female actresses, the country, and the runningtime." + ] + }, + "revisql-train:2345": { + "raw": "1. Identify that \"in the center\" maps to the Central region, so target the `central_superstore` table and scope the `product` table to `Region` = 'Central'.\n2. Filter `central_superstore` to rows where `Order ID` equals 'CA-2011-112326'.\n3. Join `central_superstore` with `product` on matching `Product ID`, adding the regional condition that the product's `Region` is 'Central'.\n4. Use DISTINCT when retrieving `Product Name` from the product table so each unique product ordered appears only once.\n5. Return solely the `Product Name` column.", + "steps": [ + "Identify that \"in the center\" maps to the Central region, so target the `central_superstore` table and scope the `product` table to `Region` = 'Central'.", + "Filter `central_superstore` to rows where `Order ID` equals 'CA-2011-112326'.", + "Join `central_superstore` with `product` on matching `Product ID`, adding the regional condition that the product's `Region` is 'Central'.", + "Use DISTINCT when retrieving `Product Name` from the product table so each unique product ordered appears only once.", + "Return solely the `Product Name` column." + ] + }, + "revisql-train:2348": { + "raw": "1. Union all rows from the four regional superstore tables—central, east, west, and south—keeping Order ID, Customer ID, and Region to assemble every order in one dataset.\n2. Join that combined set to the people table on both Customer ID and Region to access the customer name for each order.\n3. Filter the people table to only rows where Customer Name equals 'Aimee Bixby', applying the external knowledge mapping.\n4. Count distinct Order ID values so that multi-line-item orders are not counted multiple times.\n5. Return the resulting count as the single column total_orders.", + "steps": [ + "Union all rows from the four regional superstore tables—central, east, west, and south—keeping Order ID, Customer ID, and Region to assemble every order in one dataset.", + "Join that combined set to the people table on both Customer ID and Region to access the customer name for each order.", + "Filter the people table to only rows where Customer Name equals 'Aimee Bixby', applying the external knowledge mapping.", + "Count distinct Order ID values so that multi-line-item orders are not counted multiple times.", + "Return the resulting count as the single column total_orders." + ] + }, + "revisql-train:2354": { + "raw": "1. Query the product table to find the Product ID associated with the Product Name \"Telescoping Adjustable Floor Lamp\".\n2. Scan all four regional superstore tables (west, east, south, central) to collect every Customer ID and Region pair tied to that Product ID, then combine the results.\n3. Join the combined order records with the people table on both Customer ID and Region to access the Segment column.\n4. Filter the joined rows to only those where Segment equals 'Consumer', applying the external knowledge that \"consumers\" maps to Segment = 'Consumer'.\n5. Compute the count of distinct Customer ID values from the filtered set and return that single value as consumer_cnt.", + "steps": [ + "Query the product table to find the Product ID associated with the Product Name \"Telescoping Adjustable Floor Lamp\".", + "Scan all four regional superstore tables (west, east, south, central) to collect every Customer ID and Region pair tied to that Product ID, then combine the results.", + "Join the combined order records with the people table on both Customer ID and Region to access the Segment column.", + "Filter the joined rows to only those where Segment equals 'Consumer', applying the external knowledge that \"consumers\" maps to Segment = 'Consumer'.", + "Compute the count of distinct Customer ID values from the filtered set and return that single value as consumer_cnt." + ] + }, + "revisql-train:2361": { + "raw": "1. Apply the external knowledge by calculating original price for every transaction row as Sales divided by (1 minus Discount), and identify that the required output is the Product Name column.\n2. Combine all rows from the four regional superstore tables—east, central, west, and south—using a union, keeping Product ID and Region alongside the calculated original price for each row.\n3. Compute the maximum original price across the entire combined set of transactions.\n4. Join the combined transaction data to the product table on both Product ID and Region to map each row to its corresponding Product Name.\n5. Filter to retain only rows whose original price equals that maximum value, then return the distinct Product Name.", + "steps": [ + "Apply the external knowledge by calculating original price for every transaction row as Sales divided by (1 minus Discount), and identify that the required output is the Product Name column.", + "Combine all rows from the four regional superstore tables—east, central, west, and south—using a union, keeping Product ID and Region alongside the calculated original price for each row.", + "Compute the maximum original price across the entire combined set of transactions.", + "Join the combined transaction data to the product table on both Product ID and Region to map each row to its corresponding Product Name.", + "Filter to retain only rows whose original price equals that maximum value, then return the distinct Product Name." + ] + }, + "revisql-train:2368": { + "raw": "1. Start from the `east_superstore` table and join it to the `product` table on the `Product ID` column to link orders to their product names.\n2. Filter the superstore rows to only those where `Ship Mode` equals 'First Class', using the external knowledge that \"shipped first class\" maps to this exact value.\n3. Further filter the joined result to rows where the `product` table's `Region` equals 'East', applying the external knowledge for the East region.\n4. Apply `DISTINCT` to the results so each product appears only once, removing duplicates from multiple orders.\n5. Return the `Product Name` column from the `product` table.", + "steps": [ + "Start from the `east_superstore` table and join it to the `product` table on the `Product ID` column to link orders to their product names.", + "Filter the superstore rows to only those where `Ship Mode` equals 'First Class', using the external knowledge that \"shipped first class\" maps to this exact value.", + "Further filter the joined result to rows where the `product` table's `Region` equals 'East', applying the external knowledge for the East region.", + "Apply `DISTINCT` to the results so each product appears only once, removing duplicates from multiple orders.", + "Return the `Product Name` column from the `product` table." + ] + }, + "revisql-train:237": { + "raw": "1. Start with the `titles` table, applying the external knowledge that the `notes` column stores what a title is about.\n2. Filter to the single row where `notes` exactly matches the description regarding helpful hints on using electronic resources.\n3. Join the filtered `titles` records to the `publishers` table on the `pub_id` key to retrieve the publisher name.\n4. Return the columns `title`, `pub_name` (which represents the publisher), and `price`.", + "steps": [ + "Start with the `titles` table, applying the external knowledge that the `notes` column stores what a title is about.", + "Filter to the single row where `notes` exactly matches the description regarding helpful hints on using electronic resources.", + "Join the filtered `titles` records to the `publishers` table on the `pub_id` key to retrieve the publisher name.", + "Return the columns `title`, `pub_name` (which represents the publisher), and `price`." + ] + }, + "revisql-train:2375": { + "raw": "1. Use the `east_superstore` table for East-region transactions and filter its rows to `Ship Date` = '2015-03-25', applying the external knowledge that 3/25/2015 refers to that date column.\n2. Join the `product` table on matching `Product ID`, adding the condition that `product.Region` = 'East' to align with the composite primary key.\n3. Sum the `Quantity` column from `east_superstore` to compute the total quantity of items shipped.\n4. Aggregate the distinct `Product Name` values from the `product` table into a single comma-separated string.\n5. Return exactly two columns: `total_quantity` containing the summed quantity, and `products` containing the comma-separated list of product names.", + "steps": [ + "Use the `east_superstore` table for East-region transactions and filter its rows to `Ship Date` = '2015-03-25', applying the external knowledge that 3/25/2015 refers to that date column.", + "Join the `product` table on matching `Product ID`, adding the condition that `product.Region` = 'East' to align with the composite primary key.", + "Sum the `Quantity` column from `east_superstore` to compute the total quantity of items shipped.", + "Aggregate the distinct `Product Name` values from the `product` table into a single comma-separated string.", + "Return exactly two columns: `total_quantity` containing the summed quantity, and `products` containing the comma-separated list of product names." + ] + }, + "revisql-train:2377": { + "raw": "1. Start from the south_superstore table because the order is specified to be in the South region.\n2. Join the people table on Customer ID to look up the customer name, then filter for Customer Name = 'Katherine Murray' and Region = 'South'.\n3. Join the product table on Product ID to retrieve the category classification for the ordered item.\n4. Apply the date filter by mapping 11/4/2018 to Order Date = '2018-11-04' on the south_superstore table.\n5. Return distinct values of the Category column from the product table.", + "steps": [ + "Start from the south_superstore table because the order is specified to be in the South region.", + "Join the people table on Customer ID to look up the customer name, then filter for Customer Name = 'Katherine Murray' and Region = 'South'.", + "Join the product table on Product ID to retrieve the category classification for the ordered item.", + "Apply the date filter by mapping 11/4/2018 to Order Date = '2018-11-04' on the south_superstore table.", + "Return distinct values of the Category column from the product table." + ] + }, + "revisql-train:239": { + "raw": "1. Join sales to stores on stor_id, apply the external knowledge that California means state equals 'CA', then group by sales.title_id and sum sales.qty to compute each title's total California sales.\n2. Calculate the average across all those per-title California sales totals to establish the threshold for \"more than average.\"\n3. Join the aggregated California sales to titles on title_id and reference the computed average, keeping only rows where the title's total California sales quantity exceeds that average.\n4. Order the results by the total California sales quantity in descending order and limit the output to the top five records.\n5. Return the title column from the titles table.", + "steps": [ + "Join sales to stores on stor_id, apply the external knowledge that California means state equals 'CA', then group by sales.title_id and sum sales.qty to compute each title's total California sales.", + "Calculate the average across all those per-title California sales totals to establish the threshold for \"more than average.\"", + "Join the aggregated California sales to titles on title_id and reference the computed average, keeping only rows where the title's total California sales quantity exceeds that average.", + "Order the results by the total California sales quantity in descending order and limit the output to the top five records.", + "Return the title column from the titles table." + ] + }, + "revisql-train:2393": { + "raw": "1. Map the customer name 'Maxwell Schwartz' to his `Customer ID` ('MS-17770') via the `people` table.\n2. From each of the four regional tables (`east_superstore`, `west_superstore`, `central_superstore`, `south_superstore`), select `Order ID` and `Customer ID` where `Customer ID` equals that value and `strftime('%Y', \"Order Date\")` is '2015'.\n3. Combine the four regional result sets with `UNION` into a single derived table.\n4. Join that derived table back to `people` on `Customer ID` to anchor the orders to the named customer.\n5. Count distinct `Order ID` values and return the result under the column name `num_orders`.", + "steps": [ + "Map the customer name 'Maxwell Schwartz' to his `Customer ID` ('MS-17770') via the `people` table.", + "From each of the four regional tables (`east_superstore`, `west_superstore`, `central_superstore`, `south_superstore`), select `Order ID` and `Customer ID` where `Customer ID` equals that value and `strftime('%Y', \"Order Date\")` is '2015'.", + "Combine the four regional result sets with `UNION` into a single derived table.", + "Join that derived table back to `people` on `Customer ID` to anchor the orders to the named customer.", + "Count distinct `Order ID` values and return the result under the column name `num_orders`." + ] + }, + "revisql-train:2398": { + "raw": "1. Identify that the Eastern store maps to the east_superstore table and the Western store maps to the west_superstore table.\n2. For each of those two tables, filter rows to only those where strftime('%Y', `Order Date`) equals '2015' to capture orders from 2015.\n3. Count distinct `Order ID` values in each filtered set, since a single order may appear across multiple rows.\n4. Produce a single output row by selecting the two counts as separate scalar subqueries side-by-side.\n5. Label the first result column east_orders and the second result column west_orders.", + "steps": [ + "Identify that the Eastern store maps to the east_superstore table and the Western store maps to the west_superstore table.", + "For each of those two tables, filter rows to only those where strftime('%Y', `Order Date`) equals '2015' to capture orders from 2015.", + "Count distinct `Order ID` values in each filtered set, since a single order may appear across multiple rows.", + "Produce a single output row by selecting the two counts as separate scalar subqueries side-by-side.", + "Label the first result column east_orders and the second result column west_orders." + ] + }, + "revisql-train:2399": { + "raw": "1. Start with `west_superstore` as the base table since the question restricts results to the Western store.\n2. Join `people` on `Customer ID` to access the `Customer Name` column.\n3. Join `product` on both `Product ID` and `Region` to retrieve `Product Name`.\n4. Filter `Customer Name` to 'Matt Abelman' using the external knowledge mapping.\n5. Filter `Order Date` to the year 2013.\n6. Return distinct values of `Product Name` to list each ordered product once.", + "steps": [ + "Start with `west_superstore` as the base table since the question restricts results to the Western store.", + "Join `people` on `Customer ID` to access the `Customer Name` column.", + "Join `product` on both `Product ID` and `Region` to retrieve `Product Name`.", + "Filter `Customer Name` to 'Matt Abelman' using the external knowledge mapping.", + "Filter `Order Date` to the year 2013.", + "Return distinct values of `Product Name` to list each ordered product once." + ] + }, + "revisql-train:240": { + "raw": "1. Target the callcenterlogs table, which contains both the complaint receipt date and the server time metric.\n2. Map \"day received\" to the `Date received` column and \"most verbose complaint\" to the maximum ser_time per the external knowledge.\n3. Compute the maximum ser_time across all rows in callcenterlogs.\n4. Filter callcenterlogs to the row where ser_time equals that maximum value.\n5. Return only the `Date received` column from the matched row.", + "steps": [ + "Target the callcenterlogs table, which contains both the complaint receipt date and the server time metric.", + "Map \"day received\" to the `Date received` column and \"most verbose complaint\" to the maximum ser_time per the external knowledge.", + "Compute the maximum ser_time across all rows in callcenterlogs.", + "Filter callcenterlogs to the row where ser_time equals that maximum value.", + "Return only the `Date received` column from the matched row." + ] + }, + "revisql-train:2400": { + "raw": "1. Union the four regional superstore tables (east, west, central, south), filtering each with strftime('%Y', `Order Date`) = '2016' before combining so only 2016 orders are included.\n2. Join the unified result to the people table on `Customer ID` to access customer names, and join to the product table on both `Product ID` and Region to satisfy the composite key.\n3. Filter the joined rows to keep only those where `Customer Name` equals 'Brad Thomas' and Region equals 'East'.\n4. Compute the total cost by summing the expression (Sales / (1 - Discount)) * Quantity - Profit across all matching rows.\n5. Return the aggregated result as a single column named cost.", + "steps": [ + "Union the four regional superstore tables (east, west, central, south), filtering each with strftime('%Y', `Order Date`) = '2016' before combining so only 2016 orders are included.", + "Join the unified result to the people table on `Customer ID` to access customer names, and join to the product table on both `Product ID` and Region to satisfy the composite key.", + "Filter the joined rows to keep only those where `Customer Name` equals 'Brad Thomas' and Region equals 'East'.", + "Compute the total cost by summing the expression (Sales / (1 - Discount)) * Quantity - Profit across all matching rows.", + "Return the aggregated result as a single column named cost." + ] + }, + "revisql-train:2407": { + "raw": "1. Join the west_superstore table with the product table on Product ID, and require that product.Region equals West.\n2. Keep only west_superstore rows where Ship Mode is Same Day to capture same-day shipments.\n3. Keep only west_superstore rows where Ship Date falls in the year 2013.\n4. Return distinct values of Product Name from the product table.", + "steps": [ + "Join the west_superstore table with the product table on Product ID, and require that product.Region equals West.", + "Keep only west_superstore rows where Ship Mode is Same Day to capture same-day shipments.", + "Keep only west_superstore rows where Ship Date falls in the year 2013.", + "Return distinct values of Product Name from the product table." + ] + }, + "revisql-train:2409": { + "raw": "1. Use `south_superstore` as the base table since the question is scoped to the south region store.\n2. Join `people` on both `Customer ID` and `Region` to link orders to customer names.\n3. Join `product` on both `Product ID` and `Region` to link orders to product names.\n4. Filter to rows where `Customer Name` equals 'Cindy Stewart' and `Product Name` equals 'Lexmark X 9575 Professional All-in-One Color Printer'.\n5. Aggregate by summing the `Quantity` column from `south_superstore`.\n6. Return that summed value as `total_quantity`.", + "steps": [ + "Use `south_superstore` as the base table since the question is scoped to the south region store.", + "Join `people` on both `Customer ID` and `Region` to link orders to customer names.", + "Join `product` on both `Product ID` and `Region` to link orders to product names.", + "Filter to rows where `Customer Name` equals 'Cindy Stewart' and `Product Name` equals 'Lexmark X 9575 Professional All-in-One Color Printer'.", + "Aggregate by summing the `Quantity` column from `south_superstore`.", + "Return that summed value as `total_quantity`." + ] + }, + "revisql-train:241": { + "raw": "1. Target the callcenterlogs table, which stores both the complaint receipt date and the server start time.\n2. Filter rows where `Date received` is exactly '2017-03-22' to isolate complaints from that day.\n3. Apply the external knowledge that \"earliest complaint\" corresponds to the oldest value in the `ser_start` column.\n4. Compute the minimum `ser_start` across the filtered rows to find the earliest start time.\n5. Return the result as a single column named earliest_start.", + "steps": [ + "Target the callcenterlogs table, which stores both the complaint receipt date and the server start time.", + "Filter rows where `Date received` is exactly '2017-03-22' to isolate complaints from that day.", + "Apply the external knowledge that \"earliest complaint\" corresponds to the oldest value in the `ser_start` column.", + "Compute the minimum `ser_start` across the filtered rows to find the earliest start time.", + "Return the result as a single column named earliest_start." + ] + }, + "revisql-train:2412": { + "raw": "1. Use the `south_superstore` table as the source for profit figures, and join it to the `product` table on `Product ID` while restricting `product`.`Region` to 'South' to satisfy the composite foreign key.\n2. Map the requested item to the `product`.`Product Name` column and filter for 'Memorex Froggy Flash Drive 8 GB'.\n3. Sum the `Profit` values from `south_superstore` across all matching rows.\n4. Return the aggregated result as a single column named `total_profit`.", + "steps": [ + "Use the `south_superstore` table as the source for profit figures, and join it to the `product` table on `Product ID` while restricting `product`.`Region` to 'South' to satisfy the composite foreign key.", + "Map the requested item to the `product`.`Product Name` column and filter for 'Memorex Froggy Flash Drive 8 GB'.", + "Sum the `Profit` values from `south_superstore` across all matching rows.", + "Return the aggregated result as a single column named `total_profit`." + ] + }, + "revisql-train:2415": { + "raw": "1. Combine central_superstore and south_superstore with UNION ALL, selecting Product ID, Region, and Quantity from each; this maps \"central\" and \"south superstore\" to their respective region tables.\n2. Join the combined result to the product table on matching Product ID and Region to access the Category column.\n3. Apply the external knowledge mapping that \"office supplies\" corresponds to product.Category = 'Office Supplies' to identify qualifying rows.\n4. Calculate the percentage by summing Quantity for office-supplies rows as the numerator, summing Quantity across all combined rows as the denominator, dividing the numerator by the denominator, and multiplying by 100.0.\n5. Return exactly one column named pct_office_supplies containing the computed percentage.", + "steps": [ + "Combine central_superstore and south_superstore with UNION ALL, selecting Product ID, Region, and Quantity from each; this maps \"central\" and \"south superstore\" to their respective region tables.", + "Join the combined result to the product table on matching Product ID and Region to access the Category column.", + "Apply the external knowledge mapping that \"office supplies\" corresponds to product.Category = 'Office Supplies' to identify qualifying rows.", + "Calculate the percentage by summing Quantity for office-supplies rows as the numerator, summing Quantity across all combined rows as the denominator, dividing the numerator by the denominator, and multiplying by 100.0.", + "Return exactly one column named pct_office_supplies containing the computed percentage." + ] + }, + "revisql-train:2417": { + "raw": "1. Join the `central_superstore` table to the `product` table on `Product ID`, and enforce that `product.Region` is 'Central' to align with the Central superstore orders and the composite key.\n2. Filter the results to rows where `product.Sub-Category` equals 'Art', mapping the external knowledge that \"art product\" refers to that specific sub-category.\n3. Group the filtered rows by `Product ID` and its associated `Product Name` to count how many orders each art product has.\n4. Construct a subquery that repeats the same join, Central region filter, and Art filter, groups by `Product ID`, orders the groups by their order count from highest to lowest, and limits the result to the single top value to find the maximum order count.\n5. Apply a HAVING clause in the outer query to retain only those product groups whose order count equals the maximum value returned by the subquery.\n6. Output only the `Product Name` column for the art product(s) that were ordered the most.", + "steps": [ + "Join the `central_superstore` table to the `product` table on `Product ID`, and enforce that `product.Region` is 'Central' to align with the Central superstore orders and the composite key.", + "Filter the results to rows where `product.Sub-Category` equals 'Art', mapping the external knowledge that \"art product\" refers to that specific sub-category.", + "Group the filtered rows by `Product ID` and its associated `Product Name` to count how many orders each art product has.", + "Construct a subquery that repeats the same join, Central region filter, and Art filter, groups by `Product ID`, orders the groups by their order count from highest to lowest, and limits the result to the single top value to find the maximum order count.", + "Apply a HAVING clause in the outer query to retain only those product groups whose order count equals the maximum value returned by the subquery.", + "Output only the `Product Name` column for the art product(s) that were ordered the most." + ] + }, + "revisql-train:2440": { + "raw": "1. Join `central_superstore` to the `people` table on both `Customer ID` and `Region` to bring in customer location data.\n2. Filter the joined rows to only those where `City` equals 'Houston' and `State` equals 'Texas'.\n3. Group by `Order ID` and sum `Profit` to compute the total profit for each complete order.\n4. Find the maximum value among those summed order profits.\n5. Return the `Order ID` whose total profit matches that maximum.", + "steps": [ + "Join `central_superstore` to the `people` table on both `Customer ID` and `Region` to bring in customer location data.", + "Filter the joined rows to only those where `City` equals 'Houston' and `State` equals 'Texas'.", + "Group by `Order ID` and sum `Profit` to compute the total profit for each complete order.", + "Find the maximum value among those summed order profits.", + "Return the `Order ID` whose total profit matches that maximum." + ] + }, + "revisql-train:2441": { + "raw": "1. Start from the `central_superstore` table and inner join the `product` table on the `Product ID` column to access each product's classification.\n2. Filter the joined rows to `Category = 'Furniture'` using the external knowledge that defines furniture products by this category value.\n3. Further restrict the `product` table side to `Region = 'Central'` to align with the central superstore context.\n4. Count all qualifying rows using `COUNT(*)`.\n5. Return the resulting count column.", + "steps": [ + "Start from the `central_superstore` table and inner join the `product` table on the `Product ID` column to access each product's classification.", + "Filter the joined rows to `Category = 'Furniture'` using the external knowledge that defines furniture products by this category value.", + "Further restrict the `product` table side to `Region = 'Central'` to align with the central superstore context.", + "Count all qualifying rows using `COUNT(*)`.", + "Return the resulting count column." + ] + }, + "revisql-train:2444": { + "raw": "1. Join the `central_superstore` table with the `people` table on `Customer ID` to connect Central orders to customer names.\n2. Filter `people` to only rows where `Customer Name` equals 'Alan Barnes'.\n3. Filter `central_superstore` to only rows where `Order Date` is in 2015, mapping the external knowledge \"in 2015\" directly to that date column.\n4. Count distinct values of `central_superstore.Order ID` to ensure each unique order is counted once.\n5. Return that single count as the result.", + "steps": [ + "Join the `central_superstore` table with the `people` table on `Customer ID` to connect Central orders to customer names.", + "Filter `people` to only rows where `Customer Name` equals 'Alan Barnes'.", + "Filter `central_superstore` to only rows where `Order Date` is in 2015, mapping the external knowledge \"in 2015\" directly to that date column.", + "Count distinct values of `central_superstore.Order ID` to ensure each unique order is counted once.", + "Return that single count as the result." + ] + }, + "revisql-train:2446": { + "raw": "1. Filter central_superstore to rows where Discount equals exactly 0.2.\n2. Join the people table on Customer ID and Region to bring in each customer’s State.\n3. Apply the external knowledge that “live in Texas” maps to people.State = 'Texas'.\n4. Count distinct Order IDs within the filtered set where State is 'Texas' (numerator) and count all distinct Order IDs in the filtered set (denominator).\n5. Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named percentage_texas.", + "steps": [ + "Filter central_superstore to rows where Discount equals exactly 0.2.", + "Join the people table on Customer ID and Region to bring in each customer’s State.", + "Apply the external knowledge that “live in Texas” maps to people.State = 'Texas'.", + "Count distinct Order IDs within the filtered set where State is 'Texas' (numerator) and count all distinct Order IDs in the filtered set (denominator).", + "Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named percentage_texas." + ] + }, + "revisql-train:245": { + "raw": "1. Map the requested \"detailed product\" to the `Sub-product` column in the `events` table.\n2. Identify the client by filtering the `client` table on `first` = 'Diesel' and `last` = 'Galloway'.\n3. Join `client` to `events` using `client_id` = `Client_ID` to link the person to their complaints.\n4. Filter the `events` records to the specific complaint date by setting `Date received` = '2014-07-03', translating the given 2014/7/3.\n5. Return only the `Sub-product` value from the matched `events` row.", + "steps": [ + "Map the requested \"detailed product\" to the `Sub-product` column in the `events` table.", + "Identify the client by filtering the `client` table on `first` = 'Diesel' and `last` = 'Galloway'.", + "Join `client` to `events` using `client_id` = `Client_ID` to link the person to their complaints.", + "Filter the `events` records to the specific complaint date by setting `Date received` = '2014-07-03', translating the given 2014/7/3.", + "Return only the `Sub-product` value from the matched `events` row." + ] + }, + "revisql-train:2455": { + "raw": "1. Start from the `east_superstore` table since the question restricts the search to the East region.\n2. Join the `people` table on `Customer ID` to access customer name information.\n3. Filter `east_superstore` to the exact `Order ID` value 'CA-2011-118976'.\n4. Apply the `Region` = 'East' filter on the joined `people` table to enforce the regional constraint.\n5. Use the external knowledge that \"Who\" refers to the `Customer Name` column in the `people` table.\n6. Return distinct values of `Customer Name` as the final answer column.", + "steps": [ + "Start from the `east_superstore` table since the question restricts the search to the East region.", + "Join the `people` table on `Customer ID` to access customer name information.", + "Filter `east_superstore` to the exact `Order ID` value 'CA-2011-118976'.", + "Apply the `Region` = 'East' filter on the joined `people` table to enforce the regional constraint.", + "Use the external knowledge that \"Who\" refers to the `Customer Name` column in the `people` table.", + "Return distinct values of `Customer Name` as the final answer column." + ] + }, + "revisql-train:2456": { + "raw": "1. Use `south_superstore` as the primary transaction table and join it to `product` on `Product ID`, adding the condition that `product.Region` equals 'South' to satisfy the composite key and regional filter.\n2. Group the joined data by `Product ID` and compute the sum of `Sales` for each product, applying the external knowledge that \"highest sales\" means the maximum of these aggregated sums.\n3. Build a scalar subquery that repeats the same South-region join and grouping, orders by the summed sales descending, and limits to 1 to isolate the single highest total sales figure.\n4. In the main query, apply a HAVING clause to the grouped results so only the product whose total sales match that subquery maximum is retained.\n5. Return the `Product Name` column from the `product` table.", + "steps": [ + "Use `south_superstore` as the primary transaction table and join it to `product` on `Product ID`, adding the condition that `product.Region` equals 'South' to satisfy the composite key and regional filter.", + "Group the joined data by `Product ID` and compute the sum of `Sales` for each product, applying the external knowledge that \"highest sales\" means the maximum of these aggregated sums.", + "Build a scalar subquery that repeats the same South-region join and grouping, orders by the summed sales descending, and limits to 1 to isolate the single highest total sales figure.", + "In the main query, apply a HAVING clause to the grouped results so only the product whose total sales match that subquery maximum is retained.", + "Return the `Product Name` column from the `product` table." + ] + }, + "revisql-train:2465": { + "raw": "1. Query the incidents table directly since case_number, date, and subject_weapon all reside there and no joins are required.\n2. Filter the rows to only those where subject_weapon equals Vehicle.\n3. Compute the case count for the filtered rows whose date falls within year 2007.\n4. Compute the case count for the filtered rows whose date falls within year 2008.\n5. Subtract the 2007 case count from the 2008 case count and return the resulting single numeric column as the difference.", + "steps": [ + "Query the incidents table directly since case_number, date, and subject_weapon all reside there and no joins are required.", + "Filter the rows to only those where subject_weapon equals Vehicle.", + "Compute the case count for the filtered rows whose date falls within year 2007.", + "Compute the case count for the filtered rows whose date falls within year 2008.", + "Subtract the 2007 case count from the 2008 case count and return the resulting single numeric column as the difference." + ] + }, + "revisql-train:2476": { + "raw": "1. Start with the `officers` table and filter to rows where `gender` = 'M' to isolate male officers.\n2. Because the same officer may appear across multiple incidents, deduplicate by selecting distinct combinations of `full_name` and `race` so each individual is counted only once.\n3. Map \"black\" to `race` = 'B' and compute the numerator by conditionally summing rows that satisfy this condition.\n4. Compute the denominator as the total count of rows in that deduplicated male-officer set.\n5. Divide the numerator by the denominator, multiply by `100.0` to produce a floating-point percentage.\n6. Return the result as a single column named `pct_black_male_officers`.", + "steps": [ + "Start with the `officers` table and filter to rows where `gender` = 'M' to isolate male officers.", + "Because the same officer may appear across multiple incidents, deduplicate by selecting distinct combinations of `full_name` and `race` so each individual is counted only once.", + "Map \"black\" to `race` = 'B' and compute the numerator by conditionally summing rows that satisfy this condition.", + "Compute the denominator as the total count of rows in that deduplicated male-officer set.", + "Divide the numerator by the denominator, multiply by `100.0` to produce a floating-point percentage.", + "Return the result as a single column named `pct_black_male_officers`." + ] + }, + "revisql-train:2479": { + "raw": "1. Join the officers table with the incidents table on case_number to link each officer to the cases they investigated.\n2. Filter the officers table to only rows where race equals 'B', applying the external knowledge that black maps to this value.\n3. Filter the incidents table to only rows where date falls between '2010-01-01' and '2015-12-31', applying the external knowledge that between the years 2010 and 2015 maps to this range.\n4. Count distinct full_name values from the officers table so each officer is counted once even if they investigated multiple cases.\n5. Return the resulting count of distinct full_name as the final answer.", + "steps": [ + "Join the officers table with the incidents table on case_number to link each officer to the cases they investigated.", + "Filter the officers table to only rows where race equals 'B', applying the external knowledge that black maps to this value.", + "Filter the incidents table to only rows where date falls between '2010-01-01' and '2015-12-31', applying the external knowledge that between the years 2010 and 2015 maps to this range.", + "Count distinct full_name values from the officers table so each officer is counted once even if they investigated multiple cases.", + "Return the resulting count of distinct full_name as the final answer." + ] + }, + "revisql-train:248": { + "raw": "1. Join the client table to callcenterlogs on client_id matching rand client to connect clients with their complaint records.\n2. Filter the callcenterlogs rows to only those where Date received equals '2017-03-27'.\n3. Further filter to only rows where the server column equals 'MICHAL'.\n4. Return the first, middle, and last columns from the client table as the full name.", + "steps": [ + "Join the client table to callcenterlogs on client_id matching rand client to connect clients with their complaint records.", + "Filter the callcenterlogs rows to only those where Date received equals '2017-03-27'.", + "Further filter to only rows where the server column equals 'MICHAL'.", + "Return the first, middle, and last columns from the client table as the full name." + ] + }, + "revisql-train:2483": { + "raw": "1. Target the `officers` table because it holds police force demographic records.\n2. Map the external knowledge to columns: white corresponds to `race = 'W'`, male to `gender = 'M'`, and female to `gender = 'F'`.\n3. Calculate each proportion as the count of officers matching `race = 'W'` and the respective gender divided by the total officer count, multiplied by 100.\n4. Use conditional aggregation to tally white males and white females in one pass over the table.\n5. Output two columns named `proportion_white_males` and `proportion_white_females`.", + "steps": [ + "Target the `officers` table because it holds police force demographic records.", + "Map the external knowledge to columns: white corresponds to `race = 'W'`, male to `gender = 'M'`, and female to `gender = 'F'`.", + "Calculate each proportion as the count of officers matching `race = 'W'` and the respective gender divided by the total officer count, multiplied by 100.", + "Use conditional aggregation to tally white males and white females in one pass over the table.", + "Output two columns named `proportion_white_males` and `proportion_white_females`." + ] + }, + "revisql-train:2484": { + "raw": "1. Query the subjects table directly; no joins are required because victim race and gender are stored there.\n2. Filter the rows to only those where gender equals 'F', corresponding to female victims per the external knowledge.\n3. Map black to race = 'B' and white to race = 'W' using the provided external knowledge.\n4. Count the number of filtered rows with race = 'B' and the number with race = 'W'.\n5. Subtract the white female victim count from the black female victim count to compute how many more there are.\n6. Return a single column containing exactly that numeric difference.", + "steps": [ + "Query the subjects table directly; no joins are required because victim race and gender are stored there.", + "Filter the rows to only those where gender equals 'F', corresponding to female victims per the external knowledge.", + "Map black to race = 'B' and white to race = 'W' using the provided external knowledge.", + "Count the number of filtered rows with race = 'B' and the number with race = 'W'.", + "Subtract the white female victim count from the black female victim count to compute how many more there are.", + "Return a single column containing exactly that numeric difference." + ] + }, + "revisql-train:2497": { + "raw": "1. Use only the `Genes` table; no joins are needed because `Motif`, `Localization`, and `Chromosome` all exist there.\n2. Filter rows where `Localization` equals the string `'cytoplasm'`.\n3. Filter rows where `Chromosome` equals `7`.\n4. Select the `Motif` column from the rows that satisfy both filters.\n5. Apply `DISTINCT` to `Motif` so each motif appears only once in the result.", + "steps": [ + "Use only the `Genes` table; no joins are needed because `Motif`, `Localization`, and `Chromosome` all exist there.", + "Filter rows where `Localization` equals the string `'cytoplasm'`.", + "Filter rows where `Chromosome` equals `7`.", + "Select the `Motif` column from the rows that satisfy both filters.", + "Apply `DISTINCT` to `Motif` so each motif appears only once in the result." + ] + }, + "revisql-train:25": { + "raw": "1. Query the `movies` table, which contains both director names and release years, so no joins are needed.\n2. Filter rows where `director_name` equals 'Quentin Tarantino'.\n3. Order the results by `movie_release_year` ascending to rank his films from oldest to newest, mapping the phrase \"third movie\" to the third oldest release.\n4. Skip the first two rows and return only the next single row to isolate that third oldest entry.\n5. Return exactly the `movie_release_year` column.", + "steps": [ + "Query the `movies` table, which contains both director names and release years, so no joins are needed.", + "Filter rows where `director_name` equals 'Quentin Tarantino'.", + "Order the results by `movie_release_year` ascending to rank his films from oldest to newest, mapping the phrase \"third movie\" to the third oldest release.", + "Skip the first two rows and return only the next single row to isolate that third oldest entry.", + "Return exactly the `movie_release_year` column." + ] + }, + "revisql-train:2505": { + "raw": "1. Filter the Genes table to only rows where Localization equals 'cytoskeleton'.\n2. Group by GeneID and compute two binary flags per gene: one that marks whether Class is in ('Unknown','?') and another that marks whether Phenotype equals 'Conditional phenotypes'.\n3. Calculate the percentage by dividing the count of genes with the unknown-class flag by the total count of cytoskeleton genes and multiplying by 100.0.\n4. Count how many genes have the unknown-class flag set but the conditional-phenotype flag unset.\n5. Return exactly two columns: the calculated percentage and the count of non-conditional unknowns.", + "steps": [ + "Filter the Genes table to only rows where Localization equals 'cytoskeleton'.", + "Group by GeneID and compute two binary flags per gene: one that marks whether Class is in ('Unknown','?') and another that marks whether Phenotype equals 'Conditional phenotypes'.", + "Calculate the percentage by dividing the count of genes with the unknown-class flag by the total count of cytoskeleton genes and multiplying by 100.0.", + "Count how many genes have the unknown-class flag set but the conditional-phenotype flag unset.", + "Return exactly two columns: the calculated percentage and the count of non-conditional unknowns." + ] + }, + "revisql-train:2508": { + "raw": "1. Filter the Genes table to rows where Essential is 'Essential', Class is 'Transcription factors', and Localization is 'nucleus', and collect the distinct GeneIDs to define the reference gene set.\n2. Join this reference set with the Interactions table by matching the reference GeneID against either GeneID1 or GeneID2, because the reference gene may appear as either interactant.\n3. Restrict the result to interactions whose Type value begins with 'Genetic'.\n4. Output the distinct reference GeneIDs that remain after the join and filter.", + "steps": [ + "Filter the Genes table to rows where Essential is 'Essential', Class is 'Transcription factors', and Localization is 'nucleus', and collect the distinct GeneIDs to define the reference gene set.", + "Join this reference set with the Interactions table by matching the reference GeneID against either GeneID1 or GeneID2, because the reference gene may appear as either interactant.", + "Restrict the result to interactions whose Type value begins with 'Genetic'.", + "Output the distinct reference GeneIDs that remain after the join and filter." + ] + }, + "revisql-train:2510": { + "raw": "1. Isolate the target population by selecting distinct GeneID from Genes where Phenotype equals 'Nucleic acid metabolism defects' and Motif equals 'PS00107', mapping the external knowledge descriptors to these two columns.\n2. Match these target genes to the Interactions table on either GeneID1 or GeneID2, then keep only rows where Expression_Corr is greater than 0 to capture positive interactions.\n3. Obtain two counts: the number of distinct target genes that have at least one positive interaction, and the total number of distinct target genes from step 1.\n4. Compute the percentage by dividing the positive-interaction count by the total target count, multiplying by 100.0, and return it as a single column named percentage_positive_genes.", + "steps": [ + "Isolate the target population by selecting distinct GeneID from Genes where Phenotype equals 'Nucleic acid metabolism defects' and Motif equals 'PS00107', mapping the external knowledge descriptors to these two columns.", + "Match these target genes to the Interactions table on either GeneID1 or GeneID2, then keep only rows where Expression_Corr is greater than 0 to capture positive interactions.", + "Obtain two counts: the number of distinct target genes that have at least one positive interaction, and the total number of distinct target genes from step 1.", + "Compute the percentage by dividing the positive-interaction count by the total target count, multiplying by 100.0, and return it as a single column named percentage_positive_genes." + ] + }, + "revisql-train:2513": { + "raw": "1. Use the `user_reviews` table to access per-app sentiment data.\n2. Filter to rows where `App` matches the string '7 Minute Workout'.\n3. Restrict `Sentiment_Polarity` to values greater than or equal to 0 and less than 0.5 based on the external definition of mildly likes.\n4. Count the filtered rows and return the total in a column named `mildly_like_users`.", + "steps": [ + "Use the `user_reviews` table to access per-app sentiment data.", + "Filter to rows where `App` matches the string '7 Minute Workout'.", + "Restrict `Sentiment_Polarity` to values greater than or equal to 0 and less than 0.5 based on the external definition of mildly likes.", + "Count the filtered rows and return the total in a column named `mildly_like_users`." + ] + }, + "revisql-train:2515": { + "raw": "1. In the user_reviews table, filter rows where Sentiment_Polarity equals '-1.0' and group by App, counting the rows per app to get the number of highly negative reviews.\n2. Compute the maximum of those per-app counts to identify the highest amount, applying the external knowledge that this means taking the MAX of the counts.\n3. Keep only apps whose count equals that maximum value.\n4. Join those apps to the playstore table on the App column to retrieve each app's Category.\n5. Return distinct App and Category.", + "steps": [ + "In the user_reviews table, filter rows where Sentiment_Polarity equals '-1.0' and group by App, counting the rows per app to get the number of highly negative reviews.", + "Compute the maximum of those per-app counts to identify the highest amount, applying the external knowledge that this means taking the MAX of the counts.", + "Keep only apps whose count equals that maximum value.", + "Join those apps to the playstore table on the App column to retrieve each app's Category.", + "Return distinct App and Category." + ] + }, + "revisql-train:2518": { + "raw": "1. Use the `user_reviews` table, which contains the app name and sentiment subjectivity needed for this question; no join is required.\n2. Filter rows to only those where `App` equals the string 'Akinator'.\n3. Apply the external knowledge threshold by keeping rows where `Sentiment_Subjectivity` is at most 0.5; because the schema stores this column as text, convert it to a real number before performing the numeric comparison.\n4. Aggregate the filtered rows with `COUNT(*)` to compute the total number of qualifying reviews.\n5. Return the result as a single column named `review_cnt`.", + "steps": [ + "Use the `user_reviews` table, which contains the app name and sentiment subjectivity needed for this question; no join is required.", + "Filter rows to only those where `App` equals the string 'Akinator'.", + "Apply the external knowledge threshold by keeping rows where `Sentiment_Subjectivity` is at most 0.5; because the schema stores this column as text, convert it to a real number before performing the numeric comparison.", + "Aggregate the filtered rows with `COUNT(*)` to compute the total number of qualifying reviews.", + "Return the result as a single column named `review_cnt`." + ] + }, + "revisql-train:2526": { + "raw": "1. Join the playstore table with user_reviews on the App column to combine genre information with sentiment scores.\n2. Keep only rows where playstore.Genres contains a semicolon, indicating the app belongs to multiple genres.\n3. Remove rows where user_reviews.Sentiment_Subjectivity is 'nan' so only valid scores are aggregated.\n4. Convert the remaining Sentiment_Subjectivity values from text to real numbers for summation.\n5. Group by playstore.App to calculate a separate total for each application.\n6. Return the App name and the summed Sentiment_Subjectivity aliased as total_sentiment_subjectivity.", + "steps": [ + "Join the playstore table with user_reviews on the App column to combine genre information with sentiment scores.", + "Keep only rows where playstore.Genres contains a semicolon, indicating the app belongs to multiple genres.", + "Remove rows where user_reviews.Sentiment_Subjectivity is 'nan' so only valid scores are aggregated.", + "Convert the remaining Sentiment_Subjectivity values from text to real numbers for summation.", + "Group by playstore.App to calculate a separate total for each application.", + "Return the App name and the summed Sentiment_Subjectivity aliased as total_sentiment_subjectivity." + ] + }, + "revisql-train:2531": { + "raw": "1. Locate the target attribute in the `playstore` table: the question asks for \"rating\", which maps to the `Rating` column, and no join to `user_reviews` is needed.\n2. Map the quoted app name from the external knowledge to the `App` column, yielding the exact value 'Draw A Stickman'.\n3. Filter the `playstore` table by requiring `App` to equal 'Draw A Stickman'.\n4. Return only the `Rating` column for the matching row.", + "steps": [ + "Locate the target attribute in the `playstore` table: the question asks for \"rating\", which maps to the `Rating` column, and no join to `user_reviews` is needed.", + "Map the quoted app name from the external knowledge to the `App` column, yielding the exact value 'Draw A Stickman'.", + "Filter the `playstore` table by requiring `App` to equal 'Draw A Stickman'.", + "Return only the `Rating` column for the matching row." + ] + }, + "revisql-train:2532": { + "raw": "1. Target the `user_reviews` table, as the question concerns reviews and comments.\n2. Filter to rows where `App` equals 'Brit + Co', mapping from the external knowledge.\n3. Require `Translated_Review` IS NOT NULL and `Translated_Review` <> 'nan' to capture only actual comments, per the external knowledge definition.\n4. Further exclude rows with `Sentiment` = 'nan', which the schema marks as users who did not comment.\n5. Apply `COUNT(*)` to tally the remaining rows.\n6. Return only that single count value.", + "steps": [ + "Target the `user_reviews` table, as the question concerns reviews and comments.", + "Filter to rows where `App` equals 'Brit + Co', mapping from the external knowledge.", + "Require `Translated_Review` IS NOT NULL and `Translated_Review` <> 'nan' to capture only actual comments, per the external knowledge definition.", + "Further exclude rows with `Sentiment` = 'nan', which the schema marks as users who did not comment.", + "Apply `COUNT(*)` to tally the remaining rows.", + "Return only that single count value." + ] + }, + "revisql-train:2533": { + "raw": "1. Target the `playstore` table, since it holds the app name, genre, and review count required.\n2. Filter rows to those where `Genres` equals `'Shopping'`, applying the external knowledge that \"shopping apps\" maps to that genre value.\n3. Group the filtered results by `App` to ensure each application is represented by a single record.\n4. Order the groups by the `Reviews` column in descending order to rank apps by the highest review count, reflecting the external knowledge that \"most reviews\" means the maximum value.\n5. Restrict the output to the first 5 rows to capture only the top five.\n6. Return exactly the `App` column in the final result.", + "steps": [ + "Target the `playstore` table, since it holds the app name, genre, and review count required.", + "Filter rows to those where `Genres` equals `'Shopping'`, applying the external knowledge that \"shopping apps\" maps to that genre value.", + "Group the filtered results by `App` to ensure each application is represented by a single record.", + "Order the groups by the `Reviews` column in descending order to rank apps by the highest review count, reflecting the external knowledge that \"most reviews\" means the maximum value.", + "Restrict the output to the first 5 rows to capture only the top five.", + "Return exactly the `App` column in the final result." + ] + }, + "revisql-train:2534": { + "raw": "1. Start from the user_reviews table, since it stores per-review sentiment data.\n2. Filter rows where the App column exactly matches 'Dino War: Rise of Beasts'.\n3. Apply the external knowledge that neutral reviews means Sentiment = 'Neutral' to further restrict the rows.\n4. Count the matching rows (using the App column) to compute the total number of neutral reviews.\n5. Return only that single aggregated count value.", + "steps": [ + "Start from the user_reviews table, since it stores per-review sentiment data.", + "Filter rows where the App column exactly matches 'Dino War: Rise of Beasts'.", + "Apply the external knowledge that neutral reviews means Sentiment = 'Neutral' to further restrict the rows.", + "Count the matching rows (using the App column) to compute the total number of neutral reviews.", + "Return only that single aggregated count value." + ] + }, + "revisql-train:2535": { + "raw": "1. Target the playstore table, which contains the Installs and App columns needed.\n2. Filter rows where Installs exactly equals the external knowledge value '5,000+'.\n3. Extract the App values and deduplicate them to produce a unique list of application names.\n4. Return only the App column; no joins, grouping, or ordering are required.", + "steps": [ + "Target the playstore table, which contains the Installs and App columns needed.", + "Filter rows where Installs exactly equals the external knowledge value '5,000+'.", + "Extract the App values and deduplicate them to produce a unique list of application names.", + "Return only the App column; no joins, grouping, or ordering are required." + ] + }, + "revisql-train:2537": { + "raw": "1. In the playstore table, find all distinct App names where Type equals 'Free' to establish the set of free applications.\n2. Join that set with the user_reviews table using the App column as the join key so only reviews for free apps are considered.\n3. Filter the joined results to rows where Sentiment equals 'Negative', mapping the question's \"Negative comments\" to that column value.\n4. Group the filtered rows by App and count the number of negative comments for each application.\n5. Order the grouped results by the comment count from highest to lowest and restrict the output to the single top record.\n6. Return only the App column to answer which free app has the most negative comments.", + "steps": [ + "In the playstore table, find all distinct App names where Type equals 'Free' to establish the set of free applications.", + "Join that set with the user_reviews table using the App column as the join key so only reviews for free apps are considered.", + "Filter the joined results to rows where Sentiment equals 'Negative', mapping the question's \"Negative comments\" to that column value.", + "Group the filtered rows by App and count the number of negative comments for each application.", + "Order the grouped results by the comment count from highest to lowest and restrict the output to the single top record.", + "Return only the App column to answer which free app has the most negative comments." + ] + }, + "revisql-train:2539": { + "raw": "1. Identify that the answer requires the Content Rating column from the playstore table and review data from the user_reviews table, linked by the App column.\n2. Join playstore to user_reviews on App so each app's reviews are connected to its metadata.\n3. Apply the external knowledge to filter user_reviews where Translated_Review contains \"gr8\" using a LIKE pattern.\n4. Use DISTINCT on the Content Rating values to prevent duplicate ratings when an app has multiple matching reviews.\n5. Return only the Content Rating column.", + "steps": [ + "Identify that the answer requires the Content Rating column from the playstore table and review data from the user_reviews table, linked by the App column.", + "Join playstore to user_reviews on App so each app's reviews are connected to its metadata.", + "Apply the external knowledge to filter user_reviews where Translated_Review contains \"gr8\" using a LIKE pattern.", + "Use DISTINCT on the Content Rating values to prevent duplicate ratings when an app has multiple matching reviews.", + "Return only the Content Rating column." + ] + }, + "revisql-train:2540": { + "raw": "1. Start by identifying apps in `playstore` that have at least one matching entry in `user_reviews` to satisfy the review requirement.\n2. Determine the highest price among those apps by removing any '$' from `playstore.Price`, casting the result to a real number, and taking the maximum, applying the external knowledge that \"most expensive app\" maps to `MAX(Price)`.\n3. Join `user_reviews` with `playstore` on the `App` column to pair sentiment data with app metadata.\n4. Filter the joined rows to only those app(s) whose cleaned numeric price equals the maximum price found in step 2.\n5. Sum `user_reviews.Sentiment_Polarity`, casting it to real, and return that single aggregated value named `total_polarity`, reflecting the external knowledge that total sentiment polarity score equals the sum of `Sentiment_Polarity`.", + "steps": [ + "Start by identifying apps in `playstore` that have at least one matching entry in `user_reviews` to satisfy the review requirement.", + "Determine the highest price among those apps by removing any '$' from `playstore.Price`, casting the result to a real number, and taking the maximum, applying the external knowledge that \"most expensive app\" maps to `MAX(Price)`.", + "Join `user_reviews` with `playstore` on the `App` column to pair sentiment data with app metadata.", + "Filter the joined rows to only those app(s) whose cleaned numeric price equals the maximum price found in step 2.", + "Sum `user_reviews.Sentiment_Polarity`, casting it to real, and return that single aggregated value named `total_polarity`, reflecting the external knowledge that total sentiment polarity score equals the sum of `Sentiment_Polarity`." + ] + }, + "revisql-train:2541": { + "raw": "1. Map the app name \"Garden Coloring Book\" to the `App` column, noting that its rating is stored in `playstore` and its review text is stored in `user_reviews` under `Translated_Review`.\n2. Join the `playstore` table with the `user_reviews` table using the `App` column as the join key.\n3. Filter the joined results to only rows where `App` equals 'Garden Coloring Book'.\n4. Return the `Rating` column from `playstore` and the `Translated_Review` column from `user_reviews`.", + "steps": [ + "Map the app name \"Garden Coloring Book\" to the `App` column, noting that its rating is stored in `playstore` and its review text is stored in `user_reviews` under `Translated_Review`.", + "Join the `playstore` table with the `user_reviews` table using the `App` column as the join key.", + "Filter the joined results to only rows where `App` equals 'Garden Coloring Book'.", + "Return the `Rating` column from `playstore` and the `Translated_Review` column from `user_reviews`." + ] + }, + "revisql-train:2542": { + "raw": "1. Filter the playstore table to distinct App names where Genres equals 'Photography' to identify the relevant photography apps.\n2. Join that result with the user_reviews table on the App column to link sentiment subjectivity scores to those photography apps.\n3. Group the joined records by App.\n4. For each app, calculate the total sentiment subjectivity by summing the Sentiment_Subjectivity values cast to real numbers, since the column is stored as text.\n5. Order the grouped results by this computed total in descending order to rank apps from highest to lowest score.\n6. Return only the App column for the single top-ranked result, limiting the output to one row.", + "steps": [ + "Filter the playstore table to distinct App names where Genres equals 'Photography' to identify the relevant photography apps.", + "Join that result with the user_reviews table on the App column to link sentiment subjectivity scores to those photography apps.", + "Group the joined records by App.", + "For each app, calculate the total sentiment subjectivity by summing the Sentiment_Subjectivity values cast to real numbers, since the column is stored as text.", + "Order the grouped results by this computed total in descending order to rank apps from highest to lowest score.", + "Return only the App column for the single top-ranked result, limiting the output to one row." + ] + }, + "revisql-train:2543": { + "raw": "1. Map the external knowledge: treat \"Everyone\" as `Content Rating` = 'Everyone', \"highest rated\" as the maximum `Rating` in `playstore`, and \"comments\" as `Translated_Review` from `user_reviews`.\n2. First determine the maximum `Rating` among apps that are rated and targeted at everyone by joining `playstore` to `user_reviews` on `App`, filtering to `Content Rating` = 'Everyone' and `Rating` IS NOT NULL, and aggregating with `MAX(Rating)`.\n3. Join that maximum rating back to `playstore` on `Rating` to isolate only the highest-rated app(s), keeping the filter `Content Rating` = 'Everyone'.\n4. Join those highest-rated apps to `user_reviews` on `App` to retrieve every associated review row.\n5. Return the `Translated_Review` column from `user_reviews`.", + "steps": [ + "Map the external knowledge: treat \"Everyone\" as `Content Rating` = 'Everyone', \"highest rated\" as the maximum `Rating` in `playstore`, and \"comments\" as `Translated_Review` from `user_reviews`.", + "First determine the maximum `Rating` among apps that are rated and targeted at everyone by joining `playstore` to `user_reviews` on `App`, filtering to `Content Rating` = 'Everyone' and `Rating` IS NOT NULL, and aggregating with `MAX(Rating)`.", + "Join that maximum rating back to `playstore` on `Rating` to isolate only the highest-rated app(s), keeping the filter `Content Rating` = 'Everyone'.", + "Join those highest-rated apps to `user_reviews` on `App` to retrieve every associated review row.", + "Return the `Translated_Review` column from `user_reviews`." + ] + }, + "revisql-train:2546": { + "raw": "1. Join `playstore` and `user_reviews` on the `App` column.\n2. Keep only rows where `playstore.Installs` equals '1,000,000,000+'.\n3. Keep only no-comment reviews, defined by external knowledge as `Translated_Review` = 'nan', `Translated_Review` IS NULL, or `Sentiment` = 'nan'.\n4. Group the remaining rows by `playstore.App`.\n5. Order the groups by the count of no-comment reviews in descending order and limit to the first result.\n6. Return the `App` column.", + "steps": [ + "Join `playstore` and `user_reviews` on the `App` column.", + "Keep only rows where `playstore.Installs` equals '1,000,000,000+'.", + "Keep only no-comment reviews, defined by external knowledge as `Translated_Review` = 'nan', `Translated_Review` IS NULL, or `Sentiment` = 'nan'.", + "Group the remaining rows by `playstore.App`.", + "Order the groups by the count of no-comment reviews in descending order and limit to the first result.", + "Return the `App` column." + ] + }, + "revisql-train:2548": { + "raw": "1. Start from the user_reviews table and keep only rows where Translated_Review equals 'nan' to isolate \"no comment\" reviews.\n2. Join these reviews with playstore on App, first deduplicating playstore to distinct App and Content Rating pairs to prevent duplicate matches.\n3. Compute the numerator by conditionally counting rows where Content Rating is 'Teen'.\n4. Compute the denominator as the total count of no-comment rows returned by the join.\n5. Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named pct_no_comment_from_teen.", + "steps": [ + "Start from the user_reviews table and keep only rows where Translated_Review equals 'nan' to isolate \"no comment\" reviews.", + "Join these reviews with playstore on App, first deduplicating playstore to distinct App and Content Rating pairs to prevent duplicate matches.", + "Compute the numerator by conditionally counting rows where Content Rating is 'Teen'.", + "Compute the denominator as the total count of no-comment rows returned by the join.", + "Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named pct_no_comment_from_teen." + ] + }, + "revisql-train:2551": { + "raw": "1. Query the playstore table, which contains both the Genres and Installs columns; no table joins are required.\n2. Map the user term \"downloads\" to the Installs column using the external synonym knowledge.\n3. Filter rows where Installs exactly matches the string '1,000,000,000+', as specified in the external knowledge for the requested threshold, because the column stores formatted text rather than raw numbers.\n4. Group the remaining rows by Genres to produce a unique list of genres that meet the download condition.\n5. Return only the Genres column in the final output.", + "steps": [ + "Query the playstore table, which contains both the Genres and Installs columns; no table joins are required.", + "Map the user term \"downloads\" to the Installs column using the external synonym knowledge.", + "Filter rows where Installs exactly matches the string '1,000,000,000+', as specified in the external knowledge for the requested threshold, because the column stores formatted text rather than raw numbers.", + "Group the remaining rows by Genres to produce a unique list of genres that meet the download condition.", + "Return only the Genres column in the final output." + ] + }, + "revisql-train:2554": { + "raw": "1. Target the `playstore` table exclusively; no joins are needed because both the rating condition and the review metric reside in the same table.\n2. Apply the external knowledge mapping \"Rating = 5\" to filter rows where the `Rating` column equals exactly 5.\n3. Map the external knowledge phrase \"average review\" to the aggregate function `AVG()` computed over the `Reviews` column.\n4. Do not group or order the results, since the question asks for a single overall average across all matching apps.\n5. Return exactly one column: the computed average of `Reviews`.", + "steps": [ + "Target the `playstore` table exclusively; no joins are needed because both the rating condition and the review metric reside in the same table.", + "Apply the external knowledge mapping \"Rating = 5\" to filter rows where the `Rating` column equals exactly 5.", + "Map the external knowledge phrase \"average review\" to the aggregate function `AVG()` computed over the `Reviews` column.", + "Do not group or order the results, since the question asks for a single overall average across all matching apps.", + "Return exactly one column: the computed average of `Reviews`." + ] + }, + "revisql-train:2557": { + "raw": "1. Start from the `user_reviews` table, which holds the required sentiment and polarity data; no table joins are needed.\n2. Group the records by `App` so all reviews for the same application are aggregated together.\n3. Calculate the per-app average using `AVG(CAST(Sentiment_Polarity AS REAL))`, applying the external knowledge that \"average\" maps to `Sentiment_Polarity`.\n4. Use a grouped filter to keep only apps that completely lack negative sentiment, i.e., ensure the count of rows where `Sentiment` equals 'Negative' within the group is zero.\n5. Return the columns `App` and the computed average polarity aliased as `avg_polarity`.", + "steps": [ + "Start from the `user_reviews` table, which holds the required sentiment and polarity data; no table joins are needed.", + "Group the records by `App` so all reviews for the same application are aggregated together.", + "Calculate the per-app average using `AVG(CAST(Sentiment_Polarity AS REAL))`, applying the external knowledge that \"average\" maps to `Sentiment_Polarity`.", + "Use a grouped filter to keep only apps that completely lack negative sentiment, i.e., ensure the count of rows where `Sentiment` equals 'Negative' within the group is zero.", + "Return the columns `App` and the computed average polarity aliased as `avg_polarity`." + ] + }, + "revisql-train:2562": { + "raw": "1. Start from the playstore table, which contains the needed Price, Genres, and Content Rating columns.\n2. Filter rows where Content Rating equals 'Everyone 10+' and Genres contains 'Arcade' using LIKE '%Arcade%'.\n3. Convert the text Price values to real numbers by stripping the '$' sign and casting, enabling numeric aggregation.\n4. Group by App in a subquery to isolate one cleaned price per app before averaging.\n5. Compute the average of those cleaned prices in the outer query and return the result as avg_price.", + "steps": [ + "Start from the playstore table, which contains the needed Price, Genres, and Content Rating columns.", + "Filter rows where Content Rating equals 'Everyone 10+' and Genres contains 'Arcade' using LIKE '%Arcade%'.", + "Convert the text Price values to real numbers by stripping the '$' sign and casting, enabling numeric aggregation.", + "Group by App in a subquery to isolate one cleaned price per app before averaging.", + "Compute the average of those cleaned prices in the outer query and return the result as avg_price." + ] + }, + "revisql-train:2563": { + "raw": "1. Join the `playstore` and `user_reviews` tables on the `App` column to combine app metadata with its user reviews.\n2. Filter the joined rows to only those where `App` is exactly 'Browser 4G'.\n3. Use the external knowledge that \"pretty positive favorability\" corresponds to `Sentiment_Polarity >= 0.5`, and cast the text-based `Sentiment_Polarity` value to a real number before applying this filter.\n4. Group the remaining rows by the `Size` column from `playstore`.\n5. Count the number of rows in each group to obtain the number of users with pretty positive favorability.\n6. Return the `Size` column and the calculated count, naming the latter `positive_cnt`.", + "steps": [ + "Join the `playstore` and `user_reviews` tables on the `App` column to combine app metadata with its user reviews.", + "Filter the joined rows to only those where `App` is exactly 'Browser 4G'.", + "Use the external knowledge that \"pretty positive favorability\" corresponds to `Sentiment_Polarity >= 0.5`, and cast the text-based `Sentiment_Polarity` value to a real number before applying this filter.", + "Group the remaining rows by the `Size` column from `playstore`.", + "Count the number of rows in each group to obtain the number of users with pretty positive favorability.", + "Return the `Size` column and the calculated count, naming the latter `positive_cnt`." + ] + }, + "revisql-train:2569": { + "raw": "1. Join playstore and user_reviews on the App column.\n2. Filter to rows where App is Honkai Impact 3rd and Sentiment_Polarity is not nan.\n3. Cast Sentiment_Polarity from text to a real number to enable numeric aggregation.\n4. Group the results by the Genres column from playstore.\n5. Compute the highest sentiment polarity score per genre by taking the MAX of the converted polarity values.\n6. Return the maximum polarity score and the Genres column.", + "steps": [ + "Join playstore and user_reviews on the App column.", + "Filter to rows where App is Honkai Impact 3rd and Sentiment_Polarity is not nan.", + "Cast Sentiment_Polarity from text to a real number to enable numeric aggregation.", + "Group the results by the Genres column from playstore.", + "Compute the highest sentiment polarity score per genre by taking the MAX of the converted polarity values.", + "Return the maximum polarity score and the Genres column." + ] + }, + "revisql-train:2572": { + "raw": "1. Query the `playstore` table alone; no joins are needed because `App`, `Type`, and `Category` all reside there and no review data is required.\n2. Translate the phrase \"free sports Apps\" using the external knowledge into two WHERE filters: `Type` equals 'Free' and `Category` equals 'SPORTS'.\n3. Return only the `App` column, and ensure uniqueness by selecting distinct values so each qualifying app is listed once.\n4. Do not apply any aggregation or ordering; simply return the unique app names that satisfy both filters.", + "steps": [ + "Query the `playstore` table alone; no joins are needed because `App`, `Type`, and `Category` all reside there and no review data is required.", + "Translate the phrase \"free sports Apps\" using the external knowledge into two WHERE filters: `Type` equals 'Free' and `Category` equals 'SPORTS'.", + "Return only the `App` column, and ensure uniqueness by selecting distinct values so each qualifying app is listed once.", + "Do not apply any aggregation or ordering; simply return the unique app names that satisfy both filters." + ] + }, + "revisql-train:2576": { + "raw": "1. Use only the Customers table; no joins are needed.\n2. Map the external knowledge that \"name containing the word 'Group'\" to a pattern match on the `Customer Names` column using LIKE '%Group%'.\n3. In a subquery, apply a conditional expression on `Customer Names` that returns the name when it matches the pattern and NULL otherwise, aliasing that output as T.\n4. Filter the subquery results to keep only rows where T is not NULL.\n5. Return the column T as the final list.", + "steps": [ + "Use only the Customers table; no joins are needed.", + "Map the external knowledge that \"name containing the word 'Group'\" to a pattern match on the `Customer Names` column using LIKE '%Group%'.", + "In a subquery, apply a conditional expression on `Customer Names` that returns the name when it matches the pattern and NULL otherwise, aliasing that output as T.", + "Filter the subquery results to keep only rows where T is not NULL.", + "Return the column T as the final list." + ] + }, + "revisql-train:2580": { + "raw": "1. Join Customers, Sales Orders, and Products by matching _CustomerID to CustomerID and _ProductID to ProductID.\n2. Filter to rows where Product Name equals 'Cocktail Glasses' and OrderDate falls within 2020.\n3. Compute the greatest discount applied for that product and year using a scalar subquery across the same three joined tables with identical filters, ordered by Discount Applied descending and limited to one result.\n4. In the outer query, retain only rows whose Discount Applied equals that subquery’s maximum value.\n5. Return distinct Customer Names.", + "steps": [ + "Join Customers, Sales Orders, and Products by matching _CustomerID to CustomerID and _ProductID to ProductID.", + "Filter to rows where Product Name equals 'Cocktail Glasses' and OrderDate falls within 2020.", + "Compute the greatest discount applied for that product and year using a scalar subquery across the same three joined tables with identical filters, ordered by Discount Applied descending and limited to one result.", + "In the outer query, retain only rows whose Discount Applied equals that subquery’s maximum value.", + "Return distinct Customer Names." + ] + }, + "revisql-train:2582": { + "raw": "1. Join `Sales Orders` to `Customers` on `_CustomerID` = `CustomerID` to link each order with its customer name.\n2. Return the columns `OrderNumber`, `Customer Names`, and `OrderDate` to cover the order number, who, and when.\n3. Clean the `Unit Cost` text values by stripping commas and casting to REAL, because the column stores numeric values as formatted text.\n4. Compute the maximum cleaned `Unit Cost` using a subquery against `Sales Orders`.\n5. Filter the main query to keep only rows whose cleaned `Unit Cost` equals that maximum value.", + "steps": [ + "Join `Sales Orders` to `Customers` on `_CustomerID` = `CustomerID` to link each order with its customer name.", + "Return the columns `OrderNumber`, `Customer Names`, and `OrderDate` to cover the order number, who, and when.", + "Clean the `Unit Cost` text values by stripping commas and casting to REAL, because the column stores numeric values as formatted text.", + "Compute the maximum cleaned `Unit Cost` using a subquery against `Sales Orders`.", + "Filter the main query to keep only rows whose cleaned `Unit Cost` equals that maximum value." + ] + }, + "revisql-train:2587": { + "raw": "1. Join `Sales Orders` with `Sales Team` on `_SalesTeamID` = `SalesTeamID`.\n2. Keep only 2020 orders by filtering `OrderDate` to values ending in `/20`.\n3. For each order line, remove commas from `Unit Price` and `Unit Cost`, subtract cost from price, and multiply by `Order Quantity` to calculate net profit.\n4. Group by the `Sales Team` name and sum the calculated net profits to get a total profit per team.\n5. Determine the maximum total profit value across all teams.\n6. Return the `Sales Team` name(s) whose total profit equals that maximum value.", + "steps": [ + "Join `Sales Orders` with `Sales Team` on `_SalesTeamID` = `SalesTeamID`.", + "Keep only 2020 orders by filtering `OrderDate` to values ending in `/20`.", + "For each order line, remove commas from `Unit Price` and `Unit Cost`, subtract cost from price, and multiply by `Order Quantity` to calculate net profit.", + "Group by the `Sales Team` name and sum the calculated net profits to get a total profit per team.", + "Determine the maximum total profit value across all teams.", + "Return the `Sales Team` name(s) whose total profit equals that maximum value." + ] + }, + "revisql-train:2588": { + "raw": "1. Start from the `Sales Orders` table to get `OrderNumber`, `Unit Price`, and `Unit Cost`, and join it to the `Sales Team` table on `_SalesTeamID` = `SalesTeamID` to access the sales team name.\n2. Filter the joined rows to keep only those where the `Sales Team` column equals 'Joshua Bennett'.\n3. Because `Unit Price` and `Unit Cost` are stored as text with commas, remove commas from both values before performing arithmetic.\n4. Calculate net profit by subtracting the cleaned `Unit Cost` from the cleaned `Unit Price`.\n5. Return `OrderNumber` and the calculated net profit.", + "steps": [ + "Start from the `Sales Orders` table to get `OrderNumber`, `Unit Price`, and `Unit Cost`, and join it to the `Sales Team` table on `_SalesTeamID` = `SalesTeamID` to access the sales team name.", + "Filter the joined rows to keep only those where the `Sales Team` column equals 'Joshua Bennett'.", + "Because `Unit Price` and `Unit Cost` are stored as text with commas, remove commas from both values before performing arithmetic.", + "Calculate net profit by subtracting the cleaned `Unit Cost` from the cleaned `Unit Price`.", + "Return `OrderNumber` and the calculated net profit." + ] + }, + "revisql-train:2591": { + "raw": "1. Use the Products table as the sole source because ProductID and Product Name both reside there and no joins are needed.\n2. Map the external knowledge to a pattern match on the `Product Name` column using LIKE '%Outdoor%' to identify names containing the word \"Outdoor\".\n3. In an inner query, select ProductID and a CASE expression that returns `Product Name` when the LIKE condition is satisfied and NULL otherwise, aliasing this computed column as T.\n4. In the outer query, filter out rows where T IS NULL so only matching Outdoor products remain, and order the result set by T in descending order.\n5. The final output must return exactly two columns: ProductID and T (the matched product name).", + "steps": [ + "Use the Products table as the sole source because ProductID and Product Name both reside there and no joins are needed.", + "Map the external knowledge to a pattern match on the `Product Name` column using LIKE '%Outdoor%' to identify names containing the word \"Outdoor\".", + "In an inner query, select ProductID and a CASE expression that returns `Product Name` when the LIKE condition is satisfied and NULL otherwise, aliasing this computed column as T.", + "In the outer query, filter out rows where T IS NULL so only matching Outdoor products remain, and order the result set by T in descending order.", + "The final output must return exactly two columns: ProductID and T (the matched product name)." + ] + }, + "revisql-train:2594": { + "raw": "1. Map the requested \"ID\" to the `StoreID` column in the `Store Locations` table per the external knowledge, and identify that `City Name` also comes from that table.\n2. Because `Region` is only available in the `Regions` table, join `Store Locations` to `Regions` on their common `StateCode` key.\n3. Filter the `Store Locations` rows to only those where `County` equals \"Allen County\".\n4. Use `DISTINCT` to avoid duplicate results when multiple stores in the same city share the same region.\n5. Return exactly the three columns `StoreID`, `City Name`, and `Region`.", + "steps": [ + "Map the requested \"ID\" to the `StoreID` column in the `Store Locations` table per the external knowledge, and identify that `City Name` also comes from that table.", + "Because `Region` is only available in the `Regions` table, join `Store Locations` to `Regions` on their common `StateCode` key.", + "Filter the `Store Locations` rows to only those where `County` equals \"Allen County\".", + "Use `DISTINCT` to avoid duplicate results when multiple stores in the same city share the same region.", + "Return exactly the three columns `StoreID`, `City Name`, and `Region`." + ] + }, + "revisql-train:2597": { + "raw": "1. Join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID`.\n2. Filter to rows where `Customer Names` equals 'Medline'.\n3. For the numerator, conditionally count rows where `Sales Channel` is 'In-Store'.\n4. For the denominator, count all order rows for this customer.\n5. Cast the numerator to a real number, multiply by 100, and divide by the denominator.\n6. Return the single calculated percentage value.", + "steps": [ + "Join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID`.", + "Filter to rows where `Customer Names` equals 'Medline'.", + "For the numerator, conditionally count rows where `Sales Channel` is 'In-Store'.", + "For the denominator, count all order rows for this customer.", + "Cast the numerator to a real number, multiply by 100, and divide by the denominator.", + "Return the single calculated percentage value." + ] + }, + "revisql-train:2598": { + "raw": "1. Join `Sales Orders` to `Products` on `_ProductID` and to `Customers` on `_CustomerID` to access product names and customer names.\n2. Filter to `Sales Channel` = 'Wholesale', `Product Name` = 'Bedroom Furniture', and `OrderDate` values ending in '19' to capture 2019 orders.\n3. Convert the text `OrderDate` and `DeliveryDate` fields into ISO dates by parsing their month/day/year segments and prefixing the two-digit year with '20'.\n4. Compute the delivery period as the day difference between the converted `DeliveryDate` and `OrderDate`, excluding any rows where the delivery date is missing.\n5. Return `Customer Names` and the rounded delivery period in days, sorted alphabetically by customer name.", + "steps": [ + "Join `Sales Orders` to `Products` on `_ProductID` and to `Customers` on `_CustomerID` to access product names and customer names.", + "Filter to `Sales Channel` = 'Wholesale', `Product Name` = 'Bedroom Furniture', and `OrderDate` values ending in '19' to capture 2019 orders.", + "Convert the text `OrderDate` and `DeliveryDate` fields into ISO dates by parsing their month/day/year segments and prefixing the two-digit year with '20'.", + "Compute the delivery period as the day difference between the converted `DeliveryDate` and `OrderDate`, excluding any rows where the delivery date is missing.", + "Return `Customer Names` and the rounded delivery period in days, sorted alphabetically by customer name." + ] + }, + "revisql-train:2599": { + "raw": "1. Join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID` to connect each order to its customer name.\n2. Compute per-order net profit by removing commas from `Unit Price` and `Unit Cost`, casting the results to real numbers, subtracting cost from price, and multiplying by `Order Quantity`.\n3. Filter the rows to keep only those where the calculated net profit is greater than 3800 USD.\n4. Select distinct `Customer Names` from the remaining rows so each qualifying customer is listed once.", + "steps": [ + "Join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID` to connect each order to its customer name.", + "Compute per-order net profit by removing commas from `Unit Price` and `Unit Cost`, casting the results to real numbers, subtracting cost from price, and multiplying by `Order Quantity`.", + "Filter the rows to keep only those where the calculated net profit is greater than 3800 USD.", + "Select distinct `Customer Names` from the remaining rows so each qualifying customer is listed once." + ] + }, + "revisql-train:2609": { + "raw": "1. Use the Regions table, which contains the StateCode and Region columns needed to answer the question.\n2. In a derived table, apply a conditional expression that returns StateCode when Region equals 'Midwest' and NULL otherwise, naming the result T.\n3. Filter the derived table to keep only rows where T is not NULL, isolating valid Midwest state codes.\n4. Apply a distinct count on T to ensure each state is counted once regardless of duplicate rows.\n5. Return the resulting single numeric count as the final answer.", + "steps": [ + "Use the Regions table, which contains the StateCode and Region columns needed to answer the question.", + "In a derived table, apply a conditional expression that returns StateCode when Region equals 'Midwest' and NULL otherwise, naming the result T.", + "Filter the derived table to keep only rows where T is not NULL, isolating valid Midwest state codes.", + "Apply a distinct count on T to ensure each state is counted once regardless of duplicate rows.", + "Return the resulting single numeric count as the final answer." + ] + }, + "revisql-train:2610": { + "raw": "1. Join `Sales Orders` to `Products` on `Sales Orders._ProductID` = `Products.ProductID` to connect each order with its product name.\n2. In the inner query, conditionally return `Products`.`Product Name` only when `Sales Orders`.`Unit Cost` equals 781.22; otherwise return NULL.\n3. Apply DISTINCT in the inner query so each product name appears once even if multiple orders have that unit cost.\n4. In the outer query, filter out NULL values to keep only the valid product names from qualifying orders.\n5. Return exactly the `Product Name` column.", + "steps": [ + "Join `Sales Orders` to `Products` on `Sales Orders._ProductID` = `Products.ProductID` to connect each order with its product name.", + "In the inner query, conditionally return `Products`.`Product Name` only when `Sales Orders`.`Unit Cost` equals 781.22; otherwise return NULL.", + "Apply DISTINCT in the inner query so each product name appears once even if multiple orders have that unit cost.", + "In the outer query, filter out NULL values to keep only the valid product names from qualifying orders.", + "Return exactly the `Product Name` column." + ] + }, + "revisql-train:2614": { + "raw": "1. Join the `Sales Orders` table to the `Products` table on `_ProductID` = `ProductID`.\n2. Filter to rows where `Product Name` is 'Phones' and `Sales Channel` is 'Distributor'.\n3. For each remaining row, remove commas from the `Unit Price` and `Unit Cost` text fields, then subtract `Unit Cost` from `Unit Price` to obtain the net profit.\n4. Sum all row-level net profits and divide by the count of `OrderNumber` to compute the average net profit.\n5. Return the single resulting average net profit value.", + "steps": [ + "Join the `Sales Orders` table to the `Products` table on `_ProductID` = `ProductID`.", + "Filter to rows where `Product Name` is 'Phones' and `Sales Channel` is 'Distributor'.", + "For each remaining row, remove commas from the `Unit Price` and `Unit Cost` text fields, then subtract `Unit Cost` from `Unit Price` to obtain the net profit.", + "Sum all row-level net profits and divide by the count of `OrderNumber` to compute the average net profit.", + "Return the single resulting average net profit value." + ] + }, + "revisql-train:2615": { + "raw": "1. Join `Sales Orders` to `Products` on `_ProductID` matching `ProductID` to bring in product names.\n2. Filter to rows where `Product Name` equals 'Bar Tools' and `Order Quantity` is greater than 5.\n3. For each qualifying order, clean the `Unit Price` and `Unit Cost` text values by removing commas, then compute net profit as Unit Price minus Unit Cost per the external knowledge.\n4. Aggregate by summing all computed net profits and dividing by the count of qualifying orders to derive the average.\n5. Return the single calculated value as the average net profit.", + "steps": [ + "Join `Sales Orders` to `Products` on `_ProductID` matching `ProductID` to bring in product names.", + "Filter to rows where `Product Name` equals 'Bar Tools' and `Order Quantity` is greater than 5.", + "For each qualifying order, clean the `Unit Price` and `Unit Cost` text values by removing commas, then compute net profit as Unit Price minus Unit Cost per the external knowledge.", + "Aggregate by summing all computed net profits and dividing by the count of qualifying orders to derive the average.", + "Return the single calculated value as the average net profit." + ] + }, + "revisql-train:2619": { + "raw": "1. Join the Customers table with the Sales Orders table by matching `CustomerID` to `_CustomerID` to associate orders with customer names.\n2. Filter for rows where `Customer Names` equals 'Ole Group', using the external knowledge that Ole Group is the customer of interest.\n3. Extract the `Discount Applied` values from the Sales Orders table, excluding any NULL entries because the external knowledge defines discount levels applied as non-null.\n4. Apply DISTINCT to the remaining `Discount Applied` values to list each unique discount level only once.\n5. Return exactly one column in the final result: `Discount Applied`.", + "steps": [ + "Join the Customers table with the Sales Orders table by matching `CustomerID` to `_CustomerID` to associate orders with customer names.", + "Filter for rows where `Customer Names` equals 'Ole Group', using the external knowledge that Ole Group is the customer of interest.", + "Extract the `Discount Applied` values from the Sales Orders table, excluding any NULL entries because the external knowledge defines discount levels applied as non-null.", + "Apply DISTINCT to the remaining `Discount Applied` values to list each unique discount level only once.", + "Return exactly one column in the final result: `Discount Applied`." + ] + }, + "revisql-train:2623": { + "raw": "1. Join the Customers table to the Sales Orders table on _CustomerID in Sales Orders matching CustomerID in Customers.\n2. Convert the Unit Cost column from text to a real number by removing commas and casting, because it stores formatted numeric strings.\n3. Apply the external knowledge threshold by keeping only rows where the converted Unit Cost is strictly greater than 4000.\n4. Use DISTINCT on the Customer Names column from the Customers table so each qualifying customer appears only once.\n5. Return the final output as the Customer Names column.", + "steps": [ + "Join the Customers table to the Sales Orders table on _CustomerID in Sales Orders matching CustomerID in Customers.", + "Convert the Unit Cost column from text to a real number by removing commas and casting, because it stores formatted numeric strings.", + "Apply the external knowledge threshold by keeping only rows where the converted Unit Cost is strictly greater than 4000.", + "Use DISTINCT on the Customer Names column from the Customers table so each qualifying customer appears only once.", + "Return the final output as the Customer Names column." + ] + }, + "revisql-train:2627": { + "raw": "1. Join the `Sales Orders` table with `Products` on `_ProductID` = `ProductID` to link each order to its corresponding product name.\n2. Convert the text-based `Unit Price` column to a real number by removing commas and casting the result, enabling proper numeric comparison.\n3. Use a subquery on `Sales Orders` alone to aggregate the minimum cleaned `Unit Price` value, applying the external knowledge that \"lowest unit price\" means `MIN(Unit Price)`.\n4. Filter the joined rows to keep only the order(s) whose cleaned `Unit Price` matches that computed minimum.\n5. Return the columns `OrderNumber` from `Sales Orders` and `Product Name` from `Products`.", + "steps": [ + "Join the `Sales Orders` table with `Products` on `_ProductID` = `ProductID` to link each order to its corresponding product name.", + "Convert the text-based `Unit Price` column to a real number by removing commas and casting the result, enabling proper numeric comparison.", + "Use a subquery on `Sales Orders` alone to aggregate the minimum cleaned `Unit Price` value, applying the external knowledge that \"lowest unit price\" means `MIN(Unit Price)`.", + "Filter the joined rows to keep only the order(s) whose cleaned `Unit Price` matches that computed minimum.", + "Return the columns `OrderNumber` from `Sales Orders` and `Product Name` from `Products`." + ] + }, + "revisql-train:263": { + "raw": "1. Join the events table to the client table on client_id matching Client_ID to associate each complaint with its client’s name and sex.\n2. Filter the client side to sex = 'Male' (from “Mr.”), first = 'Brantley', middle = 'Julian', and last = 'Stanley'.\n3. Filter the events side to Date received = '2012-05-18', mapping the question’s date 2012/5/18.\n4. Calculate days delay by subtracting Date received from Date sent to company and casting the result to an integer.\n5. Return exactly one computed integer column named days_delay.", + "steps": [ + "Join the events table to the client table on client_id matching Client_ID to associate each complaint with its client’s name and sex.", + "Filter the client side to sex = 'Male' (from “Mr.”), first = 'Brantley', middle = 'Julian', and last = 'Stanley'.", + "Filter the events side to Date received = '2012-05-18', mapping the question’s date 2012/5/18.", + "Calculate days delay by subtracting Date received from Date sent to company and casting the result to an integer.", + "Return exactly one computed integer column named days_delay." + ] + }, + "revisql-train:2630": { + "raw": "1. Join `Sales Orders` to `Sales Team` on `_SalesTeamID` = `SalesTeamID`.\n2. Filter the joined rows to only those with `OrderDate` equal to '5/31/18', applying the external knowledge that this date value maps to orders on 5/31/2018.\n3. Extract the `Sales Team` name from the `Sales Team` table for each matching row.\n4. Apply `DISTINCT` to the resulting team names so each sales team appears only once.\n5. Exclude any NULL values and return the final unique `Sales Team` names as the single output column.", + "steps": [ + "Join `Sales Orders` to `Sales Team` on `_SalesTeamID` = `SalesTeamID`.", + "Filter the joined rows to only those with `OrderDate` equal to '5/31/18', applying the external knowledge that this date value maps to orders on 5/31/2018.", + "Extract the `Sales Team` name from the `Sales Team` table for each matching row.", + "Apply `DISTINCT` to the resulting team names so each sales team appears only once.", + "Exclude any NULL values and return the final unique `Sales Team` names as the single output column." + ] + }, + "revisql-train:2636": { + "raw": "1. Identify that `Sales Orders` is the only table needed, as it contains both the order identifier and the `Unit Cost`; no joins are necessary.\n2. Map the external knowledge value 'SO - 000103' to the `OrderNumber` column to isolate the target order.\n3. Project the `Unit Cost` conditionally, outputting the value for the matched order and NULL for all other rows.\n4. Wrap the result in a subquery and filter out NULL entries so only the valid unit cost remains.\n5. Apply DISTINCT to the remaining value to ensure a single unique result is returned.\n6. Return the final column representing the unit cost as the answer.", + "steps": [ + "Identify that `Sales Orders` is the only table needed, as it contains both the order identifier and the `Unit Cost`; no joins are necessary.", + "Map the external knowledge value 'SO - 000103' to the `OrderNumber` column to isolate the target order.", + "Project the `Unit Cost` conditionally, outputting the value for the matched order and NULL for all other rows.", + "Wrap the result in a subquery and filter out NULL entries so only the valid unit cost remains.", + "Apply DISTINCT to the remaining value to ensure a single unique result is returned.", + "Return the final column representing the unit cost as the answer." + ] + }, + "revisql-train:2637": { + "raw": "1. Join `Sales Orders` with `Store Locations` on `_StoreID` = `StoreID` to link every order to its store’s county.\n2. Use the external knowledge that 2020 corresponds to `OrderDate` ending in `/20` to isolate orders from that year.\n3. Filter the joined data to rows where `County` equals `'Maricopa County'`.\n4. Apply the external knowledge that total orders means counting `OrderNumber`, and compute this as a conditional aggregation summing 1 for rows that meet both the year and county conditions and 0 otherwise.\n5. Return a single column containing the final aggregated total.", + "steps": [ + "Join `Sales Orders` with `Store Locations` on `_StoreID` = `StoreID` to link every order to its store’s county.", + "Use the external knowledge that 2020 corresponds to `OrderDate` ending in `/20` to isolate orders from that year.", + "Filter the joined data to rows where `County` equals `'Maricopa County'`.", + "Apply the external knowledge that total orders means counting `OrderNumber`, and compute this as a conditional aggregation summing 1 for rows that meet both the year and county conditions and 0 otherwise.", + "Return a single column containing the final aggregated total." + ] + }, + "revisql-train:2640": { + "raw": "1. Join `Sales Orders` to `Customers` on `_CustomerID` = `CustomerID` to link each order to its customer name.\n2. Filter rows where the last two characters of `OrderDate` equal '18', isolating orders placed in 2018.\n3. Group the joined data by `_CustomerID` to aggregate orders per customer.\n4. Apply a count condition greater than 3 on the grouped orders to keep only customers with more than three orders.\n5. Return the `Customer Names` column from the `Customers` table as the result.", + "steps": [ + "Join `Sales Orders` to `Customers` on `_CustomerID` = `CustomerID` to link each order to its customer name.", + "Filter rows where the last two characters of `OrderDate` equal '18', isolating orders placed in 2018.", + "Group the joined data by `_CustomerID` to aggregate orders per customer.", + "Apply a count condition greater than 3 on the grouped orders to keep only customers with more than three orders.", + "Return the `Customer Names` column from the `Customers` table as the result." + ] + }, + "revisql-train:2643": { + "raw": "1. Join `Sales Orders` to `Sales Team` on `_SalesTeamID` = `SalesTeamID` and restrict to rows where `Sales Team` equals 'Stephen Payne'.\n2. Apply the external net-profit formula to the `Unit Price`, `Unit Cost`, and `Order Quantity` columns by stripping commas from price and cost, casting them to real values, subtracting cost from price, multiplying by quantity, and grouping by `OrderNumber` while summing to obtain total net profit per order.\n3. In an outer query, count orders whose total net profit exceeds 1000, divide that count by the total count of Stephen Payne orders, and multiply by 100.0 to compute the percentage.\n4. Return the single calculated percentage value.", + "steps": [ + "Join `Sales Orders` to `Sales Team` on `_SalesTeamID` = `SalesTeamID` and restrict to rows where `Sales Team` equals 'Stephen Payne'.", + "Apply the external net-profit formula to the `Unit Price`, `Unit Cost`, and `Order Quantity` columns by stripping commas from price and cost, casting them to real values, subtracting cost from price, multiplying by quantity, and grouping by `OrderNumber` while summing to obtain total net profit per order.", + "In an outer query, count orders whose total net profit exceeds 1000, divide that count by the total count of Stephen Payne orders, and multiply by 100.0 to compute the percentage.", + "Return the single calculated percentage value." + ] + }, + "revisql-train:265": { + "raw": "1. Start with the reviews table to retrieve the review text from the Reviews column.\n2. Filter the reviews rows to the specific date '2017-07-22' using the Date column.\n3. Since city names are stored in the district table, join reviews to district on their shared district_id key.\n4. Apply the city filter by restricting district.city to 'Jacksonville'.\n5. Return the Reviews value that satisfies both the date and city conditions.", + "steps": [ + "Start with the reviews table to retrieve the review text from the Reviews column.", + "Filter the reviews rows to the specific date '2017-07-22' using the Date column.", + "Since city names are stored in the district table, join reviews to district on their shared district_id key.", + "Apply the city filter by restricting district.city to 'Jacksonville'.", + "Return the Reviews value that satisfies both the date and city conditions." + ] + }, + "revisql-train:2657": { + "raw": "1. Join the `Sales Orders` table to the `Sales Team` table on `_SalesTeamID` = `SalesTeamID` to link each order to its assigned sales team.\n2. Filter the joined rows to keep only those where the `Sales Team` column equals 'Samuel Fowler'.\n3. Select distinct `OrderNumber` values from `Sales Orders`; no aggregation or ordering is required.\n4. Return the final result as a single column of order numbers.", + "steps": [ + "Join the `Sales Orders` table to the `Sales Team` table on `_SalesTeamID` = `SalesTeamID` to link each order to its assigned sales team.", + "Filter the joined rows to keep only those where the `Sales Team` column equals 'Samuel Fowler'.", + "Select distinct `OrderNumber` values from `Sales Orders`; no aggregation or ordering is required.", + "Return the final result as a single column of order numbers." + ] + }, + "revisql-train:2663": { + "raw": "1. Identify `Store Locations` as the source for StoreID and `Regions` as the source for Region, requiring a join between the two tables.\n2. Join `Regions` to `Store Locations` on the `StateCode` column, which is the common key linking a store to its state's region.\n3. Apply the external knowledge that \"Michigan\" is a state name by filtering rows where the `State` column in `Store Locations` equals \"Michigan\".\n4. Use DISTINCT on the result to ensure each StoreID and Region pair appears only once.\n5. Return the `StoreID` column from `Store Locations` and the `Region` column from `Regions`.", + "steps": [ + "Identify `Store Locations` as the source for StoreID and `Regions` as the source for Region, requiring a join between the two tables.", + "Join `Regions` to `Store Locations` on the `StateCode` column, which is the common key linking a store to its state's region.", + "Apply the external knowledge that \"Michigan\" is a state name by filtering rows where the `State` column in `Store Locations` equals \"Michigan\".", + "Use DISTINCT on the result to ensure each StoreID and Region pair appears only once.", + "Return the `StoreID` column from `Store Locations` and the `Region` column from `Regions`." + ] + }, + "revisql-train:267": { + "raw": "1. Join the `reviews` table with the `district` table on the `district_id` key to connect star ratings to city locations.\n2. Filter `reviews` to rows where `Product` equals 'Eagle Capital' per the external knowledge mapping.\n3. Filter the joined result to rows where `district`.`city` equals 'Little Rock'.\n4. Filter `reviews` to the specific day by requiring `Date` to equal '2013-04-04'.\n5. Sum the `Stars` column and return the result as a single column named `total_stars`.", + "steps": [ + "Join the `reviews` table with the `district` table on the `district_id` key to connect star ratings to city locations.", + "Filter `reviews` to rows where `Product` equals 'Eagle Capital' per the external knowledge mapping.", + "Filter the joined result to rows where `district`.`city` equals 'Little Rock'.", + "Filter `reviews` to the specific day by requiring `Date` to equal '2013-04-04'.", + "Sum the `Stars` column and return the result as a single column named `total_stars`." + ] + }, + "revisql-train:2682": { + "raw": "1. Join Regions to Store Locations on StateCode to associate each store with its region name.\n2. Join Sales Orders to Store Locations on _StoreID = StoreID to connect orders and their warehouse codes to stores.\n3. Filter Sales Orders to only rows where WarehouseCode is 'WARE-UHY1004', applying the external knowledge that this literal is the target warehouse code.\n4. Deduplicate the resulting region values so each region appears only once.\n5. Return the Region column from the Regions table.", + "steps": [ + "Join Regions to Store Locations on StateCode to associate each store with its region name.", + "Join Sales Orders to Store Locations on _StoreID = StoreID to connect orders and their warehouse codes to stores.", + "Filter Sales Orders to only rows where WarehouseCode is 'WARE-UHY1004', applying the external knowledge that this literal is the target warehouse code.", + "Deduplicate the resulting region values so each region appears only once.", + "Return the Region column from the Regions table." + ] + }, + "revisql-train:2683": { + "raw": "1. Start with the `Store Locations` table because the required output is the `City Name` column.\n2. Join `Sales Orders` by matching `StoreLocations.StoreID` to `SalesOrders._StoreID` to connect each store to its transactions.\n3. Join `Sales Team` on `SalesOrders._SalesTeamID` = `SalesTeam.SalesTeamID` and `Products` on `SalesOrders._ProductID` = `Products.ProductID` to bring in the team and product names.\n4. Filter the results to only rows where `Sales Team` equals 'Shawn Torres' and `Product Name` equals 'Audio', applying the external knowledge that maps these names to those specific columns.\n5. Use DISTINCT on `City Name` to remove duplicate cities and return only the `City Name` column.", + "steps": [ + "Start with the `Store Locations` table because the required output is the `City Name` column.", + "Join `Sales Orders` by matching `StoreLocations.StoreID` to `SalesOrders._StoreID` to connect each store to its transactions.", + "Join `Sales Team` on `SalesOrders._SalesTeamID` = `SalesTeam.SalesTeamID` and `Products` on `SalesOrders._ProductID` = `Products.ProductID` to bring in the team and product names.", + "Filter the results to only rows where `Sales Team` equals 'Shawn Torres' and `Product Name` equals 'Audio', applying the external knowledge that maps these names to those specific columns.", + "Use DISTINCT on `City Name` to remove duplicate cities and return only the `City Name` column." + ] + }, + "revisql-train:2687": { + "raw": "1. Join `Sales Orders` to `Sales Team` on `_SalesTeamID` matching `SalesTeamID` to connect every order to its selling team.\n2. For each order line, remove commas from the text columns `Unit Price` and `Unit Cost`, cast the results to real numbers, subtract cost from price, and multiply by `Order Quantity` to get line-level net profit.\n3. Group the records by `SalesTeamID` so profits aggregate per distinct sales team.\n4. Sum the line-level net profits within each group to compute total net profit per team.\n5. Order the grouped results by total net profit in descending order and restrict the output to the first 5 rows.\n6. Return only the `Sales Team` name column.", + "steps": [ + "Join `Sales Orders` to `Sales Team` on `_SalesTeamID` matching `SalesTeamID` to connect every order to its selling team.", + "For each order line, remove commas from the text columns `Unit Price` and `Unit Cost`, cast the results to real numbers, subtract cost from price, and multiply by `Order Quantity` to get line-level net profit.", + "Group the records by `SalesTeamID` so profits aggregate per distinct sales team.", + "Sum the line-level net profits within each group to compute total net profit per team.", + "Order the grouped results by total net profit in descending order and restrict the output to the first 5 rows.", + "Return only the `Sales Team` name column." + ] + }, + "revisql-train:2691": { + "raw": "1. Filter the Sales Orders table to rows where WarehouseCode equals 'WARE-MKL1006', using the external knowledge that this literal maps to the WarehouseCode column.\n2. Group the filtered records by _SalesTeamID and count the number of orders in each group to measure how many times each sales team used that warehouse.\n3. Order those groups by the count in descending order and keep only the first row to isolate the single sales team with the most shipments.\n4. Join that top-team result with the Sales Team table on SalesTeamID = _SalesTeamID.\n5. Return the Region column from the Sales Team table.", + "steps": [ + "Filter the Sales Orders table to rows where WarehouseCode equals 'WARE-MKL1006', using the external knowledge that this literal maps to the WarehouseCode column.", + "Group the filtered records by _SalesTeamID and count the number of orders in each group to measure how many times each sales team used that warehouse.", + "Order those groups by the count in descending order and keep only the first row to isolate the single sales team with the most shipments.", + "Join that top-team result with the Sales Team table on SalesTeamID = _SalesTeamID.", + "Return the Region column from the Sales Team table." + ] + }, + "revisql-train:2692": { + "raw": "1. Compute the maximum `Unit Price` across all rows in `Sales Orders` by first removing any commas from the text values and casting the result to a real number, matching the external knowledge that “highest” means `MAX`.\n2. Join `Sales Orders` to `Store Locations` on `Sales Orders._StoreID` = `Store Locations.StoreID` so each order is linked to its store’s geographic data.\n3. Filter the joined results to keep only the row(s) where the cleaned and cast `Unit Price` equals the maximum value found in step 1.\n4. Return only the `City Name` column from `Store Locations` for the qualifying store.", + "steps": [ + "Compute the maximum `Unit Price` across all rows in `Sales Orders` by first removing any commas from the text values and casting the result to a real number, matching the external knowledge that “highest” means `MAX`.", + "Join `Sales Orders` to `Store Locations` on `Sales Orders._StoreID` = `Store Locations.StoreID` so each order is linked to its store’s geographic data.", + "Filter the joined results to keep only the row(s) where the cleaned and cast `Unit Price` equals the maximum value found in step 1.", + "Return only the `City Name` column from `Store Locations` for the qualifying store." + ] + }, + "revisql-train:2693": { + "raw": "1. Inner join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID` to associate each order with its customer name.\n2. Filter for rows where `Customer Names` equals 'Ole Group', `Sales Channel` equals 'Online', and `OrderDate` matches the pattern '5/%/19' to capture May 2019.\n3. Count the qualifying rows by summing a conditional value that returns 1 when all three filters are satisfied and 0 otherwise.\n4. Return exactly one column: the aggregated total count of those matching online purchases.", + "steps": [ + "Inner join `Sales Orders` with `Customers` on `_CustomerID` = `CustomerID` to associate each order with its customer name.", + "Filter for rows where `Customer Names` equals 'Ole Group', `Sales Channel` equals 'Online', and `OrderDate` matches the pattern '5/%/19' to capture May 2019.", + "Count the qualifying rows by summing a conditional value that returns 1 when all three filters are satisfied and 0 otherwise.", + "Return exactly one column: the aggregated total count of those matching online purchases." + ] + }, + "revisql-train:2696": { + "raw": "1. Join `Sales Orders` with `Store Locations` on `_StoreID` = `StoreID` to link each order to its store’s coordinates.\n2. Filter the joined records to only those where `WarehouseCode` equals 'WARE-PUJ1005'.\n3. Group by `StoreID` (and its `Latitude` and `Longitude`) and count the number of orders per store.\n4. Compute the minimum order count across all grouped stores.\n5. Return the `Latitude` and `Longitude` of the store(s) whose order count equals that minimum.", + "steps": [ + "Join `Sales Orders` with `Store Locations` on `_StoreID` = `StoreID` to link each order to its store’s coordinates.", + "Filter the joined records to only those where `WarehouseCode` equals 'WARE-PUJ1005'.", + "Group by `StoreID` (and its `Latitude` and `Longitude`) and count the number of orders per store.", + "Compute the minimum order count across all grouped stores.", + "Return the `Latitude` and `Longitude` of the store(s) whose order count equals that minimum." + ] + }, + "revisql-train:27": { + "raw": "1. Identify that you need the `ratings` table for score data and the `movies` table for the title and director name.\n2. Join `ratings` and `movies` on the shared `movie_id` key to link each rating to its film.\n3. Filter the joined rows to only those where `movie_title` is exactly 'When Will I Be Loved'.\n4. Aggregate the `rating_score` column by taking its average to get the film's average rating.\n5. Return the calculated average score and the `director_name` column from the `movies` table.", + "steps": [ + "Identify that you need the `ratings` table for score data and the `movies` table for the title and director name.", + "Join `ratings` and `movies` on the shared `movie_id` key to link each rating to its film.", + "Filter the joined rows to only those where `movie_title` is exactly 'When Will I Be Loved'.", + "Aggregate the `rating_score` column by taking its average to get the film's average rating.", + "Return the calculated average score and the `director_name` column from the `movies` table." + ] + }, + "revisql-train:2703": { + "raw": "1. Join Sales Orders to Sales Team on _SalesTeamID equals SalesTeamID to link each order to its responsible team.\n2. Convert the Unit Price text values to real numbers by removing commas and casting, since the column stores formatted text rather than pure numbers.\n3. Apply the external knowledge that highest unit price means the maximum converted Unit Price, computed via a subquery over all Sales Orders.\n4. Filter the joined results to keep only rows where the order’s converted Unit Price matches that overall maximum value.\n5. Return the Sales Team column from the Sales Team table.", + "steps": [ + "Join Sales Orders to Sales Team on _SalesTeamID equals SalesTeamID to link each order to its responsible team.", + "Convert the Unit Price text values to real numbers by removing commas and casting, since the column stores formatted text rather than pure numbers.", + "Apply the external knowledge that highest unit price means the maximum converted Unit Price, computed via a subquery over all Sales Orders.", + "Filter the joined results to keep only rows where the order’s converted Unit Price matches that overall maximum value.", + "Return the Sales Team column from the Sales Team table." + ] + }, + "revisql-train:2721": { + "raw": "1. Join `Store Locations` to `Regions` on `StateCode` and filter to keep only rows where `Region` is 'Northeast'.\n2. Identify the Northeast `StateCode` with the highest number of stores by counting stores per state; the external knowledge that \"highest number of store refers to Max(Count(StoreID))\" maps to finding that maximum count.\n3. Further filter the Northeast `Store Locations` rows to keep only those whose `StateCode` equals the state with that maximum store count.\n4. Group the filtered results by `City Name`, because the metric is needed for each distinct city.\n5. Compute the average `Household Income` within each city group; the external knowledge that \"average household income = Divide(Sum(Household Income), Count(City Name))\" maps to averaging the `Household Income` column.\n6. Return `City Name` and the computed average household income value.", + "steps": [ + "Join `Store Locations` to `Regions` on `StateCode` and filter to keep only rows where `Region` is 'Northeast'.", + "Identify the Northeast `StateCode` with the highest number of stores by counting stores per state; the external knowledge that \"highest number of store refers to Max(Count(StoreID))\" maps to finding that maximum count.", + "Further filter the Northeast `Store Locations` rows to keep only those whose `StateCode` equals the state with that maximum store count.", + "Group the filtered results by `City Name`, because the metric is needed for each distinct city.", + "Compute the average `Household Income` within each city group; the external knowledge that \"average household income = Divide(Sum(Household Income), Count(City Name))\" maps to averaging the `Household Income` column.", + "Return `City Name` and the computed average household income value." + ] + }, + "revisql-train:273": { + "raw": "1. Use only the client table since all requested demographic fields are stored there.\n2. Map full name to the first, middle, and last columns; map date of birth to the year, month, and day columns; map email id to the email column.\n3. Filter rows to elderly clients by requiring age to be greater than 65.\n4. Return exactly the columns first, middle, last, year, month, day, and email.\n5. Order the results by age in descending order.", + "steps": [ + "Use only the client table since all requested demographic fields are stored there.", + "Map full name to the first, middle, and last columns; map date of birth to the year, month, and day columns; map email id to the email column.", + "Filter rows to elderly clients by requiring age to be greater than 65.", + "Return exactly the columns first, middle, last, year, month, day, and email.", + "Order the results by age in descending order." + ] + }, + "revisql-train:2737": { + "raw": "1. Identify `Store Locations` as the table that holds the `Household Income` column along with city and state attributes.\n2. Map the question’s location entities to columns using the external knowledge: “Glendale” belongs to `City Name` and “Arizona” belongs to `State`.\n3. Filter the rows by requiring `City Name` to equal 'Glendale' and `State` to equal 'Arizona'.\n4. Return only the `Household Income` column as the final result.", + "steps": [ + "Identify `Store Locations` as the table that holds the `Household Income` column along with city and state attributes.", + "Map the question’s location entities to columns using the external knowledge: “Glendale” belongs to `City Name` and “Arizona” belongs to `State`.", + "Filter the rows by requiring `City Name` to equal 'Glendale' and `State` to equal 'Arizona'.", + "Return only the `Household Income` column as the final result." + ] + }, + "revisql-train:274": { + "raw": "1. Use the reviews table alone; no joins are required because Product and Stars are both in it.\n2. Filter the rows to only those where Stars equals 5.\n3. Group the filtered results by Product and count the rows in each group to compute the number of five-star reviews per product.\n4. Wrap that grouped query as a derived table so the per-product count can be aggregated again, applying MAX to the count column to satisfy the external knowledge definition of most five stars.\n5. Return the Product column and the maximum count value.", + "steps": [ + "Use the reviews table alone; no joins are required because Product and Stars are both in it.", + "Filter the rows to only those where Stars equals 5.", + "Group the filtered results by Product and count the rows in each group to compute the number of five-star reviews per product.", + "Wrap that grouped query as a derived table so the per-product count can be aggregated again, applying MAX to the count column to satisfy the external knowledge definition of most five stars.", + "Return the Product column and the maximum count value." + ] + }, + "revisql-train:2745": { + "raw": "1. Query the `matchs` table and filter rows to only those where `season` equals 2017.\n2. Map the phrase \"away team scored 2 goals\" to the column `FTAG` having a value of 2.\n3. For the numerator, sum a conditional value that counts 1 when `FTAG` is 2 and 0 otherwise.\n4. For the denominator, count all rows that satisfy the 2017 season filter.\n5. Divide the numerator by the denominator and multiply the result by 100.0 to obtain the percentage.\n6. Return the final calculated value as a single column named `away_two_goal_percentage`.", + "steps": [ + "Query the `matchs` table and filter rows to only those where `season` equals 2017.", + "Map the phrase \"away team scored 2 goals\" to the column `FTAG` having a value of 2.", + "For the numerator, sum a conditional value that counts 1 when `FTAG` is 2 and 0 otherwise.", + "For the denominator, count all rows that satisfy the 2017 season filter.", + "Divide the numerator by the denominator and multiply the result by 100.0 to obtain the percentage.", + "Return the final calculated value as a single column named `away_two_goal_percentage`." + ] + }, + "revisql-train:2748": { + "raw": "1. Join `matchs` to `divisions` on `matchs.Div` = `divisions.division` to access league names.\n2. Filter `matchs.season` to 2019.\n3. Filter `divisions.name` to 'Scottish Championship'.\n4. Filter `matchs.FTHG` to 2 and `matchs.FTAG` to 2 to capture the 2-2 scoreline.\n5. Count the resulting rows and return that single aggregate value.", + "steps": [ + "Join `matchs` to `divisions` on `matchs.Div` = `divisions.division` to access league names.", + "Filter `matchs.season` to 2019.", + "Filter `divisions.name` to 'Scottish Championship'.", + "Filter `matchs.FTHG` to 2 and `matchs.FTAG` to 2 to capture the 2-2 scoreline.", + "Count the resulting rows and return that single aggregate value." + ] + }, + "revisql-train:2750": { + "raw": "1. Join `matchs` to `divisions` on `Div` = `division` to access division metadata for each match.\n2. Filter for rows where `country` = 'Spain', `name` = 'LaLiga', and `season` = 2017.\n3. Group by `HomeTeam`, counting all rows per team as `total_home_matches` and summing only rows where `FTR` = 'H' as `home_wins`.\n4. Compute the percentage as `home_wins` multiplied by `100.0` and divided by `total_home_matches`.\n5. Order by `home_wins` descending, then by `HomeTeam`, and keep only the top row.\n6. Return the columns `HomeTeam` and the calculated win percentage.", + "steps": [ + "Join `matchs` to `divisions` on `Div` = `division` to access division metadata for each match.", + "Filter for rows where `country` = 'Spain', `name` = 'LaLiga', and `season` = 2017.", + "Group by `HomeTeam`, counting all rows per team as `total_home_matches` and summing only rows where `FTR` = 'H' as `home_wins`.", + "Compute the percentage as `home_wins` multiplied by `100.0` and divided by `total_home_matches`.", + "Order by `home_wins` descending, then by `HomeTeam`, and keep only the top row.", + "Return the columns `HomeTeam` and the calculated win percentage." + ] + }, + "revisql-train:2754": { + "raw": "1. Use only the matchs table; joining divisions is unnecessary because the result is a single overall figure, not grouped by division.\n2. Filter to rows where season = 2010, applying the external knowledge that 2010 refers to the season column.\n3. Calculate the home win percentage by counting matches with FTR = 'H', casting that count to a real number, multiplying by 100, and dividing by the total number of matches in the filtered set.\n4. Calculate the away win percentage identically, but counting matches where FTR = 'A'.\n5. Subtract the away win percentage from the home win percentage.\n6. Return exactly one column named DIFFERENCE containing this computed value.", + "steps": [ + "Use only the matchs table; joining divisions is unnecessary because the result is a single overall figure, not grouped by division.", + "Filter to rows where season = 2010, applying the external knowledge that 2010 refers to the season column.", + "Calculate the home win percentage by counting matches with FTR = 'H', casting that count to a real number, multiplying by 100, and dividing by the total number of matches in the filtered set.", + "Calculate the away win percentage identically, but counting matches where FTR = 'A'.", + "Subtract the away win percentage from the home win percentage.", + "Return exactly one column named DIFFERENCE containing this computed value." + ] + }, + "revisql-train:2755": { + "raw": "1. Query the matchs table, filtering to rows where season is 2008 and FTR is D, which corresponds to draft matches.\n2. Group the filtered rows by the Div column to aggregate per division.\n3. Count the number of matches in each division group to quantify the draws.\n4. Order the divisions by that count in descending order and restrict the output to the first row.\n5. Return only the Div column as the answer.", + "steps": [ + "Query the matchs table, filtering to rows where season is 2008 and FTR is D, which corresponds to draft matches.", + "Group the filtered rows by the Div column to aggregate per division.", + "Count the number of matches in each division group to quantify the draws.", + "Order the divisions by that count in descending order and restrict the output to the first row.", + "Return only the Div column as the answer." + ] + }, + "revisql-train:2760": { + "raw": "1. Join matchs with divisions on Div = division to access each match's division name.\n2. Filter for rows where the division name is 'Bundesliga'.\n3. In a subquery, repeat the same join and Bundesliga filter to compute the maximum FTAG within that division.\n4. In the main query, keep only matches whose FTAG equals that subquery maximum.\n5. Return the AwayTeam column for the remaining rows.", + "steps": [ + "Join matchs with divisions on Div = division to access each match's division name.", + "Filter for rows where the division name is 'Bundesliga'.", + "In a subquery, repeat the same join and Bundesliga filter to compute the maximum FTAG within that division.", + "In the main query, keep only matches whose FTAG equals that subquery maximum.", + "Return the AwayTeam column for the remaining rows." + ] + }, + "revisql-train:2764": { + "raw": "1. Join `matchs` to `divisions` on `matchs.Div` = `divisions.division` to link each match to its division name.\n2. Filter for `divisions.name` = 'Seria A', applying the external knowledge that Seria A is a division name.\n3. Filter for `matchs.FTR` = 'D', applying the external knowledge that equal goals indicates a draw result.\n4. Count the rows from `matchs` that satisfy both filters and return that single count column.", + "steps": [ + "Join `matchs` to `divisions` on `matchs.Div` = `divisions.division` to link each match to its division name.", + "Filter for `divisions.name` = 'Seria A', applying the external knowledge that Seria A is a division name.", + "Filter for `matchs.FTR` = 'D', applying the external knowledge that equal goals indicates a draw result.", + "Count the rows from `matchs` that satisfy both filters and return that single count column." + ] + }, + "revisql-train:2766": { + "raw": "1. Target the `divisions` table since it stores division names and their associated countries; no join to `matchs` is required.\n2. Map the external knowledge that \"Netherlands\" is a country to the `country` column.\n3. Filter rows with a WHERE clause where `country` equals 'Netherlands'.\n4. Return only the `name` column to output the football division names.", + "steps": [ + "Target the `divisions` table since it stores division names and their associated countries; no join to `matchs` is required.", + "Map the external knowledge that \"Netherlands\" is a country to the `country` column.", + "Filter rows with a WHERE clause where `country` equals 'Netherlands'.", + "Return only the `name` column to output the football division names." + ] + }, + "revisql-train:2770": { + "raw": "1. Join matchs to divisions on Div = division and restrict to rows where divisions.name is 'Ligue 2'.\n2. Compute each match's total goals as FTHG + FTAG.\n3. Use a subquery that also joins matchs to divisions and filters for 'Ligue 2' to find the maximum value of FTHG + FTAG.\n4. In the outer query, keep only the Ligue 2 match whose total goals equal that subquery maximum.\n5. Return a winner column determined by a CASE on FTR: output HomeTeam if FTR is 'H', AwayTeam if FTR is 'A', otherwise NULL.", + "steps": [ + "Join matchs to divisions on Div = division and restrict to rows where divisions.name is 'Ligue 2'.", + "Compute each match's total goals as FTHG + FTAG.", + "Use a subquery that also joins matchs to divisions and filters for 'Ligue 2' to find the maximum value of FTHG + FTAG.", + "In the outer query, keep only the Ligue 2 match whose total goals equal that subquery maximum.", + "Return a winner column determined by a CASE on FTR: output HomeTeam if FTR is 'H', AwayTeam if FTR is 'A', otherwise NULL." + ] + }, + "revisql-train:2771": { + "raw": "1. Inner join matchs to divisions on matchs.Div = divisions.division to link division identifiers to division names.\n2. Filter the joined rows to only those where divisions.name equals 'LaLiga 2'.\n3. Further filter to rows where matchs.Date equals '2016-03-27'.\n4. Keep only away victories by filtering matchs.FTR to equal 'A'.\n5. Count the matchs.FTR values and return that single aggregated number.", + "steps": [ + "Inner join matchs to divisions on matchs.Div = divisions.division to link division identifiers to division names.", + "Filter the joined rows to only those where divisions.name equals 'LaLiga 2'.", + "Further filter to rows where matchs.Date equals '2016-03-27'.", + "Keep only away victories by filtering matchs.FTR to equal 'A'.", + "Count the matchs.FTR values and return that single aggregated number." + ] + }, + "revisql-train:2775": { + "raw": "1. Filter the matchs table to rows where Date equals 2020-02-22 and the sum of FTHG and FTAG is greater than 4, applying the external date and total-goals definitions to those columns.\n2. Group the filtered records by Div and compute the count of qualifying matches per division.\n3. Join that aggregated set to divisions on Div = division to access each division’s full name.\n4. Order the joined results by the match count in descending order, using division as a secondary ascending sort to break ties.\n5. Restrict the output to the single top row.\n6. Return only the name column from the divisions table.", + "steps": [ + "Filter the matchs table to rows where Date equals 2020-02-22 and the sum of FTHG and FTAG is greater than 4, applying the external date and total-goals definitions to those columns.", + "Group the filtered records by Div and compute the count of qualifying matches per division.", + "Join that aggregated set to divisions on Div = division to access each division’s full name.", + "Order the joined results by the match count in descending order, using division as a secondary ascending sort to break ties.", + "Restrict the output to the single top row.", + "Return only the name column from the divisions table." + ] + }, + "revisql-train:2777": { + "raw": "1. Map the external knowledge to columns: HomeTeam is 'Pro Vercelli', AwayTeam is 'Pescara', a 5-2 score means FTHG = 5 and FTAG = 2, and 'Scottish League One' corresponds to divisions.name.\n2. Find the exact Date from the matchs table for the game where HomeTeam = 'Pro Vercelli', AwayTeam = 'Pescara', FTHG = 5, and FTAG = 2.\n3. Join the matchs table to the divisions table on matchs.Div = divisions.division to bring division names into the match records.\n4. Filter the joined results to only rows where divisions.name = 'Scottish League One' and matchs.Date equals the specific Date found in step 2.\n5. Count the remaining rows, returning the count of Date values as the total number of Scottish League One games on that day.", + "steps": [ + "Map the external knowledge to columns: HomeTeam is 'Pro Vercelli', AwayTeam is 'Pescara', a 5-2 score means FTHG = 5 and FTAG = 2, and 'Scottish League One' corresponds to divisions.name.", + "Find the exact Date from the matchs table for the game where HomeTeam = 'Pro Vercelli', AwayTeam = 'Pescara', FTHG = 5, and FTAG = 2.", + "Join the matchs table to the divisions table on matchs.Div = divisions.division to bring division names into the match records.", + "Filter the joined results to only rows where divisions.name = 'Scottish League One' and matchs.Date equals the specific Date found in step 2.", + "Count the remaining rows, returning the count of Date values as the total number of Scottish League One games on that day." + ] + }, + "revisql-train:2782": { + "raw": "1. Filter the `matchs` table to rows where `FTHG` = 1 and `FTAG` = 1 to isolate only 1-1 draws.\n2. Left join `divisions` on `matchs.Div` = `divisions.division` to access division names.\n3. Apply a conditional counter that returns 1 when `divisions.name` is 'Liga NOS' and 0 otherwise, then sum those values to get the Liga NOS count.\n4. Divide that sum by the total count of all filtered 1-1 rows and multiply by 100.0 to compute the percentage.\n5. Return the final computed value as a single column named `percentage`.", + "steps": [ + "Filter the `matchs` table to rows where `FTHG` = 1 and `FTAG` = 1 to isolate only 1-1 draws.", + "Left join `divisions` on `matchs.Div` = `divisions.division` to access division names.", + "Apply a conditional counter that returns 1 when `divisions.name` is 'Liga NOS' and 0 otherwise, then sum those values to get the Liga NOS count.", + "Divide that sum by the total count of all filtered 1-1 rows and multiply by 100.0 to compute the percentage.", + "Return the final computed value as a single column named `percentage`." + ] + }, + "revisql-train:2784": { + "raw": "1. Join the `matchs` table with the `divisions` table on `matchs.Div = divisions.division` to connect each match to its division name.\n2. Filter the `Date` column in `matchs` to `'2020-10-02'`, mapping the external knowledge date `2020/10/2` to the schema's YYYY-MM-DD format.\n3. Filter the `name` column in `divisions` to `'Bundesliga'`, mapping the external knowledge division name to the corresponding column.\n4. Return only the `HomeTeam` column from the `matchs` table as the result.", + "steps": [ + "Join the `matchs` table with the `divisions` table on `matchs.Div = divisions.division` to connect each match to its division name.", + "Filter the `Date` column in `matchs` to `'2020-10-02'`, mapping the external knowledge date `2020/10/2` to the schema's YYYY-MM-DD format.", + "Filter the `name` column in `divisions` to `'Bundesliga'`, mapping the external knowledge division name to the corresponding column.", + "Return only the `HomeTeam` column from the `matchs` table as the result." + ] + }, + "revisql-train:2789": { + "raw": "1. Join the matchs table to the divisions table on matchs.Div = divisions.division to bring in the division name for each match.\n2. Filter the joined rows to keep only those where divisions.name equals 'Bundesliga'.\n3. Further filter to keep only rows where matchs.FTR equals 'D', mapping the external knowledge that a tie corresponds to a draw result code of 'D'.\n4. Count the remaining rows by aggregating on matchs.Div to compute the total number of tied matches.\n5. Return the single resulting count column.", + "steps": [ + "Join the matchs table to the divisions table on matchs.Div = divisions.division to bring in the division name for each match.", + "Filter the joined rows to keep only those where divisions.name equals 'Bundesliga'.", + "Further filter to keep only rows where matchs.FTR equals 'D', mapping the external knowledge that a tie corresponds to a draw result code of 'D'.", + "Count the remaining rows by aggregating on matchs.Div to compute the total number of tied matches.", + "Return the single resulting count column." + ] + }, + "revisql-train:2794": { + "raw": "1. Join the `matchs` table to the `divisions` table on `matchs.Div = divisions.division` to access division names for each match.\n2. Filter the joined rows to only those where `divisions.name` is 'Bundesliga', using the external knowledge that Bundesliga is a division name.\n3. Further filter the rows to only those where `matchs.season` equals 2021.\n4. Sum the `matchs.FTHG` column (final-time home-team goals) across all remaining rows to get the total.\n5. Return the aggregated sum of `FTHG` as the final result.", + "steps": [ + "Join the `matchs` table to the `divisions` table on `matchs.Div = divisions.division` to access division names for each match.", + "Filter the joined rows to only those where `divisions.name` is 'Bundesliga', using the external knowledge that Bundesliga is a division name.", + "Further filter the rows to only those where `matchs.season` equals 2021.", + "Sum the `matchs.FTHG` column (final-time home-team goals) across all remaining rows to get the total.", + "Return the aggregated sum of `FTHG` as the final result." + ] + }, + "revisql-train:2795": { + "raw": "1. Join `matchs` to `divisions` on `Div` = `division` to enable filtering by division name.\n2. Restrict rows to `name` = 'Division 1A', `season` = 2021, and either `HomeTeam` or `AwayTeam` equal to 'Club Brugge'.\n3. Count wins by summing rows where Club Brugge is home with `FTR` = 'H' or away with `FTR` = 'A'.\n4. Count all rows in the filtered set to obtain total matches played.\n5. Use a CASE expression to return 0 when the total match count is 0, otherwise cast the win sum to REAL, multiply by 100.0, and divide by the total count.\n6. Return the final value as a single column named `win_rate`.", + "steps": [ + "Join `matchs` to `divisions` on `Div` = `division` to enable filtering by division name.", + "Restrict rows to `name` = 'Division 1A', `season` = 2021, and either `HomeTeam` or `AwayTeam` equal to 'Club Brugge'.", + "Count wins by summing rows where Club Brugge is home with `FTR` = 'H' or away with `FTR` = 'A'.", + "Count all rows in the filtered set to obtain total matches played.", + "Use a CASE expression to return 0 when the total match count is 0, otherwise cast the win sum to REAL, multiply by 100.0, and divide by the total count.", + "Return the final value as a single column named `win_rate`." + ] + }, + "revisql-train:2802": { + "raw": "1. Filter the `coaches` table to rows where `year` is between 1970 and 1980 inclusive.\n2. Group by `coachID` and count distinct `year` values to compute each coach’s tenure within that period.\n3. Determine the maximum tenure value across all coaches to find the longest serving duration.\n4. Isolate the `coachID`(s) whose tenure equals that maximum value.\n5. Join those longest-serving `coachID`s back to the filtered `coaches` records to gather every distinct `tmID` they served.\n6. Return `coachID` and `GROUP_CONCAT(DISTINCT tmID)` as the team list, grouping by `coachID`.", + "steps": [ + "Filter the `coaches` table to rows where `year` is between 1970 and 1980 inclusive.", + "Group by `coachID` and count distinct `year` values to compute each coach’s tenure within that period.", + "Determine the maximum tenure value across all coaches to find the longest serving duration.", + "Isolate the `coachID`(s) whose tenure equals that maximum value.", + "Join those longest-serving `coachID`s back to the filtered `coaches` records to gather every distinct `tmID` they served.", + "Return `coachID` and `GROUP_CONCAT(DISTINCT tmID)` as the team list, grouping by `coachID`." + ] + }, + "revisql-train:2807": { + "raw": "1. Query the awards_players table for distinct playerIDs where the award column equals \"All-Defensive First Team\" and the year is between 1980 and 2000, establishing the complete pool of winners.\n2. Join that result with the players table on the playerID key to access birthState, keeping only rows where birthState is 'NY'.\n3. Count the total distinct playerIDs in the winner pool for the denominator, and count the playerIDs that remain after the join and 'NY' filter for the numerator.\n4. Calculate the percentage by casting the numerator count to real, multiplying by 100.0, and dividing by the denominator count to avoid integer division.\n5. Return exactly one column named pct_ny_winners containing the final percentage.", + "steps": [ + "Query the awards_players table for distinct playerIDs where the award column equals \"All-Defensive First Team\" and the year is between 1980 and 2000, establishing the complete pool of winners.", + "Join that result with the players table on the playerID key to access birthState, keeping only rows where birthState is 'NY'.", + "Count the total distinct playerIDs in the winner pool for the denominator, and count the playerIDs that remain after the join and 'NY' filter for the numerator.", + "Calculate the percentage by casting the numerator count to real, multiplying by 100.0, and dividing by the denominator count to avoid integer division.", + "Return exactly one column named pct_ny_winners containing the final percentage." + ] + }, + "revisql-train:282": { + "raw": "1. Join the client table with the events table on client_id matching Client_ID to link each client to their complaint records.\n2. Filter the client table to only those with a year value between 1980 and 2000.\n3. Restrict results to male clients by requiring the sex column to equal 'Male'.\n4. Filter the events table so that only rows where the Submitted via column equals 'Referral' are kept, mapping \"complained through\" to that column.\n5. Return distinct values of the first, middle, and last columns from the client table to output each qualifying client's full name.", + "steps": [ + "Join the client table with the events table on client_id matching Client_ID to link each client to their complaint records.", + "Filter the client table to only those with a year value between 1980 and 2000.", + "Restrict results to male clients by requiring the sex column to equal 'Male'.", + "Filter the events table so that only rows where the Submitted via column equals 'Referral' are kept, mapping \"complained through\" to that column.", + "Return distinct values of the first, middle, and last columns from the client table to output each qualifying client's full name." + ] + }, + "revisql-train:283": { + "raw": "1. Join the `events` table to the `client` table on `events.Client_ID` = `client.client_id` to link each complaint to its client's state.\n2. Filter for Florida by mapping it to `client.state` = 'FL'.\n3. Map \"medium\" to the `events.Submitted via` column and group the filtered results by this column.\n4. Count the number of complaints in each medium group using COUNT(*) to measure volume.\n5. In a subquery, repeat the same join and Florida filter, group by `Submitted via`, order the groups by their complaint counts descending, and limit to 1 to obtain the highest count.\n6. Return the `Submitted via` value from the outer query whose count equals that maximum.", + "steps": [ + "Join the `events` table to the `client` table on `events.Client_ID` = `client.client_id` to link each complaint to its client's state.", + "Filter for Florida by mapping it to `client.state` = 'FL'.", + "Map \"medium\" to the `events.Submitted via` column and group the filtered results by this column.", + "Count the number of complaints in each medium group using COUNT(*) to measure volume.", + "In a subquery, repeat the same join and Florida filter, group by `Submitted via`, order the groups by their complaint counts descending, and limit to 1 to obtain the highest count.", + "Return the `Submitted via` value from the outer query whose count equals that maximum." + ] + }, + "revisql-train:2834": { + "raw": "1. Use the `teams` table since it holds yearly team statistics including scores and team IDs.\n2. Filter to rows where `year` equals 2000.\n3. Order the remaining rows by `o_pts` descending so the highest-scoring teams appear first.\n4. Take only the first 10 rows from that ordered set.\n5. Project just the `tmID` column as the result.", + "steps": [ + "Use the `teams` table since it holds yearly team statistics including scores and team IDs.", + "Filter to rows where `year` equals 2000.", + "Order the remaining rows by `o_pts` descending so the highest-scoring teams appear first.", + "Take only the first 10 rows from that ordered set.", + "Project just the `tmID` column as the result." + ] + }, + "revisql-train:2835": { + "raw": "1. Use the `teams` table, which contains the `won`, `lost`, and `name` columns needed for the calculation and output.\n2. Map the external knowledge to a filter by computing the winning rate as `won` divided by total games (`won + lost`), requiring the result to be below 0.5.\n3. Cast `won` to a real number before dividing to avoid integer truncation, checking that the resulting percentage is strictly less than 50.\n4. Return the `name` column and apply `DISTINCT` so each qualifying team is listed only once.", + "steps": [ + "Use the `teams` table, which contains the `won`, `lost`, and `name` columns needed for the calculation and output.", + "Map the external knowledge to a filter by computing the winning rate as `won` divided by total games (`won + lost`), requiring the result to be below 0.5.", + "Cast `won` to a real number before dividing to avoid integer truncation, checking that the resulting percentage is strictly less than 50.", + "Return the `name` column and apply `DISTINCT` so each qualifying team is listed only once." + ] + }, + "revisql-train:2840": { + "raw": "1. Start from the players table to retrieve last names and the players_teams table to find which players belong to a given team.\n2. Inner join these two tables on the playerID column to match each player identity with their team record.\n3. Filter the joined results to rows where the tmID column in players_teams equals BLB, using the external knowledge that BLB is the team identifier.\n4. Group the results by playerID from the players table to ensure each player is listed only once and avoid duplicate last names.\n5. Return exactly the lastName column from the players table in the final output.", + "steps": [ + "Start from the players table to retrieve last names and the players_teams table to find which players belong to a given team.", + "Inner join these two tables on the playerID column to match each player identity with their team record.", + "Filter the joined results to rows where the tmID column in players_teams equals BLB, using the external knowledge that BLB is the team identifier.", + "Group the results by playerID from the players table to ensure each player is listed only once and avoid duplicate last names.", + "Return exactly the lastName column from the players table in the final output." + ] + }, + "revisql-train:2843": { + "raw": "1. Use the `awards_coaches` table and restrict rows to those with `year` between 1962 and 2011 inclusive.\n2. Apply the external knowledge mapping so that an “NBA award” means `award LIKE 'NBA%'` and an “ABA award” means `award LIKE 'ABA%'`.\n3. First isolate all distinct `coachID`s within that year range that satisfy the NBA-award condition.\n4. From the same table and year range, keep only ABA-award rows whose `coachID` also appears in the NBA set.\n5. Return the count of distinct `coachID` values remaining.", + "steps": [ + "Use the `awards_coaches` table and restrict rows to those with `year` between 1962 and 2011 inclusive.", + "Apply the external knowledge mapping so that an “NBA award” means `award LIKE 'NBA%'` and an “ABA award” means `award LIKE 'ABA%'`.", + "First isolate all distinct `coachID`s within that year range that satisfy the NBA-award condition.", + "From the same table and year range, keep only ABA-award rows whose `coachID` also appears in the NBA set.", + "Return the count of distinct `coachID` values remaining." + ] + }, + "revisql-train:2847": { + "raw": "1. Start with the `players` table for biographical data and the `player_allstar` table to identify all-star players.\n2. Inner join `players` to `player_allstar` on the `playerID` column to keep only players who were all-stars.\n3. Filter the joined rows where `birthCountry` equals 'USA', using the external knowledge that \"USA\" maps to the `birthCountry` column.\n4. Apply the `MAX` aggregation to the `weight` column from `players`, since \"maximum weight\" requires this aggregate function.\n5. Return the single resulting value from the aggregated `weight` column as the answer.", + "steps": [ + "Start with the `players` table for biographical data and the `player_allstar` table to identify all-star players.", + "Inner join `players` to `player_allstar` on the `playerID` column to keep only players who were all-stars.", + "Filter the joined rows where `birthCountry` equals 'USA', using the external knowledge that \"USA\" maps to the `birthCountry` column.", + "Apply the `MAX` aggregation to the `weight` column from `players`, since \"maximum weight\" requires this aggregate function.", + "Return the single resulting value from the aggregated `weight` column as the answer." + ] + }, + "revisql-train:2849": { + "raw": "1. Join the players table with the players_teams table on playerID to combine birth-date information with career rebound statistics.\n2. Filter to rows where players.birthDate is after 1950 and where players_teams.rebounds is not null and greater than zero, satisfying the “born after 1950” constraint and ensuring a valid denominator for the rate.\n3. Group by playerID (carrying lastName and firstName) and compute the career totals by summing oRebounds and summing rebounds across all rows for each player.\n4. Apply the external-knowledge threshold by keeping only those players whose summed oRebounds divided by summed rebounds exceeds 0.30.\n5. Return exactly the lastName and firstName columns for the qualifying players.", + "steps": [ + "Join the players table with the players_teams table on playerID to combine birth-date information with career rebound statistics.", + "Filter to rows where players.birthDate is after 1950 and where players_teams.rebounds is not null and greater than zero, satisfying the “born after 1950” constraint and ensuring a valid denominator for the rate.", + "Group by playerID (carrying lastName and firstName) and compute the career totals by summing oRebounds and summing rebounds across all rows for each player.", + "Apply the external-knowledge threshold by keeping only those players whose summed oRebounds divided by summed rebounds exceeds 0.30.", + "Return exactly the lastName and firstName columns for the qualifying players." + ] + }, + "revisql-train:2851": { + "raw": "1. Join the players_teams table to the player_allstar table on playerID and on year equal to season_id to associate every all-star appearance with the corresponding team.\n2. Group the joined results by tmID from players_teams to aggregate all all-star records for each team across every season.\n3. Count distinct playerID values within each team group to measure how many unique all-star players the team has had over all time.\n4. Apply the external knowledge that \"at least 3 all-star players\" means keeping only groups where the distinct count of playerIDs is greater than or equal to 3.\n5. Return only the tmID column for the teams that meet this threshold.", + "steps": [ + "Join the players_teams table to the player_allstar table on playerID and on year equal to season_id to associate every all-star appearance with the corresponding team.", + "Group the joined results by tmID from players_teams to aggregate all all-star records for each team across every season.", + "Count distinct playerID values within each team group to measure how many unique all-star players the team has had over all time.", + "Apply the external knowledge that \"at least 3 all-star players\" means keeping only groups where the distinct count of playerIDs is greater than or equal to 3.", + "Return only the tmID column for the teams that meet this threshold." + ] + }, + "revisql-train:2855": { + "raw": "1. Use the `players_teams` table for player point totals and team identifiers, and inner join it with `teams` on matching `tmID` and `year` to link each season's stats to the correct team name.\n2. Map \"in 1937\" to a WHERE clause filtering the `year` column to 1937.\n3. Group the joined rows by `teams.name` so that all player records for the same team in that season aggregate together.\n4. Map \"at least 500 points in total\" to a HAVING clause requiring `SUM(points) >= 500` on each team group.\n5. Wrap the grouped query as a derived table and select `COUNT(*)` as the final returned column to get the number of qualifying teams.", + "steps": [ + "Use the `players_teams` table for player point totals and team identifiers, and inner join it with `teams` on matching `tmID` and `year` to link each season's stats to the correct team name.", + "Map \"in 1937\" to a WHERE clause filtering the `year` column to 1937.", + "Group the joined rows by `teams.name` so that all player records for the same team in that season aggregate together.", + "Map \"at least 500 points in total\" to a HAVING clause requiring `SUM(points) >= 500` on each team group.", + "Wrap the grouped query as a derived table and select `COUNT(*)` as the final returned column to get the number of qualifying teams." + ] + }, + "revisql-train:2858": { + "raw": "1. Start from the `draft` table, which contains the draft year and player first names.\n2. Filter rows where `firstName` equals 'Joe' and `draftYear` equals 1970, applying the external knowledge that \"drafted in 1970\" maps to the `draftYear` column.\n3. Handle potential null `playerID` values by forming a unique identifier with `COALESCE(playerID, firstName || ' ' || lastName)`.\n4. Count distinct values of that identifier to avoid double-counting the same player.\n5. Return exactly one column named `num_joe_players` containing the resulting count.", + "steps": [ + "Start from the `draft` table, which contains the draft year and player first names.", + "Filter rows where `firstName` equals 'Joe' and `draftYear` equals 1970, applying the external knowledge that \"drafted in 1970\" maps to the `draftYear` column.", + "Handle potential null `playerID` values by forming a unique identifier with `COALESCE(playerID, firstName || ' ' || lastName)`.", + "Count distinct values of that identifier to avoid double-counting the same player.", + "Return exactly one column named `num_joe_players` containing the resulting count." + ] + }, + "revisql-train:2859": { + "raw": "1. Find George Mikan's playerID (mikange01) in the players table.\n2. Query the players_teams table, filtering rows to that playerID and to years between 1951 and 1953 inclusive.\n3. Map the question's field-goals statistic to the fgMade column.\n4. Sum fgMade across all matching rows to compute the overall total.\n5. Return that total as a single column named total_fg_made.", + "steps": [ + "Find George Mikan's playerID (mikange01) in the players table.", + "Query the players_teams table, filtering rows to that playerID and to years between 1951 and 1953 inclusive.", + "Map the question's field-goals statistic to the fgMade column.", + "Sum fgMade across all matching rows to compute the overall total.", + "Return that total as a single column named total_fg_made." + ] + }, + "revisql-train:286": { + "raw": "1. Join the client table to the events table on client_id (client.client_id = events.Client_ID) to link each client with their complaint records and tags.\n2. Filter the events table to only rows where Tags equals 'Servicemember' to identify complaints from service members.\n3. Filter the client table to only rows where city equals 'Syracuse', applying the external knowledge mapping for Syracuse.\n4. Compute COUNT(DISTINCT client.client_id) to avoid double-counting clients who filed multiple complaints.\n5. Return one column: the count of distinct client IDs.", + "steps": [ + "Join the client table to the events table on client_id (client.client_id = events.Client_ID) to link each client with their complaint records and tags.", + "Filter the events table to only rows where Tags equals 'Servicemember' to identify complaints from service members.", + "Filter the client table to only rows where city equals 'Syracuse', applying the external knowledge mapping for Syracuse.", + "Compute COUNT(DISTINCT client.client_id) to avoid double-counting clients who filed multiple complaints.", + "Return one column: the count of distinct client IDs." + ] + }, + "revisql-train:2860": { + "raw": "1. Target the `players` table, which holds the `height` and `weight` fields required for BMI.\n2. Map the external BMI formula to those columns as `weight * 1.0 / (height * height) * 703`, using `* 1.0` to force real-number division.\n3. Restrict to rows where `weight` and `height` are both non-NULL and greater than 0, discarding invalid or missing measurements.\n4. Compute the overall minimum and maximum of that BMI expression with `MIN` and `MAX`.\n5. Output exactly two columns aliased `min_bmi` and `max_bmi`.", + "steps": [ + "Target the `players` table, which holds the `height` and `weight` fields required for BMI.", + "Map the external BMI formula to those columns as `weight * 1.0 / (height * height) * 703`, using `* 1.0` to force real-number division.", + "Restrict to rows where `weight` and `height` are both non-NULL and greater than 0, discarding invalid or missing measurements.", + "Compute the overall minimum and maximum of that BMI expression with `MIN` and `MAX`.", + "Output exactly two columns aliased `min_bmi` and `max_bmi`." + ] + }, + "revisql-train:2861": { + "raw": "1. Use only the `teams` table, mapping the external knowledge formula to columns `homeLost`, `homeWon`, and `homeLost` (total home games = `homeWon + homeLost`).\n2. Compute the per-year home lost rate for each row as `CAST(homeLost AS REAL) / (homeWon + homeLost)` to force decimal division.\n3. Exclude rows where `homeWon + homeLost` equals 0 to avoid division by zero.\n4. Find the all-time maximum of that computed rate across every row in `teams` using a scalar subquery.\n5. Filter the main query to retain only the row(s) whose calculated rate matches that global maximum.\n6. Return the `name` column.", + "steps": [ + "Use only the `teams` table, mapping the external knowledge formula to columns `homeLost`, `homeWon`, and `homeLost` (total home games = `homeWon + homeLost`).", + "Compute the per-year home lost rate for each row as `CAST(homeLost AS REAL) / (homeWon + homeLost)` to force decimal division.", + "Exclude rows where `homeWon + homeLost` equals 0 to avoid division by zero.", + "Find the all-time maximum of that computed rate across every row in `teams` using a scalar subquery.", + "Filter the main query to retain only the row(s) whose calculated rate matches that global maximum.", + "Return the `name` column." + ] + }, + "revisql-train:2885": { + "raw": "1. Use the coaches table alone; it contains coachID, year, won, and lost, so no joins are necessary.\n2. Filter rows to those where the year column equals 1988, mapping the external knowledge that 'in year 1988' refers to year = 1988.\n3. For each coach, calculate the margin of won minus lost to represent how much more they won than lost, applying the external knowledge that 'most won than lost' means maximizing this difference.\n4. Sort the results by that margin in descending order to place the coach with the greatest win excess at the top.\n5. Keep only the top record and return exactly the coachID column.", + "steps": [ + "Use the coaches table alone; it contains coachID, year, won, and lost, so no joins are necessary.", + "Filter rows to those where the year column equals 1988, mapping the external knowledge that 'in year 1988' refers to year = 1988.", + "For each coach, calculate the margin of won minus lost to represent how much more they won than lost, applying the external knowledge that 'most won than lost' means maximizing this difference.", + "Sort the results by that margin in descending order to place the coach with the greatest win excess at the top.", + "Keep only the top record and return exactly the coachID column." + ] + }, + "revisql-train:2896": { + "raw": "1. Use the players_teams table, which contains the oRebounds and rebounds columns needed for the calculation.\n2. Filter to rows where the year column equals 2000, applying the external knowledge that \"in year 2000\" maps to year = 2000.\n3. Aggregate across all filtered rows by summing the oRebounds column and summing the rebounds column to obtain the respective totals.\n4. Compute the percentage by dividing the total oRebounds by the total rebounds and multiplying the result by 100, per the provided percentage formula.\n5. Return the final calculated value as a single column named percentage_off_reb.", + "steps": [ + "Use the players_teams table, which contains the oRebounds and rebounds columns needed for the calculation.", + "Filter to rows where the year column equals 2000, applying the external knowledge that \"in year 2000\" maps to year = 2000.", + "Aggregate across all filtered rows by summing the oRebounds column and summing the rebounds column to obtain the respective totals.", + "Compute the percentage by dividing the total oRebounds by the total rebounds and multiplying the result by 100, per the provided percentage formula.", + "Return the final calculated value as a single column named percentage_off_reb." + ] + }, + "revisql-train:2922": { + "raw": "1. Join the draft table with the players table on playerID to bring in birthDate for each drafted player.\n2. Filter to rows where draftYear equals 1970, lgID is either ABA or NBA, and birthDate is not null.\n3. Compute each player's age at draft time as draftYear minus the year portion of birthDate.\n4. Use conditional aggregation to compute the average draft age for ABA rows and, separately, for NBA rows.\n5. Subtract the NBA average from the ABA average and return the single value as age_difference.", + "steps": [ + "Join the draft table with the players table on playerID to bring in birthDate for each drafted player.", + "Filter to rows where draftYear equals 1970, lgID is either ABA or NBA, and birthDate is not null.", + "Compute each player's age at draft time as draftYear minus the year portion of birthDate.", + "Use conditional aggregation to compute the average draft age for ABA rows and, separately, for NBA rows.", + "Subtract the NBA average from the ABA average and return the single value as age_difference." + ] + }, + "revisql-train:2927": { + "raw": "1. Use the players_teams table and apply the external knowledge mappings: restrict rows to year = 2003 and lgID = 'NBA'.\n2. Group those rows by playerID, compute each player's assists per game as total assists divided by total games played, order descending by that rate, and keep only the top record to isolate the assist champion's playerID.\n3. Join that champion's playerID back to players_teams on playerID, again filtering the joined set to year = 2003 and lgID = 'NBA'.\n4. Aggregate the joined rows to calculate turnovers per game as the sum of turnovers divided by the sum of games played.\n5. Return the single resulting value in a column named turnovers_per_game.", + "steps": [ + "Use the players_teams table and apply the external knowledge mappings: restrict rows to year = 2003 and lgID = 'NBA'.", + "Group those rows by playerID, compute each player's assists per game as total assists divided by total games played, order descending by that rate, and keep only the top record to isolate the assist champion's playerID.", + "Join that champion's playerID back to players_teams on playerID, again filtering the joined set to year = 2003 and lgID = 'NBA'.", + "Aggregate the joined rows to calculate turnovers per game as the sum of turnovers divided by the sum of games played.", + "Return the single resulting value in a column named turnovers_per_game." + ] + }, + "revisql-train:2934": { + "raw": "1. Join the players_teams table with the teams table on matching tmID and year to combine playoff participation data with season win-loss records.\n2. Filter the joined rows to year 2000 and to PostGP equal to 0, applying the external knowledge that 2000 maps to year = 2000 and that no playoff appearance maps to PostGP = 0.\n3. Calculate each team's winning rate by dividing teams.won by the sum of teams.won and teams.lost, casting the numerator to real to preserve decimal precision, matching the external knowledge definition for most winning rate.\n4. Store the team tmID and its computed win rate in a CTE or derived table, then find the maximum win rate value across all eligible teams.\n5. Return the distinct tmID whose win rate equals that maximum value.", + "steps": [ + "Join the players_teams table with the teams table on matching tmID and year to combine playoff participation data with season win-loss records.", + "Filter the joined rows to year 2000 and to PostGP equal to 0, applying the external knowledge that 2000 maps to year = 2000 and that no playoff appearance maps to PostGP = 0.", + "Calculate each team's winning rate by dividing teams.won by the sum of teams.won and teams.lost, casting the numerator to real to preserve decimal precision, matching the external knowledge definition for most winning rate.", + "Store the team tmID and its computed win rate in a CTE or derived table, then find the maximum win rate value across all eligible teams.", + "Return the distinct tmID whose win rate equals that maximum value." + ] + }, + "revisql-train:2938": { + "raw": "1. Map the draft criteria to the `draft` table: filter `draftYear` to 1976, `draftRound` to 1, and `draftSelection` to 6 to isolate the desired player record.\n2. Keep the `playerID` and `draftYear` from that record to link to the player's seasonal roster information.\n3. Join `players_teams` on `playerID`, adding the condition that `players_teams.year` matches `draft.draftYear` to restrict the result to the same season.\n4. Return the `tmID` column from `players_teams` to identify which team the player actually played for in 1976.", + "steps": [ + "Map the draft criteria to the `draft` table: filter `draftYear` to 1976, `draftRound` to 1, and `draftSelection` to 6 to isolate the desired player record.", + "Keep the `playerID` and `draftYear` from that record to link to the player's seasonal roster information.", + "Join `players_teams` on `playerID`, adding the condition that `players_teams.year` matches `draft.draftYear` to restrict the result to the same season.", + "Return the `tmID` column from `players_teams` to identify which team the player actually played for in 1976." + ] + }, + "revisql-train:2939": { + "raw": "1. Translate the external knowledge into filters on the `draft` table: set `draftYear` to 1998, `draftRound` to 1, and `draftSelection` to 12.\n2. Identify the team by extracting `tmID` from the draft record meeting those criteria.\n3. Join the `draft` table to the `teams` table on `tmID` and by matching `draftYear` to `teams.year` to retrieve the correct season statistics.\n4. Return the `homeWon` column from the `teams` table, as \"home win\" maps directly to that column.", + "steps": [ + "Translate the external knowledge into filters on the `draft` table: set `draftYear` to 1998, `draftRound` to 1, and `draftSelection` to 12.", + "Identify the team by extracting `tmID` from the draft record meeting those criteria.", + "Join the `draft` table to the `teams` table on `tmID` and by matching `draftYear` to `teams.year` to retrieve the correct season statistics.", + "Return the `homeWon` column from the `teams` table, as \"home win\" maps directly to that column." + ] + }, + "revisql-train:2945": { + "raw": "1. In the players_teams table, filter rows where lgID equals 'PBLA', group by playerID, and sum the GP column to compute each player's total PBLA games played.\n2. Determine the maximum value among those summed totals to identify the most PBLA games played.\n3. Keep only the playerID(s) whose total PBLA games equal that maximum value.\n4. Join those playerID(s) to the players table on playerID, and apply the filter that the college column must equal 'Central Missouri State'.\n5. Return the firstName, middleName, and lastName columns from the players table.", + "steps": [ + "In the players_teams table, filter rows where lgID equals 'PBLA', group by playerID, and sum the GP column to compute each player's total PBLA games played.", + "Determine the maximum value among those summed totals to identify the most PBLA games played.", + "Keep only the playerID(s) whose total PBLA games equal that maximum value.", + "Join those playerID(s) to the players table on playerID, and apply the filter that the college column must equal 'Central Missouri State'.", + "Return the firstName, middleName, and lastName columns from the players table." + ] + }, + "revisql-train:2950": { + "raw": "1. Map the term \"birthday\" to the `birthDate` column in the `players` table, which is the final value to return.\n2. Filter the `players_teams` table to rows where `year` equals 2001, applying the external knowledge for the season.\n3. Group those filtered rows by `playerID` and aggregate `rebounds` using SUM to compute each player's total rebounds for 2001.\n4. Determine the league-leading rebound total by ordering those summed values descending and taking the highest one, which corresponds to \"rebounds leader\".\n5. Keep only the `playerID`(s) whose summed rebounds equal that maximum total.\n6. Retrieve `birthDate` from the `players` table for the matching `playerID`(s).", + "steps": [ + "Map the term \"birthday\" to the `birthDate` column in the `players` table, which is the final value to return.", + "Filter the `players_teams` table to rows where `year` equals 2001, applying the external knowledge for the season.", + "Group those filtered rows by `playerID` and aggregate `rebounds` using SUM to compute each player's total rebounds for 2001.", + "Determine the league-leading rebound total by ordering those summed values descending and taking the highest one, which corresponds to \"rebounds leader\".", + "Keep only the `playerID`(s) whose summed rebounds equal that maximum total.", + "Retrieve `birthDate` from the `players` table for the matching `playerID`(s)." + ] + }, + "revisql-train:2958": { + "raw": "1. Start with the works table and filter to rows where Title equals 'Twelfth Night'.\n2. Join chapters to works on works.id = chapters.work_id to get the relevant chapters.\n3. Join paragraphs to chapters on chapters.id = paragraphs.chapter_id to access paragraph-level character references.\n4. Join characters to paragraphs on paragraphs.character_id = characters.id to reach character names.\n5. Apply DISTINCT to characters.CharName because the same character appears across multiple paragraphs.\n6. Return the CharName column as the final output.", + "steps": [ + "Start with the works table and filter to rows where Title equals 'Twelfth Night'.", + "Join chapters to works on works.id = chapters.work_id to get the relevant chapters.", + "Join paragraphs to chapters on chapters.id = paragraphs.chapter_id to access paragraph-level character references.", + "Join characters to paragraphs on paragraphs.character_id = characters.id to reach character names.", + "Apply DISTINCT to characters.CharName because the same character appears across multiple paragraphs.", + "Return the CharName column as the final output." + ] + }, + "revisql-train:2962": { + "raw": "1. Start from the paragraphs table since the goal is to list paragraph IDs.\n2. Inner join the characters table on paragraphs.character_id = characters.id to access character details for each paragraph.\n3. Use the external knowledge to filter characters.Description to the exact value 'son to Tamora'.\n4. Return only the id column from paragraphs.", + "steps": [ + "Start from the paragraphs table since the goal is to list paragraph IDs.", + "Inner join the characters table on paragraphs.character_id = characters.id to access character details for each paragraph.", + "Use the external knowledge to filter characters.Description to the exact value 'son to Tamora'.", + "Return only the id column from paragraphs." + ] + }, + "revisql-train:2968": { + "raw": "1. Use the works table since it stores each play's genre classification.\n2. Map the term \"comedies\" to the GenreType column using the external knowledge that it equals 'Comedy'.\n3. Filter the works rows to only those where GenreType is 'Comedy'.\n4. Count the id values in the filtered result to obtain the total number of matching works.\n5. Return that single aggregated count.", + "steps": [ + "Use the works table since it stores each play's genre classification.", + "Map the term \"comedies\" to the GenreType column using the external knowledge that it equals 'Comedy'.", + "Filter the works rows to only those where GenreType is 'Comedy'.", + "Count the id values in the filtered result to obtain the total number of matching works.", + "Return that single aggregated count." + ] + }, + "revisql-train:2969": { + "raw": "1. Target the works table because it stores both the creation Date and the GenreType classification.\n2. Filter to rows where GenreType equals 'Poem' to isolate only poems.\n3. Compute the minimum value of the Date column to identify the earliest poem.\n4. Return that minimum Date as the final answer.", + "steps": [ + "Target the works table because it stores both the creation Date and the GenreType classification.", + "Filter to rows where GenreType equals 'Poem' to isolate only poems.", + "Compute the minimum value of the Date column to identify the earliest poem.", + "Return that minimum Date as the final answer." + ] + }, + "revisql-train:2970": { + "raw": "1. Use only the characters table; no joins are needed because the abbreviation and character name both reside there.\n2. Map the external knowledge so that \"abbreviation name\" refers to the Abbrev column and the character \"Earl of Westmoreland\" refers to the CharName column.\n3. Filter rows to keep only those where CharName is exactly 'Earl of Westmoreland'.\n4. Apply DISTINCT to the Abbrev values to eliminate any potential duplicates.\n5. Return solely the Abbrev column.", + "steps": [ + "Use only the characters table; no joins are needed because the abbreviation and character name both reside there.", + "Map the external knowledge so that \"abbreviation name\" refers to the Abbrev column and the character \"Earl of Westmoreland\" refers to the CharName column.", + "Filter rows to keep only those where CharName is exactly 'Earl of Westmoreland'.", + "Apply DISTINCT to the Abbrev values to eliminate any potential duplicates.", + "Return solely the Abbrev column." + ] + }, + "revisql-train:2993": { + "raw": "1. Join `chapters` with `paragraphs` on `paragraphs.chapter_id` = `chapters.id` to associate every paragraph with its parent chapter.\n2. Group the outer query by `chapters.id` so you can count how many paragraphs each chapter contains.\n3. In a subquery, repeat the same join and grouping, order the resulting paragraph counts from highest to lowest, and limit to 1 to obtain the maximum paragraph count.\n4. Use a `HAVING` clause in the outer query to keep only the chapter(s) whose paragraph count equals that maximum value from the subquery.\n5. Return the `Description` column from the `chapters` table.", + "steps": [ + "Join `chapters` with `paragraphs` on `paragraphs.chapter_id` = `chapters.id` to associate every paragraph with its parent chapter.", + "Group the outer query by `chapters.id` so you can count how many paragraphs each chapter contains.", + "In a subquery, repeat the same join and grouping, order the resulting paragraph counts from highest to lowest, and limit to 1 to obtain the maximum paragraph count.", + "Use a `HAVING` clause in the outer query to keep only the chapter(s) whose paragraph count equals that maximum value from the subquery.", + "Return the `Description` column from the `chapters` table." + ] + }, + "revisql-train:2997": { + "raw": "1. Start from the `chapters` table and filter to rows where `Act` equals 1.\n2. Group those act-1 chapters by `work_id`, count the `Scene` values in each group, order by that count descending, and take the top `work_id` to identify the work with the highest number of scenes in act 1.\n3. Collect all `id` values from `chapters` where `Act` is 1 and `work_id` matches the work found in step 2.\n4. Move to the `paragraphs` table and keep only rows whose `chapter_id` is in that collected set of chapter IDs.\n5. Count the remaining rows and return the result as a single column named `num_paragraphs`.", + "steps": [ + "Start from the `chapters` table and filter to rows where `Act` equals 1.", + "Group those act-1 chapters by `work_id`, count the `Scene` values in each group, order by that count descending, and take the top `work_id` to identify the work with the highest number of scenes in act 1.", + "Collect all `id` values from `chapters` where `Act` is 1 and `work_id` matches the work found in step 2.", + "Move to the `paragraphs` table and keep only rows whose `chapter_id` is in that collected set of chapter IDs.", + "Count the remaining rows and return the result as a single column named `num_paragraphs`." + ] + }, + "revisql-train:3": { + "raw": "1. Join the `movies` table to the `ratings` table on `movie_id` to connect each film with its rating records.\n2. Group the joined data by `movie_id` and `movie_title` to compute the total number of ratings per movie; the external concept \"most ratings\" maps to counting these grouped `ratings` rows.\n3. In a subquery, repeat the same join and grouping, order the results by the per-movie rating count in descending order, and limit to the first row to obtain the highest count without nesting aggregates.\n4. Filter the outer grouped results so only movies whose rating count equals that subquery maximum are kept, which preserves any ties for the top count.\n5. Return the `movie_title` column for the remaining movies.", + "steps": [ + "Join the `movies` table to the `ratings` table on `movie_id` to connect each film with its rating records.", + "Group the joined data by `movie_id` and `movie_title` to compute the total number of ratings per movie; the external concept \"most ratings\" maps to counting these grouped `ratings` rows.", + "In a subquery, repeat the same join and grouping, order the results by the per-movie rating count in descending order, and limit to the first row to obtain the highest count without nesting aggregates.", + "Filter the outer grouped results so only movies whose rating count equals that subquery maximum are kept, which preserves any ties for the top count.", + "Return the `movie_title` column for the remaining movies." + ] + }, + "revisql-train:3006": { + "raw": "1. Identify that the required output columns are `Title` and `GenreType` from the `works` table.\n2. Join the `chapters` table to `works` using `chapters.work_id = works.id` to access act information for each work.\n3. Group the joined rows by `works.id` to aggregate act counts per individual work.\n4. Apply the external knowledge that a one-act work means exactly one act, filtering the groups to keep only those where the count of distinct `chapters.Act` values equals 1.\n5. Return the `Title` and `GenreType` columns for the works that satisfy the one-act filter.", + "steps": [ + "Identify that the required output columns are `Title` and `GenreType` from the `works` table.", + "Join the `chapters` table to `works` using `chapters.work_id = works.id` to access act information for each work.", + "Group the joined rows by `works.id` to aggregate act counts per individual work.", + "Apply the external knowledge that a one-act work means exactly one act, filtering the groups to keep only those where the count of distinct `chapters.Act` values equals 1.", + "Return the `Title` and `GenreType` columns for the works that satisfy the one-act filter." + ] + }, + "revisql-train:3011": { + "raw": "1. Join paragraphs to chapters on chapter_id, chapters to works on work_id, and paragraphs to characters on character_id to connect every paragraph to its work title and speaking character.\n2. Filter works to LongTitle = 'The Tragedy of Romeo and Juliet' and characters to CharName in 'Romeo' and 'Juliet', applying the external knowledge mappings for the work title and character names.\n3. Group the joined results by CharName to aggregate each character's appearances separately.\n4. Count the paragraphs for each character to serve as the numerator.\n5. Compute the denominator by counting all paragraphs in the same work using a subquery that joins paragraphs, chapters, and works with the same LongTitle filter.\n6. Calculate each percentage by dividing the per-character count by the total work count, multiplying by 100.0, and return CharName alongside that percentage value.", + "steps": [ + "Join paragraphs to chapters on chapter_id, chapters to works on work_id, and paragraphs to characters on character_id to connect every paragraph to its work title and speaking character.", + "Filter works to LongTitle = 'The Tragedy of Romeo and Juliet' and characters to CharName in 'Romeo' and 'Juliet', applying the external knowledge mappings for the work title and character names.", + "Group the joined results by CharName to aggregate each character's appearances separately.", + "Count the paragraphs for each character to serve as the numerator.", + "Compute the denominator by counting all paragraphs in the same work using a subquery that joins paragraphs, chapters, and works with the same LongTitle filter.", + "Calculate each percentage by dividing the per-character count by the total work count, multiplying by 100.0, and return CharName alongside that percentage value." + ] + }, + "revisql-train:3012": { + "raw": "1. Use only the paragraphs table, since it contains both the plain text content and the paragraph identifier needed.\n2. Map the requested \"paragraph number\" to the ParagraphNum column per the external knowledge.\n3. Filter rows by matching the PlainText column exactly to the given sentence, preserving terminal punctuation.\n4. Return solely the ParagraphNum column as the result.", + "steps": [ + "Use only the paragraphs table, since it contains both the plain text content and the paragraph identifier needed.", + "Map the requested \"paragraph number\" to the ParagraphNum column per the external knowledge.", + "Filter rows by matching the PlainText column exactly to the given sentence, preserving terminal punctuation.", + "Return solely the ParagraphNum column as the result." + ] + }, + "revisql-train:3014": { + "raw": "1. Start from the works table, which stores both Title and GenreType.\n2. Use the external knowledge to interpret \"history genre\" as GenreType = 'History'.\n3. Filter rows in works by applying that exact genre condition.\n4. Select only the Title column from the matching rows to produce the list.", + "steps": [ + "Start from the works table, which stores both Title and GenreType.", + "Use the external knowledge to interpret \"history genre\" as GenreType = 'History'.", + "Filter rows in works by applying that exact genre condition.", + "Select only the Title column from the matching rows to produce the list." + ] + }, + "revisql-train:3015": { + "raw": "1. Start from the `chapters` table because it contains the `Act`, `Scene`, and `work_id` columns needed.\n2. Filter to rows where `work_id` equals 9 and `Act` equals 5.\n3. Count distinct values in the `Scene` column so each scene is only counted once.\n4. Return that single aggregated count as the final result.", + "steps": [ + "Start from the `chapters` table because it contains the `Act`, `Scene`, and `work_id` columns needed.", + "Filter to rows where `work_id` equals 9 and `Act` equals 5.", + "Count distinct values in the `Scene` column so each scene is only counted once.", + "Return that single aggregated count as the final result." + ] + }, + "revisql-train:3016": { + "raw": "1. Use the characters table to retrieve name and description data, and the paragraphs table to identify which characters appear in chapter 18710.\n2. Join characters to paragraphs on characters.id = paragraphs.character_id.\n3. Filter the paragraphs table to only rows where chapter_id equals 18710.\n4. Apply DISTINCT to the result set because the same character may speak in multiple paragraphs within that chapter.\n5. Return the CharName and Description columns from the characters table, mapping the requested \"character names\" to CharName.", + "steps": [ + "Use the characters table to retrieve name and description data, and the paragraphs table to identify which characters appear in chapter 18710.", + "Join characters to paragraphs on characters.id = paragraphs.character_id.", + "Filter the paragraphs table to only rows where chapter_id equals 18710.", + "Apply DISTINCT to the result set because the same character may speak in multiple paragraphs within that chapter.", + "Return the CharName and Description columns from the characters table, mapping the requested \"character names\" to CharName." + ] + }, + "revisql-train:3023": { + "raw": "1. Map \"full title\" to the LongTitle column in the works table and map \"character named Servant to Montague\" to characters.Description = 'Servant to Montague'.\n2. Join works to chapters on works.id = chapters.work_id, then chapters to paragraphs on chapters.id = paragraphs.chapter_id, then paragraphs to characters on paragraphs.character_id = characters.id.\n3. Filter the joined results to only rows where characters.Description equals 'Servant to Montague'.\n4. Return distinct values of works.LongTitle to avoid duplicate full titles for the same work.", + "steps": [ + "Map \"full title\" to the LongTitle column in the works table and map \"character named Servant to Montague\" to characters.Description = 'Servant to Montague'.", + "Join works to chapters on works.id = chapters.work_id, then chapters to paragraphs on chapters.id = paragraphs.chapter_id, then paragraphs to characters on paragraphs.character_id = characters.id.", + "Filter the joined results to only rows where characters.Description equals 'Servant to Montague'.", + "Return distinct values of works.LongTitle to avoid duplicate full titles for the same work." + ] + }, + "revisql-train:3026": { + "raw": "1. Join the `chapters` table with `works` on `works.id` = `chapters.work_id` to connect each scene to its play title.\n2. Filter the joined rows to only those where `works.Title` equals 'Antony and Cleopatra', applying the external knowledge mapping of the play name to the title column.\n3. Count all resulting rows to obtain the total number of scenes.\n4. Count distinct values of `chapters.Act` to obtain the number of acts.\n5. Cast the total scene count to a real number and divide it by the act count to compute the average, aliasing the result as `avg_scenes_per_act`.\n6. Return only that single calculated column.", + "steps": [ + "Join the `chapters` table with `works` on `works.id` = `chapters.work_id` to connect each scene to its play title.", + "Filter the joined rows to only those where `works.Title` equals 'Antony and Cleopatra', applying the external knowledge mapping of the play name to the title column.", + "Count all resulting rows to obtain the total number of scenes.", + "Count distinct values of `chapters.Act` to obtain the number of acts.", + "Cast the total scene count to a real number and divide it by the act count to compute the average, aliasing the result as `avg_scenes_per_act`.", + "Return only that single calculated column." + ] + }, + "revisql-train:3030": { + "raw": "1. Use only the `works` table.\n2. Filter rows where `Date` >= 1593 to capture works from 1593 onwards.\n3. Map \"comedy works\" to `GenreType = 'Comedy'` and \"history works\" to `GenreType = 'History'`.\n4. Apply conditional aggregation to count rows for each genre separately within the filtered set.\n5. Subtract the history count from the comedy count and return a single column with that difference.", + "steps": [ + "Use only the `works` table.", + "Filter rows where `Date` >= 1593 to capture works from 1593 onwards.", + "Map \"comedy works\" to `GenreType = 'Comedy'` and \"history works\" to `GenreType = 'History'`.", + "Apply conditional aggregation to count rows for each genre separately within the filtered set.", + "Subtract the history count from the comedy count and return a single column with that difference." + ] + }, + "revisql-train:3033": { + "raw": "1. Use the `characters` table exclusively since no joins are needed.\n2. Map the requested output \"character names\" to the `CharName` column.\n3. Map the external knowledge that \"a senator of Venice\" corresponds to the `Description` column with the exact value 'A senator of Venice'.\n4. Apply a filter restricting rows to those where `Description` equals 'A senator of Venice'.\n5. Return only the `CharName` column in the final result.", + "steps": [ + "Use the `characters` table exclusively since no joins are needed.", + "Map the requested output \"character names\" to the `CharName` column.", + "Map the external knowledge that \"a senator of Venice\" corresponds to the `Description` column with the exact value 'A senator of Venice'.", + "Apply a filter restricting rows to those where `Description` equals 'A senator of Venice'.", + "Return only the `CharName` column in the final result." + ] + }, + "revisql-train:3041": { + "raw": "1. Use the paragraphs table to access paragraph numbers and the characters table to access character names.\n2. Join characters to paragraphs on characters.id = paragraphs.character_id.\n3. Filter for rows where CharName equals 'Aedile', applying the external knowledge that the name Aedile maps to the CharName column.\n4. Return only the ParagraphNum column from the paragraphs table.", + "steps": [ + "Use the paragraphs table to access paragraph numbers and the characters table to access character names.", + "Join characters to paragraphs on characters.id = paragraphs.character_id.", + "Filter for rows where CharName equals 'Aedile', applying the external knowledge that the name Aedile maps to the CharName column.", + "Return only the ParagraphNum column from the paragraphs table." + ] + }, + "revisql-train:3044": { + "raw": "1. Filter the works table to historical works from the 1500s using GenreType = 'History' and Date between 1500 and 1599.\n2. Join this subset with chapters on work_id to relate each work to its chapter rows.\n3. Group by work id and keep only groups having at least five chapter rows to meet the scene threshold.\n4. Compute the denominator as the total count of works identified in step 1.\n5. Compute the numerator as the count of works that survived the filter in step 3.\n6. Return a single column named percentage calculated as 100.0 times the numerator divided by the denominator.", + "steps": [ + "Filter the works table to historical works from the 1500s using GenreType = 'History' and Date between 1500 and 1599.", + "Join this subset with chapters on work_id to relate each work to its chapter rows.", + "Group by work id and keep only groups having at least five chapter rows to meet the scene threshold.", + "Compute the denominator as the total count of works identified in step 1.", + "Compute the numerator as the count of works that survived the filter in step 3.", + "Return a single column named percentage calculated as 100.0 times the numerator divided by the denominator." + ] + }, + "revisql-train:3046": { + "raw": "1. Use the works table as the sole source since it holds the genre classification and unique work identifiers.\n2. Map the term \"Tragedy\" to the GenreType column, filtering rows where GenreType equals 'Tragedy' per the external knowledge.\n3. Do not join any other tables because the required information is fully contained within works.\n4. Count the id column in works to compute the total number of tragedy works.\n5. Return the count of the id column as the answer.", + "steps": [ + "Use the works table as the sole source since it holds the genre classification and unique work identifiers.", + "Map the term \"Tragedy\" to the GenreType column, filtering rows where GenreType equals 'Tragedy' per the external knowledge.", + "Do not join any other tables because the required information is fully contained within works.", + "Count the id column in works to compute the total number of tragedy works.", + "Return the count of the id column as the answer." + ] + }, + "revisql-train:3056": { + "raw": "1. Join works to chapters on work_id, then chapters to paragraphs on chapter_id, and paragraphs to characters on character_id to link the play title, act/scene, spoken lines, and speaker name.\n2. Filter works.Title to 'Twelfth Night' using the external knowledge mapping for the play.\n3. Filter chapters to Act = 1 and Scene = 2 to isolate the requested scene.\n4. Filter characters.CharName to 'Viola' using the external knowledge mapping for the character.\n5. Count the paragraph IDs (or the joined character IDs) to compute the total number of lines spoken.\n6. Return only that single aggregated count column as the answer.", + "steps": [ + "Join works to chapters on work_id, then chapters to paragraphs on chapter_id, and paragraphs to characters on character_id to link the play title, act/scene, spoken lines, and speaker name.", + "Filter works.Title to 'Twelfth Night' using the external knowledge mapping for the play.", + "Filter chapters to Act = 1 and Scene = 2 to isolate the requested scene.", + "Filter characters.CharName to 'Viola' using the external knowledge mapping for the character.", + "Count the paragraph IDs (or the joined character IDs) to compute the total number of lines spoken.", + "Return only that single aggregated count column as the answer." + ] + }, + "revisql-train:3059": { + "raw": "1. Identify that scene numbers come from the Scene column in chapters, the work title comes from Title in works, and the character name comes from CharName in characters; use the paragraphs table as the bridge linking chapters to characters.\n2. Join works to chapters on works.id = chapters.work_id, then join chapters to paragraphs on chapters.id = paragraphs.chapter_id, then join paragraphs to characters on paragraphs.character_id = characters.id.\n3. Apply the filters: works.Title = 'Twelfth Night' and characters.CharName = 'Sir Toby Belch', mapping the external knowledge directly to these column values.\n4. Use DISTINCT on the Scene column from chapters to avoid duplicate scene numbers since a character may appear multiple times in the same scene.\n5. Return only the Scene column from chapters.", + "steps": [ + "Identify that scene numbers come from the Scene column in chapters, the work title comes from Title in works, and the character name comes from CharName in characters; use the paragraphs table as the bridge linking chapters to characters.", + "Join works to chapters on works.id = chapters.work_id, then join chapters to paragraphs on chapters.id = paragraphs.chapter_id, then join paragraphs to characters on paragraphs.character_id = characters.id.", + "Apply the filters: works.Title = 'Twelfth Night' and characters.CharName = 'Sir Toby Belch', mapping the external knowledge directly to these column values.", + "Use DISTINCT on the Scene column from chapters to avoid duplicate scene numbers since a character may appear multiple times in the same scene.", + "Return only the Scene column from chapters." + ] + }, + "revisql-train:3064": { + "raw": "1. Join the data table with the price table on the ID column so that each car’s weight is paired with its corresponding price.\n2. Map the external knowledge phrase “over 3000lbs” to the data.weight column and keep only rows where weight is greater than 3000.\n3. Map the external knowledge phrase “cost less than $30000” to the price.price column and keep only rows where price is less than 30000.\n4. Count the values in the data.car_name column for the filtered rows and return that count as the answer.", + "steps": [ + "Join the data table with the price table on the ID column so that each car’s weight is paired with its corresponding price.", + "Map the external knowledge phrase “over 3000lbs” to the data.weight column and keep only rows where weight is greater than 3000.", + "Map the external knowledge phrase “cost less than $30000” to the price.price column and keep only rows where price is less than 30000.", + "Count the values in the data.car_name column for the filtered rows and return that count as the answer." + ] + }, + "revisql-train:3066": { + "raw": "1. Identify that the car name is stored in the `data` table and the monetary cost is stored in the `price` table.\n2. Inner join `data` and `price` on the `ID` column to associate each car with its corresponding price.\n3. Filter the joined rows to only those where `data.car_name` equals 'ford torino', applying the external knowledge that Ford Torino refers to that exact car name.\n4. Return the `price` column from the `price` table, since the external knowledge maps cost to that column, giving the value in US dollars.", + "steps": [ + "Identify that the car name is stored in the `data` table and the monetary cost is stored in the `price` table.", + "Inner join `data` and `price` on the `ID` column to associate each car with its corresponding price.", + "Filter the joined rows to only those where `data.car_name` equals 'ford torino', applying the external knowledge that Ford Torino refers to that exact car name.", + "Return the `price` column from the `price` table, since the external knowledge maps cost to that column, giving the value in US dollars." + ] + }, + "revisql-train:3067": { + "raw": "1. Filter the data table to rows where car_name equals 'ford torino', mapping the external knowledge for the car model to that column.\n2. Join production on data.ID = production.ID to access the model year and country identifier for the matched car.\n3. Restrict the joined production records to model_year = 1970, applying the external knowledge that \"produced in 1970\" refers to this column.\n4. Join country on production.country = country.origin to resolve the foreign key into the actual origin country name.\n5. Return the country column from the country table as the origin country.", + "steps": [ + "Filter the data table to rows where car_name equals 'ford torino', mapping the external knowledge for the car model to that column.", + "Join production on data.ID = production.ID to access the model year and country identifier for the matched car.", + "Restrict the joined production records to model_year = 1970, applying the external knowledge that \"produced in 1970\" refers to this column.", + "Join country on production.country = country.origin to resolve the foreign key into the actual origin country name.", + "Return the country column from the country table as the origin country." + ] + }, + "revisql-train:3081": { + "raw": "1. Filter the price table for the record where the price column equals 44274.40748.\n2. Join that price record to the production table on the shared ID column to obtain the corresponding country identifier.\n3. Join the production table to the country table on production.country matching country.origin to resolve the origin country name.\n4. Return the country column from the country table.", + "steps": [ + "Filter the price table for the record where the price column equals 44274.40748.", + "Join that price record to the production table on the shared ID column to obtain the corresponding country identifier.", + "Join the production table to the country table on production.country matching country.origin to resolve the origin country name.", + "Return the country column from the country table." + ] + }, + "revisql-train:3082": { + "raw": "1. Map the question's term \"cost\" to the `price` column in the `price` table, and note that car identity and acceleration are stored in the `data` table.\n2. Join `data` to `price` on the shared `ID` column to link each car's attributes with its corresponding cost.\n3. Filter `data` to rows where `car_name` equals 'volkswagen dasher'.\n4. Further filter those rows to only those where `acceleration` equals 14.1, applying the external knowledge that \"14.1 mph acceleration\" maps to that column value.\n5. Return only the `price` column from the `price` table.", + "steps": [ + "Map the question's term \"cost\" to the `price` column in the `price` table, and note that car identity and acceleration are stored in the `data` table.", + "Join `data` to `price` on the shared `ID` column to link each car's attributes with its corresponding cost.", + "Filter `data` to rows where `car_name` equals 'volkswagen dasher'.", + "Further filter those rows to only those where `acceleration` equals 14.1, applying the external knowledge that \"14.1 mph acceleration\" maps to that column value.", + "Return only the `price` column from the `price` table." + ] + }, + "revisql-train:3083": { + "raw": "1. Map \"engine displacement status\" to the `displacement` column in the `data` table.\n2. Map the \"$37443.85589 car\" to a filter on `price.price` equal to 37443.85589.\n3. Join the `data` table with the `price` table on their shared `ID` key to link car attributes with its price.\n4. Apply the price filter to isolate the single matching car record.\n5. Return only the `displacement` value from the `data` table.", + "steps": [ + "Map \"engine displacement status\" to the `displacement` column in the `data` table.", + "Map the \"$37443.85589 car\" to a filter on `price.price` equal to 37443.85589.", + "Join the `data` table with the `price` table on their shared `ID` key to link car attributes with its price.", + "Apply the price filter to isolate the single matching car record.", + "Return only the `displacement` value from the `data` table." + ] + }, + "revisql-train:3085": { + "raw": "1. Use the `data` table to locate the car record and the `price` table to retrieve its cost.\n2. Join `data` to `price` on the `ID` column, which links each car to its corresponding price.\n3. Filter `data.car_name` to the exact value `'toyota corona hardtop'` using the provided external knowledge mapping.\n4. Return only the `price` column from the `price` table for the matching record.", + "steps": [ + "Use the `data` table to locate the car record and the `price` table to retrieve its cost.", + "Join `data` to `price` on the `ID` column, which links each car to its corresponding price.", + "Filter `data.car_name` to the exact value `'toyota corona hardtop'` using the provided external knowledge mapping.", + "Return only the `price` column from the `price` table for the matching record." + ] + }, + "revisql-train:3090": { + "raw": "1. Join the `data` and `price` tables on their shared `ID` column to link engine specifications with cost.\n2. Filter the joined rows to the single car whose `price` equals 34538.97449.\n3. Compute the swept volume by dividing that car's `displacement` by its `cylinders`.\n4. Return the resulting quotient as the answer.", + "steps": [ + "Join the `data` and `price` tables on their shared `ID` column to link engine specifications with cost.", + "Filter the joined rows to the single car whose `price` equals 34538.97449.", + "Compute the swept volume by dividing that car's `displacement` by its `cylinders`.", + "Return the resulting quotient as the answer." + ] + }, + "revisql-train:3091": { + "raw": "1. Map the phrase \"name of the car\" to the `car_name` column in the `data` table and \"the most expensive\" to the maximum value of the `price` column in the `price` table.\n2. Join the `data` and `price` tables on their shared `ID` key so every car record is paired with its corresponding price.\n3. Compute the overall maximum price by running a subquery that performs the same `data`-`price` join and applies the `MAX` aggregate to the `price` column.\n4. Filter the main joined result set to retain only rows where the car's `price` equals the value returned by that subquery.\n5. Return only the `car_name` column from the filtered rows.", + "steps": [ + "Map the phrase \"name of the car\" to the `car_name` column in the `data` table and \"the most expensive\" to the maximum value of the `price` column in the `price` table.", + "Join the `data` and `price` tables on their shared `ID` key so every car record is paired with its corresponding price.", + "Compute the overall maximum price by running a subquery that performs the same `data`-`price` join and applies the `MAX` aggregate to the `price` column.", + "Filter the main joined result set to retain only rows where the car's `price` equals the value returned by that subquery.", + "Return only the `car_name` column from the filtered rows." + ] + }, + "revisql-train:3094": { + "raw": "1. Join data to production on ID, and production to country on production.country = country.origin to link cars with their origin countries.\n2. Filter for country.country = 'Japan' to capture only cars made by Japan.\n3. Compute the maximum horsepower among Japanese cars via a subquery that repeats the same joins and Japan filter, mapping \"fastest\" to max(horsepower).\n4. In the main query, keep only Japanese cars whose data.horsepower equals that subquery maximum.\n5. Return distinct car_name as the final answer column.", + "steps": [ + "Join data to production on ID, and production to country on production.country = country.origin to link cars with their origin countries.", + "Filter for country.country = 'Japan' to capture only cars made by Japan.", + "Compute the maximum horsepower among Japanese cars via a subquery that repeats the same joins and Japan filter, mapping \"fastest\" to max(horsepower).", + "In the main query, keep only Japanese cars whose data.horsepower equals that subquery maximum.", + "Return distinct car_name as the final answer column." + ] + }, + "revisql-train:3095": { + "raw": "1. Map the external knowledge for \"Ford Maverick\" to the data.car_name column with the exact value 'ford maverick'.\n2. Join the data table with the production table on the shared ID key to access each car's model years.\n3. Treat production.model_year as the metric for times introduced to the market.\n4. Count distinct production.model_year values to tally unique introductions without double-counting repeated years.\n5. Return only that single aggregated count.", + "steps": [ + "Map the external knowledge for \"Ford Maverick\" to the data.car_name column with the exact value 'ford maverick'.", + "Join the data table with the production table on the shared ID key to access each car's model years.", + "Treat production.model_year as the metric for times introduced to the market.", + "Count distinct production.model_year values to tally unique introductions without double-counting repeated years.", + "Return only that single aggregated count." + ] + }, + "revisql-train:3098": { + "raw": "1. Join the price, production, country, and data tables using ID and origin keys to connect each car’s name with its price and manufacturing country.\n2. Filter for USA-produced cars by requiring the country column to equal 'USA'.\n3. In a subquery using the same table joins and USA filter, compute the maximum price among only those USA-produced cars.\n4. In the main query, restrict the results to USA cars whose price equals that subquery maximum.\n5. Return the car_name column from the data table.", + "steps": [ + "Join the price, production, country, and data tables using ID and origin keys to connect each car’s name with its price and manufacturing country.", + "Filter for USA-produced cars by requiring the country column to equal 'USA'.", + "In a subquery using the same table joins and USA filter, compute the maximum price among only those USA-produced cars.", + "In the main query, restrict the results to USA cars whose price equals that subquery maximum.", + "Return the car_name column from the data table." + ] + }, + "revisql-train:310": { + "raw": "1. Join the client table to the events table on client_id = Client_ID to link each client with their complaints.\n2. Filter client.sex to 'Female' and client.year to 2000 to restrict to female clients born in 2000.\n3. Filter the events table so that Submitted via is not equal to 'Web', mapping the external knowledge that not sent through the web means Submitted via != 'Web'.\n4. Count the matching complaint records from the events side to total the qualifying complaints.\n5. Return the single aggregated count value.", + "steps": [ + "Join the client table to the events table on client_id = Client_ID to link each client with their complaints.", + "Filter client.sex to 'Female' and client.year to 2000 to restrict to female clients born in 2000.", + "Filter the events table so that Submitted via is not equal to 'Web', mapping the external knowledge that not sent through the web means Submitted via != 'Web'.", + "Count the matching complaint records from the events side to total the qualifying complaints.", + "Return the single aggregated count value." + ] + }, + "revisql-train:3104": { + "raw": "1. Filter the `data` table to rows where `displacement / cylinders >= 30` (mapping sweep volume no less than 30) and collect the distinct `ID`s as the eligible pool.\n2. Join that eligible pool with `production` on `ID`, then join `country` on `production.country = country.origin`, and filter to rows where `country.country = 'Japan'` (mapping produced by Japan); keep distinct `ID`s.\n3. Count the rows in the Japan subset and in the overall eligible subset.\n4. Divide the Japan count by the eligible count, multiply by `100.0`, and return the result as a single column named `percentage`.", + "steps": [ + "Filter the `data` table to rows where `displacement / cylinders >= 30` (mapping sweep volume no less than 30) and collect the distinct `ID`s as the eligible pool.", + "Join that eligible pool with `production` on `ID`, then join `country` on `production.country = country.origin`, and filter to rows where `country.country = 'Japan'` (mapping produced by Japan); keep distinct `ID`s.", + "Count the rows in the Japan subset and in the overall eligible subset.", + "Divide the Japan count by the eligible count, multiply by `100.0`, and return the result as a single column named `percentage`." + ] + }, + "revisql-train:3106": { + "raw": "1. Join the production table with country on production.country = country.origin, then filter for rows where country.country equals 'Europe' to apply the external knowledge mapping \"from Europe\" to that specific country name.\n2. From that joined and filtered set, select distinct production.ID values to identify all unique cars originating from Europe.\n3. Query the price table and restrict its rows to only those price.ID values that appear in the distinct European car IDs identified above.\n4. Apply the AVG aggregate function to the price column of the filtered price table to compute the average price.\n5. Return the result as a single column named avg_price.", + "steps": [ + "Join the production table with country on production.country = country.origin, then filter for rows where country.country equals 'Europe' to apply the external knowledge mapping \"from Europe\" to that specific country name.", + "From that joined and filtered set, select distinct production.ID values to identify all unique cars originating from Europe.", + "Query the price table and restrict its rows to only those price.ID values that appear in the distinct European car IDs identified above.", + "Apply the AVG aggregate function to the price column of the filtered price table to compute the average price.", + "Return the result as a single column named avg_price." + ] + }, + "revisql-train:3107": { + "raw": "1. Use the `data` table to identify the car and the `price` table to retrieve its cost.\n2. Inner join `data` and `price` on the `ID` column, using the foreign key relationship linking each car to its price.\n3. Filter the joined rows to keep only the record where `ID` equals 15.\n4. Return the `price` column from the `price` table.", + "steps": [ + "Use the `data` table to identify the car and the `price` table to retrieve its cost.", + "Inner join `data` and `price` on the `ID` column, using the foreign key relationship linking each car to its price.", + "Filter the joined rows to keep only the record where `ID` equals 15.", + "Return the `price` column from the `price` table." + ] + }, + "revisql-train:3110": { + "raw": "1. Identify that you need the price, production, country, and data tables to check cost, origin, and acceleration while retrieving the car ID.\n2. Join price to production on ID, then join production to country on production.country = country.origin to resolve the origin name.\n3. Join data to price on ID to bring in the acceleration attribute.\n4. Filter rows where country.country equals 'Japan' per the external knowledge mapping for origin.\n5. Filter rows where price.price exceeds 25000 per the external knowledge mapping for value.\n6. Filter rows where data.acceleration equals 14 per the external knowledge mapping, then return distinct data.ID.", + "steps": [ + "Identify that you need the price, production, country, and data tables to check cost, origin, and acceleration while retrieving the car ID.", + "Join price to production on ID, then join production to country on production.country = country.origin to resolve the origin name.", + "Join data to price on ID to bring in the acceleration attribute.", + "Filter rows where country.country equals 'Japan' per the external knowledge mapping for origin.", + "Filter rows where price.price exceeds 25000 per the external knowledge mapping for value.", + "Filter rows where data.acceleration equals 14 per the external knowledge mapping, then return distinct data.ID." + ] + }, + "revisql-train:3115": { + "raw": "1. Start with the `price` table to evaluate car worth and join it to `production` on `ID` to access each car's country linkage.\n2. Join `country` to that result on `country.origin = production.country` to resolve the country identifier into a name.\n3. Filter for rows where `price` exceeds 40000 and `country` equals 'USA', applying the external knowledge mappings for \"worth greater than 40000\" and \"from the USA\".\n4. Count distinct `ID`s to ensure each car is counted only once, since a car may have multiple model-year entries in `production`.\n5. Return that count as the final answer.", + "steps": [ + "Start with the `price` table to evaluate car worth and join it to `production` on `ID` to access each car's country linkage.", + "Join `country` to that result on `country.origin = production.country` to resolve the country identifier into a name.", + "Filter for rows where `price` exceeds 40000 and `country` equals 'USA', applying the external knowledge mappings for \"worth greater than 40000\" and \"from the USA\".", + "Count distinct `ID`s to ensure each car is counted only once, since a car may have multiple model-year entries in `production`.", + "Return that count as the final answer." + ] + }, + "revisql-train:3120": { + "raw": "1. Start with the data table to access the mpg values for every car.\n2. Join the production table on ID to connect each car to its country identifier.\n3. Join the country table on origin = production.country to resolve the country identifier into the country name.\n4. Apply the external knowledge that lowest mileage per gallon corresponds to the minimum mpg by sorting the results in ascending order on the mpg column.\n5. Limit the output to the first row to isolate the single car with the lowest mpg.\n6. Return only the country name column from the country table.", + "steps": [ + "Start with the data table to access the mpg values for every car.", + "Join the production table on ID to connect each car to its country identifier.", + "Join the country table on origin = production.country to resolve the country identifier into the country name.", + "Apply the external knowledge that lowest mileage per gallon corresponds to the minimum mpg by sorting the results in ascending order on the mpg column.", + "Limit the output to the first row to isolate the single car with the lowest mpg.", + "Return only the country name column from the country table." + ] + }, + "revisql-train:3122": { + "raw": "1. Use the data table to retrieve car_name and horsepower, and join it to production on ID to access model_year and country linkage.\n2. Join the country table to production on origin = country to enable filtering by country name.\n3. Map \"introduced in 1977\" to the filter production.model_year = 1977.\n4. Map \"from Europe\" to the filter country.country = 'Europe'.\n5. Return the columns car_name and horsepower from data.", + "steps": [ + "Use the data table to retrieve car_name and horsepower, and join it to production on ID to access model_year and country linkage.", + "Join the country table to production on origin = country to enable filtering by country name.", + "Map \"introduced in 1977\" to the filter production.model_year = 1977.", + "Map \"from Europe\" to the filter country.country = 'Europe'.", + "Return the columns car_name and horsepower from data." + ] + }, + "revisql-train:3124": { + "raw": "1. Start with the `data` table and use the external knowledge to map \"Chevrolet Bel Air\" to a filter on `car_name` equal to 'chevrolet bel air'.\n2. Join the `price` table to `data` using the shared `ID` key, since pricing information is stored separately from car details.\n3. Apply the filter to keep only the row where `data.car_name` matches 'chevrolet bel air'.\n4. Return the `price` column from the `price` table as the final result.", + "steps": [ + "Start with the `data` table and use the external knowledge to map \"Chevrolet Bel Air\" to a filter on `car_name` equal to 'chevrolet bel air'.", + "Join the `price` table to `data` using the shared `ID` key, since pricing information is stored separately from car details.", + "Apply the filter to keep only the row where `data.car_name` matches 'chevrolet bel air'.", + "Return the `price` column from the `price` table as the final result." + ] + }, + "revisql-train:3125": { + "raw": "1. Join `production` with `country` on `country.origin = production.country` and filter to rows where `country.country = 'Japan'`.\n2. Select distinct `production.ID` values from that filtered set so each car is counted only once, avoiding duplicates from multiple model years.\n3. Join those distinct Japanese car IDs with the `price` table on `ID` to retrieve each car's price.\n4. Compute `AVG(price)` across the matched rows to get the average price per car.\n5. Return the single aggregated average price column.", + "steps": [ + "Join `production` with `country` on `country.origin = production.country` and filter to rows where `country.country = 'Japan'`.", + "Select distinct `production.ID` values from that filtered set so each car is counted only once, avoiding duplicates from multiple model years.", + "Join those distinct Japanese car IDs with the `price` table on `ID` to retrieve each car's price.", + "Compute `AVG(price)` across the matched rows to get the average price per car.", + "Return the single aggregated average price column." + ] + }, + "revisql-train:3127": { + "raw": "1. Join the `data`, `production`, and `country` tables on `ID` and `origin` to connect each car to its production year and country name.\n2. Filter the joined records to only those with `production.model_year` equal to 1975.\n3. Calculate the maximum `cylinders` value across all cars produced in 1975 by querying `data` joined with `production` using the same year filter.\n4. Further filter the 1975 records to keep only cars whose `cylinders` equal that maximum value.\n5. Return the car `ID`, `car_name`, and producing `country` for the remaining rows.", + "steps": [ + "Join the `data`, `production`, and `country` tables on `ID` and `origin` to connect each car to its production year and country name.", + "Filter the joined records to only those with `production.model_year` equal to 1975.", + "Calculate the maximum `cylinders` value across all cars produced in 1975 by querying `data` joined with `production` using the same year filter.", + "Further filter the 1975 records to keep only cars whose `cylinders` equal that maximum value.", + "Return the car `ID`, `car_name`, and producing `country` for the remaining rows." + ] + }, + "revisql-train:3129": { + "raw": "1. Identify that car names and the mileage and model filters reside in the `data` table, while prices reside in the `price` table, and join these two tables on their common `ID` column.\n2. Filter the joined results to only keep rows where the `model` column in `data` equals 82.\n3. Further filter those rows to only those where the `mpg` column in `data` is greater than 30.\n4. Return the `car_name` column from `data` and the `price` column from `price`.", + "steps": [ + "Identify that car names and the mileage and model filters reside in the `data` table, while prices reside in the `price` table, and join these two tables on their common `ID` column.", + "Filter the joined results to only keep rows where the `model` column in `data` equals 82.", + "Further filter those rows to only those where the `mpg` column in `data` is greater than 30.", + "Return the `car_name` column from `data` and the `price` column from `price`." + ] + }, + "revisql-train:3133": { + "raw": "1. Identify that the `data` table holds the `model` year and the `price` table holds the car price, so both tables are required.\n2. Join `data` and `price` on the `ID` column, which links each car record to its corresponding price record.\n3. Map the external knowledge \"model 70\" to the `data.model` column and filter for rows where `model` equals 70.\n4. Compute the average of the `price` column from the `price` table across the filtered rows.\n5. Return only the aggregated average price column.", + "steps": [ + "Identify that the `data` table holds the `model` year and the `price` table holds the car price, so both tables are required.", + "Join `data` and `price` on the `ID` column, which links each car record to its corresponding price record.", + "Map the external knowledge \"model 70\" to the `data.model` column and filter for rows where `model` equals 70.", + "Compute the average of the `price` column from the `price` table across the filtered rows.", + "Return only the aggregated average price column." + ] + }, + "revisql-train:3136": { + "raw": "1. Join the data table to production on ID, then join production to price on ID, to bring together car_name, model_year, and price in a single result set.\n2. Filter data.car_name using LIKE 'ford%' to isolate Ford vehicles, applying the external knowledge mapping.\n3. Filter production.model_year using BETWEEN 1970 AND 1980 to restrict to the specified decade, applying the external knowledge mapping.\n4. Return DISTINCT values of the price column from the price table to list each unique price without duplicates.", + "steps": [ + "Join the data table to production on ID, then join production to price on ID, to bring together car_name, model_year, and price in a single result set.", + "Filter data.car_name using LIKE 'ford%' to isolate Ford vehicles, applying the external knowledge mapping.", + "Filter production.model_year using BETWEEN 1970 AND 1980 to restrict to the specified decade, applying the external knowledge mapping.", + "Return DISTINCT values of the price column from the price table to list each unique price without duplicates." + ] + }, + "revisql-train:314": { + "raw": "1. Join the events table to the client table using events.Client_ID = client.client_id to access both the complaint submission method and client age.\n2. Filter the joined records to only those where events.\"Submitted via\" equals 'Postal mail', mapping the external knowledge that \"sent their complaints by\" refers to this column.\n3. Select distinct client_id and age to ensure each client is counted only once even if they submitted multiple postal complaints.\n4. Calculate the percentage by dividing the count of distinct postal clients whose age is 50 or older by the total count of distinct postal clients, then multiply by 100.0.\n5. Return the final computed value as a single column named pct_clients_50_plus.", + "steps": [ + "Join the events table to the client table using events.Client_ID = client.client_id to access both the complaint submission method and client age.", + "Filter the joined records to only those where events.\"Submitted via\" equals 'Postal mail', mapping the external knowledge that \"sent their complaints by\" refers to this column.", + "Select distinct client_id and age to ensure each client is counted only once even if they submitted multiple postal complaints.", + "Calculate the percentage by dividing the count of distinct postal clients whose age is 50 or older by the total count of distinct postal clients, then multiply by 100.0.", + "Return the final computed value as a single column named pct_clients_50_plus." + ] + }, + "revisql-train:3140": { + "raw": "1. Join the data table to production on ID, then join production to country on production.country = country.origin to connect car weights with their origin countries.\n2. Filter for Japanese cars by restricting country.country to 'Japan' using the external knowledge mapping.\n3. Filter for heavy cars by restricting data.weight to greater than 2000 using the external knowledge mapping.\n4. Count distinct data.ID values to ensure each car is counted only once despite possible multiple production records.\n5. Return only that final count.", + "steps": [ + "Join the data table to production on ID, then join production to country on production.country = country.origin to connect car weights with their origin countries.", + "Filter for Japanese cars by restricting country.country to 'Japan' using the external knowledge mapping.", + "Filter for heavy cars by restricting data.weight to greater than 2000 using the external knowledge mapping.", + "Count distinct data.ID values to ensure each car is counted only once despite possible multiple production records.", + "Return only that final count." + ] + }, + "revisql-train:3141": { + "raw": "1. Join the `data` and `price` tables on the `ID` column to link each car's name with its price.\n2. Use a subquery against the `price` table to find the single maximum `price` value.\n3. Filter the joined results to keep only rows where the car's `price` equals that maximum value.\n4. Return the `car_name` column from the `data` table for the resulting rows.", + "steps": [ + "Join the `data` and `price` tables on the `ID` column to link each car's name with its price.", + "Use a subquery against the `price` table to find the single maximum `price` value.", + "Filter the joined results to keep only rows where the car's `price` equals that maximum value.", + "Return the `car_name` column from the `data` table for the resulting rows." + ] + }, + "revisql-train:3142": { + "raw": "1. Use the external knowledge to map \"Buick Skylark 320\" to the car_name column and filter the data table to that exact name.\n2. Recognize that \"years\" in the question refers to the model_year column located in the production table.\n3. Join the data table with the production table on their shared ID key to link the car to its production records.\n4. Return the model_year values from the production table for the matched car.", + "steps": [ + "Use the external knowledge to map \"Buick Skylark 320\" to the car_name column and filter the data table to that exact name.", + "Recognize that \"years\" in the question refers to the model_year column located in the production table.", + "Join the data table with the production table on their shared ID key to link the car to its production records.", + "Return the model_year values from the production table for the matched car." + ] + }, + "revisql-train:3143": { + "raw": "1. Join the data, production, country, and price tables on data.ID = production.ID, production.country = country.origin, and data.ID = price.ID.\n2. Filter the main query to production.model_year = 1970 to restrict the results to cars produced in 1970.\n3. In a subquery, determine the maximum price for 1970 cars by joining the same tables, applying the same production.model_year = 1970 filter, and selecting MAX(price).\n4. Constrain the outer query to only rows where the car's price equals that subquery maximum to isolate the most expensive cars.\n5. Return the country column from the country table to list the names of the producing countries.", + "steps": [ + "Join the data, production, country, and price tables on data.ID = production.ID, production.country = country.origin, and data.ID = price.ID.", + "Filter the main query to production.model_year = 1970 to restrict the results to cars produced in 1970.", + "In a subquery, determine the maximum price for 1970 cars by joining the same tables, applying the same production.model_year = 1970 filter, and selecting MAX(price).", + "Constrain the outer query to only rows where the car's price equals that subquery maximum to isolate the most expensive cars.", + "Return the country column from the country table to list the names of the producing countries." + ] + }, + "revisql-train:3145": { + "raw": "1. Join the data, production, and country tables on data.ID = production.ID and production.country = country.origin to associate every car with its origin country.\n2. Compute the denominator as the count of distinct data.ID values to get the total number of unique cars.\n3. Compute the numerator as the count of distinct data.ID values only for rows where country.country equals 'USA', applying the external knowledge mapping American cars to USA.\n4. Cast the numerator to a real number, multiply it by 100, and divide by the denominator to calculate the percentage.\n5. Return the result in a single column named percentage_usa.", + "steps": [ + "Join the data, production, and country tables on data.ID = production.ID and production.country = country.origin to associate every car with its origin country.", + "Compute the denominator as the count of distinct data.ID values to get the total number of unique cars.", + "Compute the numerator as the count of distinct data.ID values only for rows where country.country equals 'USA', applying the external knowledge mapping American cars to USA.", + "Cast the numerator to a real number, multiply it by 100, and divide by the denominator to calculate the percentage.", + "Return the result in a single column named percentage_usa." + ] + }, + "revisql-train:3148": { + "raw": "1. Use the `donations` table and map the question's \"when\" to the `donation_timestamp` column and \"highest amount\" to the `donation_total` column.\n2. Find the peak donation amount by ordering all rows in `donations` by `donation_total` descending and limiting to the single top value.\n3. Filter the `donations` table to keep only rows where `donation_total` equals that peak amount.\n4. Return the `donation_timestamp` and `donation_total` columns from the matching rows.", + "steps": [ + "Use the `donations` table and map the question's \"when\" to the `donation_timestamp` column and \"highest amount\" to the `donation_total` column.", + "Find the peak donation amount by ordering all rows in `donations` by `donation_total` descending and limiting to the single top value.", + "Filter the `donations` table to keep only rows where `donation_total` equals that peak amount.", + "Return the `donation_timestamp` and `donation_total` columns from the matching rows." + ] + }, + "revisql-train:315": { + "raw": "1. Join the `client` table to the `district` table on the `district_id` key so that each client record is linked to its city.\n2. Filter the joined rows to keep only those where the `city` column in `district` equals 'Norwalk', applying the external knowledge mapping.\n3. Compute the average age by summing the `age` values from the client rows, casting that total to a real number, and dividing by the count of those age values.\n4. Return a single result column named `average` containing this computed value.", + "steps": [ + "Join the `client` table to the `district` table on the `district_id` key so that each client record is linked to its city.", + "Filter the joined rows to keep only those where the `city` column in `district` equals 'Norwalk', applying the external knowledge mapping.", + "Compute the average age by summing the `age` values from the client rows, casting that total to a real number, and dividing by the count of those age values.", + "Return a single result column named `average` containing this computed value." + ] + }, + "revisql-train:3150": { + "raw": "1. Use the donations table alone; no joins are needed.\n2. Filter to rows where is_teacher_acct equals 'f', applying the external knowledge that this value means the donation is not from a teacher.\n3. Include donor_acctid in the result to identify each donor account.\n4. Compute the percentage of optional support by multiplying donation_optional_support by 100.0 and dividing by donation_total, following the external knowledge formula.\n5. Return donor_acctid and the computed percentage field aliased as pct_optional_support for each qualifying donation.", + "steps": [ + "Use the donations table alone; no joins are needed.", + "Filter to rows where is_teacher_acct equals 'f', applying the external knowledge that this value means the donation is not from a teacher.", + "Include donor_acctid in the result to identify each donor account.", + "Compute the percentage of optional support by multiplying donation_optional_support by 100.0 and dividing by donation_total, following the external knowledge formula.", + "Return donor_acctid and the computed percentage field aliased as pct_optional_support for each qualifying donation." + ] + }, + "revisql-train:3154": { + "raw": "1. Locate project titles in the essays table and teacher degree indicators in the projects table.\n2. Join essays to projects on the shared projectid key to link each title with its teacher.\n3. Apply the external knowledge mapping: filter for rows where teacher_prefix equals 'Dr.' to isolate doctorate-holding teachers.\n4. Return distinct values of the title column from essays to avoid duplicate project names.", + "steps": [ + "Locate project titles in the essays table and teacher degree indicators in the projects table.", + "Join essays to projects on the shared projectid key to link each title with its teacher.", + "Apply the external knowledge mapping: filter for rows where teacher_prefix equals 'Dr.' to isolate doctorate-holding teachers.", + "Return distinct values of the title column from essays to avoid duplicate project names." + ] + }, + "revisql-train:3161": { + "raw": "1. Inner join donations to projects on projectid to link each donation amount with its school's metro classification.\n2. Compute the rural donation total by summing donation_to_project only for rows where school_metro equals 'rural'.\n3. Compute the grand total by summing donation_to_project across all rows.\n4. Calculate the percentage by casting the rural total to REAL, multiplying by 100, and dividing by the grand total.\n5. Return a single column containing this calculated percentage.", + "steps": [ + "Inner join donations to projects on projectid to link each donation amount with its school's metro classification.", + "Compute the rural donation total by summing donation_to_project only for rows where school_metro equals 'rural'.", + "Compute the grand total by summing donation_to_project across all rows.", + "Calculate the percentage by casting the rural total to REAL, multiplying by 100, and dividing by the grand total.", + "Return a single column containing this calculated percentage." + ] + }, + "revisql-train:3163": { + "raw": "1. Use the `projects` table, which contains the school district, poverty level, and school identifier needed to answer the question.\n2. Filter rows where `school_district` equals the exact string 'West New York School District'.\n3. Apply the external knowledge to further filter rows where `poverty_level` is exactly 'highest poverty'.\n4. Count distinct values of `schoolid` to ensure each school is only counted once regardless of how many projects it has.\n5. Return the final result in a single column named `num_schools`.", + "steps": [ + "Use the `projects` table, which contains the school district, poverty level, and school identifier needed to answer the question.", + "Filter rows where `school_district` equals the exact string 'West New York School District'.", + "Apply the external knowledge to further filter rows where `poverty_level` is exactly 'highest poverty'.", + "Count distinct values of `schoolid` to ensure each school is only counted once regardless of how many projects it has.", + "Return the final result in a single column named `num_schools`." + ] + }, + "revisql-train:3164": { + "raw": "1. Start from the `donations` table, since it contains every donation record plus the donor’s state and teacher status.\n2. Filter to rows where `is_teacher_acct` equals `'t'`, using the external knowledge that “from teachers” maps to this column and value.\n3. Further filter to rows where `donor_state` equals `'CO'`, using the external knowledge that “the state of Colorado” maps to this column and value.\n4. Count the `donationid` values to compute the total number of donations that satisfy both conditions.\n5. Return only the resulting count column.", + "steps": [ + "Start from the `donations` table, since it contains every donation record plus the donor’s state and teacher status.", + "Filter to rows where `is_teacher_acct` equals `'t'`, using the external knowledge that “from teachers” maps to this column and value.", + "Further filter to rows where `donor_state` equals `'CO'`, using the external knowledge that “the state of Colorado” maps to this column and value.", + "Count the `donationid` values to compute the total number of donations that satisfy both conditions.", + "Return only the resulting count column." + ] + }, + "revisql-train:3165": { + "raw": "1. Use only the `projects` table, since it holds both the project identifier and the cost fields.\n2. Return just the `projectid` column, because the question asks for the project identifier.\n3. Map the phrase \"highest total price including optional support\" to the `total_price_including_optional_support` column, applying the external knowledge that this represents the maximum price value.\n4. Order the rows by `total_price_including_optional_support` in descending order so the largest value appears first.\n5. Keep only the top row to isolate the single project with the highest total price including optional support.", + "steps": [ + "Use only the `projects` table, since it holds both the project identifier and the cost fields.", + "Return just the `projectid` column, because the question asks for the project identifier.", + "Map the phrase \"highest total price including optional support\" to the `total_price_including_optional_support` column, applying the external knowledge that this represents the maximum price value.", + "Order the rows by `total_price_including_optional_support` in descending order so the largest value appears first.", + "Keep only the top row to isolate the single project with the highest total price including optional support." + ] + }, + "revisql-train:3166": { + "raw": "1. Use the `donations` table exclusively; no joins are needed because every condition and the requested output are columns in this single table.\n2. Apply the external knowledge mappings as filters: `payment_method` must equal 'paypal' for PayPal donations, `for_honoree` must equal 't' for an honoree, and `payment_included_campaign_gift_card` must equal 't' for included corporate sponsored giftcard; also exclude rows where `donor_state` is null.\n3. Group the filtered rows by `donor_state`, which represents the state, and count the rows in each group to get the number of qualifying donations per state.\n4. Order the groups by that count in descending order so the state with the highest number of donations appears first.\n5. Keep only the top 1 row to isolate the single state with the maximum count.\n6. Return exactly the `donor_state` column as the final answer.", + "steps": [ + "Use the `donations` table exclusively; no joins are needed because every condition and the requested output are columns in this single table.", + "Apply the external knowledge mappings as filters: `payment_method` must equal 'paypal' for PayPal donations, `for_honoree` must equal 't' for an honoree, and `payment_included_campaign_gift_card` must equal 't' for included corporate sponsored giftcard; also exclude rows where `donor_state` is null.", + "Group the filtered rows by `donor_state`, which represents the state, and count the rows in each group to get the number of qualifying donations per state.", + "Order the groups by that count in descending order so the state with the highest number of donations appears first.", + "Keep only the top 1 row to isolate the single state with the maximum count.", + "Return exactly the `donor_state` column as the final answer." + ] + }, + "revisql-train:3169": { + "raw": "1. Start from the resources table and inner join it to the projects table on the shared projectid key to link requested items with teacher information.\n2. Filter the joined rows to only those where projectid equals 'd6ef27c07c30c81f0c16c32b6acfa2ff'.\n3. Map the external knowledge: requested resources correspond to item_name, quantities correspond to item_quantity, and a teacher_prefix value of 'Dr.' indicates the teacher acquired a Ph.D. or doctor degree.\n4. Return item_name and item_quantity from resources, along with a derived column that outputs 'Yes' when teacher_prefix is 'Dr.' and 'No' otherwise.\n5. Use DISTINCT across the three returned columns to ensure unique combinations in the result.", + "steps": [ + "Start from the resources table and inner join it to the projects table on the shared projectid key to link requested items with teacher information.", + "Filter the joined rows to only those where projectid equals 'd6ef27c07c30c81f0c16c32b6acfa2ff'.", + "Map the external knowledge: requested resources correspond to item_name, quantities correspond to item_quantity, and a teacher_prefix value of 'Dr.' indicates the teacher acquired a Ph.D. or doctor degree.", + "Return item_name and item_quantity from resources, along with a derived column that outputs 'Yes' when teacher_prefix is 'Dr.' and 'No' otherwise.", + "Use DISTINCT across the three returned columns to ensure unique combinations in the result." + ] + }, + "revisql-train:3170": { + "raw": "1. Filter the `essays` table to rows where the `title` column equals 'Recording Rockin'' Readers'.\n2. Extract the distinct `teacher_acctid` values from those essay rows; this is the join key connecting essays to projects.\n3. Filter the `projects` table to only rows whose `teacher_acctid` matches one of the teachers identified in step 2.\n4. Sum the `total_price_including_optional_support` column across all retained project rows.\n5. Return only that aggregated sum as the final result.", + "steps": [ + "Filter the `essays` table to rows where the `title` column equals 'Recording Rockin'' Readers'.", + "Extract the distinct `teacher_acctid` values from those essay rows; this is the join key connecting essays to projects.", + "Filter the `projects` table to only rows whose `teacher_acctid` matches one of the teachers identified in step 2.", + "Sum the `total_price_including_optional_support` column across all retained project rows.", + "Return only that aggregated sum as the final result." + ] + }, + "revisql-train:3172": { + "raw": "1. Use the donations table to find the maximum donation_total, which per the external knowledge represents the highest single donation amount.\n2. Collect the donor_acctid or donor_acctids tied to records having that maximum donation_total.\n3. Filter the donations table to include only rows where donor_acctid matches the identifier(s) collected in the previous step.\n4. Group those filtered rows by donor_acctid and sum their donation_total, labeling the aggregated result as total_amount.\n5. Return total_amount and donor_acctid as the grouping key for each qualifying donor.", + "steps": [ + "Use the donations table to find the maximum donation_total, which per the external knowledge represents the highest single donation amount.", + "Collect the donor_acctid or donor_acctids tied to records having that maximum donation_total.", + "Filter the donations table to include only rows where donor_acctid matches the identifier(s) collected in the previous step.", + "Group those filtered rows by donor_acctid and sum their donation_total, labeling the aggregated result as total_amount.", + "Return total_amount and donor_acctid as the grouping key for each qualifying donor." + ] + }, + "revisql-train:3174": { + "raw": "1. Identify that the `projects` table holds the `date_posted` column indicating when a project went live on the site.\n2. Recognize from the external knowledge that \"first ever project\" translates to the minimum value of `date_posted`.\n3. Compute the minimum of `date_posted` across all rows in the `projects` table with no joins or filters needed.\n4. Return exactly that single minimum date value as the answer.", + "steps": [ + "Identify that the `projects` table holds the `date_posted` column indicating when a project went live on the site.", + "Recognize from the external knowledge that \"first ever project\" translates to the minimum value of `date_posted`.", + "Compute the minimum of `date_posted` across all rows in the `projects` table with no joins or filters needed.", + "Return exactly that single minimum date value as the answer." + ] + }, + "revisql-train:3175": { + "raw": "1. Map the project name \"iMath\" from the external knowledge to the `title` column in the `essays` table using the exact value 'iMath'.\n2. Identify that vendor names are stored in the `resources` table under the `vendor_name` column, with each resource record tied to a project via `projectid`.\n3. Join the `resources` table with the `essays` table on the `projectid` key to link each resource to its corresponding project title.\n4. Filter the joined rows to keep only those where `essays.title` equals 'iMath'.\n5. Return distinct values of the `vendor_name` column to list each unique vendor supplying that project without duplicates.", + "steps": [ + "Map the project name \"iMath\" from the external knowledge to the `title` column in the `essays` table using the exact value 'iMath'.", + "Identify that vendor names are stored in the `resources` table under the `vendor_name` column, with each resource record tied to a project via `projectid`.", + "Join the `resources` table with the `essays` table on the `projectid` key to link each resource to its corresponding project title.", + "Filter the joined rows to keep only those where `essays.title` equals 'iMath'.", + "Return distinct values of the `vendor_name` column to list each unique vendor supplying that project without duplicates." + ] + }, + "revisql-train:3179": { + "raw": "1. Group the donations table by donor_acctid to compute the total optional support per donor for ranking, the average optional support per donor for the required metric, and keep donor_state.\n2. Order the grouped donors by total optional support descending and limit the result to the top 5.\n3. For each donor in donations, determine the maximum single donation_optional_support value and the corresponding projectid.\n4. Join those maximum-optional-support records to the projects table on projectid to retrieve resource_type, collapsing to one resource_type per donor.\n5. Merge the top-5 donor list with their per-donor average optional support and the derived resource_type by joining on donor_acctid, returning donor_state, donor_acctid, avg_opt_support, and resource_type.", + "steps": [ + "Group the donations table by donor_acctid to compute the total optional support per donor for ranking, the average optional support per donor for the required metric, and keep donor_state.", + "Order the grouped donors by total optional support descending and limit the result to the top 5.", + "For each donor in donations, determine the maximum single donation_optional_support value and the corresponding projectid.", + "Join those maximum-optional-support records to the projects table on projectid to retrieve resource_type, collapsing to one resource_type per donor.", + "Merge the top-5 donor list with their per-donor average optional support and the derived resource_type by joining on donor_acctid, returning donor_state, donor_acctid, avg_opt_support, and resource_type." + ] + }, + "revisql-train:318": { + "raw": "1. Filter the client table to rows where the first name is 'Noah' and the last name is 'Thompson'.\n2. Join the filtered client record to the district table on district_id to retrieve the state abbreviation.\n3. Join the district result to the state table on state_abbrev matching StateCode to access the region.\n4. Return only the Region column from the state table.", + "steps": [ + "Filter the client table to rows where the first name is 'Noah' and the last name is 'Thompson'.", + "Join the filtered client record to the district table on district_id to retrieve the state abbreviation.", + "Join the district result to the state table on state_abbrev matching StateCode to access the region.", + "Return only the Region column from the state table." + ] + }, + "revisql-train:3182": { + "raw": "1. Join the `resources` table to the `projects` table on `projectid` so that each resource record is paired with its school's identifier.\n2. Filter the joined rows to only those where `vendor_name` corresponds to Amazon.\n3. Group the remaining rows by `schoolid` to aggregate all Amazon resource requests per school.\n4. Count the number of resource records within each school group, mapping \"highest amount of resources\" to the maximum record count.\n5. Order the grouped results by that count in descending order and keep only the top row.\n6. Return the `schoolid` of that single top row as the answer.", + "steps": [ + "Join the `resources` table to the `projects` table on `projectid` so that each resource record is paired with its school's identifier.", + "Filter the joined rows to only those where `vendor_name` corresponds to Amazon.", + "Group the remaining rows by `schoolid` to aggregate all Amazon resource requests per school.", + "Count the number of resource records within each school group, mapping \"highest amount of resources\" to the maximum record count.", + "Order the grouped results by that count in descending order and keep only the top row.", + "Return the `schoolid` of that single top row as the answer." + ] + }, + "revisql-train:3185": { + "raw": "1. Map the phrase \"how many students\" to the `students_reached` column in the `projects` table.\n2. Identify that the project name \"Fit Firsties!\" is stored in the `title` column of the `essays` table.\n3. Join the `essays` table with the `projects` table on their shared `projectid` key to link the title to its corresponding student count.\n4. Filter the joined rows to only those where `essays.title` matches 'Fit Firsties!'.\n5. Return the value of `students_reached` from the `projects` table as the final answer column.", + "steps": [ + "Map the phrase \"how many students\" to the `students_reached` column in the `projects` table.", + "Identify that the project name \"Fit Firsties!\" is stored in the `title` column of the `essays` table.", + "Join the `essays` table with the `projects` table on their shared `projectid` key to link the title to its corresponding student count.", + "Filter the joined rows to only those where `essays.title` matches 'Fit Firsties!'.", + "Return the value of `students_reached` from the `projects` table as the final answer column." + ] + }, + "revisql-train:3187": { + "raw": "1. Join the `essays` table to the `projects` table on the `projectid` key to combine project titles with teacher and student metadata.\n2. Apply the external knowledge mapping for a Doctor Degree by filtering `projects.teacher_prefix` to `'Dr.'`.\n3. Filter `projects.students_reached` to values greater than 30 to restrict results to projects involving more than 30 students.\n4. Return only the `title` column from the `essays` table.", + "steps": [ + "Join the `essays` table to the `projects` table on the `projectid` key to combine project titles with teacher and student metadata.", + "Apply the external knowledge mapping for a Doctor Degree by filtering `projects.teacher_prefix` to `'Dr.'`.", + "Filter `projects.students_reached` to values greater than 30 to restrict results to projects involving more than 30 students.", + "Return only the `title` column from the `essays` table." + ] + }, + "revisql-train:3189": { + "raw": "1. Map the external knowledge to the resources table by calculating each project's total fund cost as the sum of item_unit_price multiplied by item_quantity.\n2. Join resources with essays on projectid and group by projectid to aggregate the total cost per project.\n3. Order the aggregated results by total cost descending and limit to 1 to isolate the most expensive projectid.\n4. Query the essays table for the title of the project matching that projectid.\n5. Return only the title column.", + "steps": [ + "Map the external knowledge to the resources table by calculating each project's total fund cost as the sum of item_unit_price multiplied by item_quantity.", + "Join resources with essays on projectid and group by projectid to aggregate the total cost per project.", + "Order the aggregated results by total cost descending and limit to 1 to isolate the most expensive projectid.", + "Query the essays table for the title of the project matching that projectid.", + "Return only the title column." + ] + }, + "revisql-train:3193": { + "raw": "1. Use only the `resources` table, as it holds both vendor names and resource types, so no joins are necessary.\n2. Apply the external knowledge to map \"Lakeshore Learning Materials\" to the `vendor_name` column and \"types of resources\" to the `project_resource_type` column.\n3. Filter rows where `vendor_name` equals exactly 'Lakeshore Learning Materials'.\n4. Apply `DISTINCT` on `project_resource_type` to return each unique resource type only once.\n5. Return only the `project_resource_type` column in the final result.", + "steps": [ + "Use only the `resources` table, as it holds both vendor names and resource types, so no joins are necessary.", + "Apply the external knowledge to map \"Lakeshore Learning Materials\" to the `vendor_name` column and \"types of resources\" to the `project_resource_type` column.", + "Filter rows where `vendor_name` equals exactly 'Lakeshore Learning Materials'.", + "Apply `DISTINCT` on `project_resource_type` to return each unique resource type only once.", + "Return only the `project_resource_type` column in the final result." + ] + }, + "revisql-train:3194": { + "raw": "1. Use the `resources` table, which links vendors, item names, and quantities.\n2. Filter rows where `vendor_name` equals 'Lakeshore Learning Materials'.\n3. Group the filtered rows by `item_name` to aggregate per distinct item.\n4. Within each group, sum `item_quantity` to get the total amount provided for that item.\n5. Order the groups by that summed quantity in descending order.\n6. Return only the first row, outputting the `item_name` column.", + "steps": [ + "Use the `resources` table, which links vendors, item names, and quantities.", + "Filter rows where `vendor_name` equals 'Lakeshore Learning Materials'.", + "Group the filtered rows by `item_name` to aggregate per distinct item.", + "Within each group, sum `item_quantity` to get the total amount provided for that item.", + "Order the groups by that summed quantity in descending order.", + "Return only the first row, outputting the `item_name` column." + ] + }, + "revisql-train:3198": { + "raw": "1. Filter the resources table to rows where vendor_name equals 'Lakeshore Learning Materials' and collect the associated projectid values, applying the external knowledge that this vendor name maps to the vendor_name column.\n2. Filter the projects table to only rows whose projectid matches those collected in step 1, using projectid as the join key between resources and projects.\n3. Within that filtered set of projects, compute the maximum value of fulfillment_labor_materials to determine the highest cost of labor fulfillment.\n4. Further filter that project set to keep only the row(s) where fulfillment_labor_materials equals the maximum computed in step 3.\n5. Return the schoolid column from the remaining row(s), using DISTINCT to handle any ties where multiple projects from the same school share that maximum cost.", + "steps": [ + "Filter the resources table to rows where vendor_name equals 'Lakeshore Learning Materials' and collect the associated projectid values, applying the external knowledge that this vendor name maps to the vendor_name column.", + "Filter the projects table to only rows whose projectid matches those collected in step 1, using projectid as the join key between resources and projects.", + "Within that filtered set of projects, compute the maximum value of fulfillment_labor_materials to determine the highest cost of labor fulfillment.", + "Further filter that project set to keep only the row(s) where fulfillment_labor_materials equals the maximum computed in step 3.", + "Return the schoolid column from the remaining row(s), using DISTINCT to handle any ties where multiple projects from the same school share that maximum cost." + ] + }, + "revisql-train:3199": { + "raw": "1. Compute each project's optional tip cost as `total_price_including_optional_support` minus `total_price_excluding_optional_support` from the `projects` table.\n2. In a subquery, find the maximum of that difference across `projects` joined with `resources` on `projectid`.\n3. Join `projects` with `resources` on `projectid` to link each project to its requested resource types.\n4. Filter the joined results to keep only rows where the project's optional tip cost equals the maximum value from the subquery.\n5. Return distinct values of `project_resource_type` from the `resources` table.", + "steps": [ + "Compute each project's optional tip cost as `total_price_including_optional_support` minus `total_price_excluding_optional_support` from the `projects` table.", + "In a subquery, find the maximum of that difference across `projects` joined with `resources` on `projectid`.", + "Join `projects` with `resources` on `projectid` to link each project to its requested resource types.", + "Filter the joined results to keep only rows where the project's optional tip cost equals the maximum value from the subquery.", + "Return distinct values of `project_resource_type` from the `resources` table." + ] + }, + "revisql-train:3204": { + "raw": "1. Join the projects and donations tables on projectid to associate each donation with its project's subject area.\n2. Filter the joined rows to only those where primary_focus_area equals 'Literacy & Language', mapping the external knowledge phrase \"main subject area\" to this column and value.\n3. Compute the maximum donation_total within that filtered subset, since \"donated the most\" corresponds to the max of this column.\n4. Further filter the joined rows to keep only those whose donation_total equals that maximum amount.\n5. Return the distinct donor_acctid values as the final answer containing the donor IDs.", + "steps": [ + "Join the projects and donations tables on projectid to associate each donation with its project's subject area.", + "Filter the joined rows to only those where primary_focus_area equals 'Literacy & Language', mapping the external knowledge phrase \"main subject area\" to this column and value.", + "Compute the maximum donation_total within that filtered subset, since \"donated the most\" corresponds to the max of this column.", + "Further filter the joined rows to keep only those whose donation_total equals that maximum amount.", + "Return the distinct donor_acctid values as the final answer containing the donor IDs." + ] + }, + "revisql-train:3205": { + "raw": "1. Join the resources table to the projects table on projectid, then filter using the external knowledge mappings: keep only rows where projects.primary_focus_area equals Literacy & Language (the main subject area) and resources.project_resource_type equals Supplies.\n2. Group the filtered results by item_name and compute the total requested quantity per item by summing item_quantity.\n3. In a subquery, repeat the same join and filters to calculate per-item totals again, then determine the maximum value among those summed totals.\n4. In the outer query, retain only the item group(s) whose total requested quantity equals that maximum total.\n5. Return the item_name column as the final answer.", + "steps": [ + "Join the resources table to the projects table on projectid, then filter using the external knowledge mappings: keep only rows where projects.primary_focus_area equals Literacy & Language (the main subject area) and resources.project_resource_type equals Supplies.", + "Group the filtered results by item_name and compute the total requested quantity per item by summing item_quantity.", + "In a subquery, repeat the same join and filters to calculate per-item totals again, then determine the maximum value among those summed totals.", + "In the outer query, retain only the item group(s) whose total requested quantity equals that maximum total.", + "Return the item_name column as the final answer." + ] + }, + "revisql-train:3207": { + "raw": "1. Join the `projects` table with the `donations` table on the `projectid` key to link every donation to its project's school location.\n2. Filter the joined rows to only those where `projects.school_city` equals 'Brooklyn', applying the external knowledge that \"school in Brooklyn\" maps to that exact column and value.\n3. Group the remaining rows by `projectid` so that all donations for the same project are aggregated together.\n4. Within each project group, sum the `donation_total` column to obtain the total donation amount per project.\n5. Compute the average of those per-project totals to get the final metric.\n6. Return a single column containing that final average value.", + "steps": [ + "Join the `projects` table with the `donations` table on the `projectid` key to link every donation to its project's school location.", + "Filter the joined rows to only those where `projects.school_city` equals 'Brooklyn', applying the external knowledge that \"school in Brooklyn\" maps to that exact column and value.", + "Group the remaining rows by `projectid` so that all donations for the same project are aggregated together.", + "Within each project group, sum the `donation_total` column to obtain the total donation amount per project.", + "Compute the average of those per-project totals to get the final metric.", + "Return a single column containing that final average value." + ] + }, + "revisql-train:3209": { + "raw": "1. Query the donations table, which stores both donor identifiers and teacher status.\n2. Filter rows where donor_acctid equals the given donor identifier '22cbc920c9b5fa08dfb331422f5926b5'.\n3. Map the question \"is a teacher\" to the is_teacher_acct column in that table.\n4. Apply DISTINCT to is_teacher_acct in case the donor has multiple donation records.\n5. Return only the is_teacher_acct column, which will contain the value 't' or 'f'.", + "steps": [ + "Query the donations table, which stores both donor identifiers and teacher status.", + "Filter rows where donor_acctid equals the given donor identifier '22cbc920c9b5fa08dfb331422f5926b5'.", + "Map the question \"is a teacher\" to the is_teacher_acct column in that table.", + "Apply DISTINCT to is_teacher_acct in case the donor has multiple donation records.", + "Return only the is_teacher_acct column, which will contain the value 't' or 'f'." + ] + }, + "revisql-train:321": { + "raw": "1. Use the events table as the starting point to link complaints, clients, and products.\n2. Join client on events.Client_ID = client.client_id, then filter to first = 'Kendall', last = 'Allen', and sex = 'Female'.\n3. Join callcenterlogs on events.`Complaint ID` = callcenterlogs.`Complaint ID` to access the ser_time column that answers \"how long\".\n4. Filter events.Product to 'Credit card' per the external knowledge mapping.\n5. Return only the callcenterlogs.ser_time column.", + "steps": [ + "Use the events table as the starting point to link complaints, clients, and products.", + "Join client on events.Client_ID = client.client_id, then filter to first = 'Kendall', last = 'Allen', and sex = 'Female'.", + "Join callcenterlogs on events.`Complaint ID` = callcenterlogs.`Complaint ID` to access the ser_time column that answers \"how long\".", + "Filter events.Product to 'Credit card' per the external knowledge mapping.", + "Return only the callcenterlogs.ser_time column." + ] + }, + "revisql-train:3210": { + "raw": "1. Query the `projects` table, which stores teacher prefix information.\n2. Filter to the row where `teacher_acctid` equals the provided teacher identifier.\n3. Evaluate whether the `teacher_prefix` value for that row is `'Dr.'`, since that value indicates a Ph.D. or doctorate.\n4. Return `'Yes'` if the prefix is `'Dr.'`; otherwise return `'No'`.", + "steps": [ + "Query the `projects` table, which stores teacher prefix information.", + "Filter to the row where `teacher_acctid` equals the provided teacher identifier.", + "Evaluate whether the `teacher_prefix` value for that row is `'Dr.'`, since that value indicates a Ph.D. or doctorate.", + "Return `'Yes'` if the prefix is `'Dr.'`; otherwise return `'No'`." + ] + }, + "revisql-train:3219": { + "raw": "1. Filter the `projects` table to rows where `schoolid` equals '301c9bf0a45d159d162b65a93fddd74e', using the external school identifier directly as the column value.\n2. Join `donations` on `projectid` to restrict the set to projects that have received at least one donation.\n3. Join `essays` on `projectid` to access the `short_description` for each qualifying project.\n4. Use `DISTINCT` on `short_description` to prevent duplicate descriptions when a project has multiple donations.\n5. Return only the `short_description` column.", + "steps": [ + "Filter the `projects` table to rows where `schoolid` equals '301c9bf0a45d159d162b65a93fddd74e', using the external school identifier directly as the column value.", + "Join `donations` on `projectid` to restrict the set to projects that have received at least one donation.", + "Join `essays` on `projectid` to access the `short_description` for each qualifying project.", + "Use `DISTINCT` on `short_description` to prevent duplicate descriptions when a project has multiple donations.", + "Return only the `short_description` column." + ] + }, + "revisql-train:3221": { + "raw": "1. Identify the target teacher in the projects table by filtering teacher_acctid to the provided identifier.\n2. Join the donations table on projectid to link each of that teacher's projects to its corresponding donation records.\n3. Map the question's phrase \"how to pay\" to the payment_method column in the donations table based on external knowledge.\n4. Return only the payment_method column from the donations table.", + "steps": [ + "Identify the target teacher in the projects table by filtering teacher_acctid to the provided identifier.", + "Join the donations table on projectid to link each of that teacher's projects to its corresponding donation records.", + "Map the question's phrase \"how to pay\" to the payment_method column in the donations table based on external knowledge.", + "Return only the payment_method column from the donations table." + ] + }, + "revisql-train:3223": { + "raw": "1. Inner join `projects` and `donations` on the `projectid` key to connect each donation to its school.\n2. Filter `projects` to the target school by requiring `schoolid` to equal `'d4af834b1d3fc8061e1ee1b3f1a77b85'`, mapping the external school reference to this column.\n3. Filter `donations` to teacher donors only by requiring `is_teacher_acct` to equal `'t'`, applying the external knowledge that this value indicates a teacher.\n4. Count the total rows that meet both filter conditions.\n5. Return the string `'Yes'` if that count is greater than 1, otherwise return the string `'No'`.", + "steps": [ + "Inner join `projects` and `donations` on the `projectid` key to connect each donation to its school.", + "Filter `projects` to the target school by requiring `schoolid` to equal `'d4af834b1d3fc8061e1ee1b3f1a77b85'`, mapping the external school reference to this column.", + "Filter `donations` to teacher donors only by requiring `is_teacher_acct` to equal `'t'`, applying the external knowledge that this value indicates a teacher.", + "Count the total rows that meet both filter conditions.", + "Return the string `'Yes'` if that count is greater than 1, otherwise return the string `'No'`." + ] + }, + "revisql-train:323": { + "raw": "1. Join the client table to the events table on client.client_id = events.Client_ID to link each client with their complaint records.\n2. Filter the client rows to only those where the city column equals 'New York City'.\n3. Filter the events rows to only those where the `Submitted via` column equals 'Fax', applying the external knowledge that fax submissions map to that exact value.\n4. Count distinct client_id values to avoid duplicate counting of any client who submitted multiple fax complaints.\n5. Return the final count as the answer.", + "steps": [ + "Join the client table to the events table on client.client_id = events.Client_ID to link each client with their complaint records.", + "Filter the client rows to only those where the city column equals 'New York City'.", + "Filter the events rows to only those where the `Submitted via` column equals 'Fax', applying the external knowledge that fax submissions map to that exact value.", + "Count distinct client_id values to avoid duplicate counting of any client who submitted multiple fax complaints.", + "Return the final count as the answer." + ] + }, + "revisql-train:3231": { + "raw": "1. Use only the projects table since it contains the school district, grade level, and project identifier needed.\n2. Filter the school_district column to the exact value 'Boston Public School District'.\n3. Apply the external knowledge that \"teach 3-5 grades\" maps to grade_level = 'Grades 3-5' and filter on that column.\n4. Aggregate by counting projectid to obtain the total number of projects meeting both conditions.\n5. Return the count of projectid as the final result.", + "steps": [ + "Use only the projects table since it contains the school district, grade level, and project identifier needed.", + "Filter the school_district column to the exact value 'Boston Public School District'.", + "Apply the external knowledge that \"teach 3-5 grades\" maps to grade_level = 'Grades 3-5' and filter on that column.", + "Aggregate by counting projectid to obtain the total number of projects meeting both conditions.", + "Return the count of projectid as the final result." + ] + }, + "revisql-train:3232": { + "raw": "1. Identify that the essays table contains the project title and the projects table contains school_city, which represents the city asked for.\n2. Join essays to projects on the projectid column to link the project title with its corresponding school location.\n3. Filter the essays rows to only those where the title equals 'ABC Read'.\n4. Return distinct values of school_city from the projects side of the join to obtain the unique city for that teacher.", + "steps": [ + "Identify that the essays table contains the project title and the projects table contains school_city, which represents the city asked for.", + "Join essays to projects on the projectid column to link the project title with its corresponding school location.", + "Filter the essays rows to only those where the title equals 'ABC Read'.", + "Return distinct values of school_city from the projects side of the join to obtain the unique city for that teacher." + ] + }, + "revisql-train:3233": { + "raw": "1. Start with the `essays` table because external knowledge identifies \"Creating Memories and Inspiring Dreams\" as a project title stored in the `title` column.\n2. Join `essays` to the `projects` table on the shared `projectid` key to connect the project title with its teacher record.\n3. Filter rows by matching `essays.title` using a LIKE pattern against 'Creating Memories and Inspiring Dreams%'.\n4. Return the `teacher_prefix` column from the `projects` table.", + "steps": [ + "Start with the `essays` table because external knowledge identifies \"Creating Memories and Inspiring Dreams\" as a project title stored in the `title` column.", + "Join `essays` to the `projects` table on the shared `projectid` key to connect the project title with its teacher record.", + "Filter rows by matching `essays.title` using a LIKE pattern against 'Creating Memories and Inspiring Dreams%'.", + "Return the `teacher_prefix` column from the `projects` table." + ] + }, + "revisql-train:3237": { + "raw": "1. Start with the essays table, which holds project titles, and join it to the donations table on the shared projectid column to connect each project with its individual donations.\n2. Filter the joined rows to only those where the essays.title is 'Engaging Young Readers with a Leveled Classroom Library'.\n3. Apply the external knowledge that total donation amount is defined as donation_to_project plus donation_optional_support, both columns found in the donations table.\n4. Aggregate across all matching donation rows by summing donation_to_project and separately summing donation_optional_support, then add the two resulting sums together.\n5. Return the single final computed total derived from those two donations columns.", + "steps": [ + "Start with the essays table, which holds project titles, and join it to the donations table on the shared projectid column to connect each project with its individual donations.", + "Filter the joined rows to only those where the essays.title is 'Engaging Young Readers with a Leveled Classroom Library'.", + "Apply the external knowledge that total donation amount is defined as donation_to_project plus donation_optional_support, both columns found in the donations table.", + "Aggregate across all matching donation rows by summing donation_to_project and separately summing donation_optional_support, then add the two resulting sums together.", + "Return the single final computed total derived from those two donations columns." + ] + }, + "revisql-train:3239": { + "raw": "1. Identify that the requested short description is stored in the essays table, while the donation time is recorded in the donations table.\n2. Join the essays table to the donations table on the projectid column to link each project's description with its donation timestamps.\n3. Filter the donations table to the specific moment by matching donation_timestamp against the pattern '2012-09-06 14:44:28%', translating the natural language date and time to the database's datetime format.\n4. Return only the short_description column from the essays table for the project that received that donation.", + "steps": [ + "Identify that the requested short description is stored in the essays table, while the donation time is recorded in the donations table.", + "Join the essays table to the donations table on the projectid column to link each project's description with its donation timestamps.", + "Filter the donations table to the specific moment by matching donation_timestamp against the pattern '2012-09-06 14:44:28%', translating the natural language date and time to the database's datetime format.", + "Return only the short_description column from the essays table for the project that received that donation." + ] + }, + "revisql-train:324": { + "raw": "1. Start from the events table and filter to rows where Product equals 'Credit card', applying the external knowledge that credit cards map to the Product column.\n2. Select distinct Client_ID from those filtered rows so each client is counted only once regardless of multiple complaints.\n3. Join this deduplicated set with the client table on client_id matching Client_ID to access the sex field for every complainer.\n4. Aggregate by summing a conditional expression that returns 1 when sex is 'Male' and 0 otherwise, divide that sum by the total number of joined rows, and multiply by 100.0 to compute the percentage, using the external knowledge that male corresponds to sex = 'Male'.\n5. Return exactly one column containing the resulting percentage value.", + "steps": [ + "Start from the events table and filter to rows where Product equals 'Credit card', applying the external knowledge that credit cards map to the Product column.", + "Select distinct Client_ID from those filtered rows so each client is counted only once regardless of multiple complaints.", + "Join this deduplicated set with the client table on client_id matching Client_ID to access the sex field for every complainer.", + "Aggregate by summing a conditional expression that returns 1 when sex is 'Male' and 0 otherwise, divide that sum by the total number of joined rows, and multiply by 100.0 to compute the percentage, using the external knowledge that male corresponds to sex = 'Male'.", + "Return exactly one column containing the resulting percentage value." + ] + }, + "revisql-train:3241": { + "raw": "1. Identify that the required output is teacher_acctid from the projects table, while the donation time condition is stored in the donations table.\n2. Join projects with donations on the projectid column to link each donation to its corresponding project.\n3. Apply a filter on donations.donation_timestamp using the external knowledge that maps \"11:38:43 on 2008/7/29\" to that specific datetime column.\n4. Return only the teacher_acctid column from the projects table as the final answer.", + "steps": [ + "Identify that the required output is teacher_acctid from the projects table, while the donation time condition is stored in the donations table.", + "Join projects with donations on the projectid column to link each donation to its corresponding project.", + "Apply a filter on donations.donation_timestamp using the external knowledge that maps \"11:38:43 on 2008/7/29\" to that specific datetime column.", + "Return only the teacher_acctid column from the projects table as the final answer." + ] + }, + "revisql-train:3244": { + "raw": "1. Locate the project in the essays table by matching the title column to the string 'Awesome Audiobooks Make Avid Readers'.\n2. Join essays to donations on projectid to retrieve all donation records associated with that project.\n3. Filter the joined rows to keep only those where the essays title matches 'Awesome Audiobooks Make Avid Readers'.\n4. Aggregate the filtered donations by summing donation_optional_support (tip amount) and summing donation_total (total amount).\n5. Calculate the percentage by casting the summed optional support to REAL, multiplying by 100, and dividing by the summed donation total.\n6. Return a single column containing the computed tip percentage.", + "steps": [ + "Locate the project in the essays table by matching the title column to the string 'Awesome Audiobooks Make Avid Readers'.", + "Join essays to donations on projectid to retrieve all donation records associated with that project.", + "Filter the joined rows to keep only those where the essays title matches 'Awesome Audiobooks Make Avid Readers'.", + "Aggregate the filtered donations by summing donation_optional_support (tip amount) and summing donation_total (total amount).", + "Calculate the percentage by casting the summed optional support to REAL, multiplying by 100, and dividing by the summed donation total.", + "Return a single column containing the computed tip percentage." + ] + }, + "revisql-train:3247": { + "raw": "1. Target the essays table, which stores both project titles and their corresponding need statements.\n2. Filter rows where the title column exactly matches the value 'Family History Project ' provided in the external knowledge.\n3. Map the requested \"need statement\" to the need_statement column in the essays table.\n4. Return only the need_statement column from the filtered result, with no joins or aggregation required.", + "steps": [ + "Target the essays table, which stores both project titles and their corresponding need statements.", + "Filter rows where the title column exactly matches the value 'Family History Project ' provided in the external knowledge.", + "Map the requested \"need statement\" to the need_statement column in the essays table.", + "Return only the need_statement column from the filtered result, with no joins or aggregation required." + ] + }, + "revisql-train:3248": { + "raw": "1. Query the `projects` table, which contains the `school_metro`, `school_district`, and `schoolid` columns needed.\n2. Filter rows where `school_metro` equals 'suburban' to isolate schools in suburban metros using the external knowledge.\n3. Filter rows where `school_district` matches the Livingston Parish School District identifier.\n4. Apply COUNT(DISTINCT `schoolid`) to count unique schools, avoiding duplicates from multiple projects at the same school.\n5. Return only that final count.", + "steps": [ + "Query the `projects` table, which contains the `school_metro`, `school_district`, and `schoolid` columns needed.", + "Filter rows where `school_metro` equals 'suburban' to isolate schools in suburban metros using the external knowledge.", + "Filter rows where `school_district` matches the Livingston Parish School District identifier.", + "Apply COUNT(DISTINCT `schoolid`) to count unique schools, avoiding duplicates from multiple projects at the same school.", + "Return only that final count." + ] + }, + "revisql-train:3249": { + "raw": "1. Use only the `resources` table; no joins are needed because both vendor and item data are stored there.\n2. Map the question’s “vendors” to the `vendor_name` column and the item “Classroom Keepers Management Center” to the `item_name` column.\n3. Filter rows with a case-insensitive match on `item_name` against the lowercased value 'classroom keepers management center'.\n4. Apply DISTINCT to `vendor_name` to avoid listing the same vendor multiple times.\n5. Return exactly the `vendor_name` column.", + "steps": [ + "Use only the `resources` table; no joins are needed because both vendor and item data are stored there.", + "Map the question’s “vendors” to the `vendor_name` column and the item “Classroom Keepers Management Center” to the `item_name` column.", + "Filter rows with a case-insensitive match on `item_name` against the lowercased value 'classroom keepers management center'.", + "Apply DISTINCT to `vendor_name` to avoid listing the same vendor multiple times.", + "Return exactly the `vendor_name` column." + ] + }, + "revisql-train:3251": { + "raw": "1. Start from the projects table and keep only rows where school_state equals 'NY' and poverty_level equals 'low poverty'.\n2. Group the filtered records by school_county and count the number of projects in each county.\n3. In a subquery, apply the same state and poverty filters, again group by school_county, count projects, order those counts descending, and limit to the single top value to find the highest project count.\n4. In the outer query, retain only counties whose project count matches that highest value.\n5. Return the school_county column.", + "steps": [ + "Start from the projects table and keep only rows where school_state equals 'NY' and poverty_level equals 'low poverty'.", + "Group the filtered records by school_county and count the number of projects in each county.", + "In a subquery, apply the same state and poverty filters, again group by school_county, count projects, order those counts descending, and limit to the single top value to find the highest project count.", + "In the outer query, retain only counties whose project count matches that highest value.", + "Return the school_county column." + ] + }, + "revisql-train:3256": { + "raw": "1. Recognize that \"coordinates\" maps to school_latitude and school_longitude in the projects table, while item and vendor data reside in the resources table.\n2. Inner join resources to projects on projectid to link each resource item to the school that requested it.\n3. Filter resources to rows where item_name equals 'R & A Plant Genetics'.\n4. Filter resources to rows where vendor_name equals 'Benchmark Education'.\n5. Return school_latitude and school_longitude from the projects table as the result.", + "steps": [ + "Recognize that \"coordinates\" maps to school_latitude and school_longitude in the projects table, while item and vendor data reside in the resources table.", + "Inner join resources to projects on projectid to link each resource item to the school that requested it.", + "Filter resources to rows where item_name equals 'R & A Plant Genetics'.", + "Filter resources to rows where vendor_name equals 'Benchmark Education'.", + "Return school_latitude and school_longitude from the projects table as the result." + ] + }, + "revisql-train:3257": { + "raw": "1. Inner join the donations table to the projects table on projectid so that each donation can be matched to its school's state.\n2. Filter the joined results to only rows where school_state equals 'GA', applying the external knowledge that Georgia maps to that abbreviation.\n3. Group the filtered donations by the payment_method column to aggregate usage frequencies.\n4. In a subquery against the same filtered join, compute the count of donations per payment_method, order those counts descending, and limit to 1 to obtain the highest frequency value.\n5. In the outer query, use a HAVING clause to retain only payment methods whose overall donation count equals that maximum subquery value, which properly handles any ties.\n6. Return the payment_method column as the final output.", + "steps": [ + "Inner join the donations table to the projects table on projectid so that each donation can be matched to its school's state.", + "Filter the joined results to only rows where school_state equals 'GA', applying the external knowledge that Georgia maps to that abbreviation.", + "Group the filtered donations by the payment_method column to aggregate usage frequencies.", + "In a subquery against the same filtered join, compute the count of donations per payment_method, order those counts descending, and limit to 1 to obtain the highest frequency value.", + "In the outer query, use a HAVING clause to retain only payment methods whose overall donation count equals that maximum subquery value, which properly handles any ties.", + "Return the payment_method column as the final output." + ] + }, + "revisql-train:3260": { + "raw": "1. Map the question's term \"date\" to the `date_posted` column in the `projects` table and the phrase \"Lets Share Ideas\" to the `title` column in the `essays` table.\n2. Join the `projects` table with the `essays` table on their shared `projectid` key to link each project to its essay.\n3. Filter the joined rows by matching `essays.title` against the value 'Lets Share Ideas' using a LIKE condition.\n4. Return only the `date_posted` column from the `projects` table.", + "steps": [ + "Map the question's term \"date\" to the `date_posted` column in the `projects` table and the phrase \"Lets Share Ideas\" to the `title` column in the `essays` table.", + "Join the `projects` table with the `essays` table on their shared `projectid` key to link each project to its essay.", + "Filter the joined rows by matching `essays.title` against the value 'Lets Share Ideas' using a LIKE condition.", + "Return only the `date_posted` column from the `projects` table." + ] + }, + "revisql-train:3266": { + "raw": "1. Use the donations table, since it contains both the donor city and teacher status fields needed.\n2. Filter rows where donor_city equals 'Pocatello', applying the external knowledge mapping for that city.\n3. Add a filter where is_teacher_acct equals 'f' to exclude teachers, per the external knowledge mapping.\n4. Count distinct donationid to aggregate the qualifying records into a total.\n5. Return a single column containing that count of distinct donationid.", + "steps": [ + "Use the donations table, since it contains both the donor city and teacher status fields needed.", + "Filter rows where donor_city equals 'Pocatello', applying the external knowledge mapping for that city.", + "Add a filter where is_teacher_acct equals 'f' to exclude teachers, per the external knowledge mapping.", + "Count distinct donationid to aggregate the qualifying records into a total.", + "Return a single column containing that count of distinct donationid." + ] + }, + "revisql-train:3272": { + "raw": "1. Query the `projects` table, as it holds the school district, teacher fellowship flag, and school identifier needed.\n2. Filter to rows where `school_district` is exactly 'Columbia School District 93' based on the external knowledge mapping.\n3. Further filter to rows where `teacher_ny_teaching_fellow` equals 't' to isolate New York teaching fellows.\n4. Apply `DISTINCT` on `schoolid` so each school appears only once.\n5. Return solely the `schoolid` column in the final result set.", + "steps": [ + "Query the `projects` table, as it holds the school district, teacher fellowship flag, and school identifier needed.", + "Filter to rows where `school_district` is exactly 'Columbia School District 93' based on the external knowledge mapping.", + "Further filter to rows where `teacher_ny_teaching_fellow` equals 't' to isolate New York teaching fellows.", + "Apply `DISTINCT` on `schoolid` so each school appears only once.", + "Return solely the `schoolid` column in the final result set." + ] + }, + "revisql-train:3273": { + "raw": "1. Target the projects table, which contains the school location, county, and metro attributes needed.\n2. Filter rows where school_county equals 'Los Angeles', applying the external knowledge that Los Angeles County maps to this column value.\n3. Restrict the results further to rows where school_metro is exactly 'suburban'.\n4. Return only the school_city column to answer which cities contain these schools.", + "steps": [ + "Target the projects table, which contains the school location, county, and metro attributes needed.", + "Filter rows where school_county equals 'Los Angeles', applying the external knowledge that Los Angeles County maps to this column value.", + "Restrict the results further to rows where school_metro is exactly 'suburban'.", + "Return only the school_city column to answer which cities contain these schools." + ] + }, + "revisql-train:3275": { + "raw": "1. Group donations by projectid and exclude any project that has at least one donation with payment_method other than 'no_cash_received', retaining only projects that have never received a cash donation.\n2. Select distinct projectids from donations where payment_included_campaign_gift_card = 't' to identify projects that received a corporate-sponsored giftcard portion.\n3. Join the no-cash set with the giftcard set on projectid and count the matching projects.\n4. Cast that match count as REAL, multiply by 100.0, and divide by the total count of the no-cash set to compute the percentage.\n5. Return the single resulting value in a column named pct_projects_giftcard.", + "steps": [ + "Group donations by projectid and exclude any project that has at least one donation with payment_method other than 'no_cash_received', retaining only projects that have never received a cash donation.", + "Select distinct projectids from donations where payment_included_campaign_gift_card = 't' to identify projects that received a corporate-sponsored giftcard portion.", + "Join the no-cash set with the giftcard set on projectid and count the matching projects.", + "Cast that match count as REAL, multiply by 100.0, and divide by the total count of the no-cash set to compute the percentage.", + "Return the single resulting value in a column named pct_projects_giftcard." + ] + }, + "revisql-train:3283": { + "raw": "1. Join the essays table to the projects table on projectid to link project titles with teacher attributes.\n2. Filter essays to the row where the title matches 'Team More Books!'.\n3. Reference the teacher_ny_teaching_fellow column in projects and check whether it equals 't' to identify a New York teaching fellow.\n4. Apply a CASE expression that returns 'Yes' if the flag is 't' and 'No' for any other value.\n5. Return only that single computed Yes/No column.", + "steps": [ + "Join the essays table to the projects table on projectid to link project titles with teacher attributes.", + "Filter essays to the row where the title matches 'Team More Books!'.", + "Reference the teacher_ny_teaching_fellow column in projects and check whether it equals 't' to identify a New York teaching fellow.", + "Apply a CASE expression that returns 'Yes' if the flag is 't' and 'No' for any other value.", + "Return only that single computed Yes/No column." + ] + }, + "revisql-train:3290": { + "raw": "1. Join the projects table with the donations table on projectid to link each donation to its school's county.\n2. Filter the joined rows to only those where the projects table has school_county equal to 'Fresno', since Fresno County colleges maps to that column and value.\n3. For each matched donation record, compute a row-level total by adding donation_to_project and donation_optional_support.\n4. Sum all of those row-level donation totals to produce the aggregate numerator.\n5. Count the distinct schoolid values from the projects side to establish the denominator representing the number of unique schools.\n6. Divide the summed total donations by the distinct school count and return that single calculated average value.", + "steps": [ + "Join the projects table with the donations table on projectid to link each donation to its school's county.", + "Filter the joined rows to only those where the projects table has school_county equal to 'Fresno', since Fresno County colleges maps to that column and value.", + "For each matched donation record, compute a row-level total by adding donation_to_project and donation_optional_support.", + "Sum all of those row-level donation totals to produce the aggregate numerator.", + "Count the distinct schoolid values from the projects side to establish the denominator representing the number of unique schools.", + "Divide the summed total donations by the distinct school count and return that single calculated average value." + ] + }, + "revisql-train:3295": { + "raw": "1. Join the `resources` table to the `projects` table on `projectid` to associate each requested item with its school’s geographic data.\n2. Apply the external knowledge mapping that the needed item description corresponds to the `item_name` column, filtering for the exact value 'Viewscreen LCD from Texas Instruments, TI-84 Plus'.\n3. From the `projects` table, select `school_latitude` and `school_longitude` to return the required location coordinates.\n4. Use DISTINCT on the latitude and longitude pair so each unique school location is returned only once, avoiding duplicates from multiple matching resource rows.", + "steps": [ + "Join the `resources` table to the `projects` table on `projectid` to associate each requested item with its school’s geographic data.", + "Apply the external knowledge mapping that the needed item description corresponds to the `item_name` column, filtering for the exact value 'Viewscreen LCD from Texas Instruments, TI-84 Plus'.", + "From the `projects` table, select `school_latitude` and `school_longitude` to return the required location coordinates.", + "Use DISTINCT on the latitude and longitude pair so each unique school location is returned only once, avoiding duplicates from multiple matching resource rows." + ] + }, + "revisql-train:3296": { + "raw": "1. Join the donations table to the essays table using projectid as the join key.\n2. Filter the joined rows by the essays title column equal to Look, Look, We Need a Nook!, applying the external knowledge that the project name maps to that column.\n3. Count all matching donation rows to compute the total number of donations.\n4. Return only the count value as the answer column.", + "steps": [ + "Join the donations table to the essays table using projectid as the join key.", + "Filter the joined rows by the essays title column equal to Look, Look, We Need a Nook!, applying the external knowledge that the project name maps to that column.", + "Count all matching donation rows to compute the total number of donations.", + "Return only the count value as the answer column." + ] + }, + "revisql-train:3297": { + "raw": "1. Map the zip code \"7079\" to the `donor_zip` column in the `donations` table and filter for rows equal to 7079.\n2. Join the filtered `donations` records to the `projects` table using the `projectid` key to reach each donation's associated school data.\n3. From the `projects` table, select the `poverty_level` column to capture the school's poverty classification.\n4. Apply `DISTINCT` to the `poverty_level` results so each unique poverty level appears only once in the final list.", + "steps": [ + "Map the zip code \"7079\" to the `donor_zip` column in the `donations` table and filter for rows equal to 7079.", + "Join the filtered `donations` records to the `projects` table using the `projectid` key to reach each donation's associated school data.", + "From the `projects` table, select the `poverty_level` column to capture the school's poverty classification.", + "Apply `DISTINCT` to the `poverty_level` results so each unique poverty level appears only once in the final list." + ] + }, + "revisql-train:3299": { + "raw": "1. Start with the `resources` table for item names and vendor information, and the `projects` table for school zip codes.\n2. Join `resources` to `projects` on the shared `projectid` key to link each item to the school that received it.\n3. Filter to rows where `vendor_name` equals `'Sax Arts & Crafts'`, applying the external knowledge mapping.\n4. Return `item_name` from `resources` and `school_zip` from `projects` as the output columns.", + "steps": [ + "Start with the `resources` table for item names and vendor information, and the `projects` table for school zip codes.", + "Join `resources` to `projects` on the shared `projectid` key to link each item to the school that received it.", + "Filter to rows where `vendor_name` equals `'Sax Arts & Crafts'`, applying the external knowledge mapping.", + "Return `item_name` from `resources` and `school_zip` from `projects` as the output columns." + ] + }, + "revisql-train:33": { + "raw": "1. Join the lists and lists_users tables on matching user_id and list_id to combine each list's follower count with the user's subscription status at the time of creation.\n2. Filter for rows where user_id equals 4208563, mapping the external identifier to the user_id column.\n3. Compute the maximum list_followers value among this user's lists using a subquery that repeats the same join and user filter.\n4. In the main query, keep only rows where list_followers equals that computed maximum.\n5. Return list_id from lists_users, the list_followers count, and a check of whether user_subscriber equals 1 to produce 1 if the user was a subscriber when the list was created or 0 otherwise, as specified by the external knowledge.", + "steps": [ + "Join the lists and lists_users tables on matching user_id and list_id to combine each list's follower count with the user's subscription status at the time of creation.", + "Filter for rows where user_id equals 4208563, mapping the external identifier to the user_id column.", + "Compute the maximum list_followers value among this user's lists using a subquery that repeats the same join and user filter.", + "In the main query, keep only rows where list_followers equals that computed maximum.", + "Return list_id from lists_users, the list_followers count, and a check of whether user_subscriber equals 1 to produce 1 if the user was a subscriber when the list was created or 0 otherwise, as specified by the external knowledge." + ] + }, + "revisql-train:330": { + "raw": "1. Join the district and client tables on the district_id column to associate each client with their geographic division.\n2. Filter the joined results to only rows where the district division equals 'Pacific'.\n3. Map the requested \"full names\" to the first, middle, and last columns in the client table.\n4. Return the first, middle, and last columns from the client table for all matching rows.", + "steps": [ + "Join the district and client tables on the district_id column to associate each client with their geographic division.", + "Filter the joined results to only rows where the district division equals 'Pacific'.", + "Map the requested \"full names\" to the first, middle, and last columns in the client table.", + "Return the first, middle, and last columns from the client table for all matching rows." + ] + }, + "revisql-train:3304": { + "raw": "1. Filter the `donations` table to rows where `donor_zip` equals '22205'.\n2. Collect the distinct `projectid` values from those filtered donations to identify every project that received a donation from that zip code.\n3. Filter the `projects` table to only those `projectid`s found in step 2.\n4. Sum the `students_reached` column from the filtered `projects` rows, aliasing the result as the total students impacted.\n5. Return exactly that single aggregated column.", + "steps": [ + "Filter the `donations` table to rows where `donor_zip` equals '22205'.", + "Collect the distinct `projectid` values from those filtered donations to identify every project that received a donation from that zip code.", + "Filter the `projects` table to only those `projectid`s found in step 2.", + "Sum the `students_reached` column from the filtered `projects` rows, aliasing the result as the total students impacted.", + "Return exactly that single aggregated column." + ] + }, + "revisql-train:3306": { + "raw": "1. Join the resources table to the projects table on the shared projectid column.\n2. Filter the joined rows to only those where project_resource_type equals 'Technology'.\n3. Compute the numerator by counting rows where vendor_name equals 'Best Buy for Business'.\n4. Compute the denominator by counting all resourceid values in the filtered technology set.\n5. Cast the numerator to a real number, multiply by 100, divide by the denominator, and return this single calculated percentage column.", + "steps": [ + "Join the resources table to the projects table on the shared projectid column.", + "Filter the joined rows to only those where project_resource_type equals 'Technology'.", + "Compute the numerator by counting rows where vendor_name equals 'Best Buy for Business'.", + "Compute the denominator by counting all resourceid values in the filtered technology set.", + "Cast the numerator to a real number, multiply by 100, divide by the denominator, and return this single calculated percentage column." + ] + }, + "revisql-train:3308": { + "raw": "1. Look up the genre_id from the game table for the record whose game_name equals '3D Lemmings', using the external knowledge mapping the literal name to the game_name column.\n2. Filter the game table to retrieve all records sharing that same genre_id.\n3. No table joins, aggregations, or ordering are required.\n4. Return exactly the game_name column for the matched records.", + "steps": [ + "Look up the genre_id from the game table for the record whose game_name equals '3D Lemmings', using the external knowledge mapping the literal name to the game_name column.", + "Filter the game table to retrieve all records sharing that same genre_id.", + "No table joins, aggregations, or ordering are required.", + "Return exactly the game_name column for the matched records." + ] + }, + "revisql-train:3310": { + "raw": "1. Use the external knowledge that \"3D Lemmings\" maps to the game_name column in the game table.\n2. Join the game table to the genre table on game.genre_id = genre.id to reach the genre description.\n3. Filter rows where game.game_name equals exactly '3D Lemmings'.\n4. Return only the genre_name column from the genre table.", + "steps": [ + "Use the external knowledge that \"3D Lemmings\" maps to the game_name column in the game table.", + "Join the game table to the genre table on game.genre_id = genre.id to reach the genre description.", + "Filter rows where game.game_name equals exactly '3D Lemmings'.", + "Return only the genre_name column from the genre table." + ] + }, + "revisql-train:3313": { + "raw": "1. Identify the four required tables: game, game_publisher, publisher, and genre.\n2. Join game to game_publisher on the game id, join game_publisher to publisher on publisher id, and join game to genre on genre id.\n3. Filter the publisher table to only rows where publisher_name equals '10TACLE Studios' using the external knowledge mapping.\n4. Filter the genre table to only rows where genre_name equals 'Puzzle' using the external knowledge mapping.\n5. Count the game ids that satisfy both filters.\n6. Return only that count value.", + "steps": [ + "Identify the four required tables: game, game_publisher, publisher, and genre.", + "Join game to game_publisher on the game id, join game_publisher to publisher on publisher id, and join game to genre on genre id.", + "Filter the publisher table to only rows where publisher_name equals '10TACLE Studios' using the external knowledge mapping.", + "Filter the genre table to only rows where genre_name equals 'Puzzle' using the external knowledge mapping.", + "Count the game ids that satisfy both filters.", + "Return only that count value." + ] + }, + "revisql-train:333": { + "raw": "1. Use the client table for address columns and the events table for complaint date and submission method.\n2. Join client to events on client_id matching Client_ID.\n3. Filter events.Date received to '2012-03-14' based on the March 14 2012 external knowledge mapping.\n4. Filter events.Submitted via to 'Postal mail' based on the postal mail external knowledge mapping.\n5. Return address_1 and address_2 from the client table.", + "steps": [ + "Use the client table for address columns and the events table for complaint date and submission method.", + "Join client to events on client_id matching Client_ID.", + "Filter events.Date received to '2012-03-14' based on the March 14 2012 external knowledge mapping.", + "Filter events.Submitted via to 'Postal mail' based on the postal mail external knowledge mapping.", + "Return address_1 and address_2 from the client table." + ] + }, + "revisql-train:3332": { + "raw": "1. Filter the `game` table using the external knowledge mapping by setting `game_name` = 'Pro Evolution Soccer 2016'.\n2. Join `game_publisher` on `game.id` = `game_publisher.game_id` to reach publisher records for that game.\n3. Join `game_platform` on `game_publisher.id` = `game_platform.game_publisher_id` to access platform availability records.\n4. Aggregate with a distinct count of `game_platform.platform_id` to avoid duplicate platforms across publishers.\n5. Return that single count value as the number of available platforms.", + "steps": [ + "Filter the `game` table using the external knowledge mapping by setting `game_name` = 'Pro Evolution Soccer 2016'.", + "Join `game_publisher` on `game.id` = `game_publisher.game_id` to reach publisher records for that game.", + "Join `game_platform` on `game_publisher.id` = `game_platform.game_publisher_id` to access platform availability records.", + "Aggregate with a distinct count of `game_platform.platform_id` to avoid duplicate platforms across publishers.", + "Return that single count value as the number of available platforms." + ] + }, + "revisql-train:3339": { + "raw": "1. Join the publisher table to game_publisher on publisher.id = game_publisher.publisher_id to link each publisher to their game records.\n2. Filter the publisher table using the external knowledge that Ascaron Entertainment GmbH corresponds to publisher_name = 'Ascaron Entertainment GmbH'.\n3. Count the game_id values from the game_publisher table to compute the total number of games published by that company.\n4. Return the resulting count as the sole output column.", + "steps": [ + "Join the publisher table to game_publisher on publisher.id = game_publisher.publisher_id to link each publisher to their game records.", + "Filter the publisher table using the external knowledge that Ascaron Entertainment GmbH corresponds to publisher_name = 'Ascaron Entertainment GmbH'.", + "Count the game_id values from the game_publisher table to compute the total number of games published by that company.", + "Return the resulting count as the sole output column." + ] + }, + "revisql-train:3341": { + "raw": "1. Join game to game_publisher on game.id = game_publisher.game_id, then join publisher on game_publisher.publisher_id = publisher.id, and join genre on game.genre_id = genre.id.\n2. Filter to only rows where publisher.publisher_name equals 'Namco Bandai Games'.\n3. Count all game.id values in the filtered set to get the total number of games from that publisher.\n4. Count only adventure games by using a CASE expression that returns game.id when genre.genre_name is 'Adventure' and NULL otherwise.\n5. Cast the adventure game count to REAL, multiply by 100, divide by the total game count, and return this single computed percentage value.", + "steps": [ + "Join game to game_publisher on game.id = game_publisher.game_id, then join publisher on game_publisher.publisher_id = publisher.id, and join genre on game.genre_id = genre.id.", + "Filter to only rows where publisher.publisher_name equals 'Namco Bandai Games'.", + "Count all game.id values in the filtered set to get the total number of games from that publisher.", + "Count only adventure games by using a CASE expression that returns game.id when genre.genre_name is 'Adventure' and NULL otherwise.", + "Cast the adventure game count to REAL, multiply by 100, divide by the total game count, and return this single computed percentage value." + ] + }, + "revisql-train:3355": { + "raw": "1. Use only the game table, as it holds both the game_name and the genre_id; no joins are needed.\n2. Map the external knowledge so that the title \"25 to Life\" targets the game_name column.\n3. Filter to the single row where game_name equals exactly '25 to Life'.\n4. Return the genre_id column as the result.", + "steps": [ + "Use only the game table, as it holds both the game_name and the genre_id; no joins are needed.", + "Map the external knowledge so that the title \"25 to Life\" targets the game_name column.", + "Filter to the single row where game_name equals exactly '25 to Life'.", + "Return the genre_id column as the result." + ] + }, + "revisql-train:3359": { + "raw": "1. Start from the `game` table because the requested \"record ID\" maps to `game.id`.\n2. Join `game_publisher` on `game.id = game_publisher.game_id` to connect each game to its publisher records.\n3. Join `game_platform` on `game_publisher.id = game_platform.game_publisher_id` to access the release year.\n4. Filter the rows where `game_platform.release_year` is between 2000 and 2003.\n5. Return distinct `game.id` values to avoid duplicate record IDs when a game has multiple publishers or platforms.", + "steps": [ + "Start from the `game` table because the requested \"record ID\" maps to `game.id`.", + "Join `game_publisher` on `game.id = game_publisher.game_id` to connect each game to its publisher records.", + "Join `game_platform` on `game_publisher.id = game_platform.game_publisher_id` to access the release year.", + "Filter the rows where `game_platform.release_year` is between 2000 and 2003.", + "Return distinct `game.id` values to avoid duplicate record IDs when a game has multiple publishers or platforms." + ] + }, + "revisql-train:3360": { + "raw": "1. Start from the `region_sales` table, which directly stores sales figures linked to both a region and a game platform.\n2. Filter rows where `region_id` equals 2 and `game_platform_id` equals 4308.\n3. Sum the `num_sales` values to aggregate any records for that specific region–platform pair.\n4. Multiply the resulting sum by 100000 to convert to the actual number of sales, per the external knowledge.\n5. Return the final calculated value as the column `total_sales`.", + "steps": [ + "Start from the `region_sales` table, which directly stores sales figures linked to both a region and a game platform.", + "Filter rows where `region_id` equals 2 and `game_platform_id` equals 4308.", + "Sum the `num_sales` values to aggregate any records for that specific region–platform pair.", + "Multiply the resulting sum by 100000 to convert to the actual number of sales, per the external knowledge.", + "Return the final calculated value as the column `total_sales`." + ] + }, + "revisql-train:337": { + "raw": "1. Filter the client table to the row where the email column equals 'skylar.ramirez@gmail.com'.\n2. Join the district table on district_id to retrieve the state_abbrev for that client.\n3. Join the state table on state_abbrev matching StateCode to obtain the full state name.\n4. Return only the State column from the state table.", + "steps": [ + "Filter the client table to the row where the email column equals 'skylar.ramirez@gmail.com'.", + "Join the district table on district_id to retrieve the state_abbrev for that client.", + "Join the state table on state_abbrev matching StateCode to obtain the full state name.", + "Return only the State column from the state table." + ] + }, + "revisql-train:3373": { + "raw": "1. Target the publisher_name column in the publisher table, joining backward through game_publisher on publisher_id to connect publishers to their game releases.\n2. Continue the join chain through game_platform on game_publisher_id, then region_sales on game_platform_id, and finally region on region_id to make num_sales and region_name available.\n3. Construct a scalar subquery on region and region_sales that filters to region_name = 'Japan', computes AVG(num_sales), and multiplies by 0.9 to establish the threshold for \"sales greater than 90% of Japan's average sales.\"\n4. In the outer query, filter the joined region_sales rows so that num_sales is strictly greater than the subquery threshold.\n5. Return DISTINCT publisher_name so each qualifying game publisher appears exactly once.", + "steps": [ + "Target the publisher_name column in the publisher table, joining backward through game_publisher on publisher_id to connect publishers to their game releases.", + "Continue the join chain through game_platform on game_publisher_id, then region_sales on game_platform_id, and finally region on region_id to make num_sales and region_name available.", + "Construct a scalar subquery on region and region_sales that filters to region_name = 'Japan', computes AVG(num_sales), and multiplies by 0.9 to establish the threshold for \"sales greater than 90% of Japan's average sales.\"", + "In the outer query, filter the joined region_sales rows so that num_sales is strictly greater than the subquery threshold.", + "Return DISTINCT publisher_name so each qualifying game publisher appears exactly once." + ] + }, + "revisql-train:3379": { + "raw": "1. Identify that the `genre` table holds both the genre identifier and the genre name required by the question.\n2. Map the external knowledge specifying \"genre ID 3\" to the `id` column in the `genre` table and apply a filter for `id = 3`.\n3. Retrieve only the `genre_name` column, since the question asks specifically for the genre name.\n4. Note that no table joins are needed because all necessary data exists within the single `genre` table.", + "steps": [ + "Identify that the `genre` table holds both the genre identifier and the genre name required by the question.", + "Map the external knowledge specifying \"genre ID 3\" to the `id` column in the `genre` table and apply a filter for `id = 3`.", + "Retrieve only the `genre_name` column, since the question asks specifically for the genre name.", + "Note that no table joins are needed because all necessary data exists within the single `genre` table." + ] + }, + "revisql-train:3384": { + "raw": "1. Start from the game_publisher table, which links each game to its publisher.\n2. Inner join publisher on game_publisher.publisher_id = publisher.id to access publisher names.\n3. Filter the rows where publisher.publisher_name equals 'Acclaim Entertainment', applying the external knowledge mapping.\n4. Count distinct game_publisher.game_id values to obtain the unique number of games.\n5. Return only that count column.", + "steps": [ + "Start from the game_publisher table, which links each game to its publisher.", + "Inner join publisher on game_publisher.publisher_id = publisher.id to access publisher names.", + "Filter the rows where publisher.publisher_name equals 'Acclaim Entertainment', applying the external knowledge mapping.", + "Count distinct game_publisher.game_id values to obtain the unique number of games.", + "Return only that count column." + ] + }, + "revisql-train:3385": { + "raw": "1. Filter the game table to the row where game_name equals 'Chronicles of the Sword' per the external knowledge mapping.\n2. Join game_publisher on game.id = game_publisher.game_id to link the matched game to its publisher record.\n3. Join publisher on game_publisher.publisher_id = publisher.id to reach the publisher name.\n4. Return only the publisher_name column from the publisher table.", + "steps": [ + "Filter the game table to the row where game_name equals 'Chronicles of the Sword' per the external knowledge mapping.", + "Join game_publisher on game.id = game_publisher.game_id to link the matched game to its publisher record.", + "Join publisher on game_publisher.publisher_id = publisher.id to reach the publisher name.", + "Return only the publisher_name column from the publisher table." + ] + }, + "revisql-train:339": { + "raw": "1. Use the client table for owner identity and the callcenterlogs table for complaint details including final phone number, server, and date.\n2. Join client to callcenterlogs on client_id matching rand client to link each complaint to its owner.\n3. Filter callcenterlogs to server equal to MORIAH.\n4. Filter callcenterlogs to Date received equal to 2013-09-11 for the 9/11/2013 requirement.\n5. Return the first, middle, and last columns from the client table as the owner name.", + "steps": [ + "Use the client table for owner identity and the callcenterlogs table for complaint details including final phone number, server, and date.", + "Join client to callcenterlogs on client_id matching rand client to link each complaint to its owner.", + "Filter callcenterlogs to server equal to MORIAH.", + "Filter callcenterlogs to Date received equal to 2013-09-11 for the 9/11/2013 requirement.", + "Return the first, middle, and last columns from the client table as the owner name." + ] + }, + "revisql-train:3395": { + "raw": "1. Map the phrase \"released in 2001\" to the `release_year` column in the `game_platform` table and filter for rows equal to 2001.\n2. Join `game_publisher` to `game_platform` on `game_publisher.id = game_platform.game_publisher_id` to link each release year record to its corresponding game.\n3. Aggregate by counting distinct values of `game_publisher.game_id` so that each game is counted only once even if it has multiple platform or publisher entries.\n4. Return solely the resulting count column.", + "steps": [ + "Map the phrase \"released in 2001\" to the `release_year` column in the `game_platform` table and filter for rows equal to 2001.", + "Join `game_publisher` to `game_platform` on `game_publisher.id = game_platform.game_publisher_id` to link each release year record to its corresponding game.", + "Aggregate by counting distinct values of `game_publisher.game_id` so that each game is counted only once even if it has multiple platform or publisher entries.", + "Return solely the resulting count column." + ] + }, + "revisql-train:3399": { + "raw": "1. Start from the genre table and LEFT JOIN game on genre.id = game.genre_id so that every genre is included, even those with no associated games.\n2. Group the results by genre.id and compute COUNT(game.id) to get the total number of games for each genre.\n3. Use a subquery or CTE to calculate the minimum value across all those per-genre game counts, which corresponds to the least common genre.\n4. Filter the grouped results with a HAVING clause, keeping only genres whose COUNT(game.id) equals that overall minimum count.\n5. Return the genre_name column for the genres that pass the filter.", + "steps": [ + "Start from the genre table and LEFT JOIN game on genre.id = game.genre_id so that every genre is included, even those with no associated games.", + "Group the results by genre.id and compute COUNT(game.id) to get the total number of games for each genre.", + "Use a subquery or CTE to calculate the minimum value across all those per-genre game counts, which corresponds to the least common genre.", + "Filter the grouped results with a HAVING clause, keeping only genres whose COUNT(game.id) equals that overall minimum count.", + "Return the genre_name column for the genres that pass the filter." + ] + }, + "revisql-train:340": { + "raw": "1. Inner join the client table with callcenterlogs on client_id matching rand client to associate each caller’s age with their complaint’s server time.\n2. Convert the textual ser_time values from HH:MM:SS format into decimal minutes by calculating hours multiplied by 60 plus minutes plus seconds divided by 60.\n3. Use conditional aggregation to separate records into the three age groups from the external knowledge: teenager (age greater than 13 and up to 19), adult (age greater than 19 and up to 65), and elder (age greater than 65).\n4. For each age group, divide the sum of its converted minutes by the count of its records to compute the average minutes per complaint.\n5. Return the three resulting averages as teenagerAverageMins, adultAverageMins, and elderAverageMins in a single output row.", + "steps": [ + "Inner join the client table with callcenterlogs on client_id matching rand client to associate each caller’s age with their complaint’s server time.", + "Convert the textual ser_time values from HH:MM:SS format into decimal minutes by calculating hours multiplied by 60 plus minutes plus seconds divided by 60.", + "Use conditional aggregation to separate records into the three age groups from the external knowledge: teenager (age greater than 13 and up to 19), adult (age greater than 19 and up to 65), and elder (age greater than 65).", + "For each age group, divide the sum of its converted minutes by the count of its records to compute the average minutes per complaint.", + "Return the three resulting averages as teenagerAverageMins, adultAverageMins, and elderAverageMins in a single output row." + ] + }, + "revisql-train:3421": { + "raw": "1. Map the requested game title to the `game_name` column in the `game` table and the desired \"genre\" to the `genre_name` column in the `genre` table.\n2. Join `game` to `genre` on `game.genre_id` equaling `genre.id`.\n3. Filter the result to the single row where `game_name` is exactly '2 Games in 1: Sonic Advance & ChuChu Rocket!'.\n4. Return only the `genre_name` column as the answer.", + "steps": [ + "Map the requested game title to the `game_name` column in the `game` table and the desired \"genre\" to the `genre_name` column in the `genre` table.", + "Join `game` to `genre` on `game.genre_id` equaling `genre.id`.", + "Filter the result to the single row where `game_name` is exactly '2 Games in 1: Sonic Advance & ChuChu Rocket!'.", + "Return only the `genre_name` column as the answer." + ] + }, + "revisql-train:3422": { + "raw": "1. Start from `region_sales` and join it to `game_platform` on `game_platform_id`, then join `game_platform` to `platform` on `platform_id`, and join `region_sales` to `region` on `region_id` to access platform names, region names, and sales figures.\n2. Filter `platform.platform_name` to `'DS'` to satisfy the DS platform condition.\n3. Filter `region.region_name` to `'Other'` to satisfy the other regions condition.\n4. Filter `region_sales.num_sales` to values greater than `0` to capture only positive sales.\n5. Apply `COUNT(*)` to count all matching rows and return that single count column.", + "steps": [ + "Start from `region_sales` and join it to `game_platform` on `game_platform_id`, then join `game_platform` to `platform` on `platform_id`, and join `region_sales` to `region` on `region_id` to access platform names, region names, and sales figures.", + "Filter `platform.platform_name` to `'DS'` to satisfy the DS platform condition.", + "Filter `region.region_name` to `'Other'` to satisfy the other regions condition.", + "Filter `region_sales.num_sales` to values greater than `0` to capture only positive sales.", + "Apply `COUNT(*)` to count all matching rows and return that single count column." + ] + }, + "revisql-train:3424": { + "raw": "1. Inner join the `genre` table to the `game` table on `genre.id = game.genre_id` to connect each game record with its genre name.\n2. Apply the external knowledge that strategy games correspond to `genre_name = 'Strategy'`.\n3. Count `game.id` values only for rows where the joined `genre_name` equals 'Strategy'.\n4. Return exactly one column: the count of strategy games.", + "steps": [ + "Inner join the `genre` table to the `game` table on `genre.id = game.genre_id` to connect each game record with its genre name.", + "Apply the external knowledge that strategy games correspond to `genre_name = 'Strategy'`.", + "Count `game.id` values only for rows where the joined `genre_name` equals 'Strategy'.", + "Return exactly one column: the count of strategy games." + ] + }, + "revisql-train:3432": { + "raw": "1. Start from the `publisher` table since the request is about publisher names.\n2. Select the `publisher_name` column to return.\n3. Filter rows where `publisher_name` contains the word \"Entertainment\" by applying a `LIKE '%Entertainment%'` pattern, as indicated by the external knowledge.\n4. No joins, grouping, or ordering are required; simply return the filtered `publisher_name` values.", + "steps": [ + "Start from the `publisher` table since the request is about publisher names.", + "Select the `publisher_name` column to return.", + "Filter rows where `publisher_name` contains the word \"Entertainment\" by applying a `LIKE '%Entertainment%'` pattern, as indicated by the external knowledge.", + "No joins, grouping, or ordering are required; simply return the filtered `publisher_name` values." + ] + }, + "revisql-train:3433": { + "raw": "1. Recognize that \"adventure games\" maps to the genre table's genre_name column with the value 'Adventure', and that \"name of games\" maps to the game table's game_name column.\n2. Join the genre table to the game table on genre.id = game.genre_id to associate each game with its genre.\n3. Filter the joined results to only rows where genre_name equals 'Adventure'.\n4. Return the game_name column from the game table as the final result set.", + "steps": [ + "Recognize that \"adventure games\" maps to the genre table's genre_name column with the value 'Adventure', and that \"name of games\" maps to the game table's game_name column.", + "Join the genre table to the game table on genre.id = game.genre_id to associate each game with its genre.", + "Filter the joined results to only rows where genre_name equals 'Adventure'.", + "Return the game_name column from the game table as the final result set." + ] + }, + "revisql-train:3445": { + "raw": "1. Start from the `platform` table and restrict rows to those where `platform_name` equals 'PS2'.\n2. Join `game_platform` using `platform.id` = `game_platform.platform_id` to collect every PS2 release record.\n3. Join `region_sales` using `game_platform.id` = `region_sales.game_platform_id` to bring in the sales figures tied to those releases.\n4. Translate each `num_sales` value into actual unit sales by multiplying by 100000, per the external knowledge definition.\n5. Compute the average across all of those converted sales numbers.\n6. Return exactly that single aggregated average value.", + "steps": [ + "Start from the `platform` table and restrict rows to those where `platform_name` equals 'PS2'.", + "Join `game_platform` using `platform.id` = `game_platform.platform_id` to collect every PS2 release record.", + "Join `region_sales` using `game_platform.id` = `region_sales.game_platform_id` to bring in the sales figures tied to those releases.", + "Translate each `num_sales` value into actual unit sales by multiplying by 100000, per the external knowledge definition.", + "Compute the average across all of those converted sales numbers.", + "Return exactly that single aggregated average value." + ] + }, + "revisql-train:3451": { + "raw": "1. Filter the game table to rows where game_name equals '3Xtreme', applying the external knowledge that the string '3Xtreme' maps to that column value.\n2. Join game_publisher on game.id = game_publisher.game_id to connect the matched game to its publisher records.\n3. Join game_platform on game_publisher.id = game_platform.game_publisher_id to reach the platform availability records.\n4. Join platform on game_platform.platform_id = platform.id to access the platform names.\n5. Return exactly the platform_name column from the platform table, as the external knowledge maps the question's term \"platform\" to that column.", + "steps": [ + "Filter the game table to rows where game_name equals '3Xtreme', applying the external knowledge that the string '3Xtreme' maps to that column value.", + "Join game_publisher on game.id = game_publisher.game_id to connect the matched game to its publisher records.", + "Join game_platform on game_publisher.id = game_platform.game_publisher_id to reach the platform availability records.", + "Join platform on game_platform.platform_id = platform.id to access the platform names.", + "Return exactly the platform_name column from the platform table, as the external knowledge maps the question's term \"platform\" to that column." + ] + }, + "revisql-train:346": { + "raw": "1. Identify that client emails are stored in the client table and complaint types are stored in callcenterlogs.\n2. Join client to callcenterlogs on client_id matching rand client.\n3. Filter the joined rows to only those where callcenterlogs.type equals 'PS'.\n4. Select distinct values of the email column from the client table to remove duplicates.\n5. Return only the email column in the final result.", + "steps": [ + "Identify that client emails are stored in the client table and complaint types are stored in callcenterlogs.", + "Join client to callcenterlogs on client_id matching rand client.", + "Filter the joined rows to only those where callcenterlogs.type equals 'PS'.", + "Select distinct values of the email column from the client table to remove duplicates.", + "Return only the email column in the final result." + ] + }, + "revisql-train:3465": { + "raw": "1. Identify the `game_platform` table as the only source needed, since it contains both `platform_id` and `release_year` with no joins required.\n2. Filter rows where `release_year` equals 2007, applying the external knowledge that maps \"released in 2007\" to that column and value.\n3. Deduplicate the results so each `platform_id` appears only once, because multiple games could have been released on the same platform in 2007.\n4. Return exclusively the `platform_id` column.", + "steps": [ + "Identify the `game_platform` table as the only source needed, since it contains both `platform_id` and `release_year` with no joins required.", + "Filter rows where `release_year` equals 2007, applying the external knowledge that maps \"released in 2007\" to that column and value.", + "Deduplicate the results so each `platform_id` appears only once, because multiple games could have been released on the same platform in 2007.", + "Return exclusively the `platform_id` column." + ] + }, + "revisql-train:3467": { + "raw": "1. Start from the `game_platform` table, which contains both the `release_year` and the `game_publisher_id`.\n2. Filter rows to only those where `release_year` equals 1984, mapping the phrase \"released in 1984\" directly to this column.\n3. Count distinct values of `game_publisher_id` to avoid duplicate publisher IDs across multiple platform releases in that year.\n4. Return the aggregated result as a single column named `num_publisher_ids`.", + "steps": [ + "Start from the `game_platform` table, which contains both the `release_year` and the `game_publisher_id`.", + "Filter rows to only those where `release_year` equals 1984, mapping the phrase \"released in 1984\" directly to this column.", + "Count distinct values of `game_publisher_id` to avoid duplicate publisher IDs across multiple platform releases in that year.", + "Return the aggregated result as a single column named `num_publisher_ids`." + ] + }, + "revisql-train:3468": { + "raw": "1. Join the region_sales table to the game_platform table on region_sales.game_platform_id = game_platform.id.\n2. Filter for rows where region_sales.region_id equals 3.\n3. Apply DISTINCT to game_platform.platform_id to remove duplicates from multiple sales records.\n4. Return only the platform_id column.", + "steps": [ + "Join the region_sales table to the game_platform table on region_sales.game_platform_id = game_platform.id.", + "Filter for rows where region_sales.region_id equals 3.", + "Apply DISTINCT to game_platform.platform_id to remove duplicates from multiple sales records.", + "Return only the platform_id column." + ] + }, + "revisql-train:3489": { + "raw": "1. Join `game_platform` to `game_publisher` on `game_publisher_id`, then to `game` on `game_id`, then to `genre` on `genre_id`.\n2. Filter `genre` to rows where `genre_name` equals 'Adventure' using the external knowledge mapping.\n3. Filter `game_platform` to rows where `release_year` equals 2005 using the external knowledge mapping.\n4. Count distinct values of `game.id` so each game is only counted once despite multiple platform or publisher records.\n5. Return a single column with that count as the total number of adventure games released in 2005.", + "steps": [ + "Join `game_platform` to `game_publisher` on `game_publisher_id`, then to `game` on `game_id`, then to `genre` on `genre_id`.", + "Filter `genre` to rows where `genre_name` equals 'Adventure' using the external knowledge mapping.", + "Filter `game_platform` to rows where `release_year` equals 2005 using the external knowledge mapping.", + "Count distinct values of `game.id` so each game is only counted once despite multiple platform or publisher records.", + "Return a single column with that count as the total number of adventure games released in 2005." + ] + }, + "revisql-train:3519": { + "raw": "1. Map the given paper title to the Paper.Title column and the given organization string to the PaperAuthor.Affiliation column, keeping author names per paper in PaperAuthor.\n2. Join PaperAuthor to Paper on PaperAuthor.PaperId = Paper.Id.\n3. Filter Paper.Title to match \"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\".\n4. Filter PaperAuthor.Affiliation to match \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\".\n5. Return the PaperAuthor.Name column.", + "steps": [ + "Map the given paper title to the Paper.Title column and the given organization string to the PaperAuthor.Affiliation column, keeping author names per paper in PaperAuthor.", + "Join PaperAuthor to Paper on PaperAuthor.PaperId = Paper.Id.", + "Filter Paper.Title to match \"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\".", + "Filter PaperAuthor.Affiliation to match \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\".", + "Return the PaperAuthor.Name column." + ] + }, + "revisql-train:3523": { + "raw": "1. Join the Paper table to the Journal table on Paper.JournalId equal to Journal.Id so every paper is paired with its journal FullName.\n2. In a derived table, use conditional aggregation to count how many papers belong to the journal with FullName Cases Journal and how many belong to the journal with FullName Molecular Brain.\n3. In the outer query, subtract the Molecular Brain paper count from the Cases Journal paper count, divide that difference by the Molecular Brain paper count, and multiply by 100.0 to get the percentage more.\n4. Return exactly one column named percentage_more containing the final calculated value.", + "steps": [ + "Join the Paper table to the Journal table on Paper.JournalId equal to Journal.Id so every paper is paired with its journal FullName.", + "In a derived table, use conditional aggregation to count how many papers belong to the journal with FullName Cases Journal and how many belong to the journal with FullName Molecular Brain.", + "In the outer query, subtract the Molecular Brain paper count from the Cases Journal paper count, divide that difference by the Molecular Brain paper count, and multiply by 100.0 to get the percentage more.", + "Return exactly one column named percentage_more containing the final calculated value." + ] + }, + "revisql-train:3524": { + "raw": "1. Select from the Journal table alone; no joins are required.\n2. Filter rows where FullName matches the external knowledge mapping for the word \"computing\", using a substring match on that column.\n3. Count the Id values of the journals that satisfy the filter.\n4. Return that count as the sole output column.", + "steps": [ + "Select from the Journal table alone; no joins are required.", + "Filter rows where FullName matches the external knowledge mapping for the word \"computing\", using a substring match on that column.", + "Count the Id values of the journals that satisfy the filter.", + "Return that count as the sole output column." + ] + }, + "revisql-train:3525": { + "raw": "1. Identify that the PaperAuthor table contains both the paper and author identifiers alongside the author’s written affiliation, so no joins are required.\n2. Map the external knowledge organization “Cairo Microsoft Innovation Lab, Egypt” to the Affiliation column in PaperAuthor.\n3. Filter rows where Affiliation begins with “Cairo Microsoft Innovation Lab” using a LIKE pattern to match the known organization including its suffix or variations.\n4. Return only the PaperId and AuthorId columns from the filtered rows.", + "steps": [ + "Identify that the PaperAuthor table contains both the paper and author identifiers alongside the author’s written affiliation, so no joins are required.", + "Map the external knowledge organization “Cairo Microsoft Innovation Lab, Egypt” to the Affiliation column in PaperAuthor.", + "Filter rows where Affiliation begins with “Cairo Microsoft Innovation Lab” using a LIKE pattern to match the known organization including its suffix or variations.", + "Return only the PaperId and AuthorId columns from the filtered rows." + ] + }, + "revisql-train:3529": { + "raw": "1. Join the Paper and Journal tables on Paper.JournalId = Journal.Id to link each paper to its publication journal.\n2. Use the MAX aggregation on Paper.Year from that joined result to determine the latest publication year, applying the external knowledge that “latest” means maximum Year.\n3. Filter the joined rows to keep only those where Paper.Year equals that maximum year.\n4. Return the columns Paper.Title and Journal.HomePage.", + "steps": [ + "Join the Paper and Journal tables on Paper.JournalId = Journal.Id to link each paper to its publication journal.", + "Use the MAX aggregation on Paper.Year from that joined result to determine the latest publication year, applying the external knowledge that “latest” means maximum Year.", + "Filter the joined rows to keep only those where Paper.Year equals that maximum year.", + "Return the columns Paper.Title and Journal.HomePage." + ] + }, + "revisql-train:353": { + "raw": "1. Note from the external knowledge that last name refers to the last column in the client table, and that 0 priority means the priority column in callcenterlogs equals 0.\n2. Form an inner join between the client table and the callcenterlogs table on client_id equals rand client to link each client to their complaint records.\n3. Filter the joined results to only rows where the callcenterlogs priority value is 0.\n4. Return exclusively the last column from the client table as the final output.", + "steps": [ + "Note from the external knowledge that last name refers to the last column in the client table, and that 0 priority means the priority column in callcenterlogs equals 0.", + "Form an inner join between the client table and the callcenterlogs table on client_id equals rand client to link each client to their complaint records.", + "Filter the joined results to only rows where the callcenterlogs priority value is 0.", + "Return exclusively the last column from the client table as the final output." + ] + }, + "revisql-train:3532": { + "raw": "1. Join the PaperAuthor table to the Paper table on PaperId equal to Id.\n2. Filter PaperAuthor.Affiliation to exactly 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications'.\n3. Filter Paper.Year to 2003, applying the external knowledge that \"published in 2003\" maps to the Year column.\n4. Select the Title column from the Paper table with DISTINCT to avoid duplicate titles when multiple author rows match the same paper.\n5. Return only the Title column as the final output.", + "steps": [ + "Join the PaperAuthor table to the Paper table on PaperId equal to Id.", + "Filter PaperAuthor.Affiliation to exactly 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications'.", + "Filter Paper.Year to 2003, applying the external knowledge that \"published in 2003\" maps to the Year column.", + "Select the Title column from the Paper table with DISTINCT to avoid duplicate titles when multiple author rows match the same paper.", + "Return only the Title column as the final output." + ] + }, + "revisql-train:3533": { + "raw": "1. Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect each paper with its authors.\n2. Join Paper to Journal on Paper.JournalId = Journal.Id to access journal short names.\n3. Apply the external knowledge constraints: filter Paper.JournalId to the range 245–250 and Paper.Title to a pattern containing \"chemiluminescence\".\n4. Return PaperAuthor.Name and Journal.ShortName as the output columns.", + "steps": [ + "Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect each paper with its authors.", + "Join Paper to Journal on Paper.JournalId = Journal.Id to access journal short names.", + "Apply the external knowledge constraints: filter Paper.JournalId to the range 245–250 and Paper.Title to a pattern containing \"chemiluminescence\".", + "Return PaperAuthor.Name and Journal.ShortName as the output columns." + ] + }, + "revisql-train:3535": { + "raw": "1. Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to link each paper to its authors.\n2. Map the question's conditions using the external knowledge: filter the Paper table to rows where Year equals 2006 and ConferenceId is less than 100.\n3. From the joined result, select the Title column from Paper and the AuthorId column from PaperAuthor.\n4. Return distinct pairs of Title and AuthorId to ensure each paper-author combination is listed only once.", + "steps": [ + "Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to link each paper to its authors.", + "Map the question's conditions using the external knowledge: filter the Paper table to rows where Year equals 2006 and ConferenceId is less than 100.", + "From the joined result, select the Title column from Paper and the AuthorId column from PaperAuthor.", + "Return distinct pairs of Title and AuthorId to ensure each paper-author combination is listed only once." + ] + }, + "revisql-train:3537": { + "raw": "1. Filter the Paper table to rows where Year is between 2000 and 2005 and Title contains the word \"social\", applying the external knowledge mappings Year BETWEEN 2000 AND 2005 and Title LIKE '%SOCIAL%'.\n2. Join the qualifying Paper rows with PaperAuthor on Paper.Id = PaperAuthor.PaperId to bring in the author IDs.\n3. Join the qualifying Paper rows with Journal on Paper.JournalId = Journal.Id to bring in the journal homepages.\n4. Return the columns Journal.HomePage and PaperAuthor.AuthorId.", + "steps": [ + "Filter the Paper table to rows where Year is between 2000 and 2005 and Title contains the word \"social\", applying the external knowledge mappings Year BETWEEN 2000 AND 2005 and Title LIKE '%SOCIAL%'.", + "Join the qualifying Paper rows with PaperAuthor on Paper.Id = PaperAuthor.PaperId to bring in the author IDs.", + "Join the qualifying Paper rows with Journal on Paper.JournalId = Journal.Id to bring in the journal homepages.", + "Return the columns Journal.HomePage and PaperAuthor.AuthorId." + ] + }, + "revisql-train:3539": { + "raw": "1. Inner join Paper to Journal on Paper.JournalId = Journal.Id to access journal metadata for each paper.\n2. Filter to rows where Paper.JournalId is between 200 and 300 and Journal.ShortName starts with 'A', applying the given range and prefix conditions.\n3. Compute the numerator as a conditional sum that counts 1 when Paper.ConferenceId equals 0 and 0 otherwise.\n4. Compute the denominator as the total count of Paper.ConferenceId across the filtered set.\n5. Cast the numerator to REAL, multiply by 100, and divide by the denominator to calculate the percentage.\n6. Return exactly one column: the computed percentage.", + "steps": [ + "Inner join Paper to Journal on Paper.JournalId = Journal.Id to access journal metadata for each paper.", + "Filter to rows where Paper.JournalId is between 200 and 300 and Journal.ShortName starts with 'A', applying the given range and prefix conditions.", + "Compute the numerator as a conditional sum that counts 1 when Paper.ConferenceId equals 0 and 0 otherwise.", + "Compute the denominator as the total count of Paper.ConferenceId across the filtered set.", + "Cast the numerator to REAL, multiply by 100, and divide by the denominator to calculate the percentage.", + "Return exactly one column: the computed percentage." + ] + }, + "revisql-train:354": { + "raw": "1. Identify that client first names reside in the `client` table while call IDs reside in `callcenterlogs`, so a join between these two tables is required.\n2. Link `client` to `callcenterlogs` on `client_id` equal to the `rand client` foreign key.\n3. Apply the filter that `client.first` begins with the letter B, mapping the requirement to `LIKE 'B%'`.\n4. Return only the `call_id` column from the `callcenterlogs` table.", + "steps": [ + "Identify that client first names reside in the `client` table while call IDs reside in `callcenterlogs`, so a join between these two tables is required.", + "Link `client` to `callcenterlogs` on `client_id` equal to the `rand client` foreign key.", + "Apply the filter that `client.first` begins with the letter B, mapping the requirement to `LIKE 'B%'`.", + "Return only the `call_id` column from the `callcenterlogs` table." + ] + }, + "revisql-train:3541": { + "raw": "1. Use only the Conference table; no joins are needed.\n2. Map the external knowledge that \"ICWE\" is a conference short name to the ShortName column.\n3. Filter rows where ShortName equals 'ICWE'.\n4. Return the FullName and HomePage columns.", + "steps": [ + "Use only the Conference table; no joins are needed.", + "Map the external knowledge that \"ICWE\" is a conference short name to the ShortName column.", + "Filter rows where ShortName equals 'ICWE'.", + "Return the FullName and HomePage columns." + ] + }, + "revisql-train:3548": { + "raw": "1. Use PaperAuthor as the starting table because it links authors to papers and records the author’s affiliation as written on each paper.\n2. Join PaperAuthor with Paper on PaperId = Paper.Id to bring in the paper’s year and keyword.\n3. Filter to AuthorId values less than 1000 to satisfy the “authors with ID under 1000” requirement.\n4. Filter to rows where PaperAuthor.Affiliation is exactly 'Zurich, ETH'.\n5. Return Paper.Id as the paper ID, plus Paper.Year and Paper.Keyword.", + "steps": [ + "Use PaperAuthor as the starting table because it links authors to papers and records the author’s affiliation as written on each paper.", + "Join PaperAuthor with Paper on PaperId = Paper.Id to bring in the paper’s year and keyword.", + "Filter to AuthorId values less than 1000 to satisfy the “authors with ID under 1000” requirement.", + "Filter to rows where PaperAuthor.Affiliation is exactly 'Zurich, ETH'.", + "Return Paper.Id as the paper ID, plus Paper.Year and Paper.Keyword." + ] + }, + "revisql-train:3549": { + "raw": "1. Filter the Paper table to the single row whose Title matches \"Inspection resistant memory: Architectural support for security from physical examination\" provided in the external knowledge.\n2. Inner join that Paper row to the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to reach all author records for the paper.\n3. Further filter the PaperAuthor rows, keeping only those where Affiliation equals \"Microsoft Research, USA\" from the external knowledge.\n4. Return the author name as written on the paper from PaperAuthor.Name and the corresponding identifier from PaperAuthor.AuthorId.", + "steps": [ + "Filter the Paper table to the single row whose Title matches \"Inspection resistant memory: Architectural support for security from physical examination\" provided in the external knowledge.", + "Inner join that Paper row to the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to reach all author records for the paper.", + "Further filter the PaperAuthor rows, keeping only those where Affiliation equals \"Microsoft Research, USA\" from the external knowledge.", + "Return the author name as written on the paper from PaperAuthor.Name and the corresponding identifier from PaperAuthor.AuthorId." + ] + }, + "revisql-train:3554": { + "raw": "1. Join the Journal table with the Paper table on Journal.Id equal to Paper.JournalId to link each paper to its corresponding journal record.\n2. Filter the Paper rows to keep only those with Year equal to 2013.\n3. Apply the external knowledge that a valid journal ID means Paper.JournalId is not 0 and not -1, excluding invalid entries.\n4. Use DISTINCT so each unique journal appears only once, even if multiple 2013 papers were published in it.\n5. Return three columns: Paper.JournalId, Journal.ShortName, and Journal.FullName.", + "steps": [ + "Join the Journal table with the Paper table on Journal.Id equal to Paper.JournalId to link each paper to its corresponding journal record.", + "Filter the Paper rows to keep only those with Year equal to 2013.", + "Apply the external knowledge that a valid journal ID means Paper.JournalId is not 0 and not -1, excluding invalid entries.", + "Use DISTINCT so each unique journal appears only once, even if multiple 2013 papers were published in it.", + "Return three columns: Paper.JournalId, Journal.ShortName, and Journal.FullName." + ] + }, + "revisql-train:3558": { + "raw": "1. Map the provided paper title from the external knowledge to the Title column in the Paper table.\n2. Filter the Paper table to the single record where Title equals \"Energy-efficiency bounds for noise-tolerant dynamic circuits\".\n3. Join that Paper record to the Conference table on Paper.ConferenceId = Conference.Id.\n4. Return the HomePage column from the Conference table.", + "steps": [ + "Map the provided paper title from the external knowledge to the Title column in the Paper table.", + "Filter the Paper table to the single record where Title equals \"Energy-efficiency bounds for noise-tolerant dynamic circuits\".", + "Join that Paper record to the Conference table on Paper.ConferenceId = Conference.Id.", + "Return the HomePage column from the Conference table." + ] + }, + "revisql-train:3559": { + "raw": "1. Map the phrase \"paper with id from 101 to 105\" to a filter on the Paper.Id column using the inclusive range 101 through 105 (expressed as greater than 100 and less than 106).\n2. Join the Paper table with PaperAuthor on Paper.Id = PaperAuthor.PaperId to retrieve all author records linked to those specific papers.\n3. Recognize that the author names required by the question are stored directly in PaperAuthor.Name, making a join to the Author table unnecessary.\n4. Return only the Name column from PaperAuthor to list the authors for the qualifying papers.", + "steps": [ + "Map the phrase \"paper with id from 101 to 105\" to a filter on the Paper.Id column using the inclusive range 101 through 105 (expressed as greater than 100 and less than 106).", + "Join the Paper table with PaperAuthor on Paper.Id = PaperAuthor.PaperId to retrieve all author records linked to those specific papers.", + "Recognize that the author names required by the question are stored directly in PaperAuthor.Name, making a join to the Author table unnecessary.", + "Return only the Name column from PaperAuthor to list the authors for the qualifying papers." + ] + }, + "revisql-train:3560": { + "raw": "1. Filter the Paper table to rows where Year equals 2009, applying the external knowledge that \"published in 2009\" maps to the Year column.\n2. Join the filtered Paper table with the Conference table on Paper.ConferenceId = Conference.Id to link each paper to its publishing conference.\n3. Select only the ShortName column from the Conference table as the output field.\n4. Preserve all matching rows without applying aggregation, ordering, or deduplication.", + "steps": [ + "Filter the Paper table to rows where Year equals 2009, applying the external knowledge that \"published in 2009\" maps to the Year column.", + "Join the filtered Paper table with the Conference table on Paper.ConferenceId = Conference.Id to link each paper to its publishing conference.", + "Select only the ShortName column from the Conference table as the output field.", + "Preserve all matching rows without applying aggregation, ordering, or deduplication." + ] + }, + "revisql-train:3561": { + "raw": "1. Locate the target paper in the Paper table by filtering the Title column to match the exact paper name given in the external knowledge.\n2. Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to reach the journal’s metadata.\n3. Return the HomePage column from the Journal table as the final answer.", + "steps": [ + "Locate the target paper in the Paper table by filtering the Title column to match the exact paper name given in the external knowledge.", + "Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to reach the journal’s metadata.", + "Return the HomePage column from the Journal table as the final answer." + ] + }, + "revisql-train:3564": { + "raw": "1. Filter the Paper table to the row where Title matches the exact paper title provided in the external knowledge.\n2. Join the filtered Paper record with PaperAuthor on Paper.Id = PaperAuthor.PaperId to retrieve all author entries for that paper.\n3. Count distinct PaperAuthor.Name values to ensure each unique author is counted only once.\n4. Return a single column containing that numeric count of distinct authors.", + "steps": [ + "Filter the Paper table to the row where Title matches the exact paper title provided in the external knowledge.", + "Join the filtered Paper record with PaperAuthor on Paper.Id = PaperAuthor.PaperId to retrieve all author entries for that paper.", + "Count distinct PaperAuthor.Name values to ensure each unique author is counted only once.", + "Return a single column containing that numeric count of distinct authors." + ] + }, + "revisql-train:3569": { + "raw": "1. Target the Conference table exclusively, as the question only asks for conference attributes and no other tables are needed.\n2. Return the ShortName column to list the abbreviated conference names.\n3. Map the external knowledge that \"full name\" corresponds to the FullName column and \"begins with International Symposium\" translates to the LIKE filter 'International Symposium%'.\n4. Apply that filter in the WHERE clause on FullName; no joins, grouping, or ordering are required.", + "steps": [ + "Target the Conference table exclusively, as the question only asks for conference attributes and no other tables are needed.", + "Return the ShortName column to list the abbreviated conference names.", + "Map the external knowledge that \"full name\" corresponds to the FullName column and \"begins with International Symposium\" translates to the LIKE filter 'International Symposium%'.", + "Apply that filter in the WHERE clause on FullName; no joins, grouping, or ordering are required." + ] + }, + "revisql-train:3571": { + "raw": "1. Map \"not published\" to `Paper.Year = 0` using the external knowledge, and further require both `ConferenceId` and `JournalId` to be `0` or `NULL` to identify preprinted articles per the schema commonsense.\n2. Join `PaperAuthor` to `Paper` on `PaperAuthor.PaperId = Paper.Id` to associate each preprint with its authors.\n3. Apply the preprint filters to the joined data so only unpublished preprints remain.\n4. Return distinct values of `PaperAuthor.Name` to list each author once without duplicates.", + "steps": [ + "Map \"not published\" to `Paper.Year = 0` using the external knowledge, and further require both `ConferenceId` and `JournalId` to be `0` or `NULL` to identify preprinted articles per the schema commonsense.", + "Join `PaperAuthor` to `Paper` on `PaperAuthor.PaperId = Paper.Id` to associate each preprint with its authors.", + "Apply the preprint filters to the joined data so only unpublished preprints remain.", + "Return distinct values of `PaperAuthor.Name` to list each author once without duplicates." + ] + }, + "revisql-train:3573": { + "raw": "1. Start with the `Paper` table and join it to the `Conference` table on `Paper.ConferenceId` = `Conference.Id`.\n2. Filter for rows where `Paper.ConferenceId` is not equal to 0, applying the external knowledge that this indicates a conference publication.\n3. Filter for rows where `Paper.JournalId` is less than or equal to 0, applying the external knowledge that this indicates no journal publication.\n4. Apply `DISTINCT` to eliminate duplicate conference names from the result.\n5. Return only the `Conference.FullName` column as the final output.", + "steps": [ + "Start with the `Paper` table and join it to the `Conference` table on `Paper.ConferenceId` = `Conference.Id`.", + "Filter for rows where `Paper.ConferenceId` is not equal to 0, applying the external knowledge that this indicates a conference publication.", + "Filter for rows where `Paper.JournalId` is less than or equal to 0, applying the external knowledge that this indicates no journal publication.", + "Apply `DISTINCT` to eliminate duplicate conference names from the result.", + "Return only the `Conference.FullName` column as the final output." + ] + }, + "revisql-train:3574": { + "raw": "1. Join the Conference and Paper tables on Conference.Id = Paper.ConferenceId to link each paper to its publishing conference.\n2. Filter for conferences that do not have a website by restricting Conference.HomePage to IS NULL, empty string '', or the literal string 'NULL', per the external knowledge mapping.\n3. Return the Title column from the Paper table as the result.", + "steps": [ + "Join the Conference and Paper tables on Conference.Id = Paper.ConferenceId to link each paper to its publishing conference.", + "Filter for conferences that do not have a website by restricting Conference.HomePage to IS NULL, empty string '', or the literal string 'NULL', per the external knowledge mapping.", + "Return the Title column from the Paper table as the result." + ] + }, + "revisql-train:3575": { + "raw": "1. Join the `Journal` and `Paper` tables on `Journal.Id = Paper.JournalId` to link every paper to its publishing journal.\n2. Filter the journals to only those without a short name by checking `ShortName IS NULL` or `ShortName = ''`, applying the external knowledge definition.\n3. Select the `Year` column from `Paper` and the `FullName` column from `Journal` for the output.\n4. Apply `DISTINCT` to the results so that multiple papers published in the same journal during the same year do not produce duplicate rows.", + "steps": [ + "Join the `Journal` and `Paper` tables on `Journal.Id = Paper.JournalId` to link every paper to its publishing journal.", + "Filter the journals to only those without a short name by checking `ShortName IS NULL` or `ShortName = ''`, applying the external knowledge definition.", + "Select the `Year` column from `Paper` and the `FullName` column from `Journal` for the output.", + "Apply `DISTINCT` to the results so that multiple papers published in the same journal during the same year do not produce duplicate rows." + ] + }, + "revisql-train:3579": { + "raw": "1. Join the Paper table with the Conference table on Paper.ConferenceId = Conference.Id.\n2. Filter rows where Conference.FullName equals 'International Conference on Database Theory' using the external knowledge mapping.\n3. Exclude preprints by filtering Paper.Year to not equal 0, since year 0 indicates unpublished work.\n4. Count all matching Paper.Id values to get the total number of papers, aliasing the result as PAPER.\n5. Count distinct Paper.Year values to get the number of unique publication years, aliasing the result as YEARS.\n6. Return both aggregated columns PAPER and YEARS.", + "steps": [ + "Join the Paper table with the Conference table on Paper.ConferenceId = Conference.Id.", + "Filter rows where Conference.FullName equals 'International Conference on Database Theory' using the external knowledge mapping.", + "Exclude preprints by filtering Paper.Year to not equal 0, since year 0 indicates unpublished work.", + "Count all matching Paper.Id values to get the total number of papers, aliasing the result as PAPER.", + "Count distinct Paper.Year values to get the number of unique publication years, aliasing the result as YEARS.", + "Return both aggregated columns PAPER and YEARS." + ] + }, + "revisql-train:3580": { + "raw": "1. Map the topic \"Sustainability\" to the condition Paper.Keyword = 'Sustainability' using the provided external knowledge.\n2. Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to link papers to their publishing journals.\n3. Filter the result to include only rows where Paper.Keyword equals 'Sustainability'.\n4. Return the FullName column from the Journal table as the output.", + "steps": [ + "Map the topic \"Sustainability\" to the condition Paper.Keyword = 'Sustainability' using the provided external knowledge.", + "Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to link papers to their publishing journals.", + "Filter the result to include only rows where Paper.Keyword equals 'Sustainability'.", + "Return the FullName column from the Journal table as the output." + ] + }, + "revisql-train:3581": { + "raw": "1. Join the Paper table to PaperAuthor on Paper.Id = PaperAuthor.PaperId to link each paper with its authors.\n2. Join the Conference table on Paper.ConferenceId = Conference.Id to access the full name of the publishing conference.\n3. Filter the results to only those rows where Conference.FullName contains the word Workshop, expressed as LIKE '%Workshop%' per the external knowledge.\n4. Return the PaperAuthor.Name column, which holds the author names as written on the paper.", + "steps": [ + "Join the Paper table to PaperAuthor on Paper.Id = PaperAuthor.PaperId to link each paper with its authors.", + "Join the Conference table on Paper.ConferenceId = Conference.Id to access the full name of the publishing conference.", + "Filter the results to only those rows where Conference.FullName contains the word Workshop, expressed as LIKE '%Workshop%' per the external knowledge.", + "Return the PaperAuthor.Name column, which holds the author names as written on the paper." + ] + }, + "revisql-train:3584": { + "raw": "1. Use the `PaperAuthor` table, since it records every author of a paper together with the affiliation listed on that paper at the time of writing.\n2. Filter rows to `PaperId` = 220, mapping the question's \"paper number 220\".\n3. Further filter rows where `Affiliation` contains 'Microsoft Research', applying the external knowledge mapping for \"associated with the Microsoft Research\".\n4. Aggregate the surviving rows with `COUNT(*)` to obtain the number of qualifying authors.\n5. Return exactly that single count value.", + "steps": [ + "Use the `PaperAuthor` table, since it records every author of a paper together with the affiliation listed on that paper at the time of writing.", + "Filter rows to `PaperId` = 220, mapping the question's \"paper number 220\".", + "Further filter rows where `Affiliation` contains 'Microsoft Research', applying the external knowledge mapping for \"associated with the Microsoft Research\".", + "Aggregate the surviving rows with `COUNT(*)` to obtain the number of qualifying authors.", + "Return exactly that single count value." + ] + }, + "revisql-train:3588": { + "raw": "1. Identify the paper record in the Paper table by matching the exact title string from the external knowledge to the Paper.Title column.\n2. Join the Paper table with the Journal table using the foreign key relationship Paper.JournalId = Journal.Id.\n3. Filter the joined set to only the row where Paper.Title equals the given paper title.\n4. Return the value of the Journal.FullName column as the final result.", + "steps": [ + "Identify the paper record in the Paper table by matching the exact title string from the external knowledge to the Paper.Title column.", + "Join the Paper table with the Journal table using the foreign key relationship Paper.JournalId = Journal.Id.", + "Filter the joined set to only the row where Paper.Title equals the given paper title.", + "Return the value of the Journal.FullName column as the final result." + ] + }, + "revisql-train:3589": { + "raw": "1. Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to associate each paper with its journal.\n2. Filter the results to only rows where Journal.FullName is exactly \"Iet Software/iee Proceedings - Software\", using the external knowledge mapping of the journal name to that column.\n3. Count the JournalId values from the Paper table to compute the total number of papers in that journal.\n4. Return the single aggregated count column as the final answer.", + "steps": [ + "Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to associate each paper with its journal.", + "Filter the results to only rows where Journal.FullName is exactly \"Iet Software/iee Proceedings - Software\", using the external knowledge mapping of the journal name to that column.", + "Count the JournalId values from the Paper table to compute the total number of papers in that journal.", + "Return the single aggregated count column as the final answer." + ] + }, + "revisql-train:3591": { + "raw": "1. Identify that paper titles are stored in the Paper table and that author-paper associations are stored in the PaperAuthor table.\n2. Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to link each paper with its authors.\n3. Filter the joined results to only rows where PaperAuthor.Name equals 'Jun Du', applying the external knowledge mapping for this author.\n4. Apply DISTINCT to the selected titles to avoid returning duplicate titles for the same paper.\n5. Return only the Title column from the Paper table.", + "steps": [ + "Identify that paper titles are stored in the Paper table and that author-paper associations are stored in the PaperAuthor table.", + "Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to link each paper with its authors.", + "Filter the joined results to only rows where PaperAuthor.Name equals 'Jun Du', applying the external knowledge mapping for this author.", + "Apply DISTINCT to the selected titles to avoid returning duplicate titles for the same paper.", + "Return only the Title column from the Paper table." + ] + }, + "revisql-train:3603": { + "raw": "1. Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to link each paper to its authors.\n2. Map the publication date range to Paper.Year and filter with BETWEEN 2000 AND 2005.\n3. Map the topic requirement to Paper.Keyword and filter with LIKE '%optical properties%'.\n4. Map the title requirement to Paper.Title and exclude rows where it is an empty string.\n5. Return Paper.Title and PaperAuthor.Name as the result columns.", + "steps": [ + "Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to link each paper to its authors.", + "Map the publication date range to Paper.Year and filter with BETWEEN 2000 AND 2005.", + "Map the topic requirement to Paper.Keyword and filter with LIKE '%optical properties%'.", + "Map the title requirement to Paper.Title and exclude rows where it is an empty string.", + "Return Paper.Title and PaperAuthor.Name as the result columns." + ] + }, + "revisql-train:3605": { + "raw": "1. Join the Paper table with PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect each paper to its authors.\n2. Filter for preprints by requiring Paper.ConferenceId = 0 and Paper.JournalId = 0.\n3. Restrict the result to the year 1997 using Paper.Year = 1997.\n4. Discard rows where Paper.Title is an empty string.\n5. Return distinct pairs of PaperAuthor.Name and Paper.Title.", + "steps": [ + "Join the Paper table with PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect each paper to its authors.", + "Filter for preprints by requiring Paper.ConferenceId = 0 and Paper.JournalId = 0.", + "Restrict the result to the year 1997 using Paper.Year = 1997.", + "Discard rows where Paper.Title is an empty string.", + "Return distinct pairs of PaperAuthor.Name and Paper.Title." + ] + }, + "revisql-train:3610": { + "raw": "1. Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.\n2. Filter for rows where Conference.FullName is 'Mathematics of Program Construction'.\n3. Apply the external knowledge that published means Year is not 0, keeping only Paper rows where Year <> 0.\n4. Count the Paper.Id values to compute the total number of papers.\n5. Return that count as the final answer.", + "steps": [ + "Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.", + "Filter for rows where Conference.FullName is 'Mathematics of Program Construction'.", + "Apply the external knowledge that published means Year is not 0, keeping only Paper rows where Year <> 0.", + "Count the Paper.Id values to compute the total number of papers.", + "Return that count as the final answer." + ] + }, + "revisql-train:3613": { + "raw": "1. Identify that the Paper table holds the Title column and the PaperAuthor table holds the Name column representing authors.\n2. Join Paper to PaperAuthor using Paper.Id = PaperAuthor.PaperId to link each paper with its authors.\n3. Filter to rows where Paper.Title equals 'Testing timed automata', applying the external knowledge that this string is a paper title.\n4. Return only the Name column from the PaperAuthor table, as it contains the author names for the matched paper.", + "steps": [ + "Identify that the Paper table holds the Title column and the PaperAuthor table holds the Name column representing authors.", + "Join Paper to PaperAuthor using Paper.Id = PaperAuthor.PaperId to link each paper with its authors.", + "Filter to rows where Paper.Title equals 'Testing timed automata', applying the external knowledge that this string is a paper title.", + "Return only the Name column from the PaperAuthor table, as it contains the author names for the matched paper." + ] + }, + "revisql-train:3614": { + "raw": "1. Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id to link each paper to its venue.\n2. Filter the rows to only those where Paper.Year equals 2000.\n3. Use the external knowledge that \"SSPR\" is a conference ShortName, so restrict Conference.ShortName to the value 'SSPR'.\n4. Count the Paper.Id values to compute the total number of matching papers.\n5. Return only that count column.", + "steps": [ + "Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id to link each paper to its venue.", + "Filter the rows to only those where Paper.Year equals 2000.", + "Use the external knowledge that \"SSPR\" is a conference ShortName, so restrict Conference.ShortName to the value 'SSPR'.", + "Count the Paper.Id values to compute the total number of matching papers.", + "Return only that count column." + ] + }, + "revisql-train:3618": { + "raw": "1. Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to link each paper to its publication venue.\n2. Filter the joined rows by Journal.FullName, matching the external knowledge value 'Software - Practice and Experience'.\n3. Aggregate the filtered rows by counting Paper.Id to compute the total number of papers.\n4. Return the count of Paper.Id as the final result column.", + "steps": [ + "Join the Paper table to the Journal table on Paper.JournalId = Journal.Id to link each paper to its publication venue.", + "Filter the joined rows by Journal.FullName, matching the external knowledge value 'Software - Practice and Experience'.", + "Aggregate the filtered rows by counting Paper.Id to compute the total number of papers.", + "Return the count of Paper.Id as the final result column." + ] + }, + "revisql-train:3619": { + "raw": "1. Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id to associate each paper with its conference.\n2. Map the external knowledge so that the question's term \"paper\" targets Paper.Title and the URL \"http://www.irma-international.org/\" targets the Conference.HomePage column.\n3. Filter the joined rows by requiring Conference.HomePage to equal exactly 'http://www.irma-international.org/'.\n4. Return only the Paper.Title column as the final result list.", + "steps": [ + "Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id to associate each paper with its conference.", + "Map the external knowledge so that the question's term \"paper\" targets Paper.Title and the URL \"http://www.irma-international.org/\" targets the Conference.HomePage column.", + "Filter the joined rows by requiring Conference.HomePage to equal exactly 'http://www.irma-international.org/'.", + "Return only the Paper.Title column as the final result list." + ] + }, + "revisql-train:3620": { + "raw": "1. Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.\n2. Filter the joined rows to only those where Conference.FullName equals 'Information and Knowledge Engineering' and Paper.Year is between 2002 and 2010 inclusive.\n3. Count all Paper.Id values to obtain the total number of papers published under those criteria.\n4. Count distinct Paper.Year values to determine how many unique years in the period contain at least one paper.\n5. Divide the total paper count by the distinct year count, casting the numerator as REAL for decimal accuracy, and return this single calculated average.", + "steps": [ + "Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.", + "Filter the joined rows to only those where Conference.FullName equals 'Information and Knowledge Engineering' and Paper.Year is between 2002 and 2010 inclusive.", + "Count all Paper.Id values to obtain the total number of papers published under those criteria.", + "Count distinct Paper.Year values to determine how many unique years in the period contain at least one paper.", + "Divide the total paper count by the distinct year count, casting the numerator as REAL for decimal accuracy, and return this single calculated average." + ] + }, + "revisql-train:3624": { + "raw": "1. Map the external knowledge so that \"IEEE Transactions on Nuclear Science\" targets the FullName column in the Journal table and 1999 targets the Year column in the Paper table.\n2. Join the Journal table with the Paper table using Journal.Id = Paper.JournalId to associate each journal with its papers.\n3. Apply filters requiring Journal.FullName to equal 'IEEE Transactions on Nuclear Science' and Paper.Year to equal 1999.\n4. Aggregate by counting the Paper.Id values from the filtered rows to obtain the number of papers.\n5. Return the resulting count as the final answer.", + "steps": [ + "Map the external knowledge so that \"IEEE Transactions on Nuclear Science\" targets the FullName column in the Journal table and 1999 targets the Year column in the Paper table.", + "Join the Journal table with the Paper table using Journal.Id = Paper.JournalId to associate each journal with its papers.", + "Apply filters requiring Journal.FullName to equal 'IEEE Transactions on Nuclear Science' and Paper.Year to equal 1999.", + "Aggregate by counting the Paper.Id values from the filtered rows to obtain the number of papers.", + "Return the resulting count as the final answer." + ] + }, + "revisql-train:3631": { + "raw": "1. Start with the Paper table and locate the record whose Title matches the exact paper name given in the question.\n2. Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect the paper with its co-author records, since co-authorship is defined by (paper ID, author ID) pairs.\n3. Filter the joined results to keep only rows belonging to the paper with the specified title.\n4. Count the AuthorId values from the PaperAuthor table, as \"authors\" maps to AuthorId, and return that single aggregated number.", + "steps": [ + "Start with the Paper table and locate the record whose Title matches the exact paper name given in the question.", + "Join Paper to PaperAuthor on Paper.Id = PaperAuthor.PaperId to connect the paper with its co-author records, since co-authorship is defined by (paper ID, author ID) pairs.", + "Filter the joined results to keep only rows belonging to the paper with the specified title.", + "Count the AuthorId values from the PaperAuthor table, as \"authors\" maps to AuthorId, and return that single aggregated number." + ] + }, + "revisql-train:3632": { + "raw": "1. Join the Paper and Conference tables on Paper.ConferenceId equal to Conference.Id.\n2. Filter to papers from Year 2012 with a ConferenceId greater than 0, excluding preprints and non-conference publications.\n3. Group the joined results by Paper.ConferenceId to compute the number of papers per conference.\n4. Use a subquery on the same filtered Paper data to calculate paper counts per conference, sort those counts in descending order, and isolate the single highest value.\n5. Apply a HAVING condition to the outer grouped results so only conferences whose paper count matches that highest value are kept.\n6. Return Conference.ShortName for the resulting conference or conferences.", + "steps": [ + "Join the Paper and Conference tables on Paper.ConferenceId equal to Conference.Id.", + "Filter to papers from Year 2012 with a ConferenceId greater than 0, excluding preprints and non-conference publications.", + "Group the joined results by Paper.ConferenceId to compute the number of papers per conference.", + "Use a subquery on the same filtered Paper data to calculate paper counts per conference, sort those counts in descending order, and isolate the single highest value.", + "Apply a HAVING condition to the outer grouped results so only conferences whose paper count matches that highest value are kept.", + "Return Conference.ShortName for the resulting conference or conferences." + ] + }, + "revisql-train:3633": { + "raw": "1. Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.\n2. Filter Conference.ShortName to 'ECSQARU' using the external knowledge that ECSQARU is a conference short name.\n3. Filter Paper.Year to 2003 using the external knowledge that 2003 refers to the year.\n4. Count Paper.Id to compute the number of papers satisfying both conditions.\n5. Return the count.", + "steps": [ + "Join the Paper table to the Conference table on Paper.ConferenceId = Conference.Id.", + "Filter Conference.ShortName to 'ECSQARU' using the external knowledge that ECSQARU is a conference short name.", + "Filter Paper.Year to 2003 using the external knowledge that 2003 refers to the year.", + "Count Paper.Id to compute the number of papers satisfying both conditions.", + "Return the count." + ] + }, + "revisql-train:3643": { + "raw": "1. Join the Journal and Paper tables on Journal.Id = Paper.JournalId.\n2. Filter for rows where Journal.ShortName equals 'TUBERCLE LUNG DIS', using the external knowledge that maps the journal name to that column.\n3. Compute the minimum Paper.Year from the filtered set to determine the oldest publication year.\n4. Keep only papers whose Paper.Year matches that minimum year.\n5. Return the Paper.Title column as the final answer.", + "steps": [ + "Join the Journal and Paper tables on Journal.Id = Paper.JournalId.", + "Filter for rows where Journal.ShortName equals 'TUBERCLE LUNG DIS', using the external knowledge that maps the journal name to that column.", + "Compute the minimum Paper.Year from the filtered set to determine the oldest publication year.", + "Keep only papers whose Paper.Year matches that minimum year.", + "Return the Paper.Title column as the final answer." + ] + }, + "revisql-train:3646": { + "raw": "1. Use the external knowledge to map the phrase \"A Case of Unilateral Ashy Dermatosis\" to the `Title` column in the `Paper` table.\n2. Filter the `Paper` table to the row where `Title` equals 'A Case of Unilateral Ashy Dermatosis'.\n3. Join the `Paper` table with the `Journal` table on `Paper.JournalId = Journal.Id` to retrieve the publishing journal.\n4. Return only the `ShortName` column from the `Journal` table.", + "steps": [ + "Use the external knowledge to map the phrase \"A Case of Unilateral Ashy Dermatosis\" to the `Title` column in the `Paper` table.", + "Filter the `Paper` table to the row where `Title` equals 'A Case of Unilateral Ashy Dermatosis'.", + "Join the `Paper` table with the `Journal` table on `Paper.JournalId = Journal.Id` to retrieve the publishing journal.", + "Return only the `ShortName` column from the `Journal` table." + ] + }, + "revisql-train:3648": { + "raw": "1. Filter the Paper table to the record whose Title matches the exact paper name provided in the external knowledge.\n2. Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to associate the paper with its authors.\n3. Select the Name column from the PaperAuthor table, which holds the author names as written on the paper.\n4. Return the author names directly with no aggregation or ordering required.", + "steps": [ + "Filter the Paper table to the record whose Title matches the exact paper name provided in the external knowledge.", + "Join the Paper table with the PaperAuthor table on Paper.Id = PaperAuthor.PaperId to associate the paper with its authors.", + "Select the Name column from the PaperAuthor table, which holds the author names as written on the paper.", + "Return the author names directly with no aggregation or ordering required." + ] + }, + "revisql-train:365": { + "raw": "1. Query only the callcenterlogs table because it holds every required output field and predicate; no joins are necessary.\n2. Map the external knowledge term \"final phone number\" to the phonefinal column.\n3. Map the date range 1/1/2014 to 12/30/2014 to the Date received column by keeping only 2014 dates and excluding 2014-12-31.\n4. Filter rows where server equals 'AVIDAN'.\n5. Return the columns Complaint ID, call_id, and phonefinal.", + "steps": [ + "Query only the callcenterlogs table because it holds every required output field and predicate; no joins are necessary.", + "Map the external knowledge term \"final phone number\" to the phonefinal column.", + "Map the date range 1/1/2014 to 12/30/2014 to the Date received column by keeping only 2014 dates and excluding 2014-12-31.", + "Filter rows where server equals 'AVIDAN'.", + "Return the columns Complaint ID, call_id, and phonefinal." + ] + }, + "revisql-train:3651": { + "raw": "1. Join the PaperAuthor table to the Author table on AuthorId to link each paper-specific author name to its canonical author record.\n2. Filter the Author table to only rows where Name equals 'Randall Davis', applying the external knowledge that this refers to the canonical author name.\n3. Select distinct values from the PaperAuthor.Name column to capture the different ways the name is written on papers.\n4. Exclude rows where PaperAuthor.Name is exactly 'Randall Davis' to omit the canonical spelling from the result.", + "steps": [ + "Join the PaperAuthor table to the Author table on AuthorId to link each paper-specific author name to its canonical author record.", + "Filter the Author table to only rows where Name equals 'Randall Davis', applying the external knowledge that this refers to the canonical author name.", + "Select distinct values from the PaperAuthor.Name column to capture the different ways the name is written on papers.", + "Exclude rows where PaperAuthor.Name is exactly 'Randall Davis' to omit the canonical spelling from the result." + ] + }, + "revisql-train:3652": { + "raw": "1. Identify the Paper and Conference tables as the relevant sources, joining them on Paper.ConferenceId = Conference.Id to link each paper to its venue.\n2. Map the external knowledge \"published in 2008\" to the Paper.Year column and filter for rows where Year equals 2008.\n3. Apply DISTINCT to the conference name because multiple papers can be published in the same conference and only unique venues are required.\n4. Return only the FullName column from the Conference table.", + "steps": [ + "Identify the Paper and Conference tables as the relevant sources, joining them on Paper.ConferenceId = Conference.Id to link each paper to its venue.", + "Map the external knowledge \"published in 2008\" to the Paper.Year column and filter for rows where Year equals 2008.", + "Apply DISTINCT to the conference name because multiple papers can be published in the same conference and only unique venues are required.", + "Return only the FullName column from the Conference table." + ] + }, + "revisql-train:3659": { + "raw": "1. Identify that journal names are stored in the `Journal` table under `FullName`, while paper titles are stored in the `Paper` table under `Title`.\n2. Join `Journal` to `Paper` on `Journal.Id = Paper.JournalId` to link each paper to its publishing venue.\n3. Apply the external knowledge to filter `Journal.FullName` to the exact value 'Ibm Journal of Research and Development'.\n4. Project only the `Title` column from the `Paper` table in the result.", + "steps": [ + "Identify that journal names are stored in the `Journal` table under `FullName`, while paper titles are stored in the `Paper` table under `Title`.", + "Join `Journal` to `Paper` on `Journal.Id = Paper.JournalId` to link each paper to its publishing venue.", + "Apply the external knowledge to filter `Journal.FullName` to the exact value 'Ibm Journal of Research and Development'.", + "Project only the `Title` column from the `Paper` table in the result." + ] + }, + "revisql-train:3662": { + "raw": "1. Start from the Paper table and filter to the single row where Title equals 'A context-based navigation paradigm for accessing Web data'.\n2. Join the Conference table using the foreign key relationship Paper.ConferenceId = Conference.Id to access the conference record for that paper.\n3. Apply the external knowledge that the phrase \"name of the conference\" refers to the FullName column in the Conference table.\n4. Return only the FullName column from the Conference table as the final answer.", + "steps": [ + "Start from the Paper table and filter to the single row where Title equals 'A context-based navigation paradigm for accessing Web data'.", + "Join the Conference table using the foreign key relationship Paper.ConferenceId = Conference.Id to access the conference record for that paper.", + "Apply the external knowledge that the phrase \"name of the conference\" refers to the FullName column in the Conference table.", + "Return only the FullName column from the Conference table as the final answer." + ] + }, + "revisql-train:3669": { + "raw": "1. Join PaperAuthor to Paper on PaperId = Id to link author names with publication titles and years.\n2. Filter PaperAuthor to only rows where Name equals 'Zuliang Du'.\n3. Use MAX(Year) over those joined rows to find the latest publication year for that author.\n4. Retain only the joined rows whose Year matches that maximum value.\n5. Return the Title column from Paper for the remaining rows.", + "steps": [ + "Join PaperAuthor to Paper on PaperId = Id to link author names with publication titles and years.", + "Filter PaperAuthor to only rows where Name equals 'Zuliang Du'.", + "Use MAX(Year) over those joined rows to find the latest publication year for that author.", + "Retain only the joined rows whose Year matches that maximum value.", + "Return the Title column from Paper for the remaining rows." + ] + }, + "revisql-train:367": { + "raw": "1. Use the `events` table exclusively; no joins are needed because `Date received`, `Product`, and `Issue` are all in this table.\n2. Filter rows to `Product` = 'Credit card' and `Issue` = 'Overlimit fee', applying the external knowledge that maps credit card customers to that product and overlimit fees to that issue.\n3. Extract the year from the `Date received` column and group the filtered results by that year.\n4. Count the number of complaints in each year group.\n5. Return the extracted year and the corresponding complaint count.", + "steps": [ + "Use the `events` table exclusively; no joins are needed because `Date received`, `Product`, and `Issue` are all in this table.", + "Filter rows to `Product` = 'Credit card' and `Issue` = 'Overlimit fee', applying the external knowledge that maps credit card customers to that product and overlimit fees to that issue.", + "Extract the year from the `Date received` column and group the filtered results by that year.", + "Count the number of complaints in each year group.", + "Return the extracted year and the corresponding complaint count." + ] + }, + "revisql-train:3670": { + "raw": "1. Join the Conference table to the Paper table on Conference.Id = Paper.ConferenceId.\n2. Map the external knowledge string 'Adaptive Multimedia Retrieval' to the Conference.FullName column and filter to that exact conference name.\n3. Filter the Paper.Year column to 2007.\n4. Count the number of matching Paper rows to compute the total number of publications.\n5. Return only that count value.", + "steps": [ + "Join the Conference table to the Paper table on Conference.Id = Paper.ConferenceId.", + "Map the external knowledge string 'Adaptive Multimedia Retrieval' to the Conference.FullName column and filter to that exact conference name.", + "Filter the Paper.Year column to 2007.", + "Count the number of matching Paper rows to compute the total number of publications.", + "Return only that count value." + ] + }, + "revisql-train:3673": { + "raw": "1. Join the `Paper` table to the `Journal` table on `Paper.JournalId` = `Journal.Id` to associate each paper with its publication venue.\n2. Filter the results to only papers whose `Keyword` contains the phrase 'Turbulent Flows', applying the external knowledge mapping of that phrase to the `Paper.Keyword` column.\n3. Apply the external knowledge mapping of the journal name 'Physics of Fluids' to the `Journal.FullName` column to identify the target subset.\n4. Calculate the percentage by dividing the count of rows where `Journal.FullName` equals 'Physics of Fluids' by the total count of rows from the keyword filter, then multiply the result by 100.0.\n5. Return a single column named `percentage` containing that calculated value.", + "steps": [ + "Join the `Paper` table to the `Journal` table on `Paper.JournalId` = `Journal.Id` to associate each paper with its publication venue.", + "Filter the results to only papers whose `Keyword` contains the phrase 'Turbulent Flows', applying the external knowledge mapping of that phrase to the `Paper.Keyword` column.", + "Apply the external knowledge mapping of the journal name 'Physics of Fluids' to the `Journal.FullName` column to identify the target subset.", + "Calculate the percentage by dividing the count of rows where `Journal.FullName` equals 'Physics of Fluids' by the total count of rows from the keyword filter, then multiply the result by 100.0.", + "Return a single column named `percentage` containing that calculated value." + ] + }, + "revisql-train:3679": { + "raw": "1. Start with the Author table to retrieve author names, and join it to PaperAuthor on Author.Id = PaperAuthor.AuthorId to associate authors with papers.\n2. Join PaperAuthor to Paper on PaperAuthor.PaperId = Paper.Id to access the publication year for each paper.\n3. Filter the results to only rows where the paper identifier is 221, checking PaperAuthor.PaperId (or equivalently Paper.Id).\n4. Apply the external knowledge that \"published year\" corresponds to the Year column in the Paper table.\n5. Return the Name column from Author and the Year column from Paper.", + "steps": [ + "Start with the Author table to retrieve author names, and join it to PaperAuthor on Author.Id = PaperAuthor.AuthorId to associate authors with papers.", + "Join PaperAuthor to Paper on PaperAuthor.PaperId = Paper.Id to access the publication year for each paper.", + "Filter the results to only rows where the paper identifier is 221, checking PaperAuthor.PaperId (or equivalently Paper.Id).", + "Apply the external knowledge that \"published year\" corresponds to the Year column in the Paper table.", + "Return the Name column from Author and the Year column from Paper." + ] + }, + "revisql-train:3686": { + "raw": "1. Query `state_sector_grads` and filter to rows where `year` equals 2013, `gender` equals 'M' for male students, and `state` is not 'United States' to exclude national aggregate records.\n2. Group the filtered results by `state` and calculate the total male graduate cohort for each state by summing `grad_cohort` after casting it from text to integer.\n3. Order the grouped states by that summed cohort total in descending order and limit the result to the single top state to identify the state with the most male graduate cohort.\n4. Query `institution_details` and filter to only those institutes whose `state` matches the top state identified in the previous steps.\n5. Compute the average of `med_sat_value`, cast from text to real, for the selected institutes; this maps the external concept of average median SAT value to the aggregate over the `med_sat_value` column.\n6. Return exactly one column named `avg_med_sat` containing the computed average.", + "steps": [ + "Query `state_sector_grads` and filter to rows where `year` equals 2013, `gender` equals 'M' for male students, and `state` is not 'United States' to exclude national aggregate records.", + "Group the filtered results by `state` and calculate the total male graduate cohort for each state by summing `grad_cohort` after casting it from text to integer.", + "Order the grouped states by that summed cohort total in descending order and limit the result to the single top state to identify the state with the most male graduate cohort.", + "Query `institution_details` and filter to only those institutes whose `state` matches the top state identified in the previous steps.", + "Compute the average of `med_sat_value`, cast from text to real, for the selected institutes; this maps the external concept of average median SAT value to the aggregate over the `med_sat_value` column.", + "Return exactly one column named `avg_med_sat` containing the computed average." + ] + }, + "revisql-train:3687": { + "raw": "1. In `state_sector_grads`, filter to rows where `year` = 2012, `control` = 'Private for-profit', `race` = 'X', and `state` is not 'United States', then cast `grad_cohort` to integer and sum it per `state` to get each state's total graduate cohort.\n2. Identify the state or states with the maximum total graduate cohort by comparing each state's sum to the overall highest value.\n3. Join `institution_details` with those top state(s) on the `state` column, keeping only rows where `control` = 'Private for-profit'.\n4. Return the `state` and `chronname` columns to list every qualifying institute and its corresponding state.", + "steps": [ + "In `state_sector_grads`, filter to rows where `year` = 2012, `control` = 'Private for-profit', `race` = 'X', and `state` is not 'United States', then cast `grad_cohort` to integer and sum it per `state` to get each state's total graduate cohort.", + "Identify the state or states with the maximum total graduate cohort by comparing each state's sum to the overall highest value.", + "Join `institution_details` with those top state(s) on the `state` column, keeping only rows where `control` = 'Private for-profit'.", + "Return the `state` and `chronname` columns to list every qualifying institute and its corresponding state." + ] + }, + "revisql-train:3688": { + "raw": "1. Filter state_sector_grads to year 2013, control Public, gender B, and race X to capture overall public cohort data.\n2. Convert grad_cohort to integer and sum it per state to compute each state's total graduate cohort.\n3. Identify the state with the minimum summed graduate cohort total.\n4. Filter institution_details to control Public and the state identified in the previous step.\n5. Return distinct chronname as the list of public institute names.", + "steps": [ + "Filter state_sector_grads to year 2013, control Public, gender B, and race X to capture overall public cohort data.", + "Convert grad_cohort to integer and sum it per state to compute each state's total graduate cohort.", + "Identify the state with the minimum summed graduate cohort total.", + "Filter institution_details to control Public and the state identified in the previous step.", + "Return distinct chronname as the list of public institute names." + ] + }, + "revisql-train:3689": { + "raw": "1. Join `institution_details` with `institution_grads` on `unitid` to combine institute names and FTE counts with graduation cohort data.\n2. Filter the cohort side to `year = 2013` to restrict results to the 2013 data release.\n3. Apply the demographic scope filters `gender = 'B'` for all genders and `race = 'X'` for all races, as mapped by the external knowledge.\n4. Cast `grad_cohort` to an integer and keep only rows where it is less than 200 to satisfy the small-cohort condition.\n5. Return distinct `chronname` for the institute names and `fte_value` for the total number of full-time equivalent undergraduates.", + "steps": [ + "Join `institution_details` with `institution_grads` on `unitid` to combine institute names and FTE counts with graduation cohort data.", + "Filter the cohort side to `year = 2013` to restrict results to the 2013 data release.", + "Apply the demographic scope filters `gender = 'B'` for all genders and `race = 'X'` for all races, as mapped by the external knowledge.", + "Cast `grad_cohort` to an integer and keep only rows where it is less than 200 to satisfy the small-cohort condition.", + "Return distinct `chronname` for the institute names and `fte_value` for the total number of full-time equivalent undergraduates." + ] + }, + "revisql-train:369": { + "raw": "1. Join `client` with `district` on `district_id` so the city of each client is available.\n2. Keep only rows where `district.city` equals Indianapolis.\n3. Find the single latest birthdate among those rows by ordering `year` DESC, `month` DESC, `day` DESC and limiting to one record.\n4. Filter that same Indianapolis set to only client(s) whose `year`, `month`, and `day` match that latest birthdate.\n5. Return the columns `year`, `month`, `day`, `email`, and `phone`.", + "steps": [ + "Join `client` with `district` on `district_id` so the city of each client is available.", + "Keep only rows where `district.city` equals Indianapolis.", + "Find the single latest birthdate among those rows by ordering `year` DESC, `month` DESC, `day` DESC and limiting to one record.", + "Filter that same Indianapolis set to only client(s) whose `year`, `month`, and `day` match that latest birthdate.", + "Return the columns `year`, `month`, `day`, `email`, and `phone`." + ] + }, + "revisql-train:3693": { + "raw": "1. Join institution_details with institution_grads on unitid to link institution control information with graduation cohort counts.\n2. Filter for control equal to Private for-profit to keep only private for-profit institutions.\n3. Sum grad_cohort for rows where race is B and gender is B to get the total Black student cohort count.\n4. Sum grad_cohort for rows where race is X and gender is B to get the overall student cohort count across all races.\n5. Cast both summed values to real numbers, divide the Black cohort sum by the overall cohort sum, multiply by 100.0, and alias the result.\n6. Return a single column containing this calculated percentage.", + "steps": [ + "Join institution_details with institution_grads on unitid to link institution control information with graduation cohort counts.", + "Filter for control equal to Private for-profit to keep only private for-profit institutions.", + "Sum grad_cohort for rows where race is B and gender is B to get the total Black student cohort count.", + "Sum grad_cohort for rows where race is X and gender is B to get the overall student cohort count across all races.", + "Cast both summed values to real numbers, divide the Black cohort sum by the overall cohort sum, multiply by 100.0, and alias the result.", + "Return a single column containing this calculated percentage." + ] + }, + "revisql-train:3694": { + "raw": "1. Join `institution_details` with `institution_grads` on `unitid` to link institutions to their graduation records.\n2. Filter to rows where the institution's `state` is 'Alabama', the graduation `year` is 2013, and `grad_100` is not null.\n3. Map external knowledge: use `race = 'A'` for Asian students, `race = 'X'` for all races, and `grad_100` as the count of students graduating within 100% of expected time.\n4. Cast the text column `grad_100` to integer, then sum it conditionally: one sum for Asian graduates (race 'A') and another for all-race graduates (race 'X').\n5. Calculate the percentage by dividing the Asian sum by the all-race sum, multiplying by 100.0, and return the result as a single column named `pct_of_asian_vs_other`.", + "steps": [ + "Join `institution_details` with `institution_grads` on `unitid` to link institutions to their graduation records.", + "Filter to rows where the institution's `state` is 'Alabama', the graduation `year` is 2013, and `grad_100` is not null.", + "Map external knowledge: use `race = 'A'` for Asian students, `race = 'X'` for all races, and `grad_100` as the count of students graduating within 100% of expected time.", + "Cast the text column `grad_100` to integer, then sum it conditionally: one sum for Asian graduates (race 'A') and another for all-race graduates (race 'X').", + "Calculate the percentage by dividing the Asian sum by the all-race sum, multiplying by 100.0, and return the result as a single column named `pct_of_asian_vs_other`." + ] + }, + "revisql-train:3695": { + "raw": "1. Join `institution_details` with `institution_grads` on `unitid` to link institution names to cohort records.\n2. Filter to `chronname` = 'Harvard University', `year` = 2013, and `race` = 'A' (mapping Asian to that value).\n3. Sum `grad_cohort` conditionally where `gender` = 'M' (mapping male) to obtain the Asian male total.\n4. Sum `grad_cohort` conditionally where `gender` = 'F' (mapping female) to obtain the Asian female total.\n5. Cast the male total to REAL and divide it by the female total to compute the required ratio.\n6. Return a single column containing that calculated ratio value.", + "steps": [ + "Join `institution_details` with `institution_grads` on `unitid` to link institution names to cohort records.", + "Filter to `chronname` = 'Harvard University', `year` = 2013, and `race` = 'A' (mapping Asian to that value).", + "Sum `grad_cohort` conditionally where `gender` = 'M' (mapping male) to obtain the Asian male total.", + "Sum `grad_cohort` conditionally where `gender` = 'F' (mapping female) to obtain the Asian female total.", + "Cast the male total to REAL and divide it by the female total to compute the required ratio.", + "Return a single column containing that calculated ratio value." + ] + }, + "revisql-train:3696": { + "raw": "1. Start from the institution_details table; no joins are required because institute names and graduation metrics are in the same table.\n2. Filter rows to only those where chronname equals 'Amridge University' or 'Auburn University'.\n3. Map the external concept \"harder to graduate for a bachelor\" to the minimum grad_100_value, where lower percentages indicate higher difficulty.\n4. Order the filtered results by grad_100_value ascending and limit to the first row to isolate the harder institute.\n5. Return exactly the chronname column.", + "steps": [ + "Start from the institution_details table; no joins are required because institute names and graduation metrics are in the same table.", + "Filter rows to only those where chronname equals 'Amridge University' or 'Auburn University'.", + "Map the external concept \"harder to graduate for a bachelor\" to the minimum grad_100_value, where lower percentages indicate higher difficulty.", + "Order the filtered results by grad_100_value ascending and limit to the first row to isolate the harder institute.", + "Return exactly the chronname column." + ] + }, + "revisql-train:3699": { + "raw": "1. Find the `unitid` for Alabama State University by querying `institution_details` where `chronname` matches that institution name.\n2. Query `institution_grads` filtering to that `unitid`, the year 2011, and the cohort value '4y bach' that corresponds to Bachelor's/equivalent-seeking at 4-year institutions.\n3. Restrict the result to the overall student aggregates by requiring `gender = 'B'` and `race = 'X'`.\n4. Cast the `grad_150` column to an integer and return it as the single column `graduates`, representing the count of students who graduated within 150 percent of normal/expected time.", + "steps": [ + "Find the `unitid` for Alabama State University by querying `institution_details` where `chronname` matches that institution name.", + "Query `institution_grads` filtering to that `unitid`, the year 2011, and the cohort value '4y bach' that corresponds to Bachelor's/equivalent-seeking at 4-year institutions.", + "Restrict the result to the overall student aggregates by requiring `gender = 'B'` and `race = 'X'`.", + "Cast the `grad_150` column to an integer and return it as the single column `graduates`, representing the count of students who graduated within 150 percent of normal/expected time." + ] + }, + "revisql-train:37": { + "raw": "1. Join the movies table to ratings on movie_id to pair movie titles with user rating records.\n2. Filter movies by movie_title equal to 'The Magnificent Ambersons', mapping the external knowledge to the title column.\n3. Filter ratings by rating_score less than or equal to 2, mapping the external knowledge about the low score to the score column.\n4. Count distinct user_id from ratings to get the number of unique users.\n5. Return the result as a single column named users_with_low_rating.", + "steps": [ + "Join the movies table to ratings on movie_id to pair movie titles with user rating records.", + "Filter movies by movie_title equal to 'The Magnificent Ambersons', mapping the external knowledge to the title column.", + "Filter ratings by rating_score less than or equal to 2, mapping the external knowledge about the low score to the score column.", + "Count distinct user_id from ratings to get the number of unique users.", + "Return the result as a single column named users_with_low_rating." + ] + }, + "revisql-train:3709": { + "raw": "1. Join `institution_details` to `institution_grads` on `unitid` to match each institute’s name with its graduation cohort records.\n2. Filter for `state` equal to Alabama, `year` equal to 2011, `race` equal to 'X' (all students), and `gender` equal to 'B' (both genders).\n3. Group the records by institute `unitid` so that graduate counts can be aggregated per school.\n4. Cast `grad_cohort` to integer, sum the values within each group, and keep only groups whose total is strictly greater than 500.\n5. Return the `chronname` column as the institute name for the qualifying groups.", + "steps": [ + "Join `institution_details` to `institution_grads` on `unitid` to match each institute’s name with its graduation cohort records.", + "Filter for `state` equal to Alabama, `year` equal to 2011, `race` equal to 'X' (all students), and `gender` equal to 'B' (both genders).", + "Group the records by institute `unitid` so that graduate counts can be aggregated per school.", + "Cast `grad_cohort` to integer, sum the values within each group, and keep only groups whose total is strictly greater than 500.", + "Return the `chronname` column as the institute name for the qualifying groups." + ] + }, + "revisql-train:371": { + "raw": "1. Join `callcenterlogs` with `events` on the shared `Complaint ID` key to connect server time data with complaint issue details.\n2. Filter the joined rows to keep only those where `events.Issue` equals 'Arbitration'.\n3. Map the phrase \"longest server time\" to the maximum value of `callcenterlogs.ser_time` using the provided external knowledge.\n4. Apply the MAX aggregate to `ser_time` from `callcenterlogs` to compute the longest duration.\n5. Return only that single aggregated maximum server time column.", + "steps": [ + "Join `callcenterlogs` with `events` on the shared `Complaint ID` key to connect server time data with complaint issue details.", + "Filter the joined rows to keep only those where `events.Issue` equals 'Arbitration'.", + "Map the phrase \"longest server time\" to the maximum value of `callcenterlogs.ser_time` using the provided external knowledge.", + "Apply the MAX aggregate to `ser_time` from `callcenterlogs` to compute the longest duration.", + "Return only that single aggregated maximum server time column." + ] + }, + "revisql-train:3710": { + "raw": "1. Map \"Central Alabama Community College\" to `institution_details.chronname` and isolate that single institution.\n2. Join `institution_grads` on `unitid` to link the college to its yearly graduation-cohort records.\n3. Map the requested \"cohort size\" to the `grad_cohort` column in the graduation table.\n4. Filter to `year` values 2011, 2012, and 2013, and restrict to the all-students cohort with `gender = 'B'` and `race = 'X'`.\n5. Compute the average of `grad_cohort` across the three qualifying rows.\n6. Return that single averaged `grad_cohort` value as the answer.", + "steps": [ + "Map \"Central Alabama Community College\" to `institution_details.chronname` and isolate that single institution.", + "Join `institution_grads` on `unitid` to link the college to its yearly graduation-cohort records.", + "Map the requested \"cohort size\" to the `grad_cohort` column in the graduation table.", + "Filter to `year` values 2011, 2012, and 2013, and restrict to the all-students cohort with `gender = 'B'` and `race = 'X'`.", + "Compute the average of `grad_cohort` across the three qualifying rows.", + "Return that single averaged `grad_cohort` value as the answer." + ] + }, + "revisql-train:3715": { + "raw": "1. Start from the state_sector_grads table, which contains the full state name in the state column and its abbreviation in the state_abbr column.\n2. Apply the external knowledge that \"abbreviation for state\" maps to the state_abbr column.\n3. In an inner query, conditionally return state_abbr only when state equals 'Delaware', otherwise return NULL, and use DISTINCT to eliminate duplicate rows.\n4. In the outer query, filter out NULL values so that only the abbreviation for Delaware remains.\n5. Return the final non-null result as the state_abbr value for Delaware.", + "steps": [ + "Start from the state_sector_grads table, which contains the full state name in the state column and its abbreviation in the state_abbr column.", + "Apply the external knowledge that \"abbreviation for state\" maps to the state_abbr column.", + "In an inner query, conditionally return state_abbr only when state equals 'Delaware', otherwise return NULL, and use DISTINCT to eliminate duplicate rows.", + "In the outer query, filter out NULL values so that only the abbreviation for Delaware remains.", + "Return the final non-null result as the state_abbr value for Delaware." + ] + }, + "revisql-train:3716": { + "raw": "1. Use the `state_sector_details` table, which stores aggregated counts of schools grouped by state, level, and control.\n2. Filter the `state` column to the value 'California' to restrict the result to California.\n3. Filter the `level` column to '2-year' to capture only associate's degree institutions.\n4. Filter the `control` column to 'Public' to capture only publicly controlled institutions.\n5. Return the `schools_count` column from the single matching row.", + "steps": [ + "Use the `state_sector_details` table, which stores aggregated counts of schools grouped by state, level, and control.", + "Filter the `state` column to the value 'California' to restrict the result to California.", + "Filter the `level` column to '2-year' to capture only associate's degree institutions.", + "Filter the `control` column to 'Public' to capture only publicly controlled institutions.", + "Return the `schools_count` column from the single matching row." + ] + }, + "revisql-train:3720": { + "raw": "1. Join institution_details to state_sector_grads on the state column so institution attributes can be paired with the state abbreviation.\n2. Filter for rows where state_abbr is 'UT', level is '4-year', and control is 'Public'.\n3. Keep only rows where awards_per_value is greater than awards_per_state_value, mapping the requirement that the graduation rate exceeds the state average.\n4. Count distinct chronname from institution_details to produce the number of qualifying schools.", + "steps": [ + "Join institution_details to state_sector_grads on the state column so institution attributes can be paired with the state abbreviation.", + "Filter for rows where state_abbr is 'UT', level is '4-year', and control is 'Public'.", + "Keep only rows where awards_per_value is greater than awards_per_state_value, mapping the requirement that the graduation rate exceeds the state average.", + "Count distinct chronname from institution_details to produce the number of qualifying schools." + ] + }, + "revisql-train:3723": { + "raw": "1. Join institution_details to state_sector_grads on the state column so school records can be filtered by state abbreviation.\n2. Apply filters for state_abbr = 'KY', level = '4-year', and control = 'Private for-profit' to isolate the relevant schools.\n3. Use a subquery with the same join and filters to compute the maximum grad_150_value within that set.\n4. Return the distinct unitid from institution_details where grad_150_value matches that maximum.", + "steps": [ + "Join institution_details to state_sector_grads on the state column so school records can be filtered by state abbreviation.", + "Apply filters for state_abbr = 'KY', level = '4-year', and control = 'Private for-profit' to isolate the relevant schools.", + "Use a subquery with the same join and filters to compute the maximum grad_150_value within that set.", + "Return the distinct unitid from institution_details where grad_150_value matches that maximum." + ] + }, + "revisql-train:3725": { + "raw": "1. Use a scalar subquery on `institution_details` to find the maximum value of `cohort_size`, since external knowledge maps \"biggest cohort size\" to `MAX(cohort_size)`.\n2. Join `institution_details` with `institution_grads` on the `unitid` key to link each school's detail record to its graduation cohort records.\n3. Filter the joined rows to only those where the school's `cohort_size` equals the maximum value returned by the subquery in step 1.\n4. Return the distinct values of the `cohort` column from `institution_grads` as the final answer.", + "steps": [ + "Use a scalar subquery on `institution_details` to find the maximum value of `cohort_size`, since external knowledge maps \"biggest cohort size\" to `MAX(cohort_size)`.", + "Join `institution_details` with `institution_grads` on the `unitid` key to link each school's detail record to its graduation cohort records.", + "Filter the joined rows to only those where the school's `cohort_size` equals the maximum value returned by the subquery in step 1.", + "Return the distinct values of the `cohort` column from `institution_grads` as the final answer." + ] + }, + "revisql-train:3726": { + "raw": "1. Use only the `institution_details` table; no joins are required because the state lookup and the final aggregation both draw from this same table.\n2. First, isolate the home state by finding the `state` value in the row where `chronname` equals 'Brevard Community College'.\n3. Filter `institution_details` to rows matching that `state`, then apply `level` = '4-year' and `control` = 'Private not-for-profit' using the external knowledge mappings.\n4. Count the remaining rows and return that single aggregated numeric value.", + "steps": [ + "Use only the `institution_details` table; no joins are required because the state lookup and the final aggregation both draw from this same table.", + "First, isolate the home state by finding the `state` value in the row where `chronname` equals 'Brevard Community College'.", + "Filter `institution_details` to rows matching that `state`, then apply `level` = '4-year' and `control` = 'Private not-for-profit' using the external knowledge mappings.", + "Count the remaining rows and return that single aggregated numeric value." + ] + }, + "revisql-train:3728": { + "raw": "1. Find the `stateid` in `state_sector_details` for the state that has `schools_count` = 113, `level` = '2-year', and `control` = 'Public', limiting to one matching state.\n2. In `state_sector_grads`, filter to that `stateid` and apply `year` = 2013, `level` = '2-year', `control` = 'Public', `race` = 'A' (Asian), `gender` = 'B' (both genders), and `cohort` = '2y all' per the external knowledge mapping for students seeking another type of degree or certificate at a 2-year institution.\n3. Cast the `grad_150` text value to an integer to obtain the count of graduated students.\n4. Return this single computed value as the column `graduated_students`.", + "steps": [ + "Find the `stateid` in `state_sector_details` for the state that has `schools_count` = 113, `level` = '2-year', and `control` = 'Public', limiting to one matching state.", + "In `state_sector_grads`, filter to that `stateid` and apply `year` = 2013, `level` = '2-year', `control` = 'Public', `race` = 'A' (Asian), `gender` = 'B' (both genders), and `cohort` = '2y all' per the external knowledge mapping for students seeking another type of degree or certificate at a 2-year institution.", + "Cast the `grad_150` text value to an integer to obtain the count of graduated students.", + "Return this single computed value as the column `graduated_students`." + ] + }, + "revisql-train:3729": { + "raw": "1. Query institution_details to find the state value where chronname equals 'Madison Area Technical College' to identify its home state.\n2. Filter institution_details to only include institutions located in that retrieved state.\n3. Apply the external knowledge mappings: interpret \"4-year\" as level = '4-year' and \"public\" as control = 'Public'.\n4. Count the number of institutions in that state that satisfy both level = '4-year' and control = 'Public' to serve as the numerator.\n5. Count all institutions in that same state regardless of level or control to serve as the denominator.\n6. Cast the numerator count to a real number, multiply by 100.0, divide by the denominator, and return this single calculated percentage.", + "steps": [ + "Query institution_details to find the state value where chronname equals 'Madison Area Technical College' to identify its home state.", + "Filter institution_details to only include institutions located in that retrieved state.", + "Apply the external knowledge mappings: interpret \"4-year\" as level = '4-year' and \"public\" as control = 'Public'.", + "Count the number of institutions in that state that satisfy both level = '4-year' and control = 'Public' to serve as the numerator.", + "Count all institutions in that same state regardless of level or control to serve as the denominator.", + "Cast the numerator count to a real number, multiply by 100.0, divide by the denominator, and return this single calculated percentage." + ] + }, + "revisql-train:3733": { + "raw": "1. Join state_sector_details to state_sector_grads on stateid to link each state's school-count metadata with the race categories recorded in the graduation table.\n2. Filter the state details for control = 'Public' and schools_count <= 20, applying the external knowledge that maps \"public\" to the control column and the threshold to the schools_count column.\n3. Exclude rows where race = 'X' in the graduation table because that value denotes all students rather than a specific race category.\n4. Return distinct values of the race column from the graduation table to list each applicable race category exactly once.", + "steps": [ + "Join state_sector_details to state_sector_grads on stateid to link each state's school-count metadata with the race categories recorded in the graduation table.", + "Filter the state details for control = 'Public' and schools_count <= 20, applying the external knowledge that maps \"public\" to the control column and the threshold to the schools_count column.", + "Exclude rows where race = 'X' in the graduation table because that value denotes all students rather than a specific race category.", + "Return distinct values of the race column from the graduation table to list each applicable race category exactly once." + ] + }, + "revisql-train:3741": { + "raw": "1. Aggregate `state_sector_details` by `stateid`, using `SUM(schools_count)` to compute the number of schools per state, and keep only states where that total is between 10 and 20.\n2. In `state_sector_grads`, filter to rows where `year` equals 2012, `gender` equals 'F' (female), and `race` equals 'X' so the count reflects all students rather than a specific racial subgroup.\n3. Join the filtered graduation data to the qualifying states on `stateid` to restrict results to states with 10–20 schools.\n4. Cast the `grad_cohort` values to integers and sum them to compute the total number of female students.\n5. Return the final result as a single column named `female_students`.", + "steps": [ + "Aggregate `state_sector_details` by `stateid`, using `SUM(schools_count)` to compute the number of schools per state, and keep only states where that total is between 10 and 20.", + "In `state_sector_grads`, filter to rows where `year` equals 2012, `gender` equals 'F' (female), and `race` equals 'X' so the count reflects all students rather than a specific racial subgroup.", + "Join the filtered graduation data to the qualifying states on `stateid` to restrict results to states with 10–20 schools.", + "Cast the `grad_cohort` values to integers and sum them to compute the total number of female students.", + "Return the final result as a single column named `female_students`." + ] + }, + "revisql-train:3744": { + "raw": "1. Query the `institution_details` table, mapping \"name of the institution\" to the `chronname` column and \"freshman retention percentage percent rank within the sector\" to the `retain_percentile` column.\n2. Restrict the dataset to rows where `state` equals `'Connecticut'`.\n3. Calculate the maximum `retain_percentile` among only those Connecticut rows to identify the highest rank.\n4. Return the `chronname` values for Connecticut institutions whose `retain_percentile` matches that maximum value.", + "steps": [ + "Query the `institution_details` table, mapping \"name of the institution\" to the `chronname` column and \"freshman retention percentage percent rank within the sector\" to the `retain_percentile` column.", + "Restrict the dataset to rows where `state` equals `'Connecticut'`.", + "Calculate the maximum `retain_percentile` among only those Connecticut rows to identify the highest rank.", + "Return the `chronname` values for Connecticut institutions whose `retain_percentile` matches that maximum value." + ] + }, + "revisql-train:3755": { + "raw": "1. Join `institution_details` to `institution_grads` on `unitid` to link each school’s name with its graduation cohort data.\n2. Filter `chronname` to only the eight Ivy League institutions listed in the external knowledge.\n3. Apply the graduation-table filters that map the question’s constraints: `year` = 2013, `race` = 'B', `cohort` = '4y bach', and `gender` = 'B'.\n4. Cast the `grad_150` column to integer because it is stored as text and must be compared numerically as the count of graduates within 150% of expected time.\n5. Compute the maximum converted `grad_150` value across the filtered Ivy League records.\n6. Return the `chronname`(s) whose converted `grad_150` count matches that maximum.", + "steps": [ + "Join `institution_details` to `institution_grads` on `unitid` to link each school’s name with its graduation cohort data.", + "Filter `chronname` to only the eight Ivy League institutions listed in the external knowledge.", + "Apply the graduation-table filters that map the question’s constraints: `year` = 2013, `race` = 'B', `cohort` = '4y bach', and `gender` = 'B'.", + "Cast the `grad_150` column to integer because it is stored as text and must be compared numerically as the count of graduates within 150% of expected time.", + "Compute the maximum converted `grad_150` value across the filtered Ivy League records.", + "Return the `chronname`(s) whose converted `grad_150` count matches that maximum." + ] + }, + "revisql-train:3757": { + "raw": "1. Identify that the school name is stored as `chronname` in `institution_details` and state appropriations as `state_appr_value` in `state_sector_details`.\n2. Join `institution_details` to `state_sector_details` using the three matching keys: `state`, `level`, and `control`.\n3. Compute the difference between `awards_per_value` and `awards_per_natl_value` to capture the gap between each school’s completion rate and its national sector average, as defined in the external knowledge.\n4. Sort the rows by this difference in descending order and restrict the output to the single top record.\n5. Return exactly the columns `chronname` and `state_appr_value`.", + "steps": [ + "Identify that the school name is stored as `chronname` in `institution_details` and state appropriations as `state_appr_value` in `state_sector_details`.", + "Join `institution_details` to `state_sector_details` using the three matching keys: `state`, `level`, and `control`.", + "Compute the difference between `awards_per_value` and `awards_per_natl_value` to capture the gap between each school’s completion rate and its national sector average, as defined in the external knowledge.", + "Sort the rows by this difference in descending order and restrict the output to the single top record.", + "Return exactly the columns `chronname` and `state_appr_value`." + ] + }, + "revisql-train:376": { + "raw": "1. Use the `client` table, which contains both client names and their city of residence.\n2. Map the question's \"New York city\" to the `city` column using the exact string value 'New York City' from external knowledge.\n3. Filter rows by applying the condition `city = 'New York City'`.\n4. Return the `first` and `last` columns for all clients matching that filter.", + "steps": [ + "Use the `client` table, which contains both client names and their city of residence.", + "Map the question's \"New York city\" to the `city` column using the exact string value 'New York City' from external knowledge.", + "Filter rows by applying the condition `city = 'New York City'`.", + "Return the `first` and `last` columns for all clients matching that filter." + ] + }, + "revisql-train:3760": { + "raw": "1. Start from the Reviews table, which stores each review’s user_id and review_length.\n2. Filter to rows where user_id equals 36139, mapping “user No. 36139” to that column.\n3. Keep only rows where review_length indicates a long review, matching against ‘Long’ (or LIKE ‘long’) per the external knowledge.\n4. Count the review_length values to total how many such reviews exist.\n5. Return only that aggregated count.", + "steps": [ + "Start from the Reviews table, which stores each review’s user_id and review_length.", + "Filter to rows where user_id equals 36139, mapping “user No. 36139” to that column.", + "Keep only rows where review_length indicates a long review, matching against ‘Long’ (or LIKE ‘long’) per the external knowledge.", + "Count the review_length values to total how many such reviews exist.", + "Return only that aggregated count." + ] + }, + "revisql-train:3765": { + "raw": "1. Join the Categories table to Business_Categories on category_id to access category_name for each business category link.\n2. Sum a conditional expression that returns 1 when category_name is 'Buffets' and 0 otherwise to get the total buffets count.\n3. Sum a conditional expression that returns 1 when category_name is 'Gyms' and 0 otherwise to get the total gyms count.\n4. Subtract the gyms total from the buffets total to compute how many more buffets than gyms exist.\n5. Return that single calculated difference value.", + "steps": [ + "Join the Categories table to Business_Categories on category_id to access category_name for each business category link.", + "Sum a conditional expression that returns 1 when category_name is 'Buffets' and 0 otherwise to get the total buffets count.", + "Sum a conditional expression that returns 1 when category_name is 'Gyms' and 0 otherwise to get the total gyms count.", + "Subtract the gyms total from the buffets total to compute how many more buffets than gyms exist.", + "Return that single calculated difference value." + ] + }, + "revisql-train:3773": { + "raw": "1. Locate the relevant tip in the Tips table by filtering to user_id = 69722 and tip_length = 'Short', using the external knowledge that \"short tip\" maps to the tip_length column value.\n2. Join that Tips record to the Business table on the shared business_id key to access the corresponding business details.\n3. Select the stars column from the Business table, applying the external knowledge that \"ratings\" refers to stars.\n4. Return the resulting stars value as the business rating.", + "steps": [ + "Locate the relevant tip in the Tips table by filtering to user_id = 69722 and tip_length = 'Short', using the external knowledge that \"short tip\" maps to the tip_length column value.", + "Join that Tips record to the Business table on the shared business_id key to access the corresponding business details.", + "Select the stars column from the Business table, applying the external knowledge that \"ratings\" refers to stars.", + "Return the resulting stars value as the business rating." + ] + }, + "revisql-train:3791": { + "raw": "1. Filter the Users_Compliments table to rows where number_of_compliments equals 'High', applying the external knowledge that \"high number of compliments\" maps to that exact value.\n2. From the Compliments table, retrieve the compliment_id values where compliment_type matches 'funny', applying the external knowledge that \"type of compliments\" maps to the compliment_type column.\n3. Restrict the filtered Users_Compliments rows to only those whose compliment_id is contained within the set of funny compliment IDs identified in step 2.\n4. Return the user_id column from the remaining qualifying rows as the final answer.", + "steps": [ + "Filter the Users_Compliments table to rows where number_of_compliments equals 'High', applying the external knowledge that \"high number of compliments\" maps to that exact value.", + "From the Compliments table, retrieve the compliment_id values where compliment_type matches 'funny', applying the external knowledge that \"type of compliments\" maps to the compliment_type column.", + "Restrict the filtered Users_Compliments rows to only those whose compliment_id is contained within the set of funny compliment IDs identified in step 2.", + "Return the user_id column from the remaining qualifying rows as the final answer." + ] + }, + "revisql-train:3794": { + "raw": "1. Join the Attributes table to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id to link attribute flags with business city locations.\n2. Filter the results to only rows where attribute_name is 'BYOB' and attribute_value is 'TRUE', applying the external knowledge that this combination identifies businesses allowing customers to bring their own beer.\n3. Compute the numerator by summing a conditional expression that yields 1 when the city equals 'Phoenix' and 0 otherwise, counting how many BYOB businesses are located in Phoenix.\n4. Compute the denominator by counting the business_id from the filtered BYOB set to obtain the total number of such businesses.\n5. Calculate the final percentage by casting the numerator to a real number, multiplying by 100, dividing by the denominator, and returning the result as a single column named percentage.", + "steps": [ + "Join the Attributes table to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id to link attribute flags with business city locations.", + "Filter the results to only rows where attribute_name is 'BYOB' and attribute_value is 'TRUE', applying the external knowledge that this combination identifies businesses allowing customers to bring their own beer.", + "Compute the numerator by summing a conditional expression that yields 1 when the city equals 'Phoenix' and 0 otherwise, counting how many BYOB businesses are located in Phoenix.", + "Compute the denominator by counting the business_id from the filtered BYOB set to obtain the total number of such businesses.", + "Calculate the final percentage by casting the numerator to a real number, multiplying by 100, dividing by the denominator, and returning the result as a single column named percentage." + ] + }, + "revisql-train:3796": { + "raw": "1. Query only the Business table because both required attributes—activity status and review volume—reside there with no joins needed.\n2. Apply the external knowledge that “active businesses” means the active column matches 'true' (or 'TRUE').\n3. Apply the external knowledge that “underrated” means the review_count column matches 'Low'.\n4. Combine both conditions with AND in the WHERE clause so only businesses satisfying both are included.\n5. Return the result as a count of business_id to get the total number of active, underrated businesses.", + "steps": [ + "Query only the Business table because both required attributes—activity status and review volume—reside there with no joins needed.", + "Apply the external knowledge that “active businesses” means the active column matches 'true' (or 'TRUE').", + "Apply the external knowledge that “underrated” means the review_count column matches 'Low'.", + "Combine both conditions with AND in the WHERE clause so only businesses satisfying both are included.", + "Return the result as a count of business_id to get the total number of active, underrated businesses." + ] + }, + "revisql-train:38": { + "raw": "1. Join `lists` with `lists_users` on matching `list_id` and `user_id` to pair each list’s follower count with its creation record.\n2. Restrict to rows where `lists_users.list_creation_date_utc` falls between '2016-02-01' and '2016-02-29' and `user_eligible_for_trial` equals '1', applying the February 2016 and trial-eligibility conditions.\n3. Compute the maximum `list_followers` value found within that restricted set.\n4. Return the distinct `user_id`(s) from the same restricted set whose `list_followers` equals that maximum.", + "steps": [ + "Join `lists` with `lists_users` on matching `list_id` and `user_id` to pair each list’s follower count with its creation record.", + "Restrict to rows where `lists_users.list_creation_date_utc` falls between '2016-02-01' and '2016-02-29' and `user_eligible_for_trial` equals '1', applying the February 2016 and trial-eligibility conditions.", + "Compute the maximum `list_followers` value found within that restricted set.", + "Return the distinct `user_id`(s) from the same restricted set whose `list_followers` equals that maximum." + ] + }, + "revisql-train:380": { + "raw": "1. Join the `client` table with the `district` table on the `district_id` key to link each client to their geographic division.\n2. Filter the joined rows to only those where the `district` table's `division` column equals 'South Atlantic', applying the external knowledge mapping.\n3. Calculate the average of the `age` column from the `client` table, as specified by the external knowledge for \"average age\".\n4. Return the single aggregated value representing the average age.", + "steps": [ + "Join the `client` table with the `district` table on the `district_id` key to link each client to their geographic division.", + "Filter the joined rows to only those where the `district` table's `division` column equals 'South Atlantic', applying the external knowledge mapping.", + "Calculate the average of the `age` column from the `client` table, as specified by the external knowledge for \"average age\".", + "Return the single aggregated value representing the average age." + ] + }, + "revisql-train:3808": { + "raw": "1. Join the Business table with the Business_Hours table on business_id to pair city location with opening-time data.\n2. Restrict the results to rows where the city column matches Tempe.\n3. Filter for early opening hours by keeping rows where opening_time is exactly '12AM', or where the value ends with 'AM' and the numeric hour (after stripping 'AM' and casting to integer) is strictly less than 8.\n4. Return distinct business_id values from the Business table so each qualifying business is listed only once.", + "steps": [ + "Join the Business table with the Business_Hours table on business_id to pair city location with opening-time data.", + "Restrict the results to rows where the city column matches Tempe.", + "Filter for early opening hours by keeping rows where opening_time is exactly '12AM', or where the value ends with 'AM' and the numeric hour (after stripping 'AM' and casting to integer) is strictly less than 8.", + "Return distinct business_id values from the Business table so each qualifying business is listed only once." + ] + }, + "revisql-train:381": { + "raw": "1. Join client to district on district_id, then district to state on state_abbrev to link each client to their region.\n2. Filter for rows where state.Region equals 'Midwest'.\n3. Group by district.city and count client.client_id to compute the number of clients per Midwest city.\n4. Compute the minimum of those city-level counts via a subquery that repeats the same join, filter, and grouping, applying the external knowledge that \"least number of clients\" maps to min(count(client_id)).\n5. Filter the grouped results to keep only cities whose client count matches that minimum value.\n6. Return the district.city column.", + "steps": [ + "Join client to district on district_id, then district to state on state_abbrev to link each client to their region.", + "Filter for rows where state.Region equals 'Midwest'.", + "Group by district.city and count client.client_id to compute the number of clients per Midwest city.", + "Compute the minimum of those city-level counts via a subquery that repeats the same join, filter, and grouping, applying the external knowledge that \"least number of clients\" maps to min(count(client_id)).", + "Filter the grouped results to keep only cities whose client count matches that minimum value.", + "Return the district.city column." + ] + }, + "revisql-train:3810": { + "raw": "1. Use the Business table as the sole source because the question only concerns business locations.\n2. Filter rows where the city column equals 'Phoenix'.\n3. Count the filtered rows to produce the number of Phoenix businesses, naming the result num_phoenix.\n4. Compute the percentage by dividing that Phoenix count by the total number of rows in Business, multiplying by 100.0, and casting the numerator to REAL to ensure decimal division; name this perc_phoenix.\n5. Return exactly the two computed columns: num_phoenix and perc_phoenix.", + "steps": [ + "Use the Business table as the sole source because the question only concerns business locations.", + "Filter rows where the city column equals 'Phoenix'.", + "Count the filtered rows to produce the number of Phoenix businesses, naming the result num_phoenix.", + "Compute the percentage by dividing that Phoenix count by the total number of rows in Business, multiplying by 100.0, and casting the numerator to REAL to ensure decimal division; name this perc_phoenix.", + "Return exactly the two computed columns: num_phoenix and perc_phoenix." + ] + }, + "revisql-train:3811": { + "raw": "1. Join Business_Categories to Categories on category_id and to Business on business_id to connect category names with business review counts.\n2. Apply the external knowledge mapping that category refers to category_name, and filter to rows where category_name equals 'Active Life'.\n3. Count qualifying businesses by summing a conditional expression that returns 1 when review_count is 'Low' and 0 otherwise.\n4. Cast that conditional sum to REAL, multiply by 100.0, and divide by the total count of all filtered Active Life businesses to compute the percentage.\n5. Return the single resulting percentage value.", + "steps": [ + "Join Business_Categories to Categories on category_id and to Business on business_id to connect category names with business review counts.", + "Apply the external knowledge mapping that category refers to category_name, and filter to rows where category_name equals 'Active Life'.", + "Count qualifying businesses by summing a conditional expression that returns 1 when review_count is 'Low' and 0 otherwise.", + "Cast that conditional sum to REAL, multiply by 100.0, and divide by the total count of all filtered Active Life businesses to compute the percentage.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:3813": { + "raw": "1. Use only the Business table, as it contains both the city and stars columns required; no joins are needed.\n2. Apply a filter on the city column to match 'Scottsdale', mapping the external knowledge that Scottsdale refers to that city value.\n3. Apply a filter on the stars column for values greater than 3, mapping the external knowledge that \"wonderful experience\" means stars > 3.\n4. Aggregate by counting the business_id to compute the total number of matching businesses.\n5. Return exactly one column: the count of business_id.", + "steps": [ + "Use only the Business table, as it contains both the city and stars columns required; no joins are needed.", + "Apply a filter on the city column to match 'Scottsdale', mapping the external knowledge that Scottsdale refers to that city value.", + "Apply a filter on the stars column for values greater than 3, mapping the external knowledge that \"wonderful experience\" means stars > 3.", + "Aggregate by counting the business_id to compute the total number of matching businesses.", + "Return exactly one column: the count of business_id." + ] + }, + "revisql-train:3819": { + "raw": "1. Use only the Business table since it holds city, stars, and business_id with no joins required.\n2. Filter rows where the city column exactly matches 'Mesa'.\n3. Apply the external knowledge mapping stars > 3 as the positive-rating threshold to filter the stars column.\n4. Return only the business_id column for the qualifying rows.", + "steps": [ + "Use only the Business table since it holds city, stars, and business_id with no joins required.", + "Filter rows where the city column exactly matches 'Mesa'.", + "Apply the external knowledge mapping stars > 3 as the positive-rating threshold to filter the stars column.", + "Return only the business_id column for the qualifying rows." + ] + }, + "revisql-train:3827": { + "raw": "1. Start with the Business table alone; no joins are needed because state, review_count, and stars all reside there.\n2. Map the external knowledge phrase \"low veracity of reviews\" to the combined filter review_count equal to 'Low' and stars greater than 3.\n3. Further restrict the rows to those where the state is AZ.\n4. Count the business_id values across the rows satisfying all three conditions.\n5. Return that single aggregated count.", + "steps": [ + "Start with the Business table alone; no joins are needed because state, review_count, and stars all reside there.", + "Map the external knowledge phrase \"low veracity of reviews\" to the combined filter review_count equal to 'Low' and stars greater than 3.", + "Further restrict the rows to those where the state is AZ.", + "Count the business_id values across the rows satisfying all three conditions.", + "Return that single aggregated count." + ] + }, + "revisql-train:3829": { + "raw": "1. Join Attributes and Business_Attributes on attribute_id to pair each attribute name with its value for the business.\n2. Restrict Business_Attributes to business_id = 2, mapping “business number 2” to that identifier.\n3. Keep rows where lower(attribute_value) is in (‘none’, ‘no’, ‘false’), reflecting that “does not have” matches those attribute_value strings.\n4. Return the attribute_name column from Attributes to name an attribute the business lacks.", + "steps": [ + "Join Attributes and Business_Attributes on attribute_id to pair each attribute name with its value for the business.", + "Restrict Business_Attributes to business_id = 2, mapping “business number 2” to that identifier.", + "Keep rows where lower(attribute_value) is in (‘none’, ‘no’, ‘false’), reflecting that “does not have” matches those attribute_value strings.", + "Return the attribute_name column from Attributes to name an attribute the business lacks." + ] + }, + "revisql-train:3841": { + "raw": "1. Start from the Business table, since it contains the city location and star rating for each Yelp business.\n2. Filter the city column to match 'Scottsdale' to restrict results to businesses in that location.\n3. Apply the external knowledge mappings so that \"positive comments in the Elitestar rating\" translates to the stars column being greater than 3, and add that filter.\n4. Count the business_id values to compute the total number of businesses satisfying both conditions.\n5. Return only that single count value as the final answer.", + "steps": [ + "Start from the Business table, since it contains the city location and star rating for each Yelp business.", + "Filter the city column to match 'Scottsdale' to restrict results to businesses in that location.", + "Apply the external knowledge mappings so that \"positive comments in the Elitestar rating\" translates to the stars column being greater than 3, and add that filter.", + "Count the business_id values to compute the total number of businesses satisfying both conditions.", + "Return only that single count value as the final answer." + ] + }, + "revisql-train:3842": { + "raw": "1. Start from the Business table and filter to rows where review_count equals 'Uber', since external knowledge maps \"most appealing to users\" to that column value.\n2. In an aggregate query, compute two conditional counts: one for city = 'Scottsdale' and another for city = 'Anthem'.\n3. Wrap that aggregation in a derived table so both city counts are exposed as columns for comparison.\n4. In the outer SELECT, use a CASE expression to return 'Scottsdale' if its count is greater, 'Anthem' if its count is greater, and 'Both' if the two counts are equal.\n5. Return exactly one column named result containing the comparison outcome.", + "steps": [ + "Start from the Business table and filter to rows where review_count equals 'Uber', since external knowledge maps \"most appealing to users\" to that column value.", + "In an aggregate query, compute two conditional counts: one for city = 'Scottsdale' and another for city = 'Anthem'.", + "Wrap that aggregation in a derived table so both city counts are exposed as columns for comparison.", + "In the outer SELECT, use a CASE expression to return 'Scottsdale' if its count is greater, 'Anthem' if its count is greater, and 'Both' if the two counts are equal.", + "Return exactly one column named result containing the comparison outcome." + ] + }, + "revisql-train:385": { + "raw": "1. Use the district table and treat state_abbrev as the state identifier per external knowledge.\n2. Group the rows by state_abbrev to aggregate data per state.\n3. Count distinct cities within each state, since multiple district rows may reference the same city.\n4. In a subquery, compute the same distinct-city counts by state, order them from highest to lowest, and isolate the top value to find the maximum.\n5. Filter the outer grouped results with HAVING so only states whose distinct city count equals that maximum value remain.\n6. Return the state_abbrev column for the resulting state or states.", + "steps": [ + "Use the district table and treat state_abbrev as the state identifier per external knowledge.", + "Group the rows by state_abbrev to aggregate data per state.", + "Count distinct cities within each state, since multiple district rows may reference the same city.", + "In a subquery, compute the same distinct-city counts by state, order them from highest to lowest, and isolate the top value to find the maximum.", + "Filter the outer grouped results with HAVING so only states whose distinct city count equals that maximum value remain.", + "Return the state_abbrev column for the resulting state or states." + ] + }, + "revisql-train:3852": { + "raw": "1. Join Attributes to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id to connect alcohol attributes with business locations.\n2. Filter Business to only rows where state is 'AZ', mapping the external knowledge of Arizona to the state column.\n3. Filter Attributes to only rows where attribute_name is 'Alcohol'.\n4. Filter Business_Attributes to only rows where the attribute_value, evaluated case-insensitively, is 'none', 'no', or 'false', mapping the external knowledge of \"do not provide alcohol\" to these attribute values.\n5. Count the business_id values from Business_Attributes and return that single aggregated count column as the result.", + "steps": [ + "Join Attributes to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id to connect alcohol attributes with business locations.", + "Filter Business to only rows where state is 'AZ', mapping the external knowledge of Arizona to the state column.", + "Filter Attributes to only rows where attribute_name is 'Alcohol'.", + "Filter Business_Attributes to only rows where the attribute_value, evaluated case-insensitively, is 'none', 'no', or 'false', mapping the external knowledge of \"do not provide alcohol\" to these attribute values.", + "Count the business_id values from Business_Attributes and return that single aggregated count column as the result." + ] + }, + "revisql-train:3856": { + "raw": "1. Join Categories to Business_Categories on category_id, then join Business_Categories to Business on business_id to connect category names to business records.\n2. Filter Categories.category_name to 'Food' using the external knowledge that the \"Food\" category maps to that exact value.\n3. Filter Business.active to 'TRUE' using the external knowledge that \"still running\" maps to active being true.\n4. Count Business.business_id and return that single aggregated column.", + "steps": [ + "Join Categories to Business_Categories on category_id, then join Business_Categories to Business on business_id to connect category names to business records.", + "Filter Categories.category_name to 'Food' using the external knowledge that the \"Food\" category maps to that exact value.", + "Filter Business.active to 'TRUE' using the external knowledge that \"still running\" maps to active being true.", + "Count Business.business_id and return that single aggregated column." + ] + }, + "revisql-train:3859": { + "raw": "1. Join Categories to Business_Categories on category_id to link category names with business IDs.\n2. Join that result to Business on business_id to access the business records.\n3. Join Business_Attributes to the prior result on business_id, then join Attributes to that on attribute_id to attach attribute_name and attribute_value.\n4. Filter for category_name matching 'Food', attribute_name matching 'Good for Kids', and attribute_value matching 'TRUE', using the external knowledge mappings.\n5. Count the stars column from Business to return the total number of matching businesses.", + "steps": [ + "Join Categories to Business_Categories on category_id to link category names with business IDs.", + "Join that result to Business on business_id to access the business records.", + "Join Business_Attributes to the prior result on business_id, then join Attributes to that on attribute_id to attach attribute_name and attribute_value.", + "Filter for category_name matching 'Food', attribute_name matching 'Good for Kids', and attribute_value matching 'TRUE', using the external knowledge mappings.", + "Count the stars column from Business to return the total number of matching businesses." + ] + }, + "revisql-train:3868": { + "raw": "1. Use the Business_Hours table, group by business_id, and keep only groups having 7 distinct day_id values to isolate businesses open every day of the week.\n2. Join that result with Business_Attributes on business_id to bring in attribute values for those businesses.\n3. Join Attributes on attribute_id to access the attribute_name column.\n4. Apply the external knowledge filters: keep rows where attribute_name equals 'Good for Kids' and attribute_value equals 'true' with case-insensitive matching.\n5. Return COUNT(*) as the final result, giving the total number of businesses that satisfy both conditions.", + "steps": [ + "Use the Business_Hours table, group by business_id, and keep only groups having 7 distinct day_id values to isolate businesses open every day of the week.", + "Join that result with Business_Attributes on business_id to bring in attribute values for those businesses.", + "Join Attributes on attribute_id to access the attribute_name column.", + "Apply the external knowledge filters: keep rows where attribute_name equals 'Good for Kids' and attribute_value equals 'true' with case-insensitive matching.", + "Return COUNT(*) as the final result, giving the total number of businesses that satisfy both conditions." + ] + }, + "revisql-train:3871": { + "raw": "1. Identify that operating hours and weekday metadata are stored in the Business_Hours and Days tables, so both are needed.\n2. Join Business_Hours to Days on the day_id key to connect opening/closing times with the corresponding weekday name.\n3. Apply the external knowledge for Sundays by filtering the joined rows to only those where day_of_week equals 'Sunday'.\n4. Convert the opening_time and closing_time strings from 12-hour AM/PM format into 24-hour integer hour values: treat 12 AM as 0, 12 PM as 12, keep other AM hours as-is, and add 12 to all other PM hours.\n5. Compute the daily business duration in hours with a conditional that handles overnight schedules: when close_hr is at least open_hr use direct subtraction, otherwise calculate 24 minus the difference between open_hr and close_hr.\n6. Return only the business_id column for rows where the computed duration is strictly greater than 12 hours.", + "steps": [ + "Identify that operating hours and weekday metadata are stored in the Business_Hours and Days tables, so both are needed.", + "Join Business_Hours to Days on the day_id key to connect opening/closing times with the corresponding weekday name.", + "Apply the external knowledge for Sundays by filtering the joined rows to only those where day_of_week equals 'Sunday'.", + "Convert the opening_time and closing_time strings from 12-hour AM/PM format into 24-hour integer hour values: treat 12 AM as 0, 12 PM as 12, keep other AM hours as-is, and add 12 to all other PM hours.", + "Compute the daily business duration in hours with a conditional that handles overnight schedules: when close_hr is at least open_hr use direct subtraction, otherwise calculate 24 minus the difference between open_hr and close_hr.", + "Return only the business_id column for rows where the computed duration is strictly greater than 12 hours." + ] + }, + "revisql-train:3873": { + "raw": "1. Use the Reviews table, grouping by user_id, and apply the external knowledge that \"posted more than 10 reviews\" maps to a HAVING clause with COUNT(*) > 10 to isolate prolific users.\n2. Join that prolific-user set with the Elite table using user_id as the join key to find which prolific users are elite.\n3. Since Elite records one row per user per year, count distinct user_id values from the join to ensure each elite user is counted once.\n4. Return exactly one column: the total number of distinct user_ids.", + "steps": [ + "Use the Reviews table, grouping by user_id, and apply the external knowledge that \"posted more than 10 reviews\" maps to a HAVING clause with COUNT(*) > 10 to isolate prolific users.", + "Join that prolific-user set with the Elite table using user_id as the join key to find which prolific users are elite.", + "Since Elite records one row per user per year, count distinct user_id values from the join to ensure each elite user is counted once.", + "Return exactly one column: the total number of distinct user_ids." + ] + }, + "revisql-train:388": { + "raw": "1. Join the client table to the events table on client_id matching Client_ID to associate each complaint with its client.\n2. Filter the events table to only rows where the year of Date received is 2012.\n3. Filter the events table to only rows where the Product column equals Credit card.\n4. Filter the client table to only rows where the city column equals Omaha.\n5. Count the client_id values from the resulting joined records and return that single number.", + "steps": [ + "Join the client table to the events table on client_id matching Client_ID to associate each complaint with its client.", + "Filter the events table to only rows where the year of Date received is 2012.", + "Filter the events table to only rows where the Product column equals Credit card.", + "Filter the client table to only rows where the city column equals Omaha.", + "Count the client_id values from the resulting joined records and return that single number." + ] + }, + "revisql-train:3880": { + "raw": "1. Target the Business table since it contains state, active status, and review_count.\n2. Map \"active businesses\" from external knowledge to the filter active LIKE 'True'.\n3. Map \"in AZ\" from external knowledge to the filter state LIKE 'AZ'.\n4. Filter for \"low review count\" by matching review_count LIKE 'low'.\n5. Aggregate with COUNT(business_id) to produce the total number.\n6. Return only the resulting count column.", + "steps": [ + "Target the Business table since it contains state, active status, and review_count.", + "Map \"active businesses\" from external knowledge to the filter active LIKE 'True'.", + "Map \"in AZ\" from external knowledge to the filter state LIKE 'AZ'.", + "Filter for \"low review count\" by matching review_count LIKE 'low'.", + "Aggregate with COUNT(business_id) to produce the total number.", + "Return only the resulting count column." + ] + }, + "revisql-train:3882": { + "raw": "1. Query the `Users` table exclusively because both needed fields, `user_yelping_since_year` and `user_fans`, reside there.\n2. Map the phrase \"yelping since 2011 to 2013\" to `user_yelping_since_year` and filter for years 2011 through 2013 inclusive.\n3. Map \"high count of fans\" to the `user_fans` column and filter for the value 'High'.\n4. Combine both filters with AND so only users satisfying the year range and the fan level are retained.\n5. Aggregate by counting `user_id` to return the total number of matching users.\n6. Output the single count column as the final result.", + "steps": [ + "Query the `Users` table exclusively because both needed fields, `user_yelping_since_year` and `user_fans`, reside there.", + "Map the phrase \"yelping since 2011 to 2013\" to `user_yelping_since_year` and filter for years 2011 through 2013 inclusive.", + "Map \"high count of fans\" to the `user_fans` column and filter for the value 'High'.", + "Combine both filters with AND so only users satisfying the year range and the fan level are retained.", + "Aggregate by counting `user_id` to return the total number of matching users.", + "Output the single count column as the final result." + ] + }, + "revisql-train:3891": { + "raw": "1. Filter the Business table using the external knowledge mappings: keep only rows where active equals 'TRUE', city equals 'Chandler', state equals 'AZ', and review_count equals 'Medium'.\n2. Join Business_Categories on business_id, then join Categories on category_id to reach the category_name column referenced by the external knowledge.\n3. Join Business_Attributes on business_id, then join Attributes on attribute_id to reach the attribute_name column referenced by the external knowledge.\n4. Return the columns category_name and attribute_name as the final output.", + "steps": [ + "Filter the Business table using the external knowledge mappings: keep only rows where active equals 'TRUE', city equals 'Chandler', state equals 'AZ', and review_count equals 'Medium'.", + "Join Business_Categories on business_id, then join Categories on category_id to reach the category_name column referenced by the external knowledge.", + "Join Business_Attributes on business_id, then join Attributes on attribute_id to reach the attribute_name column referenced by the external knowledge.", + "Return the columns category_name and attribute_name as the final output." + ] + }, + "revisql-train:3892": { + "raw": "1. Filter the Business table to only active businesses in Surprise, AZ by applying active = 'TRUE', city = 'Surprise', and state = 'AZ'.\n2. Join Business_Categories on business_id to link each qualifying business to its category identifiers.\n3. Join Categories on category_id to retrieve the corresponding category_name values.\n4. Group the results by category_name to produce a distinct list of categories without duplicates.\n5. Return only the category_name column as the final output.", + "steps": [ + "Filter the Business table to only active businesses in Surprise, AZ by applying active = 'TRUE', city = 'Surprise', and state = 'AZ'.", + "Join Business_Categories on business_id to link each qualifying business to its category identifiers.", + "Join Categories on category_id to retrieve the corresponding category_name values.", + "Group the results by category_name to produce a distinct list of categories without duplicates.", + "Return only the category_name column as the final output." + ] + }, + "revisql-train:3909": { + "raw": "1. Join the Reviews table to the Users table on the user_id column to link each review to the corresponding user's profile data.\n2. Filter the joined rows to only those where user_id equals 3.\n3. Count the business_id values from the Reviews side to determine how many businesses this user has reviewed.\n4. Calculate the user's Yelp tenure by subtracting the user_yelping_since_year value from the current year, mapping the year-with-Yelp formula to the Users column.\n5. Return the business count and the computed tenure as the two final result columns.", + "steps": [ + "Join the Reviews table to the Users table on the user_id column to link each review to the corresponding user's profile data.", + "Filter the joined rows to only those where user_id equals 3.", + "Count the business_id values from the Reviews side to determine how many businesses this user has reviewed.", + "Calculate the user's Yelp tenure by subtracting the user_yelping_since_year value from the current year, mapping the year-with-Yelp formula to the Users column.", + "Return the business count and the computed tenure as the two final result columns." + ] + }, + "revisql-train:3912": { + "raw": "1. Join the Elite table to the Years table on year_id to obtain the actual calendar year for each user’s elite record.\n2. For each user, compute a streak-group identifier by subtracting the row number ordered by actual year from the actual year itself; identical values indicate consecutive years.\n3. Group by user_id and that streak-group identifier, count the years in each group, and keep only groups where the count is 5 or greater.\n4. Extract the distinct user_ids from those qualifying groups to form the set of users with 5 or more consecutive elite years.\n5. Join this set of qualified user_ids with the Users table on user_id, mapping the requested “user average stars” to the user_average_stars column.\n6. Return the user_id and user_average_stars columns.", + "steps": [ + "Join the Elite table to the Years table on year_id to obtain the actual calendar year for each user’s elite record.", + "For each user, compute a streak-group identifier by subtracting the row number ordered by actual year from the actual year itself; identical values indicate consecutive years.", + "Group by user_id and that streak-group identifier, count the years in each group, and keep only groups where the count is 5 or greater.", + "Extract the distinct user_ids from those qualifying groups to form the set of users with 5 or more consecutive elite years.", + "Join this set of qualified user_ids with the Users table on user_id, mapping the requested “user average stars” to the user_average_stars column.", + "Return the user_id and user_average_stars columns." + ] + }, + "revisql-train:3932": { + "raw": "1. From the Business table, filter for rows where city is 'Surprise', active is 'TRUE' (active business), and review_count is 'Low' (low review count), applying the external knowledge mappings.\n2. Join the filtered Business rows to Business_Hours on business_id to access each business's opening times.\n3. Join Business_Hours to Days on day_id to include the day context for each hours record.\n4. Return the opening_time column from Business_Hours, grouping by that column to list each distinct opening time once.", + "steps": [ + "From the Business table, filter for rows where city is 'Surprise', active is 'TRUE' (active business), and review_count is 'Low' (low review count), applying the external knowledge mappings.", + "Join the filtered Business rows to Business_Hours on business_id to access each business's opening times.", + "Join Business_Hours to Days on day_id to include the day context for each hours record.", + "Return the opening_time column from Business_Hours, grouping by that column to list each distinct opening time once." + ] + }, + "revisql-train:3936": { + "raw": "1. Query the `Users_Compliments` table, which records compliments received by users.\n2. Filter rows where `number_of_compliments` equals 'Low' to isolate only low compliments.\n3. Group the filtered results by `user_id` to aggregate per user.\n4. Apply the external knowledge that \"less than 5 low compliments\" maps to keeping only groups with a count below 5.\n5. Return the `user_id` column to list the identifiers of the qualifying users.", + "steps": [ + "Query the `Users_Compliments` table, which records compliments received by users.", + "Filter rows where `number_of_compliments` equals 'Low' to isolate only low compliments.", + "Group the filtered results by `user_id` to aggregate per user.", + "Apply the external knowledge that \"less than 5 low compliments\" maps to keeping only groups with a count below 5.", + "Return the `user_id` column to list the identifiers of the qualifying users." + ] + }, + "revisql-train:3939": { + "raw": "1. Use the Attributes and Business_Attributes tables to access business properties and their values.\n2. Join them on attribute_id to link each attribute name to the businesses that have it.\n3. Filter for rows where attribute_name is 'Open 24 Hours', applying the external knowledge mapping for \"opened for 24 hours\".\n4. Further filter for rows where attribute_value is 'TRUE' to confirm the business actually has this property.\n5. Count the business_id values from Business_Attributes and return that total as the answer.", + "steps": [ + "Use the Attributes and Business_Attributes tables to access business properties and their values.", + "Join them on attribute_id to link each attribute name to the businesses that have it.", + "Filter for rows where attribute_name is 'Open 24 Hours', applying the external knowledge mapping for \"opened for 24 hours\".", + "Further filter for rows where attribute_value is 'TRUE' to confirm the business actually has this property.", + "Count the business_id values from Business_Attributes and return that total as the answer." + ] + }, + "revisql-train:3941": { + "raw": "1. Filter the Business table to active businesses in Ahwatukee by matching active = 'TRUE' on the active column and 'Ahwatukee' on the city column.\n2. Join Business_Hours to Business using business_id to bring in each business's operating day identifiers.\n3. Join Days to Business_Hours using day_id to translate those identifiers into weekday names.\n4. Restrict the results to rows where day_of_week is 'Sunday'.\n5. Return the business_id column from Business.", + "steps": [ + "Filter the Business table to active businesses in Ahwatukee by matching active = 'TRUE' on the active column and 'Ahwatukee' on the city column.", + "Join Business_Hours to Business using business_id to bring in each business's operating day identifiers.", + "Join Days to Business_Hours using day_id to translate those identifiers into weekday names.", + "Restrict the results to rows where day_of_week is 'Sunday'.", + "Return the business_id column from Business." + ] + }, + "revisql-train:3948": { + "raw": "1. Join Categories to Business_Categories on category_id, then join Business_Categories to Business on business_id.\n2. Filter Categories.category_name to 'Shopping Centers' per the external knowledge mapping.\n3. Filter Business.review_count to 'High' per the external knowledge mapping.\n4. Count Business_Categories.business_id and return that single aggregated count column.", + "steps": [ + "Join Categories to Business_Categories on category_id, then join Business_Categories to Business on business_id.", + "Filter Categories.category_name to 'Shopping Centers' per the external knowledge mapping.", + "Filter Business.review_count to 'High' per the external knowledge mapping.", + "Count Business_Categories.business_id and return that single aggregated count column." + ] + }, + "revisql-train:3951": { + "raw": "1. Join Business to Business_Hours on business_id, then join Business_Hours to Days on day_id to access day_of_week, opening_time, and closing_time.\n2. Filter Business_Hours to opening_time = '10AM' and closing_time = '9PM', mapping the question's \"10 am\" and \"9 pm\" via the external knowledge.\n3. Compute two conditional counts of business_id from the joined set: one summing rows where Days.day_of_week = 'Monday' and another where it equals 'Tuesday'.\n4. Subtract the Tuesday total from the Monday total to produce the difference, aliasing the result as DIFF.\n5. Return exactly the single DIFF column.", + "steps": [ + "Join Business to Business_Hours on business_id, then join Business_Hours to Days on day_id to access day_of_week, opening_time, and closing_time.", + "Filter Business_Hours to opening_time = '10AM' and closing_time = '9PM', mapping the question's \"10 am\" and \"9 pm\" via the external knowledge.", + "Compute two conditional counts of business_id from the joined set: one summing rows where Days.day_of_week = 'Monday' and another where it equals 'Tuesday'.", + "Subtract the Tuesday total from the Monday total to produce the difference, aliasing the result as DIFF.", + "Return exactly the single DIFF column." + ] + }, + "revisql-train:3954": { + "raw": "1. Select the Business table only; no joins are needed because city and stars are both native columns.\n2. Filter rows where city equals 'Mesa', using the external knowledge that Mesa is a city name.\n3. Further filter rows where stars equals 4, using the external knowledge that \"4\" stars maps to stars = 4.\n4. Apply COUNT on business_id to compute the total number of matching businesses.\n5. Return a single column that is the count of business_id.", + "steps": [ + "Select the Business table only; no joins are needed because city and stars are both native columns.", + "Filter rows where city equals 'Mesa', using the external knowledge that Mesa is a city name.", + "Further filter rows where stars equals 4, using the external knowledge that \"4\" stars maps to stars = 4.", + "Apply COUNT on business_id to compute the total number of matching businesses.", + "Return a single column that is the count of business_id." + ] + }, + "revisql-train:3968": { + "raw": "1. Join `Business_Categories` with `Categories` on `category_id` to access `category_name` for every business.\n2. Sum a CASE expression that returns 1 when `category_name` is 'Women''s Clothing' and 0 otherwise to count women's clothing businesses.\n3. Sum a second CASE expression that returns 1 when `category_name` is 'Men''s Clothing' and 0 otherwise to count men's clothing businesses.\n4. Cast the women's total to REAL, then divide it by the men's total to compute the decimal ratio.\n5. Return the single calculated ratio in a column named `TIMES`.", + "steps": [ + "Join `Business_Categories` with `Categories` on `category_id` to access `category_name` for every business.", + "Sum a CASE expression that returns 1 when `category_name` is 'Women''s Clothing' and 0 otherwise to count women's clothing businesses.", + "Sum a second CASE expression that returns 1 when `category_name` is 'Men''s Clothing' and 0 otherwise to count men's clothing businesses.", + "Cast the women's total to REAL, then divide it by the men's total to compute the decimal ratio.", + "Return the single calculated ratio in a column named `TIMES`." + ] + }, + "revisql-train:3977": { + "raw": "1. Identify the three required tables: Attributes to locate the \"music_playlist\" name, Business_Attributes to link attribute IDs to business IDs, and Business to obtain city and active status.\n2. Join Attributes to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id.\n3. Filter Attributes to rows where attribute_name equals 'music_playlist'.\n4. Filter Business to inactive rows where active equals 'false', using the external knowledge that inactive corresponds to 'false'.\n5. Return attribute_id from Attributes, business_id from Business_Attributes, and city from Business.", + "steps": [ + "Identify the three required tables: Attributes to locate the \"music_playlist\" name, Business_Attributes to link attribute IDs to business IDs, and Business to obtain city and active status.", + "Join Attributes to Business_Attributes on attribute_id, then join Business_Attributes to Business on business_id.", + "Filter Attributes to rows where attribute_name equals 'music_playlist'.", + "Filter Business to inactive rows where active equals 'false', using the external knowledge that inactive corresponds to 'false'.", + "Return attribute_id from Attributes, business_id from Business_Attributes, and city from Business." + ] + }, + "revisql-train:3980": { + "raw": "1. Join Elite to Users on user_id, mapping \"elite year\" to Elite.year_id and \"user average star\" to Users.user_average_stars.\n2. Join Users_Compliments to Users on user_id to access the compliment count data for the user.\n3. Join Compliments to Users_Compliments on compliment_id to retrieve the compliment_type descriptions.\n4. Filter for user_id = 6027 and number_of_compliments = 'Uber', using the external knowledge that \"number of compliments reach uber\" maps to that exact column value.\n5. Return the three columns: user_average_stars, year_id, and compliment_type.", + "steps": [ + "Join Elite to Users on user_id, mapping \"elite year\" to Elite.year_id and \"user average star\" to Users.user_average_stars.", + "Join Users_Compliments to Users on user_id to access the compliment count data for the user.", + "Join Compliments to Users_Compliments on compliment_id to retrieve the compliment_type descriptions.", + "Filter for user_id = 6027 and number_of_compliments = 'Uber', using the external knowledge that \"number of compliments reach uber\" maps to that exact column value.", + "Return the three columns: user_average_stars, year_id, and compliment_type." + ] + }, + "revisql-train:3981": { + "raw": "1. Filter the Categories table to find the category_id where category_name equals 'Coffee & Tea'.\n2. Join that result with Business_Categories on category_id to collect all associated business_ids.\n3. Join the Business table on business_id to bring in the state and city for each matched business.\n4. Select business_id, state, and city as the final output columns.", + "steps": [ + "Filter the Categories table to find the category_id where category_name equals 'Coffee & Tea'.", + "Join that result with Business_Categories on category_id to collect all associated business_ids.", + "Join the Business table on business_id to bring in the state and city for each matched business.", + "Select business_id, state, and city as the final output columns." + ] + }, + "revisql-train:3984": { + "raw": "1. Join the Categories table to Business_Categories on category_id to connect category names with business listings.\n2. Use the external knowledge to target the exact category_name values 'Men''s Clothing' and 'Women''s Clothing'.\n3. Apply conditional aggregation with SUM and CASE to count rows belonging to Men's Clothing and to Women's Clothing separately.\n4. Subtract the Women's Clothing count from the Men's Clothing count to compute the arithmetic difference.\n5. Return the result as a single column named diff.", + "steps": [ + "Join the Categories table to Business_Categories on category_id to connect category names with business listings.", + "Use the external knowledge to target the exact category_name values 'Men''s Clothing' and 'Women''s Clothing'.", + "Apply conditional aggregation with SUM and CASE to count rows belonging to Men's Clothing and to Women's Clothing separately.", + "Subtract the Women's Clothing count from the Men's Clothing count to compute the arithmetic difference.", + "Return the result as a single column named diff." + ] + }, + "revisql-train:3990": { + "raw": "1. Use the Business table, which contains both the star ratings and the business identifiers needed for the calculation.\n2. Compute the total number of businesses by counting all business_id values.\n3. Count how many businesses have a stars value of exactly 5 by summing a conditional expression that yields 1 for 5-star rows and 0 otherwise.\n4. Cast the 5-star count to a real number, multiply by 100, and divide by the total business count to compute the percentage.\n5. Return the single resulting percentage value.", + "steps": [ + "Use the Business table, which contains both the star ratings and the business identifiers needed for the calculation.", + "Compute the total number of businesses by counting all business_id values.", + "Count how many businesses have a stars value of exactly 5 by summing a conditional expression that yields 1 for 5-star rows and 0 otherwise.", + "Cast the 5-star count to a real number, multiply by 100, and divide by the total business count to compute the percentage.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:40": { + "raw": "1. Filter the movies table to rows where movie_release_year is between 1960 and 1985, group by director_id, and keep only directors having at least 10 movies in that window.\n2. Join those qualifying directors back to movies on director_id, again restricting to release years 1960–1985, to collect every eligible movie’s movie_id, director_id, and movie_title.\n3. Left join the ratings table to those movies on movie_id, then aggregate by movie_id to compute the total number of rows where rating_score equals 5 for each movie.\n4. Group those per-movie 5-star counts by director_id to find the maximum count of 5-star ratings among each director’s eligible movies.\n5. Join the per-movie counts to the per-director maxima on director_id and where the movie’s 5-star count equals that director’s maximum, then return movie_title and that maximum count of 5 rating scores.", + "steps": [ + "Filter the movies table to rows where movie_release_year is between 1960 and 1985, group by director_id, and keep only directors having at least 10 movies in that window.", + "Join those qualifying directors back to movies on director_id, again restricting to release years 1960–1985, to collect every eligible movie’s movie_id, director_id, and movie_title.", + "Left join the ratings table to those movies on movie_id, then aggregate by movie_id to compute the total number of rows where rating_score equals 5 for each movie.", + "Group those per-movie 5-star counts by director_id to find the maximum count of 5-star ratings among each director’s eligible movies.", + "Join the per-movie counts to the per-director maxima on director_id and where the movie’s 5-star count equals that director’s maximum, then return movie_title and that maximum count of 5 rating scores." + ] + }, + "revisql-train:4011": { + "raw": "1. Use only the Reviews table; no joins are required because review_stars and review_length both exist in this table.\n2. Apply the external knowledge mapping: filter to rows where review_stars = 5 to capture all 5-star reviews, and identify long reviews by review_length = 'Long'.\n3. Count the long reviews in the filtered set using a conditional aggregation that tallies rows where review_length equals 'Long'.\n4. Count the total number of rows in the filtered 5-star set to establish the denominator.\n5. Calculate the percentage by dividing the long-review count by the total count, casting the numerator to REAL, and multiplying by 100.\n6. Return a single computed column containing the final percentage.", + "steps": [ + "Use only the Reviews table; no joins are required because review_stars and review_length both exist in this table.", + "Apply the external knowledge mapping: filter to rows where review_stars = 5 to capture all 5-star reviews, and identify long reviews by review_length = 'Long'.", + "Count the long reviews in the filtered set using a conditional aggregation that tallies rows where review_length equals 'Long'.", + "Count the total number of rows in the filtered 5-star set to establish the denominator.", + "Calculate the percentage by dividing the long-review count by the total count, casting the numerator to REAL, and multiplying by 100.", + "Return a single computed column containing the final percentage." + ] + }, + "revisql-train:4015": { + "raw": "1. Start from the Business table and join Business_Hours on business_id to retrieve opening_time and closing_time.\n2. Join Days on day_id to retrieve day_of_week.\n3. Filter Business.city to 'Black Canyon City'.\n4. Filter Business.review_count to the values 'High' and 'Uber', applying the external knowledge that \"greater than average\" maps to those two values.\n5. Return the columns business_id, opening_time, closing_time, and day_of_week.", + "steps": [ + "Start from the Business table and join Business_Hours on business_id to retrieve opening_time and closing_time.", + "Join Days on day_id to retrieve day_of_week.", + "Filter Business.city to 'Black Canyon City'.", + "Filter Business.review_count to the values 'High' and 'Uber', applying the external knowledge that \"greater than average\" maps to those two values.", + "Return the columns business_id, opening_time, closing_time, and day_of_week." + ] + }, + "revisql-train:402": { + "raw": "1. Join callcenterlogs and events on the Complaint ID column to combine server information with product and complaint date data.\n2. Use the external knowledge mapping March 2017 to filter the events table's Date received column for dates beginning with 2017-03.\n3. Filter the callcenterlogs table to include only rows where the server is TOVA.\n4. Select the Product column from the events table.\n5. Apply DISTINCT to the Product results to ensure each product is listed only once.", + "steps": [ + "Join callcenterlogs and events on the Complaint ID column to combine server information with product and complaint date data.", + "Use the external knowledge mapping March 2017 to filter the events table's Date received column for dates beginning with 2017-03.", + "Filter the callcenterlogs table to include only rows where the server is TOVA.", + "Select the Product column from the events table.", + "Apply DISTINCT to the Product results to ensure each product is listed only once." + ] + }, + "revisql-train:4022": { + "raw": "1. Identify that you need the Users table to check fan status and the Users_Compliments table to check compliments received, then join them on user_id.\n2. Filter the Users table by user_fans = 'Medium', applying the external knowledge that \"is medium\" maps to this column and value.\n3. Filter the Users_Compliments table by number_of_compliments = 'High', applying the external knowledge that \"high compliments\" maps to this column and value.\n4. Count distinct user_id to return the number of unique users who satisfy both conditions.", + "steps": [ + "Identify that you need the Users table to check fan status and the Users_Compliments table to check compliments received, then join them on user_id.", + "Filter the Users table by user_fans = 'Medium', applying the external knowledge that \"is medium\" maps to this column and value.", + "Filter the Users_Compliments table by number_of_compliments = 'High', applying the external knowledge that \"high compliments\" maps to this column and value.", + "Count distinct user_id to return the number of unique users who satisfy both conditions." + ] + }, + "revisql-train:4033": { + "raw": "1. Join the Users and Users_Compliments tables on user_id to associate each user with their compliment records.\n2. Filter Users_Compliments to only rows where number_of_compliments equals 'High', applying the external knowledge that \"high compliments\" maps to that specific value.\n3. Compute the minimum user_yelping_since_year across that same filtered high-compliments group to find the earliest join year, mapping \"joined Yelp earliest\" to the MIN of that column.\n4. Further filter the high-compliments users to keep only those whose user_yelping_since_year equals that computed minimum earliest year.\n5. Return distinct user_id values for the users who satisfy both conditions.", + "steps": [ + "Join the Users and Users_Compliments tables on user_id to associate each user with their compliment records.", + "Filter Users_Compliments to only rows where number_of_compliments equals 'High', applying the external knowledge that \"high compliments\" maps to that specific value.", + "Compute the minimum user_yelping_since_year across that same filtered high-compliments group to find the earliest join year, mapping \"joined Yelp earliest\" to the MIN of that column.", + "Further filter the high-compliments users to keep only those whose user_yelping_since_year equals that computed minimum earliest year.", + "Return distinct user_id values for the users who satisfy both conditions." + ] + }, + "revisql-train:4038": { + "raw": "1. Start from the Business_Hours table containing business_id, opening_time, and closing_time.\n2. Convert opening_time and closing_time from 12-hour AM/PM text into 24-hour integer values, keeping 12 PM as 12 and adding 12 to other PM hours.\n3. Compute daily operating hours per record: subtract opening from closing when closing is later; otherwise add 24 to closing before subtracting, which also correctly yields 24 hours when opening equals closing.\n4. Group by business_id and sum those daily hours to get total_open_hours for each business.\n5. Determine the minimum total_open_hours across all businesses.\n6. Return the business_id(s) whose total_open_hours equals that minimum.", + "steps": [ + "Start from the Business_Hours table containing business_id, opening_time, and closing_time.", + "Convert opening_time and closing_time from 12-hour AM/PM text into 24-hour integer values, keeping 12 PM as 12 and adding 12 to other PM hours.", + "Compute daily operating hours per record: subtract opening from closing when closing is later; otherwise add 24 to closing before subtracting, which also correctly yields 24 hours when opening equals closing.", + "Group by business_id and sum those daily hours to get total_open_hours for each business.", + "Determine the minimum total_open_hours across all businesses.", + "Return the business_id(s) whose total_open_hours equals that minimum." + ] + }, + "revisql-train:4039": { + "raw": "1. Query the Business_Hours table for operating time data.\n2. Filter to rows where day_id is between 1 and 7 and opening_time equals closing_time, per the external knowledge mapping of \"opened all the time\".\n3. Group the filtered records by business_id to aggregate days per business.\n4. Keep only groups having exactly 7 distinct day_id values, confirming the condition holds for every day of the week.\n5. Return only the business_id column.", + "steps": [ + "Query the Business_Hours table for operating time data.", + "Filter to rows where day_id is between 1 and 7 and opening_time equals closing_time, per the external knowledge mapping of \"opened all the time\".", + "Group the filtered records by business_id to aggregate days per business.", + "Keep only groups having exactly 7 distinct day_id values, confirming the condition holds for every day of the week.", + "Return only the business_id column." + ] + }, + "revisql-train:4041": { + "raw": "1. Target the Users table for the final count and the Reviews table to find qualifying user_ids.\n2. Form a subquery against Reviews that selects distinct user_ids constrained by review_votes_funny = 'Uber', review_votes_useful = 'Uber', and review_votes_cool = 'Uber' together.\n3. Apply the external knowledge that \"uber votes for all of the review category\" maps to all three vote columns simultaneously holding the value 'Uber'.\n4. Filter Users by restricting user_id to the set returned by the Reviews subquery.\n5. Count the matching rows in Users and project the result as a single column named avg_user_average_stars.", + "steps": [ + "Target the Users table for the final count and the Reviews table to find qualifying user_ids.", + "Form a subquery against Reviews that selects distinct user_ids constrained by review_votes_funny = 'Uber', review_votes_useful = 'Uber', and review_votes_cool = 'Uber' together.", + "Apply the external knowledge that \"uber votes for all of the review category\" maps to all three vote columns simultaneously holding the value 'Uber'.", + "Filter Users by restricting user_id to the set returned by the Reviews subquery.", + "Count the matching rows in Users and project the result as a single column named avg_user_average_stars." + ] + }, + "revisql-train:4042": { + "raw": "1. In Business_Hours, group by business_id and keep only those with exactly 7 rows where every row has opening_time equal to closing_time, capturing businesses that are open all the time.\n2. Join the resulting always-open business_ids to the Business table on business_id.\n3. Use conditional aggregation to count businesses with stars between 3.5 and 5 as the good numerator, and stars between 1 and 2.5 as the bad denominator.\n4. Cast the good count to REAL, then divide it by the bad count while guarding against division by zero.\n5. Return the final single value under the column name ratio.", + "steps": [ + "In Business_Hours, group by business_id and keep only those with exactly 7 rows where every row has opening_time equal to closing_time, capturing businesses that are open all the time.", + "Join the resulting always-open business_ids to the Business table on business_id.", + "Use conditional aggregation to count businesses with stars between 3.5 and 5 as the good numerator, and stars between 1 and 2.5 as the bad denominator.", + "Cast the good count to REAL, then divide it by the bad count while guarding against division by zero.", + "Return the final single value under the column name ratio." + ] + }, + "revisql-train:4047": { + "raw": "1. Isolate `user_id` and `user_yelping_since_year` from the `Users` table, keeping only rows where `user_fans` is exactly 'Uber'.\n2. In the `Elite` table, group records by `user_id` and take the minimum `year_id` per user to identify the first elite year.\n3. Join the Uber user set to the first-elite set on matching `user_id`.\n4. For every joined row, calculate the difference between the first elite year and `user_yelping_since_year`.\n5. Average all of those differences and return the single resulting value as the average years to elite.", + "steps": [ + "Isolate `user_id` and `user_yelping_since_year` from the `Users` table, keeping only rows where `user_fans` is exactly 'Uber'.", + "In the `Elite` table, group records by `user_id` and take the minimum `year_id` per user to identify the first elite year.", + "Join the Uber user set to the first-elite set on matching `user_id`.", + "For every joined row, calculate the difference between the first elite year and `user_yelping_since_year`.", + "Average all of those differences and return the single resulting value as the average years to elite." + ] + }, + "revisql-train:406": { + "raw": "1. Join the `client` table to the `events` table on `client_id` = `Client_ID` to connect each client's age with their complaint details.\n2. Compute the average age of all clients and derive the threshold as 60% of that average, per the external knowledge.\n3. Filter the joined rows to keep only those where the client's age is strictly greater than that threshold.\n4. Because `age` is an integer column, express the comparison without floating-point decimals by multiplying the client's age by 100 and the average age by 60.\n5. Return distinct values of the `Product` and `Issue` columns from the `events` side of the join.", + "steps": [ + "Join the `client` table to the `events` table on `client_id` = `Client_ID` to connect each client's age with their complaint details.", + "Compute the average age of all clients and derive the threshold as 60% of that average, per the external knowledge.", + "Filter the joined rows to keep only those where the client's age is strictly greater than that threshold.", + "Because `age` is an integer column, express the comparison without floating-point decimals by multiplying the client's age by 100 and the average age by 60.", + "Return distinct values of the `Product` and `Issue` columns from the `events` side of the join." + ] + }, + "revisql-train:4071": { + "raw": "1. Use only the Business table, which stores city, active status, and review_count.\n2. Filter to rows where city is 'Cave Creek' and active is 'true' to isolate running businesses in that city.\n3. For each review_count category ('High', 'Medium', 'Low'), apply conditional aggregation to count how many running businesses belong to that category.\n4. Return the three counts as columns named high, Medium, and low.", + "steps": [ + "Use only the Business table, which stores city, active status, and review_count.", + "Filter to rows where city is 'Cave Creek' and active is 'true' to isolate running businesses in that city.", + "For each review_count category ('High', 'Medium', 'Low'), apply conditional aggregation to count how many running businesses belong to that category.", + "Return the three counts as columns named high, Medium, and low." + ] + }, + "revisql-train:4072": { + "raw": "1. Query the Users table and filter rows where user_yelping_since_year is between 2005 and 2014 inclusive.\n2. Group the filtered results by user_yelping_since_year and count the number of users in each year to produce yearly totals.\n3. Compute the average of those yearly user counts in an outer aggregation to get a single yearly average value.\n4. Return the final result in a column named average_new_users_per_year.", + "steps": [ + "Query the Users table and filter rows where user_yelping_since_year is between 2005 and 2014 inclusive.", + "Group the filtered results by user_yelping_since_year and count the number of users in each year to produce yearly totals.", + "Compute the average of those yearly user counts in an outer aggregation to get a single yearly average value.", + "Return the final result in a column named average_new_users_per_year." + ] + }, + "revisql-train:4075": { + "raw": "1. Target the Categories table as the sole source for category identifiers and names.\n2. Filter rows by applying the external knowledge that a category starting with \"P\" maps to category_name LIKE 'P%'.\n3. Return exactly the columns category_id and category_name in the result set.\n4. No table joins, aggregations, or ordering are needed.", + "steps": [ + "Target the Categories table as the sole source for category identifiers and names.", + "Filter rows by applying the external knowledge that a category starting with \"P\" maps to category_name LIKE 'P%'.", + "Return exactly the columns category_id and category_name in the result set.", + "No table joins, aggregations, or ordering are needed." + ] + }, + "revisql-train:408": { + "raw": "1. Filter the movie table to the record where title equals 'Four Rooms' using the external knowledge mapping for the movie name.\n2. Join movie_company on movie_id to link the selected movie to its associated production company records.\n3. Join production_company on company_id to access the corresponding company_name values.\n4. Return only the company_name column from the production_company table.", + "steps": [ + "Filter the movie table to the record where title equals 'Four Rooms' using the external knowledge mapping for the movie name.", + "Join movie_company on movie_id to link the selected movie to its associated production company records.", + "Join production_company on company_id to access the corresponding company_name values.", + "Return only the company_name column from the production_company table." + ] + }, + "revisql-train:4081": { + "raw": "1. Start from the Tips table, which links each business_id to the likes its tips received; the external knowledge indicates \"most likes\" means the maximum of the summed likes per business.\n2. Group all rows by business_id and compute the total likes per business using SUM(likes).\n3. Determine the highest total likes by calculating the same per-business sums, ordering them from highest to lowest, and isolating the top value.\n4. Filter the grouped results with a HAVING clause so that only businesses whose total likes equal that maximum are kept.\n5. Return the business_id column for the qualifying businesses.", + "steps": [ + "Start from the Tips table, which links each business_id to the likes its tips received; the external knowledge indicates \"most likes\" means the maximum of the summed likes per business.", + "Group all rows by business_id and compute the total likes per business using SUM(likes).", + "Determine the highest total likes by calculating the same per-business sums, ordering them from highest to lowest, and isolating the top value.", + "Filter the grouped results with a HAVING clause so that only businesses whose total likes equal that maximum are kept.", + "Return the business_id column for the qualifying businesses." + ] + }, + "revisql-train:4084": { + "raw": "1. Filter the Business table to rows where city equals 'Black Canyon City'.\n2. Apply the external knowledge that \"running\" maps to active = 'true' to keep only currently operating businesses.\n3. Join Business_Hours on business_id to retrieve the schedule records for each qualifying business.\n4. Join Days on day_id to translate the numeric day identifiers into the textual day-of-week names required for \"opening day of a week\".\n5. Return the columns business_id from Business_Hours and day_of_week from Days.", + "steps": [ + "Filter the Business table to rows where city equals 'Black Canyon City'.", + "Apply the external knowledge that \"running\" maps to active = 'true' to keep only currently operating businesses.", + "Join Business_Hours on business_id to retrieve the schedule records for each qualifying business.", + "Join Days on day_id to translate the numeric day identifiers into the textual day-of-week names required for \"opening day of a week\".", + "Return the columns business_id from Business_Hours and day_of_week from Days." + ] + }, + "revisql-train:4087": { + "raw": "1. Query the Business table, which stores city names and active status for each business.\n2. Filter rows to only running businesses by matching active to 'true', applying the external knowledge definition.\n3. Within a single aggregation, count businesses separately for 'Glendale' and 'Mesa' using conditional logic based on the city column.\n4. Subtract the total count for Mesa from the total count for Glendale to obtain the difference.\n5. Return the final result as a single column named diff.", + "steps": [ + "Query the Business table, which stores city names and active status for each business.", + "Filter rows to only running businesses by matching active to 'true', applying the external knowledge definition.", + "Within a single aggregation, count businesses separately for 'Glendale' and 'Mesa' using conditional logic based on the city column.", + "Subtract the total count for Mesa from the total count for Glendale to obtain the difference.", + "Return the final result as a single column named diff." + ] + }, + "revisql-train:4093": { + "raw": "1. Start from the Business table and filter to rows where the state is SC.\n2. Cross join the filtered businesses with the Days table to create every possible business and day of week pairing.\n3. Left join Business_Hours on matching business_id and day_id to see which days have operating hours recorded.\n4. Apply the external knowledge that a closing day is a day whose day_id does not exist in Business_Hours, so keep only rows where the joined day_id from Business_Hours is NULL.\n5. Return the business_id and day_of_week columns.", + "steps": [ + "Start from the Business table and filter to rows where the state is SC.", + "Cross join the filtered businesses with the Days table to create every possible business and day of week pairing.", + "Left join Business_Hours on matching business_id and day_id to see which days have operating hours recorded.", + "Apply the external knowledge that a closing day is a day whose day_id does not exist in Business_Hours, so keep only rows where the joined day_id from Business_Hours is NULL.", + "Return the business_id and day_of_week columns." + ] + }, + "revisql-train:4095": { + "raw": "1. Identify that you need the Business_Attributes table to find the target attribute and the Business table to get location states.\n2. Inner join Business_Attributes to Business on the business_id column to link each attribute record to its business.\n3. Filter the joined rows where Business_Attributes.attribute_value equals 'beer_and_wine', applying the external knowledge mapping.\n4. Apply DISTINCT to the state values from the Business table to eliminate duplicate states.\n5. Return exactly one column: state.", + "steps": [ + "Identify that you need the Business_Attributes table to find the target attribute and the Business table to get location states.", + "Inner join Business_Attributes to Business on the business_id column to link each attribute record to its business.", + "Filter the joined rows where Business_Attributes.attribute_value equals 'beer_and_wine', applying the external knowledge mapping.", + "Apply DISTINCT to the state values from the Business table to eliminate duplicate states.", + "Return exactly one column: state." + ] + }, + "revisql-train:410": { + "raw": "1. Identify the three tables needed: production_company to locate the company, movie_company as the bridge table linking companies to movies, and movie to retrieve the final titles.\n2. Apply the external knowledge by filtering production_company to only rows where company_name equals 'Universal Pictures'.\n3. Join movie_company to the filtered production_company result on company_id to collect all movie_ids tied to that production company.\n4. Join the movie table on movie_id to connect those records to the actual movie details.\n5. Return only the title column from the movie table as the final answer.", + "steps": [ + "Identify the three tables needed: production_company to locate the company, movie_company as the bridge table linking companies to movies, and movie to retrieve the final titles.", + "Apply the external knowledge by filtering production_company to only rows where company_name equals 'Universal Pictures'.", + "Join movie_company to the filtered production_company result on company_id to collect all movie_ids tied to that production company.", + "Join the movie table on movie_id to connect those records to the actual movie details.", + "Return only the title column from the movie table as the final answer." + ] + }, + "revisql-train:4101": { + "raw": "1. Use the Business table, which stores the overall star rating for each business.\n2. Map the external knowledge to the stars column: a bad experience corresponds to stars = 2 and a terrible experience corresponds to stars = 1.\n3. Filter the Business table to only rows where stars is 1 or 2.\n4. Aggregate by counting the business_id values to obtain the total number of matching businesses.\n5. Return the single resulting count column.", + "steps": [ + "Use the Business table, which stores the overall star rating for each business.", + "Map the external knowledge to the stars column: a bad experience corresponds to stars = 2 and a terrible experience corresponds to stars = 1.", + "Filter the Business table to only rows where stars is 1 or 2.", + "Aggregate by counting the business_id values to obtain the total number of matching businesses.", + "Return the single resulting count column." + ] + }, + "revisql-train:4112": { + "raw": "1. Join Reviews to Business on business_id to link each review record to its corresponding business location and status.\n2. Filter Reviews to only rows where review_length equals 'Long', applying the external knowledge that \"long review\" maps to that column value.\n3. Filter Business to only rows where city equals 'Phoenix' and active equals 'true', applying the external knowledge that \"open businesses\" maps to active = 'true'.\n4. Aggregate by counting distinct Business.business_id so each qualifying Phoenix business is counted once regardless of how many users left long reviews.\n5. Return exactly one column: the count of distinct business_id values.", + "steps": [ + "Join Reviews to Business on business_id to link each review record to its corresponding business location and status.", + "Filter Reviews to only rows where review_length equals 'Long', applying the external knowledge that \"long review\" maps to that column value.", + "Filter Business to only rows where city equals 'Phoenix' and active equals 'true', applying the external knowledge that \"open businesses\" maps to active = 'true'.", + "Aggregate by counting distinct Business.business_id so each qualifying Phoenix business is counted once regardless of how many users left long reviews.", + "Return exactly one column: the count of distinct business_id values." + ] + }, + "revisql-train:412": { + "raw": "1. Filter the movie table to the record where the title is \"Pirates of the Caribbean: At World's End\".\n2. Join movie_crew to that movie on movie_id to access the film's crew members.\n3. Apply the external knowledge that \"director of photography\" maps to the job column in movie_crew, filtering to rows where job equals 'Director of Photography'.\n4. Join the person table on person_id from movie_crew to retrieve the crew member's name.\n5. Return only the person_name column.", + "steps": [ + "Filter the movie table to the record where the title is \"Pirates of the Caribbean: At World's End\".", + "Join movie_crew to that movie on movie_id to access the film's crew members.", + "Apply the external knowledge that \"director of photography\" maps to the job column in movie_crew, filtering to rows where job equals 'Director of Photography'.", + "Join the person table on person_id from movie_crew to retrieve the crew member's name.", + "Return only the person_name column." + ] + }, + "revisql-train:4121": { + "raw": "1. Use the Business table exclusively; it contains all needed fields, so no joins are necessary.\n2. Filter the active column to 'true', because external knowledge defines active businesses as active = 'true'.\n3. Filter the state column to 'AZ', since AZ is a state value stored in that column.\n4. Filter the review_count column to 'Medium', because external knowledge maps medium review count to review_count = 'Medium'.\n5. Compute the final answer by counting the business_id column to obtain the total number.", + "steps": [ + "Use the Business table exclusively; it contains all needed fields, so no joins are necessary.", + "Filter the active column to 'true', because external knowledge defines active businesses as active = 'true'.", + "Filter the state column to 'AZ', since AZ is a state value stored in that column.", + "Filter the review_count column to 'Medium', because external knowledge maps medium review count to review_count = 'Medium'.", + "Compute the final answer by counting the business_id column to obtain the total number." + ] + }, + "revisql-train:4130": { + "raw": "1. Join the Business table to Business_Attributes on business_id, then join Business_Attributes to Attributes on attribute_id to link each business with its attribute names and values.\n2. Filter Business rows to active = 'true' and review_count = 'High' using the external knowledge mappings for active businesses and high review count.\n3. Filter Attributes to attribute_name = 'BYOB' and Business_Attributes to attribute_value = 'true' to ensure the business actually possesses the BYOB attribute.\n4. Count distinct Business.business_id to avoid duplicate counts caused by the joins.\n5. Return that count as the final result.", + "steps": [ + "Join the Business table to Business_Attributes on business_id, then join Business_Attributes to Attributes on attribute_id to link each business with its attribute names and values.", + "Filter Business rows to active = 'true' and review_count = 'High' using the external knowledge mappings for active businesses and high review count.", + "Filter Attributes to attribute_name = 'BYOB' and Business_Attributes to attribute_value = 'true' to ensure the business actually possesses the BYOB attribute.", + "Count distinct Business.business_id to avoid duplicate counts caused by the joins.", + "Return that count as the final result." + ] + }, + "revisql-train:4132": { + "raw": "1. Start from the Business table and filter rows where active equals 'true', city equals 'Goodyear', state equals 'AZ', and review_count equals 'Medium'.\n2. Join Business_Categories on business_id, then join Categories on category_id to retrieve category_name for each qualifying business.\n3. Join Business_Attributes on business_id, then join Attributes on attribute_id to retrieve attribute_name for each qualifying business.\n4. Return category_name and attribute_name as the final output columns.", + "steps": [ + "Start from the Business table and filter rows where active equals 'true', city equals 'Goodyear', state equals 'AZ', and review_count equals 'Medium'.", + "Join Business_Categories on business_id, then join Categories on category_id to retrieve category_name for each qualifying business.", + "Join Business_Attributes on business_id, then join Attributes on attribute_id to retrieve attribute_name for each qualifying business.", + "Return category_name and attribute_name as the final output columns." + ] + }, + "revisql-train:414": { + "raw": "1. Filter the movie table by the title column to isolate 'Pirates of the Caribbean: At World's End', applying the external knowledge mapping for the quoted title and escaping the embedded apostrophe.\n2. Join the filtered movie table to movie_crew on movie_id to retrieve all crew records linked to that specific film.\n3. Join movie_crew to the person table on person_id to resolve each crew record into an actual name.\n4. Return only the person_name column from the person table, since external knowledge indicates that names map to person_name.", + "steps": [ + "Filter the movie table by the title column to isolate 'Pirates of the Caribbean: At World's End', applying the external knowledge mapping for the quoted title and escaping the embedded apostrophe.", + "Join the filtered movie table to movie_crew on movie_id to retrieve all crew records linked to that specific film.", + "Join movie_crew to the person table on person_id to resolve each crew record into an actual name.", + "Return only the person_name column from the person table, since external knowledge indicates that names map to person_name." + ] + }, + "revisql-train:4144": { + "raw": "1. Join the paper and content tables on paper_id to link each paper’s class_label with its associated word_cited_id entries.\n2. Count word_cited_id values only for rows where class_label equals Agents, using a conditional expression that returns NULL for all other class labels to satisfy the numerator condition from the external knowledge.\n3. Count every word_cited_id in the joined result to obtain the total denominator.\n4. Cast the conditional count to a real number, multiply by 100, and divide by the total count to compute the percentage.\n5. Return the final result as a single calculated percentage value.", + "steps": [ + "Join the paper and content tables on paper_id to link each paper’s class_label with its associated word_cited_id entries.", + "Count word_cited_id values only for rows where class_label equals Agents, using a conditional expression that returns NULL for all other class labels to satisfy the numerator condition from the external knowledge.", + "Count every word_cited_id in the joined result to obtain the total denominator.", + "Cast the conditional count to a real number, multiply by 100, and divide by the total count to compute the percentage.", + "Return the final result as a single calculated percentage value." + ] + }, + "revisql-train:4148": { + "raw": "1. Join the `paper` and `content` tables on their shared `paper_id` column to link each paper’s metadata with its cited words.\n2. Filter the joined rows to keep only those where `paper_id` is exactly 'chakrabarti01integrating'.\n3. Group the remaining rows by the `class_label` from the `paper` table.\n4. Count the `word_cited_id` values from the `content` table within each group to get the number of cited words.\n5. Return the `class_label` and the resulting count.", + "steps": [ + "Join the `paper` and `content` tables on their shared `paper_id` column to link each paper’s metadata with its cited words.", + "Filter the joined rows to keep only those where `paper_id` is exactly 'chakrabarti01integrating'.", + "Group the remaining rows by the `class_label` from the `paper` table.", + "Count the `word_cited_id` values from the `content` table within each group to get the number of cited words.", + "Return the `class_label` and the resulting count." + ] + }, + "revisql-train:4149": { + "raw": "1. Join the `paper` and `content` tables on `paper_id` to associate each paper with its cited vocabulary entries.\n2. Map the external knowledge so that \"class type\" refers to `class_label` from `paper` and \"cited words\" refers to `word_cited_id` from `content`.\n3. Group the joined results by `paper_id` and `class_label` to aggregate cited words per individual paper.\n4. Apply a HAVING filter requiring the count of `word_cited_id` to be greater than 20.\n5. Return the columns `paper_id` and `class_label` for the qualifying papers.", + "steps": [ + "Join the `paper` and `content` tables on `paper_id` to associate each paper with its cited vocabulary entries.", + "Map the external knowledge so that \"class type\" refers to `class_label` from `paper` and \"cited words\" refers to `word_cited_id` from `content`.", + "Group the joined results by `paper_id` and `class_label` to aggregate cited words per individual paper.", + "Apply a HAVING filter requiring the count of `word_cited_id` to be greater than 20.", + "Return the columns `paper_id` and `class_label` for the qualifying papers." + ] + }, + "revisql-train:4151": { + "raw": "1. Left join the `paper` table to the `cites` table on `paper.paper_id` = `cites.cited_paper_id` so every paper is included, even those with no incoming citations.\n2. Group by `paper.paper_id` and count the matching `cited_paper_id` values to obtain the citation count for each paper.\n3. Compute the overall maximum and minimum of those citation counts.\n4. Filter the grouped results to keep only papers whose citation count equals either that maximum or that minimum value.\n5. Return the `paper_id` and the corresponding citation count for the selected extreme papers.", + "steps": [ + "Left join the `paper` table to the `cites` table on `paper.paper_id` = `cites.cited_paper_id` so every paper is included, even those with no incoming citations.", + "Group by `paper.paper_id` and count the matching `cited_paper_id` values to obtain the citation count for each paper.", + "Compute the overall maximum and minimum of those citation counts.", + "Filter the grouped results to keep only papers whose citation count equals either that maximum or that minimum value.", + "Return the `paper_id` and the corresponding citation count for the selected extreme papers." + ] + }, + "revisql-train:4152": { + "raw": "1. Query the `paper` table alone; no joins are required.\n2. Map the question’s “ML class” to `class_label = 'ML'` using the external knowledge that class refers to `class_label`.\n3. For the numerator, count `paper_id` only for rows where `class_label` is `'ML'` using a conditional expression.\n4. For the denominator, count all `paper_id` rows to obtain the total number of papers.\n5. Cast the numerator to a real type before dividing by the total and multiplying by `100` to compute the percentage as a decimal value.\n6. Return a single column containing the resulting percentage.", + "steps": [ + "Query the `paper` table alone; no joins are required.", + "Map the question’s “ML class” to `class_label = 'ML'` using the external knowledge that class refers to `class_label`.", + "For the numerator, count `paper_id` only for rows where `class_label` is `'ML'` using a conditional expression.", + "For the denominator, count all `paper_id` rows to obtain the total number of papers.", + "Cast the numerator to a real type before dividing by the total and multiplying by `100` to compute the percentage as a decimal value.", + "Return a single column containing the resulting percentage." + ] + }, + "revisql-train:4154": { + "raw": "1. Identify papers cited by `artale00expressivity` using the `cites` table, filtering `citing_paper_id` to that value; the papers of interest are in `cited_paper_id`.\n2. Join the `content` table on `cites.cited_paper_id = content.paper_id` to access vocabulary presence data for those cited papers.\n3. Filter the joined results to only rows where `content.word_cited_id` equals `word3555`.\n4. Count distinct `content.paper_id` values to obtain the number of unique cited papers containing that word.\n5. Return that count as the final answer.", + "steps": [ + "Identify papers cited by `artale00expressivity` using the `cites` table, filtering `citing_paper_id` to that value; the papers of interest are in `cited_paper_id`.", + "Join the `content` table on `cites.cited_paper_id = content.paper_id` to access vocabulary presence data for those cited papers.", + "Filter the joined results to only rows where `content.word_cited_id` equals `word3555`.", + "Count distinct `content.paper_id` values to obtain the number of unique cited papers containing that word.", + "Return that count as the final answer." + ] + }, + "revisql-train:4155": { + "raw": "1. Retrieve the `class_label` column from the `paper` table to answer the classification question.\n2. Join `paper` to `content` on the shared `paper_id` key to connect each paper to its vocabulary words.\n3. Filter the `content` table for rows where `word_cited_id` equals `'word1163'` to isolate only papers containing that specific word.\n4. Apply `DISTINCT` to `class_label` so the result returns each unique classification once without duplicates.", + "steps": [ + "Retrieve the `class_label` column from the `paper` table to answer the classification question.", + "Join `paper` to `content` on the shared `paper_id` key to connect each paper to its vocabulary words.", + "Filter the `content` table for rows where `word_cited_id` equals `'word1163'` to isolate only papers containing that specific word.", + "Apply `DISTINCT` to `class_label` so the result returns each unique classification once without duplicates." + ] + }, + "revisql-train:416": { + "raw": "1. Filter the movie table to the record whose title matches \"Pirates of the Caribbean: At World's End\", using a LIKE pattern to handle the apostrophe in \"World's\".\n2. Join movie_crew to that movie on movie_id to retrieve all crew entries linked to the film.\n3. Restrict those crew rows to only ones where job equals 'Producer', since the question's \"producers\" maps to that specific job value.\n4. Join person to the filtered crew results on person_id to reach the names of the matching crew members.\n5. Return the person_name column from the person table as the final answer.", + "steps": [ + "Filter the movie table to the record whose title matches \"Pirates of the Caribbean: At World's End\", using a LIKE pattern to handle the apostrophe in \"World's\".", + "Join movie_crew to that movie on movie_id to retrieve all crew entries linked to the film.", + "Restrict those crew rows to only ones where job equals 'Producer', since the question's \"producers\" maps to that specific job value.", + "Join person to the filtered crew results on person_id to reach the names of the matching crew members.", + "Return the person_name column from the person table as the final answer." + ] + }, + "revisql-train:4170": { + "raw": "1. Use the Episode table for episode titles and the Vote table for star scores and vote counts.\n2. Join Episode and Vote on episode_id to link each episode to its voting records.\n3. Filter for rows where stars equals 10, applying the external knowledge that \"10 in star score\" maps to stars = 10.\n4. Filter for rows where votes is greater than 200, applying the external knowledge that \"over 200 voters\" maps to votes > 200.\n5. Return the title column from the Episode table for the matching rows.", + "steps": [ + "Use the Episode table for episode titles and the Vote table for star scores and vote counts.", + "Join Episode and Vote on episode_id to link each episode to its voting records.", + "Filter for rows where stars equals 10, applying the external knowledge that \"10 in star score\" maps to stars = 10.", + "Filter for rows where votes is greater than 200, applying the external knowledge that \"over 200 voters\" maps to votes > 200.", + "Return the title column from the Episode table for the matching rows." + ] + }, + "revisql-train:4176": { + "raw": "1. Identify that Episode stores the title, episode number, and series number, while Credit stores the person and their role; join these two tables on episode_id.\n2. Filter Credit to rows where person is 'Matt Groening', applying the external knowledge that this string refers to a person name.\n3. Filter Episode to rows where title is 'In the Name of the Grandfather', applying the external knowledge that this string is an episode title.\n4. Map the external knowledge that episode number corresponds to the episode column and series number corresponds to the number_in_series column in Episode.\n5. Return the role from Credit, the episode number from Episode.episode, and the series number from Episode.number_in_series.", + "steps": [ + "Identify that Episode stores the title, episode number, and series number, while Credit stores the person and their role; join these two tables on episode_id.", + "Filter Credit to rows where person is 'Matt Groening', applying the external knowledge that this string refers to a person name.", + "Filter Episode to rows where title is 'In the Name of the Grandfather', applying the external knowledge that this string is an episode title.", + "Map the external knowledge that episode number corresponds to the episode column and series number corresponds to the number_in_series column in Episode.", + "Return the role from Credit, the episode number from Episode.episode, and the series number from Episode.number_in_series." + ] + }, + "revisql-train:4178": { + "raw": "1. Find the episode_id in the Episode table by filtering the title to 'Wedding for Disaster'.\n2. Use that episode_id to filter the Vote table to only the rows belonging to that episode.\n3. Compute the weighted total by summing the product of the stars and votes columns, as defined by the external knowledge formula.\n4. Compute the total vote count by summing the votes column for the filtered rows.\n5. Divide the weighted total by the total votes, cast the result to a real number, and return it as the single column average_stars.", + "steps": [ + "Find the episode_id in the Episode table by filtering the title to 'Wedding for Disaster'.", + "Use that episode_id to filter the Vote table to only the rows belonging to that episode.", + "Compute the weighted total by summing the product of the stars and votes columns, as defined by the external knowledge formula.", + "Compute the total vote count by summing the votes column for the filtered rows.", + "Divide the weighted total by the total votes, cast the result to a real number, and return it as the single column average_stars." + ] + }, + "revisql-train:4190": { + "raw": "1. Inner join Award to Episode on the episode_id column to connect each award record with its corresponding episode.\n2. Apply the external knowledge that \"won\" maps to Award.result = 'Winner'.\n3. Apply the external knowledge that \"in 2017\" maps to Award.year = 2017.\n4. Filter Award.award to the exact value 'Best International TV Series'.\n5. Return only Episode.title in the final result.", + "steps": [ + "Inner join Award to Episode on the episode_id column to connect each award record with its corresponding episode.", + "Apply the external knowledge that \"won\" maps to Award.result = 'Winner'.", + "Apply the external knowledge that \"in 2017\" maps to Award.year = 2017.", + "Filter Award.award to the exact value 'Best International TV Series'.", + "Return only Episode.title in the final result." + ] + }, + "revisql-train:4193": { + "raw": "1. Join the Episode and Vote tables on episode_id to connect episode titles with their star-score vote records.\n2. Filter the Vote table to rows where stars equals 10, mapping the external knowledge that \"10 stars rating\" corresponds to stars = 10.\n3. Group the joined results by episode_id and sum the votes column to calculate the total 10-star votes for each episode.\n4. Compute the maximum of those per-episode vote sums to find the highest total, mapping \"most vote\" to the MAX of the aggregated votes.\n5. Return the title column for the episode(s) whose total 10-star vote count equals that maximum value.", + "steps": [ + "Join the Episode and Vote tables on episode_id to connect episode titles with their star-score vote records.", + "Filter the Vote table to rows where stars equals 10, mapping the external knowledge that \"10 stars rating\" corresponds to stars = 10.", + "Group the joined results by episode_id and sum the votes column to calculate the total 10-star votes for each episode.", + "Compute the maximum of those per-episode vote sums to find the highest total, mapping \"most vote\" to the MAX of the aggregated votes.", + "Return the title column for the episode(s) whose total 10-star vote count equals that maximum value." + ] + }, + "revisql-train:420": { + "raw": "1. Join the movie table to movie_crew on movie_id, then join person on person_id to connect movies with crew names and job titles.\n2. Filter for rows where person_name equals 'Dariusz Wolski' and job equals 'Director of Photography', mapping the role to the job column.\n3. Group the filtered results by movie_id in a subquery to return each distinct movie’s vote_average.\n4. In the outer query, compute the percentage by counting rows where vote_average is greater than 5 using a CASE expression, casting that count to REAL, multiplying by 100, and dividing by the total count of vote_average values.\n5. Return the single calculated percentage column.", + "steps": [ + "Join the movie table to movie_crew on movie_id, then join person on person_id to connect movies with crew names and job titles.", + "Filter for rows where person_name equals 'Dariusz Wolski' and job equals 'Director of Photography', mapping the role to the job column.", + "Group the filtered results by movie_id in a subquery to return each distinct movie’s vote_average.", + "In the outer query, compute the percentage by counting rows where vote_average is greater than 5 using a CASE expression, casting that count to REAL, multiplying by 100, and dividing by the total count of vote_average values.", + "Return the single calculated percentage column." + ] + }, + "revisql-train:4202": { + "raw": "1. Use only the Episode table, since it contains both the title and rating columns needed.\n2. Compute the lowest rating by taking the minimum value of the rating column across all episodes.\n3. Filter the Episode table to keep only rows where the rating equals that computed minimum.\n4. Return the title column for the matching episodes.", + "steps": [ + "Use only the Episode table, since it contains both the title and rating columns needed.", + "Compute the lowest rating by taking the minimum value of the rating column across all episodes.", + "Filter the Episode table to keep only rows where the rating equals that computed minimum.", + "Return the title column for the matching episodes." + ] + }, + "revisql-train:4213": { + "raw": "1. Query the Award table directly since it already holds the award name, person, year, and result, so no joins are needed.\n2. Filter to rows where result is Winner and person is not null, applying the external knowledge that won maps to Winner and ensuring the recipient is a named cast or crew member.\n3. Compute the earliest year with a subquery that finds the minimum year in Award using the same Winner and non-null person filters, because first award means the minimum year.\n4. Keep only awards in the main query whose year matches that minimum value.\n5. Order the results by award_id and return the award and person columns.", + "steps": [ + "Query the Award table directly since it already holds the award name, person, year, and result, so no joins are needed.", + "Filter to rows where result is Winner and person is not null, applying the external knowledge that won maps to Winner and ensuring the recipient is a named cast or crew member.", + "Compute the earliest year with a subquery that finds the minimum year in Award using the same Winner and non-null person filters, because first award means the minimum year.", + "Keep only awards in the main query whose year matches that minimum value.", + "Order the results by award_id and return the award and person columns." + ] + }, + "revisql-train:4216": { + "raw": "1. Join the Person and Credit tables on the person's name to link biographical details with role categories.\n2. Filter Credit.category to only 'Cast' to restrict results to cast members.\n3. Filter Person.birth_place to 'Los Angeles' using the external knowledge mapping.\n4. Filter Person.height_meters to be greater than or equal to 1.8, applying the external knowledge for \"1.8 m and above\".\n5. Return distinct values of Person.name and Person.birthdate to avoid duplicate rows from multiple credit entries per individual.", + "steps": [ + "Join the Person and Credit tables on the person's name to link biographical details with role categories.", + "Filter Credit.category to only 'Cast' to restrict results to cast members.", + "Filter Person.birth_place to 'Los Angeles' using the external knowledge mapping.", + "Filter Person.height_meters to be greater than or equal to 1.8, applying the external knowledge for \"1.8 m and above\".", + "Return distinct values of Person.name and Person.birthdate to avoid duplicate rows from multiple credit entries per individual." + ] + }, + "revisql-train:4223": { + "raw": "1. Join the Keyword and Vote tables on episode_id to connect episode keywords with their rating breakdowns.\n2. Filter the Keyword rows to only those where keyword equals 'arab stereotype'.\n3. Use the external knowledge that the best rating scale means stars equals 10, and apply this filter to the Vote table.\n4. Return the votes and percent columns from the Vote side of the join as the final output.", + "steps": [ + "Join the Keyword and Vote tables on episode_id to connect episode keywords with their rating breakdowns.", + "Filter the Keyword rows to only those where keyword equals 'arab stereotype'.", + "Use the external knowledge that the best rating scale means stars equals 10, and apply this filter to the Vote table.", + "Return the votes and percent columns from the Vote side of the join as the final output." + ] + }, + "revisql-train:4235": { + "raw": "1. Join the Award table to Character_Award on the award_id foreign key to connect each award with its associated character.\n2. Filter Character_Award to rows where character equals 'Homer Simpson' using the external knowledge mapping for the role.\n3. Filter Award to organization equals 'Primetime Emmy Awards' using the external knowledge mapping for Emmy.\n4. Filter Award to award equals 'Outstanding Voice-Over Performance' and result equals 'Winner' using the external knowledge mappings for the specific category and winning status.\n5. Return the distinct values of the person column from Award as the answer.", + "steps": [ + "Join the Award table to Character_Award on the award_id foreign key to connect each award with its associated character.", + "Filter Character_Award to rows where character equals 'Homer Simpson' using the external knowledge mapping for the role.", + "Filter Award to organization equals 'Primetime Emmy Awards' using the external knowledge mapping for Emmy.", + "Filter Award to award equals 'Outstanding Voice-Over Performance' and result equals 'Winner' using the external knowledge mappings for the specific category and winning status.", + "Return the distinct values of the person column from Award as the answer." + ] + }, + "revisql-train:4243": { + "raw": "1. Use the Credit table, which contains the category, role, and person for each episode's credits.\n2. Filter rows where the person column equals 'Bonita Pietila'.\n3. Select the category and role columns to list her credited categories and corresponding roles.\n4. Apply DISTINCT so each unique category-role pair appears only once in the result.", + "steps": [ + "Use the Credit table, which contains the category, role, and person for each episode's credits.", + "Filter rows where the person column equals 'Bonita Pietila'.", + "Select the category and role columns to list her credited categories and corresponding roles.", + "Apply DISTINCT so each unique category-role pair appears only once in the result." + ] + }, + "revisql-train:4247": { + "raw": "1. Join the Award and Episode tables on episode_id to connect each nomination record to its episode title and season.\n2. Filter the joined data to keep only rows where the season is 20.\n3. Group by episode_id and count the number of nomination rows per episode to get each episode’s nomination total.\n4. Identify the maximum value among those nomination counts.\n5. Return the title of the episode whose nomination count equals that maximum value.", + "steps": [ + "Join the Award and Episode tables on episode_id to connect each nomination record to its episode title and season.", + "Filter the joined data to keep only rows where the season is 20.", + "Group by episode_id and count the number of nomination rows per episode to get each episode’s nomination total.", + "Identify the maximum value among those nomination counts.", + "Return the title of the episode whose nomination count equals that maximum value." + ] + }, + "revisql-train:4248": { + "raw": "1. Identify the Person table as the source for crew biographical details.\n2. Note that the target birthplace is stored in the birth_place column.\n3. Use the name column to look up the specific crew member.\n4. Filter rows to the single record where name matches 'Dan Castellaneta'.\n5. Return only the birth_place value from that filtered row.", + "steps": [ + "Identify the Person table as the source for crew biographical details.", + "Note that the target birthplace is stored in the birth_place column.", + "Use the name column to look up the specific crew member.", + "Filter rows to the single record where name matches 'Dan Castellaneta'.", + "Return only the birth_place value from that filtered row." + ] + }, + "revisql-train:4250": { + "raw": "1. Use only the Person table, since it contains both the crew name and birthdate with no joins required.\n2. Map the condition \"born before 1970\" to the birthdate column per the external knowledge, targeting years earlier than 1970.\n3. Filter rows by extracting the year portion from the birthdate text and keeping only those where the year is less than 1970.\n4. Return the name column for all rows that satisfy the filter.", + "steps": [ + "Use only the Person table, since it contains both the crew name and birthdate with no joins required.", + "Map the condition \"born before 1970\" to the birthdate column per the external knowledge, targeting years earlier than 1970.", + "Filter rows by extracting the year portion from the birthdate text and keeping only those where the year is less than 1970.", + "Return the name column for all rows that satisfy the filter." + ] + }, + "revisql-train:4253": { + "raw": "1. Identify the Episode table as the source for the episode title and the Keyword table as the source for the keywords, related through the episode_id column.\n2. Join Episode to Keyword on episode_id to link each episode with its associated keywords.\n3. Filter the joined rows by restricting Episode.title to exactly \"Double, Double, Boy in Trouble\".\n4. Return the keyword column from the Keyword table as the final output.", + "steps": [ + "Identify the Episode table as the source for the episode title and the Keyword table as the source for the keywords, related through the episode_id column.", + "Join Episode to Keyword on episode_id to link each episode with its associated keywords.", + "Filter the joined rows by restricting Episode.title to exactly \"Double, Double, Boy in Trouble\".", + "Return the keyword column from the Keyword table as the final output." + ] + }, + "revisql-train:4254": { + "raw": "1. Target the Episode table, which contains both the episode number and vote count needed to answer the question without any joins.\n2. Filter the `episode` column to the range 10 through 20, mapping the phrase \"episodes from 10 to 20\" to a BETWEEN 10 AND 20 condition.\n3. Add a filter on the `votes` column for values strictly greater than 200 to satisfy \"more than 200 votes.\"\n4. Return only the `episode` column to output the episode numbers that meet both conditions.", + "steps": [ + "Target the Episode table, which contains both the episode number and vote count needed to answer the question without any joins.", + "Filter the `episode` column to the range 10 through 20, mapping the phrase \"episodes from 10 to 20\" to a BETWEEN 10 AND 20 condition.", + "Add a filter on the `votes` column for values strictly greater than 200 to satisfy \"more than 200 votes.\"", + "Return only the `episode` column to output the episode numbers that meet both conditions." + ] + }, + "revisql-train:4257": { + "raw": "1. Target the Award table, which stores the award name, nomination result, and associated episode_id.\n2. Filter rows where the award column exactly matches 'Outstanding Animated Program (For Programming Less Than One Hour)'.\n3. Further filter those rows to only those with a result value of 'Nominee' to capture nominations.\n4. Return the episode_id column, using DISTINCT to ensure each qualifying episode appears only once.", + "steps": [ + "Target the Award table, which stores the award name, nomination result, and associated episode_id.", + "Filter rows where the award column exactly matches 'Outstanding Animated Program (For Programming Less Than One Hour)'.", + "Further filter those rows to only those with a result value of 'Nominee' to capture nominations.", + "Return the episode_id column, using DISTINCT to ensure each qualifying episode appears only once." + ] + }, + "revisql-train:4262": { + "raw": "1. Start with the Award table, which stores nomination details including person, award_category, year, and episode_id.\n2. Join the Episode table on the episode_id key to link each award record to its corresponding episode.\n3. Apply the external knowledge that \"in 2009\" maps to the year column, filtering for 2009.\n4. Filter the person column to 'Al Jean' and the award_category column to 'Primetime Emmy'.\n5. Return only the episode_id column from the Episode table.", + "steps": [ + "Start with the Award table, which stores nomination details including person, award_category, year, and episode_id.", + "Join the Episode table on the episode_id key to link each award record to its corresponding episode.", + "Apply the external knowledge that \"in 2009\" maps to the year column, filtering for 2009.", + "Filter the person column to 'Al Jean' and the award_category column to 'Primetime Emmy'.", + "Return only the episode_id column from the Episode table." + ] + }, + "revisql-train:4264": { + "raw": "1. Join the Award and Character_Award tables on the award_id column to link each award record to its associated character.\n2. Filter the Award table by year = 2009, applying the external knowledge that \"in 2009\" maps to the year column.\n3. Filter the Character_Award table by character = 'Homer Simpson' to restrict results to that specific character.\n4. Return distinct values of the award column from the Award table to list each award name exactly once.", + "steps": [ + "Join the Award and Character_Award tables on the award_id column to link each award record to its associated character.", + "Filter the Award table by year = 2009, applying the external knowledge that \"in 2009\" maps to the year column.", + "Filter the Character_Award table by character = 'Homer Simpson' to restrict results to that specific character.", + "Return distinct values of the award column from the Award table to list each award name exactly once." + ] + }, + "revisql-train:4266": { + "raw": "1. Start from the Award table and filter to rows where award_category equals 'Primetime Emmy', selecting distinct person names to establish the unique set of recipients.\n2. Join this recipient set with the Person table on the recipient's person value matching Person's name column to access each honoree's birth_country.\n3. Apply the external knowledge that \"born in the USA\" maps to birth_country = 'USA', then use conditional aggregation to count how many recipients satisfy this condition.\n4. Compute the percentage of Americans by casting the USA count to a real number, multiplying by 100.0, and dividing by the total number of joined recipient rows.\n5. Return exactly two columns: the absolute count of USA-born recipients and the calculated percentage of Americans among all recipients.", + "steps": [ + "Start from the Award table and filter to rows where award_category equals 'Primetime Emmy', selecting distinct person names to establish the unique set of recipients.", + "Join this recipient set with the Person table on the recipient's person value matching Person's name column to access each honoree's birth_country.", + "Apply the external knowledge that \"born in the USA\" maps to birth_country = 'USA', then use conditional aggregation to count how many recipients satisfy this condition.", + "Compute the percentage of Americans by casting the USA count to a real number, multiplying by 100.0, and dividing by the total number of joined recipient rows.", + "Return exactly two columns: the absolute count of USA-born recipients and the calculated percentage of Americans among all recipients." + ] + }, + "revisql-train:4269": { + "raw": "1. Use the Person table since it stores crew biographical details including birthdate and birth region.\n2. Apply the external knowledge mapping \"in California\" to filter rows where birth_region equals 'California'.\n3. Apply the external knowledge mapping \"born in 1962\" to the birthdate column by extracting the year portion from the YYYY-MM-DD text and matching it to 1962.\n4. Combine both conditions with a logical AND so only crew satisfying the birth year and region simultaneously are kept.\n5. Return the name column to list the qualifying crew members.", + "steps": [ + "Use the Person table since it stores crew biographical details including birthdate and birth region.", + "Apply the external knowledge mapping \"in California\" to filter rows where birth_region equals 'California'.", + "Apply the external knowledge mapping \"born in 1962\" to the birthdate column by extracting the year portion from the YYYY-MM-DD text and matching it to 1962.", + "Combine both conditions with a logical AND so only crew satisfying the birth year and region simultaneously are kept.", + "Return the name column to list the qualifying crew members." + ] + }, + "revisql-train:4271": { + "raw": "1. Start with the Award table, which contains the award name, result status, and person fields; no joins are required.\n2. Filter the award column to the exact value 'Animation'.\n3. Map the external knowledge phrase prospective recipients to the result column by filtering it to 'Nominee'.\n4. Count distinct values in the person column to ensure each individual is only counted once.\n5. Return only that count of distinct persons.", + "steps": [ + "Start with the Award table, which contains the award name, result status, and person fields; no joins are required.", + "Filter the award column to the exact value 'Animation'.", + "Map the external knowledge phrase prospective recipients to the result column by filtering it to 'Nominee'.", + "Count distinct values in the person column to ensure each individual is only counted once.", + "Return only that count of distinct persons." + ] + }, + "revisql-train:4272": { + "raw": "1. Start with the Episode table, which contains both the episode titles and their ratings.\n2. Map the external knowledge that an excellent rating means strictly greater than 7 and less than or equal to 10 to the rating column.\n3. Filter rows to keep only those where the rating falls in that excellent range.\n4. Return the title column for the episodes that meet the criteria.", + "steps": [ + "Start with the Episode table, which contains both the episode titles and their ratings.", + "Map the external knowledge that an excellent rating means strictly greater than 7 and less than or equal to 10 to the rating column.", + "Filter rows to keep only those where the rating falls in that excellent range.", + "Return the title column for the episodes that meet the criteria." + ] + }, + "revisql-train:4273": { + "raw": "1. Use the Episode table, which contains both the episode_id and the votes field, so no joins are needed.\n2. Map the external knowledge that popularity is determined by votes to the votes column, meaning the most popular episodes have the highest vote counts.\n3. Select only the episode_id column to return the requested identifiers.\n4. Order the results by votes in descending order to rank the most popular episodes first.\n5. Restrict the output to the first five rows to obtain exactly the top five most popular episodes.", + "steps": [ + "Use the Episode table, which contains both the episode_id and the votes field, so no joins are needed.", + "Map the external knowledge that popularity is determined by votes to the votes column, meaning the most popular episodes have the highest vote counts.", + "Select only the episode_id column to return the requested identifiers.", + "Order the results by votes in descending order to rank the most popular episodes first.", + "Restrict the output to the first five rows to obtain exactly the top five most popular episodes." + ] + }, + "revisql-train:4274": { + "raw": "1. Join Episode to Vote on episode_id to pair episode titles with star ratings and vote counts.\n2. Restrict Vote rows to the worst star rating by filtering stars to the minimum value in the Vote table, which external knowledge defines as 1.\n3. Order the joined rows by Vote.votes descending to prioritize episodes with the highest vote counts for that rating.\n4. Keep only the top three rows from the ordered result.\n5. Return the title column from Episode.", + "steps": [ + "Join Episode to Vote on episode_id to pair episode titles with star ratings and vote counts.", + "Restrict Vote rows to the worst star rating by filtering stars to the minimum value in the Vote table, which external knowledge defines as 1.", + "Order the joined rows by Vote.votes descending to prioritize episodes with the highest vote counts for that rating.", + "Keep only the top three rows from the ordered result.", + "Return the title column from Episode." + ] + }, + "revisql-train:4280": { + "raw": "1. Join the Episode table with the Vote table on episode_id to link episode titles to their star rating records.\n2. Filter Episode to the row where title equals 'Lisa the Drama Queen', applying the external knowledge mapping.\n3. Filter Vote to only rows where stars equals 5.\n4. Aggregate by summing the votes column from the Vote table to get the total 5-star vote count.\n5. Return exactly one column: the summed total of votes.", + "steps": [ + "Join the Episode table with the Vote table on episode_id to link episode titles to their star rating records.", + "Filter Episode to the row where title equals 'Lisa the Drama Queen', applying the external knowledge mapping.", + "Filter Vote to only rows where stars equals 5.", + "Aggregate by summing the votes column from the Vote table to get the total 5-star vote count.", + "Return exactly one column: the summed total of votes." + ] + }, + "revisql-train:4286": { + "raw": "1. Use the Person table, which contains the birth dates for all casts and crews.\n2. Map the word \"oldest\" to the earliest birthdate by computing MIN(birthdate), and exclude any rows where birthdate is NULL.\n3. Calculate the minimum non-null birthdate value across the entire Person table.\n4. Filter the Person table to only keep rows whose birthdate equals that calculated minimum.\n5. Return the name column for the matching person or persons.", + "steps": [ + "Use the Person table, which contains the birth dates for all casts and crews.", + "Map the word \"oldest\" to the earliest birthdate by computing MIN(birthdate), and exclude any rows where birthdate is NULL.", + "Calculate the minimum non-null birthdate value across the entire Person table.", + "Filter the Person table to only keep rows whose birthdate equals that calculated minimum.", + "Return the name column for the matching person or persons." + ] + }, + "revisql-train:4287": { + "raw": "1. Start from the Credit table, which records which person is tied to which episode and whether they are credited.\n2. Filter for rows where the person column exactly matches 'Oscar Cervantes'.\n3. Apply the external knowledge that \"is credited\" maps to the credited column having the value 'true'.\n4. Return only the episode_id column for the qualifying rows.", + "steps": [ + "Start from the Credit table, which records which person is tied to which episode and whether they are credited.", + "Filter for rows where the person column exactly matches 'Oscar Cervantes'.", + "Apply the external knowledge that \"is credited\" maps to the credited column having the value 'true'.", + "Return only the episode_id column for the qualifying rows." + ] + }, + "revisql-train:4301": { + "raw": "1. Use the external knowledge that \"nominated\" maps to Award.result = 'Nominee', and select distinct episode_id from the Award table with that filter to identify nominated episodes.\n2. Filter the Episode table to only rows whose episode_id appears in the nominated set from step 1.\n3. Sum the votes column from the filtered Episode rows to get the total votes for nominated episodes.\n4. Independently sum the votes column across the entire Episode table to get the grand total of all votes for the denominator.\n5. Divide the nominated-episode vote sum by the grand total vote sum, multiply by 100.0, and return the single calculated column named pct_votes_from_nominated_episodes.", + "steps": [ + "Use the external knowledge that \"nominated\" maps to Award.result = 'Nominee', and select distinct episode_id from the Award table with that filter to identify nominated episodes.", + "Filter the Episode table to only rows whose episode_id appears in the nominated set from step 1.", + "Sum the votes column from the filtered Episode rows to get the total votes for nominated episodes.", + "Independently sum the votes column across the entire Episode table to get the grand total of all votes for the denominator.", + "Divide the nominated-episode vote sum by the grand total vote sum, multiply by 100.0, and return the single calculated column named pct_votes_from_nominated_episodes." + ] + }, + "revisql-train:431": { + "raw": "1. Map the movie name \"Crazy Heart\" to the title column in the movie table and the phrase \"production companies\" to the company_name column in the production_company table.\n2. Filter the movie table to the row where title equals 'Crazy Heart'.\n3. Join that result to the movie_company bridge table on movie_id to obtain the related company_id values.\n4. Join those records to the production_company table on company_id to reach the actual company names.\n5. Return only the company_name column.", + "steps": [ + "Map the movie name \"Crazy Heart\" to the title column in the movie table and the phrase \"production companies\" to the company_name column in the production_company table.", + "Filter the movie table to the row where title equals 'Crazy Heart'.", + "Join that result to the movie_company bridge table on movie_id to obtain the related company_id values.", + "Join those records to the production_company table on company_id to reach the actual company names.", + "Return only the company_name column." + ] + }, + "revisql-train:4310": { + "raw": "1. Join the Episode table with the Credit table on the episode_id key to link each episode to its cast and crew records.\n2. Map the external knowledge that \"working from Casting Department\" means the Credit.category column must equal 'Casting Department'.\n3. Filter the joined rows to keep only those where Credit.category is 'Casting Department'.\n4. Aggregate by counting distinct Credit.person values to ensure each crew member is counted only once even if credited across multiple episodes.\n5. Return the resulting count of distinct crew members.", + "steps": [ + "Join the Episode table with the Credit table on the episode_id key to link each episode to its cast and crew records.", + "Map the external knowledge that \"working from Casting Department\" means the Credit.category column must equal 'Casting Department'.", + "Filter the joined rows to keep only those where Credit.category is 'Casting Department'.", + "Aggregate by counting distinct Credit.person values to ensure each crew member is counted only once even if credited across multiple episodes.", + "Return the resulting count of distinct crew members." + ] + }, + "revisql-train:4311": { + "raw": "1. Join Person and Credit on the person's name (Person.name = Credit.person) to combine birth country with role data.\n2. Filter Credit.role to 'additional timer' per the external knowledge mapping.\n3. Filter Person.birth_country to 'USA' per the external knowledge mapping.\n4. Count distinct Credit.person to avoid double-counting anyone with multiple credits.\n5. Return the resulting count as the answer column.", + "steps": [ + "Join Person and Credit on the person's name (Person.name = Credit.person) to combine birth country with role data.", + "Filter Credit.role to 'additional timer' per the external knowledge mapping.", + "Filter Person.birth_country to 'USA' per the external knowledge mapping.", + "Count distinct Credit.person to avoid double-counting anyone with multiple credits.", + "Return the resulting count as the answer column." + ] + }, + "revisql-train:4328": { + "raw": "1. Filter Episode to the row with title 'No Loan Again, Naturally' and rating 6.8.\n2. Join that Episode row to Vote on episode_id to access the per-star vote percentages.\n3. Map the external knowledge phrase \"scores 5 to 10\" to the stars column in Vote, keeping only rows where stars is between 5 and 10 inclusive.\n4. Sum the percent column from those filtered Vote rows to aggregate their combined share.\n5. Return the resulting sum of percent as the answer.", + "steps": [ + "Filter Episode to the row with title 'No Loan Again, Naturally' and rating 6.8.", + "Join that Episode row to Vote on episode_id to access the per-star vote percentages.", + "Map the external knowledge phrase \"scores 5 to 10\" to the stars column in Vote, keeping only rows where stars is between 5 and 10 inclusive.", + "Sum the percent column from those filtered Vote rows to aggregate their combined share.", + "Return the resulting sum of percent as the answer." + ] + }, + "revisql-train:4333": { + "raw": "1. Select the Award table, which stores award records along with their year.\n2. Filter rows where the year column equals 2009, applying the external knowledge that \"had been held in 2009\" maps to the year column value 2009.\n3. Count distinct values in the award column to avoid duplicate award names and answer \"how many awards.\"\n4. Return the resulting count.", + "steps": [ + "Select the Award table, which stores award records along with their year.", + "Filter rows where the year column equals 2009, applying the external knowledge that \"had been held in 2009\" maps to the year column value 2009.", + "Count distinct values in the award column to avoid duplicate award names and answer \"how many awards.\"", + "Return the resulting count." + ] + }, + "revisql-train:4335": { + "raw": "1. Start with the `Person` table to access `birth_name` and `height_meters`, and the `Credit` table to access crew `role` data.\n2. Join `Person` to `Credit` on `name` = `person` to link each crew member's biographical details with their episode credits.\n3. Filter `Credit.role` to exactly `'co-executive producer'` based on the external knowledge mapping.\n4. Filter `Person.height_meters` to values strictly greater than `1.60` based on the external knowledge mapping.\n5. Return distinct values of `Person.birth_name` to list each qualifying crew member's birth name without duplicates.", + "steps": [ + "Start with the `Person` table to access `birth_name` and `height_meters`, and the `Credit` table to access crew `role` data.", + "Join `Person` to `Credit` on `name` = `person` to link each crew member's biographical details with their episode credits.", + "Filter `Credit.role` to exactly `'co-executive producer'` based on the external knowledge mapping.", + "Filter `Person.height_meters` to values strictly greater than `1.60` based on the external knowledge mapping.", + "Return distinct values of `Person.birth_name` to list each qualifying crew member's birth name without duplicates." + ] + }, + "revisql-train:4338": { + "raw": "1. Use the Episode table to access episode titles and the Vote table to access star scores, joining them on the shared episode_id key.\n2. Filter the Vote table for rows where stars equals 2, applying the external knowledge that \"star score of 2\" maps directly to the stars column.\n3. Do not perform any aggregation or ordering.\n4. Return only the title column from the Episode table.", + "steps": [ + "Use the Episode table to access episode titles and the Vote table to access star scores, joining them on the shared episode_id key.", + "Filter the Vote table for rows where stars equals 2, applying the external knowledge that \"star score of 2\" maps directly to the stars column.", + "Do not perform any aggregation or ordering.", + "Return only the title column from the Episode table." + ] + }, + "revisql-train:4342": { + "raw": "1. Join the Award and Character_Award tables on the award_id column.\n2. Filter Character_Award to only rows where the character column equals 'Mr. Burns'.\n3. Filter Award to only rows where the result column equals 'Nominee'.\n4. Apply DISTINCT to the year column from the Award table to eliminate duplicate years.\n5. Return only the year column.", + "steps": [ + "Join the Award and Character_Award tables on the award_id column.", + "Filter Character_Award to only rows where the character column equals 'Mr. Burns'.", + "Filter Award to only rows where the result column equals 'Nominee'.", + "Apply DISTINCT to the year column from the Award table to eliminate duplicate years.", + "Return only the year column." + ] + }, + "revisql-train:4345": { + "raw": "1. Start with the Episode table to locate the record whose title is 'Dangerous Curves'.\n2. Bring in the Keyword table to access the keywords associated with that episode.\n3. Join Episode and Keyword on the episode_id column.\n4. Filter the joined results to only rows where Episode.title equals 'Dangerous Curves'.\n5. Return the keyword column from the Keyword table.", + "steps": [ + "Start with the Episode table to locate the record whose title is 'Dangerous Curves'.", + "Bring in the Keyword table to access the keywords associated with that episode.", + "Join Episode and Keyword on the episode_id column.", + "Filter the joined results to only rows where Episode.title equals 'Dangerous Curves'.", + "Return the keyword column from the Keyword table." + ] + }, + "revisql-train:4352": { + "raw": "1. Filter the Episode table to season 20 and the six specific episode_ids that map to episodes 5 through 10 inclusive: S20-E5, S20-E6, S20-E7, S20-E8, S20-E9, and S20-E10.\n2. Join the Credit table on episode_id to access crew and role information for those episodes.\n3. In the Credit table, keep only rows where credited equals 'true' and the role matches casting (case-insensitive).\n4. Count distinct episode_id values from the Episode table to return how many unique episodes have at least one credited casting entry.", + "steps": [ + "Filter the Episode table to season 20 and the six specific episode_ids that map to episodes 5 through 10 inclusive: S20-E5, S20-E6, S20-E7, S20-E8, S20-E9, and S20-E10.", + "Join the Credit table on episode_id to access crew and role information for those episodes.", + "In the Credit table, keep only rows where credited equals 'true' and the role matches casting (case-insensitive).", + "Count distinct episode_id values from the Episode table to return how many unique episodes have at least one credited casting entry." + ] + }, + "revisql-train:4354": { + "raw": "1. Join the Award table to the Episode table on the episode_id key to connect each award record with its corresponding episode details.\n2. Filter Award.organization to the value 'Primetime Emmy Awards', applying the external knowledge mapping for \"in Primetime Emmy Awards\".\n3. Filter Award.year to 2009, applying the external knowledge mapping for the year \"2009\".\n4. Filter Award.result to 'Winner', applying the external knowledge mapping for \"won\".\n5. Return the title column from the Episode table as the final result.", + "steps": [ + "Join the Award table to the Episode table on the episode_id key to connect each award record with its corresponding episode details.", + "Filter Award.organization to the value 'Primetime Emmy Awards', applying the external knowledge mapping for \"in Primetime Emmy Awards\".", + "Filter Award.year to 2009, applying the external knowledge mapping for the year \"2009\".", + "Filter Award.result to 'Winner', applying the external knowledge mapping for \"won\".", + "Return the title column from the Episode table as the final result." + ] + }, + "revisql-train:4367": { + "raw": "1. Join the Award table to the Episode table on the episode_id key so that episode titles can be matched with award records.\n2. Filter the joined rows to retain only those where the episode title is exactly \"Gone Maggie Gone\" and the award year is 2009.\n3. Map the external knowledge concept of \"being nominated\" to the Award.result column by identifying rows where the value is \"Nominee\".\n4. Calculate the required percentage by multiplying 100.0 by the count of nominated results and dividing by the total count of award results within the filtered set.\n5. Return a single column containing the computed percentage value.", + "steps": [ + "Join the Award table to the Episode table on the episode_id key so that episode titles can be matched with award records.", + "Filter the joined rows to retain only those where the episode title is exactly \"Gone Maggie Gone\" and the award year is 2009.", + "Map the external knowledge concept of \"being nominated\" to the Award.result column by identifying rows where the value is \"Nominee\".", + "Calculate the required percentage by multiplying 100.0 by the count of nominated results and dividing by the total count of award results within the filtered set.", + "Return a single column containing the computed percentage value." + ] + }, + "revisql-train:4368": { + "raw": "1. Use the table `longest_absense_from_school`, which stores each student's absence duration; no joins are required.\n2. Apply the external knowledge that \"have never been absent\" maps to the `month` column having a value of 0.\n3. Filter the rows to only those where `month` equals 0.\n4. Count the `name` values to compute the total number of students meeting that condition.\n5. Return the single aggregated count column.", + "steps": [ + "Use the table `longest_absense_from_school`, which stores each student's absence duration; no joins are required.", + "Apply the external knowledge that \"have never been absent\" maps to the `month` column having a value of 0.", + "Filter the rows to only those where `month` equals 0.", + "Count the `name` values to compute the total number of students meeting that condition.", + "Return the single aggregated count column." + ] + }, + "revisql-train:437": { + "raw": "1. Identify that the question asks about movies and their financial resources, so the main table is `movie`.\n2. Use the external knowledge to interpret \"made with the most money and resources\" as the maximum value in the `budget` column.\n3. Compute the highest budget by aggregating `MAX(budget)` from the `movie` table.\n4. Filter the `movie` table to only the row(s) where `budget` equals that maximum amount.\n5. Return the `title` of the movie(s) matching that filter.", + "steps": [ + "Identify that the question asks about movies and their financial resources, so the main table is `movie`.", + "Use the external knowledge to interpret \"made with the most money and resources\" as the maximum value in the `budget` column.", + "Compute the highest budget by aggregating `MAX(budget)` from the `movie` table.", + "Filter the `movie` table to only the row(s) where `budget` equals that maximum amount.", + "Return the `title` of the movie(s) matching that filter." + ] + }, + "revisql-train:4382": { + "raw": "1. Identify students who filed for bankruptcy by selecting the `name` column from the `filed_for_bankrupcy` table.\n2. Determine female students using the `male` table: the schema specifies that students not present in `male` are female, so gender maps to absence from this table.\n3. Filter the bankruptcy names to exclude any `name` that exists in the `male` table.\n4. Return the remaining `name` values as the final result, with no aggregation or ordering needed.", + "steps": [ + "Identify students who filed for bankruptcy by selecting the `name` column from the `filed_for_bankrupcy` table.", + "Determine female students using the `male` table: the schema specifies that students not present in `male` are female, so gender maps to absence from this table.", + "Filter the bankruptcy names to exclude any `name` that exists in the `male` table.", + "Return the remaining `name` values as the final result, with no aggregation or ordering needed." + ] + }, + "revisql-train:4384": { + "raw": "1. Select the `longest_absense_from_school` table for absence durations and the `disabled` table to identify disabled students.\n2. Inner join the two tables on the `name` column to restrict the rows to disabled students with absence records.\n3. Map the external knowledge’s definition of average time to the `month` column in the absence table.\n4. Apply the `AVG` aggregate function to that `month` column over the joined rows.\n5. Return exactly one column: the computed average absence time.", + "steps": [ + "Select the `longest_absense_from_school` table for absence durations and the `disabled` table to identify disabled students.", + "Inner join the two tables on the `name` column to restrict the rows to disabled students with absence records.", + "Map the external knowledge’s definition of average time to the `month` column in the absence table.", + "Apply the `AVG` aggregate function to that `month` column over the joined rows.", + "Return exactly one column: the computed average absence time." + ] + }, + "revisql-train:4392": { + "raw": "1. Filter the `enlist` table to rows where `organ` equals 'air_force', applying the external knowledge that \"in the air force\" maps to that exact value.\n2. Join the `enrolled` table on the shared `name` key to access each student's school.\n3. Ensure the join keeps every air force student from `enlist` even when there is no matching `enrolled` record, so students without a school are not dropped.\n4. Return the `name` column from `enlist` and the `school` column from `enrolled`, allowing the school value to be NULL when no enrollment data exists.", + "steps": [ + "Filter the `enlist` table to rows where `organ` equals 'air_force', applying the external knowledge that \"in the air force\" maps to that exact value.", + "Join the `enrolled` table on the shared `name` key to access each student's school.", + "Ensure the join keeps every air force student from `enlist` even when there is no matching `enrolled` record, so students without a school are not dropped.", + "Return the `name` column from `enlist` and the `school` column from `enrolled`, allowing the school value to be NULL when no enrollment data exists." + ] + }, + "revisql-train:4393": { + "raw": "1. Join the `no_payment_due` table with the `person` table on the `name` column to restrict results to valid students.\n2. Filter the joined rows to only those where `no_payment_due.bool` equals `'neg'`, using the external knowledge that this value means the student has no due payments.\n3. Exclude any `name` values that appear in the `male` table, per the external knowledge that students not in this table are not males.\n4. Select and return only the `name` column from the `no_payment_due` side of the join.", + "steps": [ + "Join the `no_payment_due` table with the `person` table on the `name` column to restrict results to valid students.", + "Filter the joined rows to only those where `no_payment_due.bool` equals `'neg'`, using the external knowledge that this value means the student has no due payments.", + "Exclude any `name` values that appear in the `male` table, per the external knowledge that students not in this table are not males.", + "Select and return only the `name` column from the `no_payment_due` side of the join." + ] + }, + "revisql-train:4395": { + "raw": "1. Start with the `disabled` table to identify disabled students and the `enrolled` table to check school membership.\n2. Inner join `enrolled` and `disabled` on the `name` column to keep only students who appear in both tables.\n3. Filter the joined rows where the `school` column equals `'smc'`, applying the external knowledge that \"enrolled in SMC\" maps to that specific value.\n4. Return the `name` column from the `disabled` table to list all disabled students who satisfy the condition.", + "steps": [ + "Start with the `disabled` table to identify disabled students and the `enrolled` table to check school membership.", + "Inner join `enrolled` and `disabled` on the `name` column to keep only students who appear in both tables.", + "Filter the joined rows where the `school` column equals `'smc'`, applying the external knowledge that \"enrolled in SMC\" maps to that specific value.", + "Return the `name` column from the `disabled` table to list all disabled students who satisfy the condition." + ] + }, + "revisql-train:4399": { + "raw": "1. Use the enrolled table to access student school affiliations and the unemployed table to identify unemployed students.\n2. Inner join enrolled and unemployed on the name column to keep only students present in both tables.\n3. Filter the joined results by enrolled.school equal to 'smc', applying the external knowledge that from SMC maps to school = 'smc'.\n4. Count the name values from the unemployed table to compute the total number of matching students.\n5. Return the resulting count as the single output column.", + "steps": [ + "Use the enrolled table to access student school affiliations and the unemployed table to identify unemployed students.", + "Inner join enrolled and unemployed on the name column to keep only students present in both tables.", + "Filter the joined results by enrolled.school equal to 'smc', applying the external knowledge that from SMC maps to school = 'smc'.", + "Count the name values from the unemployed table to compute the total number of matching students.", + "Return the resulting count as the single output column." + ] + }, + "revisql-train:440": { + "raw": "1. Identify that crew member names reside in the `person` table and their crew roles are recorded in `movie_crew`.\n2. Join `person` to `movie_crew` on the matching `person_id` key to limit the set to people who have crew credits.\n3. Filter the joined results to rows where `person_name` is exactly 'John Young'.\n4. Apply `COUNT(DISTINCT person_id)` so each individual is counted once even if they appear on multiple movies.\n5. Return the single aggregated count value representing the number of distinct crew members named John Young.", + "steps": [ + "Identify that crew member names reside in the `person` table and their crew roles are recorded in `movie_crew`.", + "Join `person` to `movie_crew` on the matching `person_id` key to limit the set to people who have crew credits.", + "Filter the joined results to rows where `person_name` is exactly 'John Young'.", + "Apply `COUNT(DISTINCT person_id)` so each individual is counted once even if they appear on multiple movies.", + "Return the single aggregated count value representing the number of distinct crew members named John Young." + ] + }, + "revisql-train:4403": { + "raw": "1. Filter the `enlist` table to rows where `organ` equals `'foreign_legion'` to collect the names of students in foreign legions.\n2. In the `no_payment_due` table, keep only rows whose `name` appears in that foreign-legion set.\n3. Map the phrase \"have a due payment\" to `bool` = `'pos'` based on the external knowledge.\n4. Compute the percentage by counting the `'pos'` rows in the filtered set, dividing by the total number of rows in that same filtered set, and multiplying by 100.0.\n5. Return the result as a single column named `percent_with_due`.", + "steps": [ + "Filter the `enlist` table to rows where `organ` equals `'foreign_legion'` to collect the names of students in foreign legions.", + "In the `no_payment_due` table, keep only rows whose `name` appears in that foreign-legion set.", + "Map the phrase \"have a due payment\" to `bool` = `'pos'` based on the external knowledge.", + "Compute the percentage by counting the `'pos'` rows in the filtered set, dividing by the total number of rows in that same filtered set, and multiplying by 100.0.", + "Return the result as a single column named `percent_with_due`." + ] + }, + "revisql-train:4408": { + "raw": "1. Use the `longest_absense_from_school` table, which tracks each student's absence duration.\n2. Map the phrase \"absence for 4 month\" to the `month` column value `4` per the external knowledge.\n3. Filter the rows to only those where `month = 4`.\n4. Count the `name` entries in the filtered set to compute the number of students.\n5. Return the single aggregated count column.", + "steps": [ + "Use the `longest_absense_from_school` table, which tracks each student's absence duration.", + "Map the phrase \"absence for 4 month\" to the `month` column value `4` per the external knowledge.", + "Filter the rows to only those where `month = 4`.", + "Count the `name` entries in the filtered set to compute the number of students.", + "Return the single aggregated count column." + ] + }, + "revisql-train:4409": { + "raw": "1. Use the `unemployed` and `filed_for_bankrupcy` tables to represent the two required student statuses.\n2. Inner join them on the `name` column to keep only students who appear in both tables simultaneously.\n3. Count the resulting `name` values to compute the total number of students satisfying both conditions.\n4. Return only that aggregated count.", + "steps": [ + "Use the `unemployed` and `filed_for_bankrupcy` tables to represent the two required student statuses.", + "Inner join them on the `name` column to keep only students who appear in both tables simultaneously.", + "Count the resulting `name` values to compute the total number of students satisfying both conditions.", + "Return only that aggregated count." + ] + }, + "revisql-train:4413": { + "raw": "1. Start from the person table and restrict the rows to only the two target students, student180 and student117.\n2. Left join unemployed, disabled, male, and no_payment_due on the name column so both students are kept even when they have no matching record in a category table.\n3. Derive employment status by checking whether unemployed.name exists: if it does, label 'unemployed'; otherwise label 'employed'.\n4. Derive disability status by checking whether disabled.name exists: if it does, label 'disabled'; otherwise label 'not_disabled'.\n5. Derive gender by checking whether male.name exists: if it does, label 'male'; otherwise label 'female' per the external knowledge that absence from male means female.\n6. Return the student's name alongside the three derived labels above and the school debt status, outputting no_payment_due.bool when present or the fallback 'unknown' when absent.", + "steps": [ + "Start from the person table and restrict the rows to only the two target students, student180 and student117.", + "Left join unemployed, disabled, male, and no_payment_due on the name column so both students are kept even when they have no matching record in a category table.", + "Derive employment status by checking whether unemployed.name exists: if it does, label 'unemployed'; otherwise label 'employed'.", + "Derive disability status by checking whether disabled.name exists: if it does, label 'disabled'; otherwise label 'not_disabled'.", + "Derive gender by checking whether male.name exists: if it does, label 'male'; otherwise label 'female' per the external knowledge that absence from male means female.", + "Return the student's name alongside the three derived labels above and the school debt status, outputting no_payment_due.bool when present or the fallback 'unknown' when absent." + ] + }, + "revisql-train:4416": { + "raw": "1. Start from the disabled table and left join male on the name column; students without a match in male are female per the schema definition.\n2. Count disabled females by summing a conditional indicator that returns 1 when the joined male.name is NULL and 0 otherwise, mapping the external knowledge for names not from male.\n3. Count disabled males by counting the non-NULL joined male.name values, mapping the external knowledge for names from male.\n4. Cast the disabled female count to REAL, multiply by 100, and divide by the disabled male count to compute the ratio.\n5. Return a single column containing the resulting ratio value.", + "steps": [ + "Start from the disabled table and left join male on the name column; students without a match in male are female per the schema definition.", + "Count disabled females by summing a conditional indicator that returns 1 when the joined male.name is NULL and 0 otherwise, mapping the external knowledge for names not from male.", + "Count disabled males by counting the non-NULL joined male.name values, mapping the external knowledge for names from male.", + "Cast the disabled female count to REAL, multiply by 100, and divide by the disabled male count to compute the ratio.", + "Return a single column containing the resulting ratio value." + ] + }, + "revisql-train:4418": { + "raw": "1. Use the `filed_for_bankrupcy` table to identify bankrupt students and the `no_payment_due` table for their payment due status.\n2. Join the two tables on the `name` column.\n3. Apply the external knowledge that \"able to make payment before due\" maps to `bool = 'neg'` in `no_payment_due`.\n4. Filter the joined results to keep only rows where `bool` equals `'neg'`.\n5. Return the `name` column from the bankrupt students.", + "steps": [ + "Use the `filed_for_bankrupcy` table to identify bankrupt students and the `no_payment_due` table for their payment due status.", + "Join the two tables on the `name` column.", + "Apply the external knowledge that \"able to make payment before due\" maps to `bool = 'neg'` in `no_payment_due`.", + "Filter the joined results to keep only rows where `bool` equals `'neg'`.", + "Return the `name` column from the bankrupt students." + ] + }, + "revisql-train:4427": { + "raw": "1. Identify `no_payment_due` as the relevant table for student payment status.\n2. Map the condition \"have payment due\" to `bool = 'pos'` per the external knowledge.\n3. Filter rows in `no_payment_due` where `bool` equals `'pos'`.\n4. Count the `name` column across the filtered rows to compute the total number of students.\n5. Return the count value as the single output column.", + "steps": [ + "Identify `no_payment_due` as the relevant table for student payment status.", + "Map the condition \"have payment due\" to `bool = 'pos'` per the external knowledge.", + "Filter rows in `no_payment_due` where `bool` equals `'pos'`.", + "Count the `name` column across the filtered rows to compute the total number of students.", + "Return the count value as the single output column." + ] + }, + "revisql-train:4429": { + "raw": "1. Start with the `unemployed` table to identify students who are unemployed.\n2. Join it with the `enlist` table on the `name` column to find which of those students are also enlisted.\n3. Filter the joined results to only rows where `enlist.organ` equals `'navy'`, using the external knowledge that the navy organization corresponds to that exact value.\n4. Count the distinct `name` values from the `unemployed` table to avoid duplicates and get the total number of qualifying students.\n5. Return that count in a column named `cnt`.", + "steps": [ + "Start with the `unemployed` table to identify students who are unemployed.", + "Join it with the `enlist` table on the `name` column to find which of those students are also enlisted.", + "Filter the joined results to only rows where `enlist.organ` equals `'navy'`, using the external knowledge that the navy organization corresponds to that exact value.", + "Count the distinct `name` values from the `unemployed` table to avoid duplicates and get the total number of qualifying students.", + "Return that count in a column named `cnt`." + ] + }, + "revisql-train:4437": { + "raw": "1. Join `unemployed` and `longest_absense_from_school` on the `name` column to pair each unemployed student with their absence duration.\n2. Compute the maximum `month` from `longest_absense_from_school` restricted to students who also appear in `unemployed`, using the external knowledge that \"longest duration\" maps to `MAX(month)`.\n3. Filter the joined rows to keep only those where the `month` equals that computed maximum.\n4. Return the `name` column from the `unemployed` table.", + "steps": [ + "Join `unemployed` and `longest_absense_from_school` on the `name` column to pair each unemployed student with their absence duration.", + "Compute the maximum `month` from `longest_absense_from_school` restricted to students who also appear in `unemployed`, using the external knowledge that \"longest duration\" maps to `MAX(month)`.", + "Filter the joined rows to keep only those where the `month` equals that computed maximum.", + "Return the `name` column from the `unemployed` table." + ] + }, + "revisql-train:4440": { + "raw": "1. Identify the two required tables: `longest_absense_from_school` for absence history and `filed_for_bankrupcy` for bankruptcy status.\n2. Inner join these tables on the `name` column to isolate students who appear in both records.\n3. Map the external knowledge that \"have never been absent\" to the condition `month = 0` in `longest_absense_from_school`.\n4. Apply the filter `month = 0` to the joined results.\n5. Return only the `name` column of the qualifying students.", + "steps": [ + "Identify the two required tables: `longest_absense_from_school` for absence history and `filed_for_bankrupcy` for bankruptcy status.", + "Inner join these tables on the `name` column to isolate students who appear in both records.", + "Map the external knowledge that \"have never been absent\" to the condition `month = 0` in `longest_absense_from_school`.", + "Apply the filter `month = 0` to the joined results.", + "Return only the `name` column of the qualifying students." + ] + }, + "revisql-train:4441": { + "raw": "1. Identify the two relevant tables: `filed_for_bankrupcy` and `longest_absense_from_school`.\n2. Join these tables on the `name` column to isolate students who both filed for bankruptcy and have an absence record.\n3. Apply the external knowledge that \"longest duration of absense\" means the maximum value of the `month` column in `longest_absense_from_school`.\n4. Compute that maximum `month` value and filter the joined results to keep only rows where `month` equals that maximum.\n5. Return only the `name` column from the filtered results.", + "steps": [ + "Identify the two relevant tables: `filed_for_bankrupcy` and `longest_absense_from_school`.", + "Join these tables on the `name` column to isolate students who both filed for bankruptcy and have an absence record.", + "Apply the external knowledge that \"longest duration of absense\" means the maximum value of the `month` column in `longest_absense_from_school`.", + "Compute that maximum `month` value and filter the joined results to keep only rows where `month` equals that maximum.", + "Return only the `name` column from the filtered results." + ] + }, + "revisql-train:4447": { + "raw": "1. Use the longest_absense_from_school table, which stores each student's absence duration in the month column.\n2. Include every row from this table, since each student has exactly one record and a month value of 0 correctly represents no absence.\n3. Map the requested average to the month column; the external knowledge indicates average is the total sum of months divided by the total number of students, so apply the AVG aggregate to month.\n4. Return a single column containing the computed average absence duration in months, with no joins or filters required.", + "steps": [ + "Use the longest_absense_from_school table, which stores each student's absence duration in the month column.", + "Include every row from this table, since each student has exactly one record and a month value of 0 correctly represents no absence.", + "Map the requested average to the month column; the external knowledge indicates average is the total sum of months divided by the total number of students, so apply the AVG aggregate to month.", + "Return a single column containing the computed average absence duration in months, with no joins or filters required." + ] + }, + "revisql-train:4449": { + "raw": "1. Start with the `enlist` table and the `disabled` table, since the question asks about students who are both enlisted in marines and disabled.\n2. Inner join these two tables on the `name` column to keep only students appearing in both.\n3. Filter the joined results to rows where `organ = 'marines'`, mapping the external knowledge phrase \"enlisted in marines\" to that exact column value.\n4. Count distinct values of `name` from the filtered set to compute how many unique students satisfy both conditions.\n5. Return only that count column.", + "steps": [ + "Start with the `enlist` table and the `disabled` table, since the question asks about students who are both enlisted in marines and disabled.", + "Inner join these two tables on the `name` column to keep only students appearing in both.", + "Filter the joined results to rows where `organ = 'marines'`, mapping the external knowledge phrase \"enlisted in marines\" to that exact column value.", + "Count distinct values of `name` from the filtered set to compute how many unique students satisfy both conditions.", + "Return only that count column." + ] + }, + "revisql-train:4457": { + "raw": "1. Start from the `disabled` table, which contains all disabled students.\n2. Use the `male` table to determine gender, noting that any student not present there is female.\n3. Filter out disabled students whose `name` also appears in the `male` table.\n4. Return only the `name` column for the remaining students.", + "steps": [ + "Start from the `disabled` table, which contains all disabled students.", + "Use the `male` table to determine gender, noting that any student not present there is female.", + "Filter out disabled students whose `name` also appears in the `male` table.", + "Return only the `name` column for the remaining students." + ] + }, + "revisql-train:4459": { + "raw": "1. Start from the enlist table and filter rows where organ equals 'fire_department' to define the total group of fire department enlistees.\n2. Left join the male table on the name column to identify which students in that group are male.\n3. Apply the external knowledge that percentage equals the subset count divided by the total count multiplied by 100, using COUNT(DISTINCT m.name) for male students and COUNT(DISTINCT e.name) for all fire department enlistees.\n4. Compute 100.0 times the male count divided by the total count.\n5. Return the result as a single column named percentage_male.", + "steps": [ + "Start from the enlist table and filter rows where organ equals 'fire_department' to define the total group of fire department enlistees.", + "Left join the male table on the name column to identify which students in that group are male.", + "Apply the external knowledge that percentage equals the subset count divided by the total count multiplied by 100, using COUNT(DISTINCT m.name) for male students and COUNT(DISTINCT e.name) for all fire department enlistees.", + "Compute 100.0 times the male count divided by the total count.", + "Return the result as a single column named percentage_male." + ] + }, + "revisql-train:4464": { + "raw": "1. Start from the `enlist` table, which records each student's organization memberships via the `name` and `organ` columns.\n2. Group the rows by `name` to aggregate all organizations joined by each student.\n3. Apply a HAVING filter on the grouped results to keep only those students whose count of distinct `organ` values is greater than or equal to 2, reflecting \"joined at least two organizations\".\n4. Treat the resulting set of student names as a subquery.\n5. Return COUNT(*) over that subquery to produce the final single-number answer.", + "steps": [ + "Start from the `enlist` table, which records each student's organization memberships via the `name` and `organ` columns.", + "Group the rows by `name` to aggregate all organizations joined by each student.", + "Apply a HAVING filter on the grouped results to keep only those students whose count of distinct `organ` values is greater than or equal to 2, reflecting \"joined at least two organizations\".", + "Treat the resulting set of student names as a subquery.", + "Return COUNT(*) over that subquery to produce the final single-number answer." + ] + }, + "revisql-train:447": { + "raw": "1. Map the question's terms using the external knowledge: \"production company\" corresponds to the `company_name` column in the `production_company` table, and \"most money at the box office\" corresponds to the maximum value of the `revenue` column in the `movie` table.\n2. Identify the three tables needed: `production_company` for company names, `movie_company` as the bridge linking companies to movies, and `movie` for revenue figures.\n3. Join `production_company` to `movie_company` on `company_id`, then join `movie_company` to `movie` on `movie_id` to connect each company to its movie's financial data.\n4. Calculate the single highest revenue across all movies by querying the maximum `revenue` from the `movie` table.\n5. Filter the joined results to keep only rows where the movie's `revenue` equals that maximum value.\n6. Return only the `company_name` column from `production_company` as the final answer.", + "steps": [ + "Map the question's terms using the external knowledge: \"production company\" corresponds to the `company_name` column in the `production_company` table, and \"most money at the box office\" corresponds to the maximum value of the `revenue` column in the `movie` table.", + "Identify the three tables needed: `production_company` for company names, `movie_company` as the bridge linking companies to movies, and `movie` for revenue figures.", + "Join `production_company` to `movie_company` on `company_id`, then join `movie_company` to `movie` on `movie_id` to connect each company to its movie's financial data.", + "Calculate the single highest revenue across all movies by querying the maximum `revenue` from the `movie` table.", + "Filter the joined results to keep only rows where the movie's `revenue` equals that maximum value.", + "Return only the `company_name` column from `production_company` as the final answer." + ] + }, + "revisql-train:4472": { + "raw": "1. Start from the `enlist` table because the question asks about students enlisted in an organization.\n2. Filter rows where `organ` = 'navy', applying external knowledge that \"organization\" maps to the `organ` column and the target value is 'navy'.\n3. Further filter to female students by keeping only names that do not appear in the `male` table, per external knowledge that females are those not in `male`.\n4. Aggregate by counting distinct `name` values to ensure each student is counted once.\n5. Return exactly one column: the count of distinct names.", + "steps": [ + "Start from the `enlist` table because the question asks about students enlisted in an organization.", + "Filter rows where `organ` = 'navy', applying external knowledge that \"organization\" maps to the `organ` column and the target value is 'navy'.", + "Further filter to female students by keeping only names that do not appear in the `male` table, per external knowledge that females are those not in `male`.", + "Aggregate by counting distinct `name` values to ensure each student is counted once.", + "Return exactly one column: the count of distinct names." + ] + }, + "revisql-train:4475": { + "raw": "1. Start with the `no_payment_due` table to check payment status and the `enlist` table to check organization membership.\n2. Join the two tables on their common `name` column.\n3. Filter `no_payment_due.bool` to `'pos'` because external knowledge states that value means the student has payment due.\n4. Filter `enlist.organ` to `'peace_corps'` because external knowledge maps the Peace Corps organization to that exact column value.\n5. Return distinct values of the `name` column to list each qualifying student once.", + "steps": [ + "Start with the `no_payment_due` table to check payment status and the `enlist` table to check organization membership.", + "Join the two tables on their common `name` column.", + "Filter `no_payment_due.bool` to `'pos'` because external knowledge states that value means the student has payment due.", + "Filter `enlist.organ` to `'peace_corps'` because external knowledge maps the Peace Corps organization to that exact column value.", + "Return distinct values of the `name` column to list each qualifying student once." + ] + }, + "revisql-train:4482": { + "raw": "1. Use the `no_payment_due` table, which stores each student's payment status in the `bool` column.\n2. Map \"have payment due\" to `bool` = 'pos' and \"do not have payment due\" to `bool` = 'neg' using the external knowledge.\n3. Sum indicator values to count rows where `bool` = 'pos' for the numerator and `bool` = 'neg' for the denominator.\n4. Cast the numerator sum to REAL to ensure the division produces a decimal ratio instead of integer truncation.\n5. Divide the payment-due count by the no-payment-due count and return the resulting single ratio value.", + "steps": [ + "Use the `no_payment_due` table, which stores each student's payment status in the `bool` column.", + "Map \"have payment due\" to `bool` = 'pos' and \"do not have payment due\" to `bool` = 'neg' using the external knowledge.", + "Sum indicator values to count rows where `bool` = 'pos' for the numerator and `bool` = 'neg' for the denominator.", + "Cast the numerator sum to REAL to ensure the division produces a decimal ratio instead of integer truncation.", + "Divide the payment-due count by the no-payment-due count and return the resulting single ratio value." + ] + }, + "revisql-train:4483": { + "raw": "1. Identify the `enrolled` table as the source for student enrollment records, which contains the `name`, `school`, and `month` columns.\n2. Map the condition \"enrolled for 15 months\" to the `month` column using the external knowledge that this phrase means `month = 15`.\n3. Filter rows in the `enrolled` table to only those where `month` equals 15.\n4. Return the `name` and `school` columns from the filtered rows to list the students and their respective schools.", + "steps": [ + "Identify the `enrolled` table as the source for student enrollment records, which contains the `name`, `school`, and `month` columns.", + "Map the condition \"enrolled for 15 months\" to the `month` column using the external knowledge that this phrase means `month = 15`.", + "Filter rows in the `enrolled` table to only those where `month` equals 15.", + "Return the `name` and `school` columns from the filtered rows to list the students and their respective schools." + ] + }, + "revisql-train:4484": { + "raw": "1. Use only the `enlist` table, since it contains every student name and the organization they enlisted in.\n2. Map the required average to the formula that divides the total number of enlisted students by the number of distinct organizations.\n3. Count all `name` values in `enlist` to obtain the total number of enlisted students.\n4. Count distinct `organ` values in `enlist` to obtain the total number of unique organizations.\n5. Cast the student count to a real number and divide it by the distinct organization count to avoid integer division and yield a precise average.\n6. Return the result as a single column named `avg_enlisted_per_organ`.", + "steps": [ + "Use only the `enlist` table, since it contains every student name and the organization they enlisted in.", + "Map the required average to the formula that divides the total number of enlisted students by the number of distinct organizations.", + "Count all `name` values in `enlist` to obtain the total number of enlisted students.", + "Count distinct `organ` values in `enlist` to obtain the total number of unique organizations.", + "Cast the student count to a real number and divide it by the distinct organization count to avoid integer division and yield a precise average.", + "Return the result as a single column named `avg_enlisted_per_organ`." + ] + }, + "revisql-train:4488": { + "raw": "1. Use the person table as the master list of all student names.\n2. Map the external knowledge that bankruptcy status is recorded in filed_for_bankrupcy, so students not in that table did not file.\n3. Form a subquery to retrieve every name value from filed_for_bankrupcy.\n4. Filter the person table by keeping only names that are NOT IN that subquery.\n5. Return only the name column in the final result.", + "steps": [ + "Use the person table as the master list of all student names.", + "Map the external knowledge that bankruptcy status is recorded in filed_for_bankrupcy, so students not in that table did not file.", + "Form a subquery to retrieve every name value from filed_for_bankrupcy.", + "Filter the person table by keeping only names that are NOT IN that subquery.", + "Return only the name column in the final result." + ] + }, + "revisql-train:449": { + "raw": "1. Identify that production company names are stored in the `company_name` column of the `production_company` table, mapping the external knowledge phrase \"names of the production companies\" to this column.\n2. Join `production_company` with `movie_company` on the `company_id` key to link each company to all of its associated movies.\n3. Group the joined results by `company_id` so that every movie belonging to the same company is aggregated into a single row.\n4. Apply a HAVING condition that counts the number of `movie_id` entries per group and keeps only those groups where the count is greater than or equal to 200, translating the \"at least 200 movies\" requirement into this aggregate filter.\n5. Return only the `company_name` column for the companies that satisfy the threshold.", + "steps": [ + "Identify that production company names are stored in the `company_name` column of the `production_company` table, mapping the external knowledge phrase \"names of the production companies\" to this column.", + "Join `production_company` with `movie_company` on the `company_id` key to link each company to all of its associated movies.", + "Group the joined results by `company_id` so that every movie belonging to the same company is aggregated into a single row.", + "Apply a HAVING condition that counts the number of `movie_id` entries per group and keeps only those groups where the count is greater than or equal to 200, translating the \"at least 200 movies\" requirement into this aggregate filter.", + "Return only the `company_name` column for the companies that satisfy the threshold." + ] + }, + "revisql-train:4493": { + "raw": "1. Identify the `unemployed` and `filed_for_bankrupcy` tables as the relevant sources, since both track student status by `name`.\n2. Inner join the two tables on their `name` columns to find the intersection of students present in both records.\n3. Apply the external knowledge that the desired population is exactly the overlap of `unemployed.name` with `filed_for_bankrupcy.name`, which the inner join enforces.\n4. Count the `name` values from the `unemployed` table to get the total number of matching students.\n5. Return only that count column as the final answer.", + "steps": [ + "Identify the `unemployed` and `filed_for_bankrupcy` tables as the relevant sources, since both track student status by `name`.", + "Inner join the two tables on their `name` columns to find the intersection of students present in both records.", + "Apply the external knowledge that the desired population is exactly the overlap of `unemployed.name` with `filed_for_bankrupcy.name`, which the inner join enforces.", + "Count the `name` values from the `unemployed` table to get the total number of matching students.", + "Return only that count column as the final answer." + ] + }, + "revisql-train:450": { + "raw": "1. Join the person table to movie_cast using person_id to connect actors with their movie appearances.\n2. Filter the joined results to only rows where person_name is Harrison Ford.\n3. Count distinct movie_id values from movie_cast to ensure each movie is counted only once.\n4. Return that single aggregated count as the final result.", + "steps": [ + "Join the person table to movie_cast using person_id to connect actors with their movie appearances.", + "Filter the joined results to only rows where person_name is Harrison Ford.", + "Count distinct movie_id values from movie_cast to ensure each movie is counted only once.", + "Return that single aggregated count as the final result." + ] + }, + "revisql-train:4504": { + "raw": "1. Recognize that \"disability breakdown\" means counting disabled students, so the query requires the `enrolled` and `disabled` tables.\n2. Join `enrolled` with `disabled` on the `name` column to retain only students who are both enrolled and marked as disabled.\n3. Group the joined results by the `school` column from `enrolled` to aggregate per school.\n4. Count the `name` values within each school group to produce the disability breakdown figure.\n5. Return the `school` name and the resulting count as the final columns.", + "steps": [ + "Recognize that \"disability breakdown\" means counting disabled students, so the query requires the `enrolled` and `disabled` tables.", + "Join `enrolled` with `disabled` on the `name` column to retain only students who are both enrolled and marked as disabled.", + "Group the joined results by the `school` column from `enrolled` to aggregate per school.", + "Count the `name` values within each school group to produce the disability breakdown figure.", + "Return the `school` name and the resulting count as the final columns." + ] + }, + "revisql-train:4506": { + "raw": "1. Join the `person` table with `enrolled` and `enlist` on the `name` column to gather each student's schools and organizations.\n2. Group the combined results by `person.name` to evaluate each student individually.\n3. Filter the groups with a HAVING condition that COUNT(DISTINCT `enrolled`.`school`) equals 2, corresponding to \"enrolled in exactly two schools\".\n4. Add a second HAVING condition that COUNT(DISTINCT `enlist`.`organ`) equals 2, corresponding to \"two organizations\".\n5. Return only the `name` column from the `person` table as the final output.", + "steps": [ + "Join the `person` table with `enrolled` and `enlist` on the `name` column to gather each student's schools and organizations.", + "Group the combined results by `person.name` to evaluate each student individually.", + "Filter the groups with a HAVING condition that COUNT(DISTINCT `enrolled`.`school`) equals 2, corresponding to \"enrolled in exactly two schools\".", + "Add a second HAVING condition that COUNT(DISTINCT `enlist`.`organ`) equals 2, corresponding to \"two organizations\".", + "Return only the `name` column from the `person` table as the final output." + ] + }, + "revisql-train:4507": { + "raw": "1. Query only the `longest_absense_from_school` table; no joins are needed because the `month` column already contains the absence durations required.\n2. Map the external percentage-difference formula to two filtered counts: count rows where `month = 0` (the baseline) and rows where `month = 9` (the comparison).\n3. Use conditional aggregation to sum 1 for `month = 0` and separately sum 1 for `month = 9` within the same SELECT, producing both counts in one pass.\n4. Subtract the month-9 count from the month-0 count, cast that difference to a real number, multiply by 100, and divide by the month-0 count to compute the percentage decrease relative to the baseline.\n5. Return a single unnamed numeric column containing the final percentage decrease value.", + "steps": [ + "Query only the `longest_absense_from_school` table; no joins are needed because the `month` column already contains the absence durations required.", + "Map the external percentage-difference formula to two filtered counts: count rows where `month = 0` (the baseline) and rows where `month = 9` (the comparison).", + "Use conditional aggregation to sum 1 for `month = 0` and separately sum 1 for `month = 9` within the same SELECT, producing both counts in one pass.", + "Subtract the month-9 count from the month-0 count, cast that difference to a real number, multiply by 100, and divide by the month-0 count to compute the percentage decrease relative to the baseline.", + "Return a single unnamed numeric column containing the final percentage decrease value." + ] + }, + "revisql-train:4508": { + "raw": "1. Left join enrolled to filed_for_bankrupcy on the name column to keep every student and match those with a bankruptcy record.\n2. Group the joined data by the school column from enrolled.\n3. For each school, compute total enrolled students as the count of all rows and bankruptcy filings as the count of matched names from filed_for_bankrupcy.\n4. Find the maximum value among those total enrollment counts, applying the external knowledge that highest enrollment means the max of per-school counts.\n5. Restrict the results to only the school or schools whose total enrollment equals that maximum.\n6. Output the school name and the number of students who filed for bankruptcy.", + "steps": [ + "Left join enrolled to filed_for_bankrupcy on the name column to keep every student and match those with a bankruptcy record.", + "Group the joined data by the school column from enrolled.", + "For each school, compute total enrolled students as the count of all rows and bankruptcy filings as the count of matched names from filed_for_bankrupcy.", + "Find the maximum value among those total enrollment counts, applying the external knowledge that highest enrollment means the max of per-school counts.", + "Restrict the results to only the school or schools whose total enrollment equals that maximum.", + "Output the school name and the number of students who filed for bankruptcy." + ] + }, + "revisql-train:451": { + "raw": "1. Join the movie, movie_cast, and person tables on movie_id and person_id to link each movie with its cast members' names.\n2. Filter the person table to only rows where person_name is 'Jamie Foxx'.\n3. Using the same joined tables and filter, compute the maximum release_date to determine the most recent movie, applying the external knowledge that most recent means max(release_date).\n4. Retain only the movie row(s) whose release_date equals that maximum value.\n5. Return the title column from the movie table.", + "steps": [ + "Join the movie, movie_cast, and person tables on movie_id and person_id to link each movie with its cast members' names.", + "Filter the person table to only rows where person_name is 'Jamie Foxx'.", + "Using the same joined tables and filter, compute the maximum release_date to determine the most recent movie, applying the external knowledge that most recent means max(release_date).", + "Retain only the movie row(s) whose release_date equals that maximum value.", + "Return the title column from the movie table." + ] + }, + "revisql-train:4510": { + "raw": "1. Start with the `enlist` and `enrolled` tables, since the question requires both organizational affiliation and school enrollment.\n2. Join them on the shared `name` key to intersect the two sets of students.\n3. Filter the `enrolled` side to rows where `school` equals `'occ'`, per the external knowledge mapping.\n4. Filter the `enlist` side to rows where `organ` equals `'fire_department'`, since \"department\" maps to the `organ` column.\n5. Return the distinct `name` column to list each qualifying student once.", + "steps": [ + "Start with the `enlist` and `enrolled` tables, since the question requires both organizational affiliation and school enrollment.", + "Join them on the shared `name` key to intersect the two sets of students.", + "Filter the `enrolled` side to rows where `school` equals `'occ'`, per the external knowledge mapping.", + "Filter the `enlist` side to rows where `organ` equals `'fire_department'`, since \"department\" maps to the `organ` column.", + "Return the distinct `name` column to list each qualifying student once." + ] + }, + "revisql-train:4514": { + "raw": "1. Start from the filed_for_bankrupcy table because the question only concerns students who filed for bankruptcy.\n2. Left join the male table on the name column; a match identifies a male student and the absence of a match identifies a female student per the external knowledge.\n3. Count the non-null joined names from male to compute the number of male students who filed for bankruptcy.\n4. Sum the rows where the joined male name is null to compute the number of female students who filed for bankruptcy.\n5. Subtract the female count from the male count and return that single calculated difference value as the sole output column.", + "steps": [ + "Start from the filed_for_bankrupcy table because the question only concerns students who filed for bankruptcy.", + "Left join the male table on the name column; a match identifies a male student and the absence of a match identifies a female student per the external knowledge.", + "Count the non-null joined names from male to compute the number of male students who filed for bankruptcy.", + "Sum the rows where the joined male name is null to compute the number of female students who filed for bankruptcy.", + "Subtract the female count from the male count and return that single calculated difference value as the sole output column." + ] + }, + "revisql-train:4532": { + "raw": "1. Start from the `enlist` table and left join `male` on the `name` column to check whether each student is male.\n2. Map \"organization\" to the `organ` column and filter to rows where `organ = 'marines'`.\n3. Apply the external rule that female students are those not present in `male`, keeping only rows where the joined `male.name` is NULL.\n4. Count distinct values of `enlist.name` and return that single aggregated figure.", + "steps": [ + "Start from the `enlist` table and left join `male` on the `name` column to check whether each student is male.", + "Map \"organization\" to the `organ` column and filter to rows where `organ = 'marines'`.", + "Apply the external rule that female students are those not present in `male`, keeping only rows where the joined `male.name` is NULL.", + "Count distinct values of `enlist.name` and return that single aggregated figure." + ] + }, + "revisql-train:4533": { + "raw": "1. Start from the person table and inner join longest_absense_from_school on the name column to retrieve each student’s absence duration in the month column.\n2. Left join the male table on name to test gender membership; apply the external knowledge that female students are defined as those whose names are not present in the male table.\n3. Filter the results to keep only rows where the joined male name is NULL, isolating female students per the external knowledge mapping.\n4. Compute the average of the month column from longest_absense_from_school across the filtered female student rows.\n5. Return the single calculated average value of the month column as the final result.", + "steps": [ + "Start from the person table and inner join longest_absense_from_school on the name column to retrieve each student’s absence duration in the month column.", + "Left join the male table on name to test gender membership; apply the external knowledge that female students are defined as those whose names are not present in the male table.", + "Filter the results to keep only rows where the joined male name is NULL, isolating female students per the external knowledge mapping.", + "Compute the average of the month column from longest_absense_from_school across the filtered female student rows.", + "Return the single calculated average value of the month column as the final result." + ] + }, + "revisql-train:4535": { + "raw": "1. Identify the no_payment_due table as the source for payment status.\n2. Map the external knowledge that the bool column encodes the status: pos means payment due and neg means no payment due.\n3. Filter on the name column for the value student299.\n4. Return only the bool column to indicate the payment status.", + "steps": [ + "Identify the no_payment_due table as the source for payment status.", + "Map the external knowledge that the bool column encodes the status: pos means payment due and neg means no payment due.", + "Filter on the name column for the value student299.", + "Return only the bool column to indicate the payment status." + ] + }, + "revisql-train:4536": { + "raw": "1. Use the `enlist` table, which links student names to the organization they joined.\n2. Filter the rows where the `organ` column equals `'air_force'`, applying the external knowledge that \"air force\" maps to that exact value.\n3. Aggregate by counting distinct values of the `name` column to avoid duplicate students.\n4. Return only that single numeric count.", + "steps": [ + "Use the `enlist` table, which links student names to the organization they joined.", + "Filter the rows where the `organ` column equals `'air_force'`, applying the external knowledge that \"air force\" maps to that exact value.", + "Aggregate by counting distinct values of the `name` column to avoid duplicate students.", + "Return only that single numeric count." + ] + }, + "revisql-train:454": { + "raw": "1. Join movie_genres with genre on genre_id to connect each movie to its genre name.\n2. Filter for rows where genre_name equals 'Horror', applying the external knowledge that horror movies map to that value.\n3. Count distinct movie_id from the movie_genres table to tally unique horror movies.\n4. Return that count as the final result.", + "steps": [ + "Join movie_genres with genre on genre_id to connect each movie to its genre name.", + "Filter for rows where genre_name equals 'Horror', applying the external knowledge that horror movies map to that value.", + "Count distinct movie_id from the movie_genres table to tally unique horror movies.", + "Return that count as the final result." + ] + }, + "revisql-train:4540": { + "raw": "1. Start with the filed_for_bankrupcy table to identify students who filed for bankruptcy.\n2. Inner join with the enrolled table on the name column to keep only students who have enrollment records.\n3. Filter the joined results to rows where enrolled.school equals 'occ', applying the external knowledge that OCC maps to that value.\n4. Count the student names from the bankruptcy table that satisfy the condition.\n5. Return the resulting count.", + "steps": [ + "Start with the filed_for_bankrupcy table to identify students who filed for bankruptcy.", + "Inner join with the enrolled table on the name column to keep only students who have enrollment records.", + "Filter the joined results to rows where enrolled.school equals 'occ', applying the external knowledge that OCC maps to that value.", + "Count the student names from the bankruptcy table that satisfy the condition.", + "Return the resulting count." + ] + }, + "revisql-train:4541": { + "raw": "1. Identify the `male` and `disabled` tables as the only relevant ones, since the question asks for disabled students who are male.\n2. Map the external knowledge to the schema: male students are listed in `male.name` and disabled students in `disabled.name`.\n3. Inner join the two tables on the `name` column to retain only students appearing in both.\n4. Count the joined `name` values to get the total number of students who are both male and disabled.\n5. Return that count.", + "steps": [ + "Identify the `male` and `disabled` tables as the only relevant ones, since the question asks for disabled students who are male.", + "Map the external knowledge to the schema: male students are listed in `male.name` and disabled students in `disabled.name`.", + "Inner join the two tables on the `name` column to retain only students appearing in both.", + "Count the joined `name` values to get the total number of students who are both male and disabled.", + "Return that count." + ] + }, + "revisql-train:4548": { + "raw": "1. Filter `longest_absense_from_school` to rows where `month = 1`, using the external knowledge that 1 month of absences maps to `month` value 1.\n2. Filter `enlist` to rows where `organ = 'air_force'`, using the external knowledge that \"department\" refers to the `organ` column and \"air force department\" means `organ = 'air_force'`.\n3. Inner join the two tables on the `name` column to keep only students satisfying both conditions.\n4. Compute the count of distinct `name` values from the joined result to get the total number of unique students.\n5. Return that single aggregated count.", + "steps": [ + "Filter `longest_absense_from_school` to rows where `month = 1`, using the external knowledge that 1 month of absences maps to `month` value 1.", + "Filter `enlist` to rows where `organ = 'air_force'`, using the external knowledge that \"department\" refers to the `organ` column and \"air force department\" means `organ = 'air_force'`.", + "Inner join the two tables on the `name` column to keep only students satisfying both conditions.", + "Compute the count of distinct `name` values from the joined result to get the total number of unique students.", + "Return that single aggregated count." + ] + }, + "revisql-train:4554": { + "raw": "1. Identify the `enlist` table as the source that records which organization each student joined.\n2. Retrieve the `name` column to answer the request for the students' names.\n3. Filter rows where the `organ` column equals `'marines'`, applying the external knowledge that \"Marines\" maps to that exact value.\n4. No table joins, aggregation, or ordering are needed; return the matching `name` values directly.", + "steps": [ + "Identify the `enlist` table as the source that records which organization each student joined.", + "Retrieve the `name` column to answer the request for the students' names.", + "Filter rows where the `organ` column equals `'marines'`, applying the external knowledge that \"Marines\" maps to that exact value.", + "No table joins, aggregation, or ordering are needed; return the matching `name` values directly." + ] + }, + "revisql-train:4557": { + "raw": "1. Use the `enlist` table, which links each student (`name`) to the organization they joined (`organ`).\n2. Map the external knowledge so that “name of the organization” refers to the `organ` column and “most of the students are enlisted in” means the organization with the highest count of distinct students.\n3. Group all rows in `enlist` by `organ` and compute the number of distinct `name` values in each group to tally unique students per organization.\n4. Identify the largest distinct-student count across all organizations to establish the maximum.\n5. Keep only the group(s) whose distinct-student count equals that maximum value.\n6. Return the `organ` column for the qualifying organization(s).", + "steps": [ + "Use the `enlist` table, which links each student (`name`) to the organization they joined (`organ`).", + "Map the external knowledge so that “name of the organization” refers to the `organ` column and “most of the students are enlisted in” means the organization with the highest count of distinct students.", + "Group all rows in `enlist` by `organ` and compute the number of distinct `name` values in each group to tally unique students per organization.", + "Identify the largest distinct-student count across all organizations to establish the maximum.", + "Keep only the group(s) whose distinct-student count equals that maximum value.", + "Return the `organ` column for the qualifying organization(s)." + ] + }, + "revisql-train:4558": { + "raw": "1. Select the `longest_absense_from_school` table, which stores each student's absence duration in the `month` column; no joins are needed.\n2. Apply the external knowledge that \"absences of no more than 3 months\" maps to the filter condition `month <= 3`.\n3. Count the `name` column to compute the total number of students meeting that condition.\n4. Return only the aggregated count column, `COUNT(name)`.", + "steps": [ + "Select the `longest_absense_from_school` table, which stores each student's absence duration in the `month` column; no joins are needed.", + "Apply the external knowledge that \"absences of no more than 3 months\" maps to the filter condition `month <= 3`.", + "Count the `name` column to compute the total number of students meeting that condition.", + "Return only the aggregated count column, `COUNT(name)`." + ] + }, + "revisql-train:4560": { + "raw": "1. Start from the enlist table to access all students who enlisted in organizations.\n2. Filter to rows where organ equals army, applying the external knowledge that Army maps to organ = army.\n3. Left join the male table on matching name to check whether each enlistee is male.\n4. Keep only rows where the joined male.name is NULL, because the external knowledge defines female students as those in enlist who are not present in male.\n5. Count distinct enlist.name values and return that aggregate as a single column named result.", + "steps": [ + "Start from the enlist table to access all students who enlisted in organizations.", + "Filter to rows where organ equals army, applying the external knowledge that Army maps to organ = army.", + "Left join the male table on matching name to check whether each enlistee is male.", + "Keep only rows where the joined male.name is NULL, because the external knowledge defines female students as those in enlist who are not present in male.", + "Count distinct enlist.name values and return that aggregate as a single column named result." + ] + }, + "revisql-train:4562": { + "raw": "1. Start from the `disabled` table to get the names of all disabled students.\n2. Join with `longest_absense_from_school` on the `name` column to bring in each student's absence duration.\n3. Filter the joined rows to only those where `month` equals 0, applying the external knowledge that zero absences corresponds to `month = 0`.\n4. Count the student names in the filtered result to get the total number.\n5. Return that single count value.", + "steps": [ + "Start from the `disabled` table to get the names of all disabled students.", + "Join with `longest_absense_from_school` on the `name` column to bring in each student's absence duration.", + "Filter the joined rows to only those where `month` equals 0, applying the external knowledge that zero absences corresponds to `month = 0`.", + "Count the student names in the filtered result to get the total number.", + "Return that single count value." + ] + }, + "revisql-train:4568": { + "raw": "1. Use the tables longest_absense_from_school, filed_for_bankrupcy, and enlist to check absence duration, bankruptcy status, and organization.\n2. Join all three tables on the name column to keep only students appearing in every table.\n3. Filter longest_absense_from_school to rows where month is less than or equal to 6, mapping \"absence of no more than 6 months\" to the month column.\n4. Filter enlist to rows where organ equals fire_department, mapping \"fire department\" to the organ column.\n5. Count distinct name values and return that single aggregated column.", + "steps": [ + "Use the tables longest_absense_from_school, filed_for_bankrupcy, and enlist to check absence duration, bankruptcy status, and organization.", + "Join all three tables on the name column to keep only students appearing in every table.", + "Filter longest_absense_from_school to rows where month is less than or equal to 6, mapping \"absence of no more than 6 months\" to the month column.", + "Filter enlist to rows where organ equals fire_department, mapping \"fire department\" to the organ column.", + "Count distinct name values and return that single aggregated column." + ] + }, + "revisql-train:4569": { + "raw": "1. Start with the `disabled` table to establish the set of disabled students.\n2. Join `longest_absense_from_school` on the `name` column to access each student's absence duration.\n3. Apply the external knowledge that zero absences means `month` = 0, keeping only rows matching that filter.\n4. Exclude any student whose `name` appears in the `unemployed` table, since employed disabled students are defined as those in `disabled` who are not in `unemployed`.\n5. Return `COUNT(*)` as the single output column representing the total number of qualifying students.", + "steps": [ + "Start with the `disabled` table to establish the set of disabled students.", + "Join `longest_absense_from_school` on the `name` column to access each student's absence duration.", + "Apply the external knowledge that zero absences means `month` = 0, keeping only rows matching that filter.", + "Exclude any student whose `name` appears in the `unemployed` table, since employed disabled students are defined as those in `disabled` who are not in `unemployed`.", + "Return `COUNT(*)` as the single output column representing the total number of qualifying students." + ] + }, + "revisql-train:457": { + "raw": "1. Target the movie_crew table, which contains the movie_id, person_id, department_id, and job columns needed to link a movie, its crew, and their department roles.\n2. Apply filters using the external knowledge mappings: restrict movie_id to 19 for Movie No. 19 and department_id to 7 for Department No. 7.\n3. For the first result column, count distinct person_id values to get the unique number of people, naming it num_people.\n4. For the second result column, aggregate distinct job values into a single comma-separated list, naming it jobs.\n5. Return exactly these two columns as the final output.", + "steps": [ + "Target the movie_crew table, which contains the movie_id, person_id, department_id, and job columns needed to link a movie, its crew, and their department roles.", + "Apply filters using the external knowledge mappings: restrict movie_id to 19 for Movie No. 19 and department_id to 7 for Department No. 7.", + "For the first result column, count distinct person_id values to get the unique number of people, naming it num_people.", + "For the second result column, aggregate distinct job values into a single comma-separated list, naming it jobs.", + "Return exactly these two columns as the final output." + ] + }, + "revisql-train:4582": { + "raw": "1. Target the Answer table because it contains every answer row tied to both a SurveyID and a QuestionID.\n2. Filter rows to SurveyID = 2014, using the external knowledge that the year 2014 maps directly to the survey identifier.\n3. Group the filtered rows by QuestionID to tally the number of answers received per individual question.\n4. Keep only groups having COUNT(*) greater than 200, which isolates questions that received more than 200 answers.\n5. Wrap the grouped results in a derived table and select COUNT(*) as num_questions to return the total count of qualifying questions.", + "steps": [ + "Target the Answer table because it contains every answer row tied to both a SurveyID and a QuestionID.", + "Filter rows to SurveyID = 2014, using the external knowledge that the year 2014 maps directly to the survey identifier.", + "Group the filtered rows by QuestionID to tally the number of answers received per individual question.", + "Keep only groups having COUNT(*) greater than 200, which isolates questions that received more than 200 answers.", + "Wrap the grouped results in a derived table and select COUNT(*) as num_questions to return the total count of qualifying questions." + ] + }, + "revisql-train:4587": { + "raw": "1. Join the Question and Answer tables on questionid equal to QuestionID to link each question with its corresponding answers.\n2. Filter the Question table to only rows where questiontext is exactly \"Any additional notes or comments\".\n3. Filter the Answer table to only rows where SurveyID equals 2014.\n4. Exclude null-equivalent answers by requiring AnswerText not equal to -1, per the external knowledge mapping for non-null answers.\n5. Return the AnswerText column from the Answer table as the final result.", + "steps": [ + "Join the Question and Answer tables on questionid equal to QuestionID to link each question with its corresponding answers.", + "Filter the Question table to only rows where questiontext is exactly \"Any additional notes or comments\".", + "Filter the Answer table to only rows where SurveyID equals 2014.", + "Exclude null-equivalent answers by requiring AnswerText not equal to -1, per the external knowledge mapping for non-null answers.", + "Return the AnswerText column from the Answer table as the final result." + ] + }, + "revisql-train:4605": { + "raw": "1. Join the Answer table to the Question table on Answer.QuestionID matching Question.questionid.\n2. Filter Question.questiontext to the exact string \"What US state or territory do you work in?\".\n3. Apply the external knowledge mapping to filter Answer.AnswerText to the value 'Kansas'.\n4. Count UserID from the Answer table to compute the number of respondents.\n5. Return only that count column.", + "steps": [ + "Join the Answer table to the Question table on Answer.QuestionID matching Question.questionid.", + "Filter Question.questiontext to the exact string \"What US state or territory do you work in?\".", + "Apply the external knowledge mapping to filter Answer.AnswerText to the value 'Kansas'.", + "Count UserID from the Answer table to compute the number of respondents.", + "Return only that count column." + ] + }, + "revisql-train:4606": { + "raw": "1. Join the Answer table to the Question table on QuestionID matching questionid to connect answer rows with their question text.\n2. Filter the Question table to only the row where questiontext is \"Any additional notes or comments\".\n3. Apply the external knowledge that \"wrote comments\" means AnswerText is not -1, and filter Answer.AnswerText != -1.\n4. Count the UserID values from the Answer table to get the number of people.\n5. Return that single count value as the result.", + "steps": [ + "Join the Answer table to the Question table on QuestionID matching questionid to connect answer rows with their question text.", + "Filter the Question table to only the row where questiontext is \"Any additional notes or comments\".", + "Apply the external knowledge that \"wrote comments\" means AnswerText is not -1, and filter Answer.AnswerText != -1.", + "Count the UserID values from the Answer table to get the number of people.", + "Return that single count value as the result." + ] + }, + "revisql-train:4614": { + "raw": "1. Start from the Answer table, which holds each respondent’s answers and ties them to specific surveys and questions.\n2. Filter rows to SurveyID 2016 to limit the scope to participants in the 2016 survey.\n3. Further filter rows to QuestionID 1, as external knowledge indicates this question stores age information for the 2016 survey.\n4. Convert AnswerText to an integer and retain only rows where the value is less than 25, applying the “younger than 25 years old” criterion.\n5. Count the remaining rows to return the total number of qualifying respondents.", + "steps": [ + "Start from the Answer table, which holds each respondent’s answers and ties them to specific surveys and questions.", + "Filter rows to SurveyID 2016 to limit the scope to participants in the 2016 survey.", + "Further filter rows to QuestionID 1, as external knowledge indicates this question stores age information for the 2016 survey.", + "Convert AnswerText to an integer and retain only rows where the value is less than 25, applying the “younger than 25 years old” criterion.", + "Count the remaining rows to return the total number of qualifying respondents." + ] + }, + "revisql-train:4620": { + "raw": "1. Use the Answer table and filter rows where SurveyID equals 2017 and QuestionID equals 85, applying the external knowledge that maps the 2017 survey and question number 85 directly to those columns.\n2. Group the filtered results by AnswerText so that identical responses are aggregated together.\n3. Count the rows within each group to measure popularity, then order the groups by that count in descending order.\n4. Limit the final output to the first three rows and return only the AnswerText column.", + "steps": [ + "Use the Answer table and filter rows where SurveyID equals 2017 and QuestionID equals 85, applying the external knowledge that maps the 2017 survey and question number 85 directly to those columns.", + "Group the filtered results by AnswerText so that identical responses are aggregated together.", + "Count the rows within each group to measure popularity, then order the groups by that count in descending order.", + "Limit the final output to the first three rows and return only the AnswerText column." + ] + }, + "revisql-train:4621": { + "raw": "1. Identify the `revenue` table as the sole source because it contains the `Year` and `Total` columns needed for the calculation.\n2. Map the external knowledge to two conditional sums over the `Total` column: one filtered to `Year` = 1998 and another filtered to `Year` = 1997.\n3. Use conditional aggregation within a single query so that only rows matching each target year contribute to their respective sums, with all other rows contributing zero.\n4. Subtract the aggregated 1997 total from the aggregated 1998 total to compute the gross difference.\n5. Return exactly one unnamed column containing the final calculated difference.", + "steps": [ + "Identify the `revenue` table as the sole source because it contains the `Year` and `Total` columns needed for the calculation.", + "Map the external knowledge to two conditional sums over the `Total` column: one filtered to `Year` = 1998 and another filtered to `Year` = 1997.", + "Use conditional aggregation within a single query so that only rows matching each target year contribute to their respective sums, with all other rows contributing zero.", + "Subtract the aggregated 1997 total from the aggregated 1998 total to compute the gross difference.", + "Return exactly one unnamed column containing the final calculated difference." + ] + }, + "revisql-train:4624": { + "raw": "1. Identify that the `director` table contains movie names paired with directors, and the `characters` table contains movie titles paired with their villains.\n2. Join `director` to `characters` by matching the movie name: `director.name` equals `characters.movie_title`.\n3. Use the external knowledge to filter the `director` column to the value 'Wolfgang Reitherman'.\n4. Exclude any rows where the `villian` field is null, ensuring only movies with an actual villain are listed.\n5. Return the `villian` column from the `characters` table as the final result.", + "steps": [ + "Identify that the `director` table contains movie names paired with directors, and the `characters` table contains movie titles paired with their villains.", + "Join `director` to `characters` by matching the movie name: `director.name` equals `characters.movie_title`.", + "Use the external knowledge to filter the `director` column to the value 'Wolfgang Reitherman'.", + "Exclude any rows where the `villian` field is null, ensuring only movies with an actual villain are listed.", + "Return the `villian` column from the `characters` table as the final result." + ] + }, + "revisql-train:4632": { + "raw": "1. Use movies_total_gross for movie titles and MPAA ratings, and director for director names.\n2. Inner join the two tables on movie_title equal to name.\n3. Apply the external knowledge to filter the director column to 'Wolfgang Reitherman'.\n4. Apply the external knowledge to filter the MPAA_rating column to 'G' for general audience.\n5. Return only the movie_title column without any aggregation or ordering.", + "steps": [ + "Use movies_total_gross for movie titles and MPAA ratings, and director for director names.", + "Inner join the two tables on movie_title equal to name.", + "Apply the external knowledge to filter the director column to 'Wolfgang Reitherman'.", + "Apply the external knowledge to filter the MPAA_rating column to 'G' for general audience.", + "Return only the movie_title column without any aggregation or ordering." + ] + }, + "revisql-train:4633": { + "raw": "1. Join movies_total_gross to characters on the movie_title column to associate each movie's financial performance with its villain.\n2. Apply the external knowledge that \"most popular\" means the movie with the highest total_gross, which you will isolate by sorting rather than aggregating.\n3. Clean the total_gross text values by removing commas and dollar signs, then cast the result to an integer so the amounts sort numerically.\n4. Order the joined rows by that numeric total_gross in descending order and restrict the result set to the single top row.\n5. Return the villian column from the characters table.", + "steps": [ + "Join movies_total_gross to characters on the movie_title column to associate each movie's financial performance with its villain.", + "Apply the external knowledge that \"most popular\" means the movie with the highest total_gross, which you will isolate by sorting rather than aggregating.", + "Clean the total_gross text values by removing commas and dollar signs, then cast the result to an integer so the amounts sort numerically.", + "Order the joined rows by that numeric total_gross in descending order and restrict the result set to the single top row.", + "Return the villian column from the characters table." + ] + }, + "revisql-train:4635": { + "raw": "1. Identify the `characters` table as the source that links movies to their roles, containing both `movie_title` and `villian`.\n2. Map the question's movie name \"Beauty and the Beast\" to the `movie_title` column value using the external knowledge.\n3. Filter the `characters` table to the single row where `movie_title` is exactly 'Beauty and the Beast'.\n4. Return only the `villian` column from that filtered row as the answer.", + "steps": [ + "Identify the `characters` table as the source that links movies to their roles, containing both `movie_title` and `villian`.", + "Map the question's movie name \"Beauty and the Beast\" to the `movie_title` column value using the external knowledge.", + "Filter the `characters` table to the single row where `movie_title` is exactly 'Beauty and the Beast'.", + "Return only the `villian` column from that filtered row as the answer." + ] + }, + "revisql-train:4636": { + "raw": "1. Use the characters table since it stores the relationship between heroes and movie titles.\n2. Map the question's \"movie\" to the movie_title column, which will be the output field.\n3. Map the character \"Robin Hood\" to the hero column using the external knowledge that the main character is recorded there.\n4. Filter the rows to only those where hero equals 'Robin Hood'.\n5. Return the movie_title from the matching row.", + "steps": [ + "Use the characters table since it stores the relationship between heroes and movie titles.", + "Map the question's \"movie\" to the movie_title column, which will be the output field.", + "Map the character \"Robin Hood\" to the hero column using the external knowledge that the main character is recorded there.", + "Filter the rows to only those where hero equals 'Robin Hood'.", + "Return the movie_title from the matching row." + ] + }, + "revisql-train:4639": { + "raw": "1. Identify that `characters` holds the `hero` and `movie_title`, while `movies_total_gross` holds the `total_gross` and `movie_title`.\n2. Join `characters` with `movies_total_gross` on their shared `movie_title` key to connect each hero to the corresponding gross.\n3. Apply a filter requiring `total_gross` to exactly match the string '$222,527,828'.\n4. Return the `hero` column from the `characters` side of the join.", + "steps": [ + "Identify that `characters` holds the `hero` and `movie_title`, while `movies_total_gross` holds the `total_gross` and `movie_title`.", + "Join `characters` with `movies_total_gross` on their shared `movie_title` key to connect each hero to the corresponding gross.", + "Apply a filter requiring `total_gross` to exactly match the string '$222,527,828'.", + "Return the `hero` column from the `characters` side of the join." + ] + }, + "revisql-train:4643": { + "raw": "1. Use the `director` table for director names and the `voice-actors` table for casting and movie information.\n2. Join the two tables on the movie title by matching `director.name` to `voice-actors.movie`.\n3. Filter to rows where `voice-actors.character` equals \"Aunt Sarah\" and `voice-actors.voice-actor` equals \"Verna Felton\".\n4. Return the `director` column from the `director` table.", + "steps": [ + "Use the `director` table for director names and the `voice-actors` table for casting and movie information.", + "Join the two tables on the movie title by matching `director.name` to `voice-actors.movie`.", + "Filter to rows where `voice-actors.character` equals \"Aunt Sarah\" and `voice-actors.voice-actor` equals \"Verna Felton\".", + "Return the `director` column from the `director` table." + ] + }, + "revisql-train:4644": { + "raw": "1. Identify that the `characters` table holds the `release_date` and `movie_title`, while the `voice-actors` table links characters and voice actors to movies.\n2. Join `characters` to `voice-actors` on `movie_title` equals `movie` to connect release dates with casting information.\n3. Filter the `voice-actors` rows to the character named \"Hyacinth Hippo\".\n4. Further filter those rows to the voice actor named \"Tress MacNeille\".\n5. Return the single `release_date` column from the `characters` table.", + "steps": [ + "Identify that the `characters` table holds the `release_date` and `movie_title`, while the `voice-actors` table links characters and voice actors to movies.", + "Join `characters` to `voice-actors` on `movie_title` equals `movie` to connect release dates with casting information.", + "Filter the `voice-actors` rows to the character named \"Hyacinth Hippo\".", + "Further filter those rows to the voice actor named \"Tress MacNeille\".", + "Return the single `release_date` column from the `characters` table." + ] + }, + "revisql-train:4646": { + "raw": "1. Join movies_total_gross with director on the movie title, matching director.name to movies_total_gross.movie_title.\n2. Filter for rows where the director column equals 'Wolfgang Reitherman', applying the external knowledge that this string identifies the target director.\n3. Identify the highest grossing after accounting for inflation using the inflation_adjusted_gross column, noting it is stored as formatted text.\n4. Clean that column by removing the leading dollar sign and any commas, then cast the result to a real number to enable proper numeric ordering.\n5. Order the rows by the cleaned inflation-adjusted gross in descending order and limit the result to the first row only.\n6. Return the movie_title column.", + "steps": [ + "Join movies_total_gross with director on the movie title, matching director.name to movies_total_gross.movie_title.", + "Filter for rows where the director column equals 'Wolfgang Reitherman', applying the external knowledge that this string identifies the target director.", + "Identify the highest grossing after accounting for inflation using the inflation_adjusted_gross column, noting it is stored as formatted text.", + "Clean that column by removing the leading dollar sign and any commas, then cast the result to a real number to enable proper numeric ordering.", + "Order the rows by the cleaned inflation-adjusted gross in descending order and limit the result to the first row only.", + "Return the movie_title column." + ] + }, + "revisql-train:4647": { + "raw": "1. Join the characters table with movies_total_gross on the movie_title column to connect hero data with genre information.\n2. Filter the characters table by release_date equal to '4-Mar-16', applying the external knowledge that 2016/3/4 maps to that date format.\n3. Filter the movies_total_gross table by genre equal to 'Adventure', applying the external knowledge mapping for adventure movies.\n4. Return the hero column from the characters table as the final answer.", + "steps": [ + "Join the characters table with movies_total_gross on the movie_title column to connect hero data with genre information.", + "Filter the characters table by release_date equal to '4-Mar-16', applying the external knowledge that 2016/3/4 maps to that date format.", + "Filter the movies_total_gross table by genre equal to 'Adventure', applying the external knowledge mapping for adventure movies.", + "Return the hero column from the characters table as the final answer." + ] + }, + "revisql-train:4648": { + "raw": "1. Join movies_total_gross and characters on the movie_title column to connect each film’s box office data with its character roles.\n2. Filter the characters table where hero equals 'Winnie the Pooh', mapping the given character name to the hero column.\n3. Convert the total_gross text values to real numbers by stripping the leading dollar sign, removing commas, and casting to REAL.\n4. Order the results by the numeric gross in descending order and limit to 1 to isolate the highest-grossing movie.\n5. Return the movie_title column.", + "steps": [ + "Join movies_total_gross and characters on the movie_title column to connect each film’s box office data with its character roles.", + "Filter the characters table where hero equals 'Winnie the Pooh', mapping the given character name to the hero column.", + "Convert the total_gross text values to real numbers by stripping the leading dollar sign, removing commas, and casting to REAL.", + "Order the results by the numeric gross in descending order and limit to 1 to isolate the highest-grossing movie.", + "Return the movie_title column." + ] + }, + "revisql-train:4656": { + "raw": "1. Inner join the director table to movies_total_gross on director.name = movies_total_gross.movie_title to connect each director with their movie's genre data.\n2. Filter the director.director column to the value 'Gary Trousdale' using the external knowledge mapping for that director.\n3. Filter the movies_total_gross.genre column to the value 'Adventure' using the external knowledge mapping for adventure movies.\n4. Group the joined results by movie name (director.name) so each distinct movie is represented by only one row, preventing duplicate counts.\n5. Count the grouped movie names and return that single aggregated count as the final result column.", + "steps": [ + "Inner join the director table to movies_total_gross on director.name = movies_total_gross.movie_title to connect each director with their movie's genre data.", + "Filter the director.director column to the value 'Gary Trousdale' using the external knowledge mapping for that director.", + "Filter the movies_total_gross.genre column to the value 'Adventure' using the external knowledge mapping for adventure movies.", + "Group the joined results by movie name (director.name) so each distinct movie is represented by only one row, preventing duplicate counts.", + "Count the grouped movie names and return that single aggregated count as the final result column." + ] + }, + "revisql-train:4657": { + "raw": "1. Join the `director` table with the `voice-actors` table on movie title, matching `director.name` to `voice-actors.movie`.\n2. Filter the joined results to only rows where `voice-actors.voice-actor` equals 'Bill Thompson'.\n3. Group by `director.director` and count distinct movies (`director.name`) to calculate how many times Bill Thompson worked with each director.\n4. In a subquery, repeat the same join and filter, group by director, order the distinct movie counts descending, and limit to the top value to find the maximum number of collaborations.\n5. Return the `director` column for any director whose distinct movie count equals that maximum value, using a HAVING clause to enforce the match.", + "steps": [ + "Join the `director` table with the `voice-actors` table on movie title, matching `director.name` to `voice-actors.movie`.", + "Filter the joined results to only rows where `voice-actors.voice-actor` equals 'Bill Thompson'.", + "Group by `director.director` and count distinct movies (`director.name`) to calculate how many times Bill Thompson worked with each director.", + "In a subquery, repeat the same join and filter, group by director, order the distinct movie counts descending, and limit to the top value to find the maximum number of collaborations.", + "Return the `director` column for any director whose distinct movie count equals that maximum value, using a HAVING clause to enforce the match." + ] + }, + "revisql-train:4659": { + "raw": "1. Join the director table to voice-actors on director.name = voice-actors.movie, and join movies_total_gross on voice-actors.movie = movies_total_gross.movie_title to connect the director and release date with the cast.\n2. Filter director.director to 'Ben Sharpsteen' and movies_total_gross.release_date to 'Feb 9, 1940' using the external knowledge mappings.\n3. Exclude rows where the voice-actors.voice-actor value is 'None'.\n4. Group the results by voice-actors.voice-actor to produce a distinct list of actors.\n5. Return only the voice-actor column.", + "steps": [ + "Join the director table to voice-actors on director.name = voice-actors.movie, and join movies_total_gross on voice-actors.movie = movies_total_gross.movie_title to connect the director and release date with the cast.", + "Filter director.director to 'Ben Sharpsteen' and movies_total_gross.release_date to 'Feb 9, 1940' using the external knowledge mappings.", + "Exclude rows where the voice-actors.voice-actor value is 'None'.", + "Group the results by voice-actors.voice-actor to produce a distinct list of actors.", + "Return only the voice-actor column." + ] + }, + "revisql-train:4669": { + "raw": "1. Map \"who voiced\" to the `voice-actor` column in the `voice-actors` table, and map \"The Rescuers\" to `movie_title` = 'The Rescuers'.\n2. Join `voice-actors` with `characters` on `movie` = `movie_title` to link each actor to the corresponding film.\n3. Filter the joined rows to only those where `movie_title` equals 'The Rescuers'.\n4. Identify the villain by matching `voice-actors.character` against `characters.villian`.\n5. Return the `voice-actor` column as the final answer.", + "steps": [ + "Map \"who voiced\" to the `voice-actor` column in the `voice-actors` table, and map \"The Rescuers\" to `movie_title` = 'The Rescuers'.", + "Join `voice-actors` with `characters` on `movie` = `movie_title` to link each actor to the corresponding film.", + "Filter the joined rows to only those where `movie_title` equals 'The Rescuers'.", + "Identify the villain by matching `voice-actors.character` against `characters.villian`.", + "Return the `voice-actor` column as the final answer." + ] + }, + "revisql-train:4675": { + "raw": "1. Select from the characters table and filter to rows where the song column is not NULL, as movies featuring a song have a non-null song value.\n2. Inner join the director table on characters.movie_title = director.name to connect each qualifying movie to its director.\n3. Group the combined results by the director column from the director table to list each director once.\n4. Return the director name column.", + "steps": [ + "Select from the characters table and filter to rows where the song column is not NULL, as movies featuring a song have a non-null song value.", + "Inner join the director table on characters.movie_title = director.name to connect each qualifying movie to its director.", + "Group the combined results by the director column from the director table to list each director once.", + "Return the director name column." + ] + }, + "revisql-train:4682": { + "raw": "1. Locate the `director` table, which pairs movie titles in the `name` column with their respective `director` values.\n2. Use the external knowledge to map the person \"Jack Kinney\" to the `director` column value 'Jack Kinney'.\n3. Filter the `director` table to rows where `director` equals 'Jack Kinney'.\n4. Return only the `name` column from those rows to obtain the list of movie titles.", + "steps": [ + "Locate the `director` table, which pairs movie titles in the `name` column with their respective `director` values.", + "Use the external knowledge to map the person \"Jack Kinney\" to the `director` column value 'Jack Kinney'.", + "Filter the `director` table to rows where `director` equals 'Jack Kinney'.", + "Return only the `name` column from those rows to obtain the list of movie titles." + ] + }, + "revisql-train:4690": { + "raw": "1. Identify `movies_total_gross` as the source for the requested title, total gross, and MPAA rating fields.\n2. Join the `characters` table on the shared `movie_title` key to access each movie's hero attribute.\n3. Filter the joined rows to only those where `characters.hero` equals 'Elsa', applying the external knowledge that Elsa is the main character.\n4. Return the columns `movie_title`, `total_gross`, and `MPAA_rating` from the gross table.", + "steps": [ + "Identify `movies_total_gross` as the source for the requested title, total gross, and MPAA rating fields.", + "Join the `characters` table on the shared `movie_title` key to access each movie's hero attribute.", + "Filter the joined rows to only those where `characters.hero` equals 'Elsa', applying the external knowledge that Elsa is the main character.", + "Return the columns `movie_title`, `total_gross`, and `MPAA_rating` from the gross table." + ] + }, + "revisql-train:4691": { + "raw": "1. Apply the external knowledge that Freddie Jones maps to the `voice-actor` column value and that title refers to `movie_title`.\n2. Filter the `voice-actors` table to the row where `voice-actor` equals 'Freddie Jones'.\n3. Inner join `characters` on `voice-actors.movie = characters.movie_title` to bring in the `release_date`.\n4. Inner join `director` on `characters.movie_title = director.name` to retrieve the movie's director.\n5. Return the movie title from `voice-actors.movie`, the `director` name, and the `release_date` from `characters`.", + "steps": [ + "Apply the external knowledge that Freddie Jones maps to the `voice-actor` column value and that title refers to `movie_title`.", + "Filter the `voice-actors` table to the row where `voice-actor` equals 'Freddie Jones'.", + "Inner join `characters` on `voice-actors.movie = characters.movie_title` to bring in the `release_date`.", + "Inner join `director` on `characters.movie_title = director.name` to retrieve the movie's director.", + "Return the movie title from `voice-actors.movie`, the `director` name, and the `release_date` from `characters`." + ] + }, + "revisql-train:4693": { + "raw": "1. Inner join movies_total_gross and director on movie_title = name to consider only movies that have a recorded director.\n2. Convert the total_gross text to a real number for ranking by trimming the '$' sign, removing commas, and casting to REAL.\n3. In a subquery on that same join, order by the numeric total_gross descending and limit to 1 to capture the original total_gross string of the highest-grossing directed movie.\n4. In the outer query, filter the joined rows where total_gross equals that subquery result to retrieve every movie tied for the top gross.\n5. Return the director column.", + "steps": [ + "Inner join movies_total_gross and director on movie_title = name to consider only movies that have a recorded director.", + "Convert the total_gross text to a real number for ranking by trimming the '$' sign, removing commas, and casting to REAL.", + "In a subquery on that same join, order by the numeric total_gross descending and limit to 1 to capture the original total_gross string of the highest-grossing directed movie.", + "In the outer query, filter the joined rows where total_gross equals that subquery result to retrieve every movie tied for the top gross.", + "Return the director column." + ] + }, + "revisql-train:4694": { + "raw": "1. Identify that the `voice-actors` table provides the `voice-actor` names and the `characters` table provides the `villian` names.\n2. Inner join `voice-actors` to `characters` on `voice-actors.movie = characters.movie_title` to link each actor to the corresponding film’s villain.\n3. Filter the joined results to rows where `characters.movie_title` equals the string 'Cinderella', using the external knowledge that this value identifies the requested movie.\n4. Return the `voice-actor` column from `voice-actors` and the `villian` column from `characters`.", + "steps": [ + "Identify that the `voice-actors` table provides the `voice-actor` names and the `characters` table provides the `villian` names.", + "Inner join `voice-actors` to `characters` on `voice-actors.movie = characters.movie_title` to link each actor to the corresponding film’s villain.", + "Filter the joined results to rows where `characters.movie_title` equals the string 'Cinderella', using the external knowledge that this value identifies the requested movie.", + "Return the `voice-actor` column from `voice-actors` and the `villian` column from `characters`." + ] + }, + "revisql-train:4699": { + "raw": "1. Use the `voice-actors` table, which links characters to their voice actors and movies without requiring any joins.\n2. Map the external knowledge that the movie \"Hercules\" corresponds to the `movie` column value 'Hercules'.\n3. Filter rows where `movie` equals 'Hercules'.\n4. Filter those results further where the `character` column equals 'Calliope'.\n5. Return only the `voice-actor` column as the final answer.", + "steps": [ + "Use the `voice-actors` table, which links characters to their voice actors and movies without requiring any joins.", + "Map the external knowledge that the movie \"Hercules\" corresponds to the `movie` column value 'Hercules'.", + "Filter rows where `movie` equals 'Hercules'.", + "Filter those results further where the `character` column equals 'Calliope'.", + "Return only the `voice-actor` column as the final answer." + ] + }, + "revisql-train:47": { + "raw": "1. Left join movies to ratings on movie_id while requiring rating_score to be 5, so only top ratings are attached.\n2. Filter to rows where director_name is Christopher Nolan, using the external knowledge mapping.\n3. Group by movie_id to count how many 5-star ratings each Nolan movie received.\n4. In a subquery, repeat the same left join, director filter, and grouping to compute the 5-star rating counts per movie, then order them descending and pick the highest one.\n5. Apply a HAVING clause that keeps only movie groups whose 5-star rating count equals that highest value.\n6. Return the movie_title column.", + "steps": [ + "Left join movies to ratings on movie_id while requiring rating_score to be 5, so only top ratings are attached.", + "Filter to rows where director_name is Christopher Nolan, using the external knowledge mapping.", + "Group by movie_id to count how many 5-star ratings each Nolan movie received.", + "In a subquery, repeat the same left join, director filter, and grouping to compute the 5-star rating counts per movie, then order them descending and pick the highest one.", + "Apply a HAVING clause that keeps only movie groups whose 5-star rating count equals that highest value.", + "Return the movie_title column." + ] + }, + "revisql-train:4701": { + "raw": "1. Identify the `voice-actors` table as the source that connects voice actors to movie titles.\n2. Map the external knowledge \"Jeff Bennett\" to the `voice-actor` column value 'Jeff Bennett'.\n3. Filter rows in `voice-actors` to only those where `voice-actor` equals 'Jeff Bennett'.\n4. Return the `movie` column from the filtered rows to list the matching movie titles.", + "steps": [ + "Identify the `voice-actors` table as the source that connects voice actors to movie titles.", + "Map the external knowledge \"Jeff Bennett\" to the `voice-actor` column value 'Jeff Bennett'.", + "Filter rows in `voice-actors` to only those where `voice-actor` equals 'Jeff Bennett'.", + "Return the `movie` column from the filtered rows to list the matching movie titles." + ] + }, + "revisql-train:4705": { + "raw": "1. Locate the song column in the characters table as the output field to return.\n2. Inner join the characters table with the director table on movie title, matching characters.movie_title to director.name.\n3. Map the external knowledge identifier \"Ben Sharpsteen\" to the director column in the director table.\n4. Filter the joined results to only rows where director.director equals 'Ben Sharpsteen'.\n5. Return the song value from the characters table for the matching movie.", + "steps": [ + "Locate the song column in the characters table as the output field to return.", + "Inner join the characters table with the director table on movie title, matching characters.movie_title to director.name.", + "Map the external knowledge identifier \"Ben Sharpsteen\" to the director column in the director table.", + "Filter the joined results to only rows where director.director equals 'Ben Sharpsteen'.", + "Return the song value from the characters table for the matching movie." + ] + }, + "revisql-train:4707": { + "raw": "1. Start from the `characters` table, aliased as `c`, because it contains the `villian` column needed for the answer and links to movies via `movie_title`.\n2. Join the `voice-actors` table, aliased as `v`, on `c.movie_title` = `v.movie` to associate each film with its voice cast entries.\n3. Filter the results by applying two pattern-match conditions on `v.voice-actor`, requiring the value to contain both `Scott Weinger` and `Brad Kane`.\n4. Return only the `villian` column from the `characters` table as the final output.", + "steps": [ + "Start from the `characters` table, aliased as `c`, because it contains the `villian` column needed for the answer and links to movies via `movie_title`.", + "Join the `voice-actors` table, aliased as `v`, on `c.movie_title` = `v.movie` to associate each film with its voice cast entries.", + "Filter the results by applying two pattern-match conditions on `v.voice-actor`, requiring the value to contain both `Scott Weinger` and `Brad Kane`.", + "Return only the `villian` column from the `characters` table as the final output." + ] + }, + "revisql-train:471": { + "raw": "1. Join the movie table to production_country on movie_id, then join country on country_id to link each film to its country name.\n2. Filter to movies released in 2016 by extracting the year from release_date.\n3. Compute the average revenue for American films using a conditional expression on country_name = 'United States of America', and do the same for Indian films with country_name = 'India'.\n4. Subtract the Indian average revenue from the American average revenue to calculate the gap.\n5. Return that single computed difference as the result.", + "steps": [ + "Join the movie table to production_country on movie_id, then join country on country_id to link each film to its country name.", + "Filter to movies released in 2016 by extracting the year from release_date.", + "Compute the average revenue for American films using a conditional expression on country_name = 'United States of America', and do the same for Indian films with country_name = 'India'.", + "Subtract the Indian average revenue from the American average revenue to calculate the gap.", + "Return that single computed difference as the result." + ] + }, + "revisql-train:4712": { + "raw": "1. Join the characters, director, and movies_total_gross tables, linking characters.movie_title to director.name and to movies_total_gross.movie_title so that each film is paired with its director and box-office data.\n2. Apply the date filter by extracting the last four characters of movies_total_gross.release_date and keeping only those between 1937 and 1990.\n3. Clean the movies_total_gross.total_gross values by removing the '$' sign and commas, then cast the result to REAL for numerical comparison.\n4. Use a subquery against the same 1937–1990 window to find the maximum cleaned total_gross, mapping \"most popular film\" to the highest gross.\n5. In the main query, keep only the films whose cleaned total_gross equals that subquery maximum.\n6. Return the director column from the director table.", + "steps": [ + "Join the characters, director, and movies_total_gross tables, linking characters.movie_title to director.name and to movies_total_gross.movie_title so that each film is paired with its director and box-office data.", + "Apply the date filter by extracting the last four characters of movies_total_gross.release_date and keeping only those between 1937 and 1990.", + "Clean the movies_total_gross.total_gross values by removing the '$' sign and commas, then cast the result to REAL for numerical comparison.", + "Use a subquery against the same 1937–1990 window to find the maximum cleaned total_gross, mapping \"most popular film\" to the highest gross.", + "In the main query, keep only the films whose cleaned total_gross equals that subquery maximum.", + "Return the director column from the director table." + ] + }, + "revisql-train:4716": { + "raw": "1. Start from the `characters` table and filter on `hero` = 'Elsa' to identify the target movie, applying the external knowledge that \"main character\" maps to the `hero` column.\n2. Join `voice-actors` on `movie` = `movie_title` and further filter on `character` = 'Elsa' to retrieve the voice actor for that specific role.\n3. Join `director` on `name` = `movie_title` to fetch the director associated with the same movie.\n4. Return only the `voice-actor` and `director` columns in the final result.", + "steps": [ + "Start from the `characters` table and filter on `hero` = 'Elsa' to identify the target movie, applying the external knowledge that \"main character\" maps to the `hero` column.", + "Join `voice-actors` on `movie` = `movie_title` and further filter on `character` = 'Elsa' to retrieve the voice actor for that specific role.", + "Join `director` on `name` = `movie_title` to fetch the director associated with the same movie.", + "Return only the `voice-actor` and `director` columns in the final result." + ] + }, + "revisql-train:4718": { + "raw": "1. Join characters to voice-actors on hero = character to link every main character to their voice actor.\n2. Join movies_total_gross on movie_title to bring in the genre for each movie.\n3. Count all distinct voice actors across the entire result to establish the denominator.\n4. Count distinct voice actors only from rows where the joined genre is 'Drama' to establish the numerator.\n5. Compute the percentage by dividing the drama count by the total count and multiplying by 100.0.\n6. Return exactly one column named percentage.", + "steps": [ + "Join characters to voice-actors on hero = character to link every main character to their voice actor.", + "Join movies_total_gross on movie_title to bring in the genre for each movie.", + "Count all distinct voice actors across the entire result to establish the denominator.", + "Count distinct voice actors only from rows where the joined genre is 'Drama' to establish the numerator.", + "Compute the percentage by dividing the drama count by the total count and multiplying by 100.0.", + "Return exactly one column named percentage." + ] + }, + "revisql-train:4719": { + "raw": "1. Use the `characters` table, which provides `movie_title` and the text `release_date` for every film.\n2. Apply the external knowledge pointing to `release_date`: extract the two-digit year from the last two characters, prefix it with '20' if that value is less than 20 and '19' otherwise, map the month name found in the string to a two-digit month number, and take the leading day number from the field.\n3. Assemble those pieces into an ISO-style date and convert each row’s result into a Julian day value so the earliest release can be determined numerically.\n4. Build a derived set that pairs every `movie_title` with its computed Julian day.\n5. Isolate the minimum Julian day across all rows and return only the `movie_title`(s) matching that earliest date.", + "steps": [ + "Use the `characters` table, which provides `movie_title` and the text `release_date` for every film.", + "Apply the external knowledge pointing to `release_date`: extract the two-digit year from the last two characters, prefix it with '20' if that value is less than 20 and '19' otherwise, map the month name found in the string to a two-digit month number, and take the leading day number from the field.", + "Assemble those pieces into an ISO-style date and convert each row’s result into a Julian day value so the earliest release can be determined numerically.", + "Build a derived set that pairs every `movie_title` with its computed Julian day.", + "Isolate the minimum Julian day across all rows and return only the `movie_title`(s) matching that earliest date." + ] + }, + "revisql-train:4721": { + "raw": "1. Start with the `characters` table, since it contains both the movie `release_date` and the `villian` name.\n2. Parse the textual `release_date` into a comparable date by extracting the leading day number, mapping the three-letter month abbreviation to a numeric month, and taking the last two characters as the year with a '19' or '20' prefix depending on whether that two-digit year is less than 20.\n3. Convert those extracted year-month-day components into a Julian day number so the release dates can be compared chronologically.\n4. Pair each movie’s parsed Julian date with its corresponding `villian` in a derived set.\n5. Find the minimum Julian date value across that set to identify the earliest-released movie.\n6. Return the `villian` tied to that minimum date.", + "steps": [ + "Start with the `characters` table, since it contains both the movie `release_date` and the `villian` name.", + "Parse the textual `release_date` into a comparable date by extracting the leading day number, mapping the three-letter month abbreviation to a numeric month, and taking the last two characters as the year with a '19' or '20' prefix depending on whether that two-digit year is less than 20.", + "Convert those extracted year-month-day components into a Julian day number so the release dates can be compared chronologically.", + "Pair each movie’s parsed Julian date with its corresponding `villian` in a derived set.", + "Find the minimum Julian date value across that set to identify the earliest-released movie.", + "Return the `villian` tied to that minimum date." + ] + }, + "revisql-train:4723": { + "raw": "1. Query the `voice-actors` table, as it stores the mapping between characters and their voice actors.\n2. Map the name \"Akela\" to the `character` column based on the external knowledge.\n3. Map the phrase \"which actor voices\" to the `voice-actor` column.\n4. Filter the rows to only those where `character` equals 'Akela'.\n5. Return exclusively the `voice-actor` column.", + "steps": [ + "Query the `voice-actors` table, as it stores the mapping between characters and their voice actors.", + "Map the name \"Akela\" to the `character` column based on the external knowledge.", + "Map the phrase \"which actor voices\" to the `voice-actor` column.", + "Filter the rows to only those where `character` equals 'Akela'.", + "Return exclusively the `voice-actor` column." + ] + }, + "revisql-train:4729": { + "raw": "1. Start from the `voice-actors` table, which directly contains both the `movie` titles and the `voice-actor` names; no joins to other tables are needed.\n2. Filter the `movie` column to the value 'Bambi' using the external knowledge that \"Bambi\" is the movie name in question.\n3. Compute a distinct count on the `voice-actor` column so that any voice actor appearing for multiple characters is counted only once.\n4. Return that aggregated count as the final result.", + "steps": [ + "Start from the `voice-actors` table, which directly contains both the `movie` titles and the `voice-actor` names; no joins to other tables are needed.", + "Filter the `movie` column to the value 'Bambi' using the external knowledge that \"Bambi\" is the movie name in question.", + "Compute a distinct count on the `voice-actor` column so that any voice actor appearing for multiple characters is counted only once.", + "Return that aggregated count as the final result." + ] + }, + "revisql-train:4730": { + "raw": "1. Target the `movies_total_gross` table, which contains `inflation_adjusted_gross`, `total_gross`, and `release_date`.\n2. Filter to 1995 films by checking that the last four characters of the `release_date` text equal '1995'.\n3. Map the external knowledge that the estimated inflation rate for a film is `inflation_adjusted_gross` divided by `total_gross`.\n4. Clean both gross columns before dividing: they are stored as text with '$' and commas, so trim the dollar sign, remove commas, and cast the results to real numbers.\n5. Calculate the per-film inflation rate using the cleaned values, then aggregate by averaging those rates across all qualifying rows.\n6. Return exactly one column containing that overall average inflation rate.", + "steps": [ + "Target the `movies_total_gross` table, which contains `inflation_adjusted_gross`, `total_gross`, and `release_date`.", + "Filter to 1995 films by checking that the last four characters of the `release_date` text equal '1995'.", + "Map the external knowledge that the estimated inflation rate for a film is `inflation_adjusted_gross` divided by `total_gross`.", + "Clean both gross columns before dividing: they are stored as text with '$' and commas, so trim the dollar sign, remove commas, and cast the results to real numbers.", + "Calculate the per-film inflation rate using the cleaned values, then aggregate by averaging those rates across all qualifying rows.", + "Return exactly one column containing that overall average inflation rate." + ] + }, + "revisql-train:4733": { + "raw": "1. Identify the `voice-actors` table as the only source needed, since it contains both the actors and the characters they voiced.\n2. Map the natural-language phrase \"actors who voiced\" to the `voice-actor` column per the external knowledge.\n3. Group the table by `voice-actor` so that all characters belonging to the same actor are aggregated together.\n4. Count the number of movies within each group to determine how many Disney characters the actor voiced.\n5. Apply a HAVING condition to keep only groups where that count is strictly greater than five.\n6. Return only the `voice-actor` column in the final result set.", + "steps": [ + "Identify the `voice-actors` table as the only source needed, since it contains both the actors and the characters they voiced.", + "Map the natural-language phrase \"actors who voiced\" to the `voice-actor` column per the external knowledge.", + "Group the table by `voice-actor` so that all characters belonging to the same actor are aggregated together.", + "Count the number of movies within each group to determine how many Disney characters the actor voiced.", + "Apply a HAVING condition to keep only groups where that count is strictly greater than five.", + "Return only the `voice-actor` column in the final result set." + ] + }, + "revisql-train:4739": { + "raw": "1. Target the `current` table, which stores legislator demographic and FEC registration information.\n2. Filter rows to those where `gender_bio` equals 'F', applying the external knowledge mapping for female legislators.\n3. Further restrict to legislators not registered in Federal Election Commission data by requiring `fec_id` to be NULL or an empty string, applying the external knowledge mapping for \"have not been registered.\"\n4. Compute the total with `COUNT(*)` and return that single aggregated number.", + "steps": [ + "Target the `current` table, which stores legislator demographic and FEC registration information.", + "Filter rows to those where `gender_bio` equals 'F', applying the external knowledge mapping for female legislators.", + "Further restrict to legislators not registered in Federal Election Commission data by requiring `fec_id` to be NULL or an empty string, applying the external knowledge mapping for \"have not been registered.\"", + "Compute the total with `COUNT(*)` and return that single aggregated number." + ] + }, + "revisql-train:474": { + "raw": "1. Identify that the movie_cast table holds character names and their gender_id values, while the gender table holds the actual gender labels.\n2. Join movie_cast to gender on the gender_id key to link each cast record to its corresponding gender description.\n3. Filter the movie_cast table by character_name equal to 'USAF Master Sgt. Epps', applying the external knowledge mapping of the character to that exact column value.\n4. Return only the gender column from the gender table; no aggregation or ordering is necessary.", + "steps": [ + "Identify that the movie_cast table holds character names and their gender_id values, while the gender table holds the actual gender labels.", + "Join movie_cast to gender on the gender_id key to link each cast record to its corresponding gender description.", + "Filter the movie_cast table by character_name equal to 'USAF Master Sgt. Epps', applying the external knowledge mapping of the character to that exact column value.", + "Return only the gender column from the gender table; no aggregation or ordering is necessary." + ] + }, + "revisql-train:4747": { + "raw": "1. Filter the current legislators table to only rows where opensecrets_id is NULL or an empty string, matching the external knowledge for lacking an OpenSecrets account.\n2. Join the social-media table to the current legislators table on bioguide equal to bioguide_id, keeping every current legislator from step 1.\n3. For each joined row, evaluate whether the instagram column in social-media is NULL or empty.\n4. Compute a conditional sum that adds 1 when the instagram condition is true and 0 otherwise, and return that result as a single column named count.", + "steps": [ + "Filter the current legislators table to only rows where opensecrets_id is NULL or an empty string, matching the external knowledge for lacking an OpenSecrets account.", + "Join the social-media table to the current legislators table on bioguide equal to bioguide_id, keeping every current legislator from step 1.", + "For each joined row, evaluate whether the instagram column in social-media is NULL or empty.", + "Compute a conditional sum that adds 1 when the instagram condition is true and 0 otherwise, and return that result as a single column named count." + ] + }, + "revisql-train:4749": { + "raw": "1. Filter the current table to the legislator whose official_full_name is Sherrod Brown, applying the external knowledge that this is the legislator's full name.\n2. Inner join that result with the current-terms table on current.bioguide_id equaling current-terms.bioguide to retrieve every term record for the legislator.\n3. Count the number of rows produced by the join, since each row in current-terms represents one distinct term served.\n4. Return the count as the final answer.", + "steps": [ + "Filter the current table to the legislator whose official_full_name is Sherrod Brown, applying the external knowledge that this is the legislator's full name.", + "Inner join that result with the current-terms table on current.bioguide_id equaling current-terms.bioguide to retrieve every term record for the legislator.", + "Count the number of rows produced by the join, since each row in current-terms represents one distinct term served.", + "Return the count as the final answer." + ] + }, + "revisql-train:4751": { + "raw": "1. Find Sherrod Brown in the `current` table by matching `official_full_name` to 'Sherrod Brown'.\n2. Join `current-terms` to `current` on `current-terms.bioguide` equal to `current.bioguide_id` to link the legislator to his term records.\n3. Filter the joined set to the term where `current-terms.start` equals '1993-01-05'.\n4. Return the value of the `state` column from that matching term.", + "steps": [ + "Find Sherrod Brown in the `current` table by matching `official_full_name` to 'Sherrod Brown'.", + "Join `current-terms` to `current` on `current-terms.bioguide` equal to `current.bioguide_id` to link the legislator to his term records.", + "Filter the joined set to the term where `current-terms.start` equals '1993-01-05'.", + "Return the value of the `state` column from that matching term." + ] + }, + "revisql-train:4753": { + "raw": "1. Join the `current` table to `current-terms` on `current.bioguide_id` matching `current-terms.bioguide` to pair each legislator’s birthdate with every term record.\n2. Map “born after 1960” to a WHERE filter on `current.birthday_bio` that keeps only dates strictly after '1960-12-31'.\n3. Group the joined rows by `current-terms.bioguide` so each group collects all term rows for a single legislator.\n4. Map “served for more than 6 terms” to a HAVING clause that retains only groups where the count of `bioguide` rows exceeds 6.\n5. Wrap the grouped result in a subquery to isolate the surviving `bioguide_id` values, then count them in the outer query to return a single aggregate column representing the number of qualifying legislators.", + "steps": [ + "Join the `current` table to `current-terms` on `current.bioguide_id` matching `current-terms.bioguide` to pair each legislator’s birthdate with every term record.", + "Map “born after 1960” to a WHERE filter on `current.birthday_bio` that keeps only dates strictly after '1960-12-31'.", + "Group the joined rows by `current-terms.bioguide` so each group collects all term rows for a single legislator.", + "Map “served for more than 6 terms” to a HAVING clause that retains only groups where the count of `bioguide` rows exceeds 6.", + "Wrap the grouped result in a subquery to isolate the surviving `bioguide_id` values, then count them in the outer query to return a single aggregate column representing the number of qualifying legislators." + ] + }, + "revisql-train:4756": { + "raw": "1. Target the `current` table that stores biographical data for current legislators.\n2. Filter to rows where `gender_bio` equals `'M'` using the external knowledge that \"male\" maps to that value.\n3. Count all rows that satisfy the filter to obtain the total number.\n4. Return a single column containing that count.", + "steps": [ + "Target the `current` table that stores biographical data for current legislators.", + "Filter to rows where `gender_bio` equals `'M'` using the external knowledge that \"male\" maps to that value.", + "Count all rows that satisfy the filter to obtain the total number.", + "Return a single column containing that count." + ] + }, + "revisql-train:4759": { + "raw": "1. Identify the `historical` table as the source for past legislator records.\n2. Map the term \"female\" to the column `gender_bio` with value `'F'` using the external knowledge.\n3. Filter rows in `historical` to only those where `gender_bio` equals `'F'`.\n4. Aggregate the filtered rows using `COUNT(*)` to obtain the total number of female past legislators.\n5. Return only the resulting count column.", + "steps": [ + "Identify the `historical` table as the source for past legislator records.", + "Map the term \"female\" to the column `gender_bio` with value `'F'` using the external knowledge.", + "Filter rows in `historical` to only those where `gender_bio` equals `'F'`.", + "Aggregate the filtered rows using `COUNT(*)` to obtain the total number of female past legislators.", + "Return only the resulting count column." + ] + }, + "revisql-train:4767": { + "raw": "1. Identify that the requested GovTrack.us numeric ID maps to the `govtrack` column in the `social-media` table.\n2. Identify that the legislator Chris Van Hollen is located via the `official_full_name` column in the `current` table.\n3. Join the `current` table to the `social-media` table using the legislator’s bioguide identifier: `current.bioguide_id` matches `social-media.bioguide`.\n4. Filter the joined results to rows where `current.official_full_name` equals 'Chris Van Hollen'.\n5. Return only the `govtrack` value from the matched `social-media` record.", + "steps": [ + "Identify that the requested GovTrack.us numeric ID maps to the `govtrack` column in the `social-media` table.", + "Identify that the legislator Chris Van Hollen is located via the `official_full_name` column in the `current` table.", + "Join the `current` table to the `social-media` table using the legislator’s bioguide identifier: `current.bioguide_id` matches `social-media.bioguide`.", + "Filter the joined results to rows where `current.official_full_name` equals 'Chris Van Hollen'.", + "Return only the `govtrack` value from the matched `social-media` record." + ] + }, + "revisql-train:4773": { + "raw": "1. Build a 22-row year spine covering 2000 through 2021 inclusive.\n2. Join `current-terms` to `current` on `bioguide` equal to `bioguide_id` to reach `gender_bio`.\n3. For each spine year, keep only terms whose start year is less than or equal to that year and whose end year is greater than or equal to that year (or is null), indicating the legislator was serving during that year.\n4. Filter to male legislators by requiring `gender_bio` equal to male, and to Democrats by requiring `party` equal to Democrat.\n5. Group by spine year and count distinct `bioguide_id` to obtain the number of male Democrat legislators active in each year.\n6. Compute the average of those yearly counts and return it as the single column `avg_male_dem_legislators_2000_2021`.", + "steps": [ + "Build a 22-row year spine covering 2000 through 2021 inclusive.", + "Join `current-terms` to `current` on `bioguide` equal to `bioguide_id` to reach `gender_bio`.", + "For each spine year, keep only terms whose start year is less than or equal to that year and whose end year is greater than or equal to that year (or is null), indicating the legislator was serving during that year.", + "Filter to male legislators by requiring `gender_bio` equal to male, and to Democrats by requiring `party` equal to Democrat.", + "Group by spine year and count distinct `bioguide_id` to obtain the number of male Democrat legislators active in each year.", + "Compute the average of those yearly counts and return it as the single column `avg_male_dem_legislators_2000_2021`." + ] + }, + "revisql-train:4775": { + "raw": "1. Use only the `social-media` table, since it contains both YouTube usernames and channel IDs; no joins are necessary.\n2. Map the external knowledge that 'RepWassermanSchultz' is a YouTube username to the `youtube` column.\n3. Filter rows where the `youtube` column exactly matches 'RepWassermanSchultz'.\n4. Return only the `youtube_id` column, with no aggregation or ordering needed.", + "steps": [ + "Use only the `social-media` table, since it contains both YouTube usernames and channel IDs; no joins are necessary.", + "Map the external knowledge that 'RepWassermanSchultz' is a YouTube username to the `youtube` column.", + "Filter rows where the `youtube` column exactly matches 'RepWassermanSchultz'.", + "Return only the `youtube_id` column, with no aggregation or ordering needed." + ] + }, + "revisql-train:4777": { + "raw": "1. Filter the `historical` table by `first_name` = 'Christopher', `middle_name` = 'Henderson', and `last_name` = 'Clark' to locate the legislator's record.\n2. Join `historical-terms` on `historical.bioguide_id` matching `historical-terms.bioguide` to link the person to their term-level party data.\n3. Select the `party` column from the `historical-terms` side of the join.\n4. Apply DISTINCT to the `party` values to return each unique party affiliation without duplicates across terms.", + "steps": [ + "Filter the `historical` table by `first_name` = 'Christopher', `middle_name` = 'Henderson', and `last_name` = 'Clark' to locate the legislator's record.", + "Join `historical-terms` on `historical.bioguide_id` matching `historical-terms.bioguide` to link the person to their term-level party data.", + "Select the `party` column from the `historical-terms` side of the join.", + "Apply DISTINCT to the `party` values to return each unique party affiliation without duplicates across terms." + ] + }, + "revisql-train:478": { + "raw": "1. Filter the movie table to the single row where the title column equals 'Sky Captain and the World of Tomorrow', using the external knowledge that the movie name maps to the title column.\n2. Join that result to movie_keywords on movie_id to collect all keyword_id values associated with that movie.\n3. Join those keyword_id values to the keyword table on keyword_id to access the actual keyword names.\n4. Return only the keyword_name column from the keyword table, since external knowledge indicates keywords correspond to keyword_name.", + "steps": [ + "Filter the movie table to the single row where the title column equals 'Sky Captain and the World of Tomorrow', using the external knowledge that the movie name maps to the title column.", + "Join that result to movie_keywords on movie_id to collect all keyword_id values associated with that movie.", + "Join those keyword_id values to the keyword table on keyword_id to access the actual keyword names.", + "Return only the keyword_name column from the keyword table, since external knowledge indicates keywords correspond to keyword_name." + ] + }, + "revisql-train:4790": { + "raw": "1. Start from the current-terms table, which contains the end dates and party affiliations for legislators.\n2. Filter to rows where the year extracted from the end date column equals 2009, matching the external knowledge that \"will end in 2009\" refers to the end column.\n3. Further restrict those rows to only ones where the party column equals Republican, per the external knowledge mapping.\n4. Aggregate the filtered rows with a count to compute how many legislators satisfy both conditions.\n5. Return only that single numeric count.", + "steps": [ + "Start from the current-terms table, which contains the end dates and party affiliations for legislators.", + "Filter to rows where the year extracted from the end date column equals 2009, matching the external knowledge that \"will end in 2009\" refers to the end column.", + "Further restrict those rows to only ones where the party column equals Republican, per the external knowledge mapping.", + "Aggregate the filtered rows with a count to compute how many legislators satisfy both conditions.", + "Return only that single numeric count." + ] + }, + "revisql-train:4792": { + "raw": "1. Use the `current-terms` table and filter to rows where `type` equals `'sen'` to capture all historical senators, applying the external knowledge that senator maps to `type = 'sen'`.\n2. Deduplicate by selecting distinct combinations of `bioguide` and `class` so each senator is counted only once despite multiple terms.\n3. Count the total number of distinct senators in that deduplicated set.\n4. Count how many of those distinct senators have `class` equal to `1`, applying the external knowledge that class 1 maps to `class = 1`.\n5. Compute the percentage by dividing the class-1 count by the total distinct senator count and multiplying by `100.0`, then return that single calculated percentage value.", + "steps": [ + "Use the `current-terms` table and filter to rows where `type` equals `'sen'` to capture all historical senators, applying the external knowledge that senator maps to `type = 'sen'`.", + "Deduplicate by selecting distinct combinations of `bioguide` and `class` so each senator is counted only once despite multiple terms.", + "Count the total number of distinct senators in that deduplicated set.", + "Count how many of those distinct senators have `class` equal to `1`, applying the external knowledge that class 1 maps to `class = 1`.", + "Compute the percentage by dividing the class-1 count by the total distinct senator count and multiplying by `100.0`, then return that single calculated percentage value." + ] + }, + "revisql-train:4797": { + "raw": "1. Use the `current` table for legislator names and Thomas IDs and the `social-media` table for Instagram data, joining them on `current.bioguide_id = social-media.bioguide`.\n2. Filter for legislators who have an Instagram account by requiring `social-media.instagram` is not null.\n3. Apply the Thomas ID constraint by filtering `current.thomas_id` to be less than 1000.\n4. Return exactly the columns `official_full_name` and `nickname_name` from the `current` table.", + "steps": [ + "Use the `current` table for legislator names and Thomas IDs and the `social-media` table for Instagram data, joining them on `current.bioguide_id = social-media.bioguide`.", + "Filter for legislators who have an Instagram account by requiring `social-media.instagram` is not null.", + "Apply the Thomas ID constraint by filtering `current.thomas_id` to be less than 1000.", + "Return exactly the columns `official_full_name` and `nickname_name` from the `current` table." + ] + }, + "revisql-train:480": { + "raw": "1. Start with the movie table to retrieve the title of the matching movie.\n2. Join movie_keywords on movie_id to link each movie to its associated keyword records.\n3. Join keyword on keyword_id to gain access to the keyword_name column.\n4. Filter the results to only rows where keyword_name equals 'extremis' per the external knowledge mapping.\n5. Return the title column from the movie table.", + "steps": [ + "Start with the movie table to retrieve the title of the matching movie.", + "Join movie_keywords on movie_id to link each movie to its associated keyword records.", + "Join keyword on keyword_id to gain access to the keyword_name column.", + "Filter the results to only rows where keyword_name equals 'extremis' per the external knowledge mapping.", + "Return the title column from the movie table." + ] + }, + "revisql-train:4806": { + "raw": "1. Target the `current` table, which holds the `fec_id` field representing Federal Election Commission registration status.\n2. Map \"not been registered in Federal Election Commission data\" to the filter condition where `fec_id` is NULL or `fec_id` is an empty string.\n3. Count all rows that satisfy this condition to obtain the total number of unregistered legislators.\n4. Return that count as the single output column.", + "steps": [ + "Target the `current` table, which holds the `fec_id` field representing Federal Election Commission registration status.", + "Map \"not been registered in Federal Election Commission data\" to the filter condition where `fec_id` is NULL or `fec_id` is an empty string.", + "Count all rows that satisfy this condition to obtain the total number of unregistered legislators.", + "Return that count as the single output column." + ] + }, + "revisql-train:4813": { + "raw": "1. Start from the current table to access the first_name and bioguide_id columns for each legislator.\n2. Inner join current-terms on matching bioguide_id to bioguide to bring in term-level details like state_rank.\n3. Filter to rows where state_rank equals senior, which identifies senior senators per the external knowledge.\n4. Group the results by bioguide_id to ensure each legislator is listed once.\n5. Return only the first_name column.", + "steps": [ + "Start from the current table to access the first_name and bioguide_id columns for each legislator.", + "Inner join current-terms on matching bioguide_id to bioguide to bring in term-level details like state_rank.", + "Filter to rows where state_rank equals senior, which identifies senior senators per the external knowledge.", + "Group the results by bioguide_id to ensure each legislator is listed once.", + "Return only the first_name column." + ] + }, + "revisql-train:4818": { + "raw": "1. Identify that the `current` table contains the target `opensecrets_id` and the `social-media` table contains the `youtube` handle, then join them on `current.bioguide_id` matching `social-media.bioguide`.\n2. Map the external knowledge that Bluetkemeyer corresponds to the `youtube` column in `social-media`.\n3. Filter the joined results to only rows where `youtube` equals Bluetkemeyer.\n4. Select and return solely the `opensecrets_id` column from the `current` table.", + "steps": [ + "Identify that the `current` table contains the target `opensecrets_id` and the `social-media` table contains the `youtube` handle, then join them on `current.bioguide_id` matching `social-media.bioguide`.", + "Map the external knowledge that Bluetkemeyer corresponds to the `youtube` column in `social-media`.", + "Filter the joined results to only rows where `youtube` equals Bluetkemeyer.", + "Select and return solely the `opensecrets_id` column from the `current` table." + ] + }, + "revisql-train:4823": { + "raw": "1. Map the external knowledge to the `social-media` table, recognizing that \"MaxineWaters\" corresponds to a value in the `youtube` column.\n2. Filter `social-media` to the single row where `youtube` equals 'MaxineWaters'.\n3. Join that result with the `current` table using the legislator identifier, matching `social-media.bioguide` to `current.bioguide_id`.\n4. Return the `religion_bio` column from the `current` table.", + "steps": [ + "Map the external knowledge to the `social-media` table, recognizing that \"MaxineWaters\" corresponds to a value in the `youtube` column.", + "Filter `social-media` to the single row where `youtube` equals 'MaxineWaters'.", + "Join that result with the `current` table using the legislator identifier, matching `social-media.bioguide` to `current.bioguide_id`.", + "Return the `religion_bio` column from the `current` table." + ] + }, + "revisql-train:4825": { + "raw": "1. Target the `current` table, which holds biographical attributes for legislators.\n2. Translate \"male\" into the filter `gender_bio = 'M'` per the external knowledge.\n3. Apply that filter to restrict the rows to male legislators only.\n4. Return a single aggregated value by counting all rows that pass the filter.", + "steps": [ + "Target the `current` table, which holds biographical attributes for legislators.", + "Translate \"male\" into the filter `gender_bio = 'M'` per the external knowledge.", + "Apply that filter to restrict the rows to male legislators only.", + "Return a single aggregated value by counting all rows that pass the filter." + ] + }, + "revisql-train:4829": { + "raw": "1. Use the `current` table, which stores legislator biographical details such as name and birthday.\n2. Map the requested \"full name\" to the `official_full_name` column based on the external knowledge.\n3. Map the condition \"born in 1960\" to a filter on the `birthday_bio` column using the pattern `LIKE '1960%'` to match any birth date in that year.\n4. Return only the `official_full_name` column for rows where the birthday filter is satisfied.", + "steps": [ + "Use the `current` table, which stores legislator biographical details such as name and birthday.", + "Map the requested \"full name\" to the `official_full_name` column based on the external knowledge.", + "Map the condition \"born in 1960\" to a filter on the `birthday_bio` column using the pattern `LIKE '1960%'` to match any birth date in that year.", + "Return only the `official_full_name` column for rows where the birthday filter is satisfied." + ] + }, + "revisql-train:483": { + "raw": "1. Filter the movie table to the single row where the title column equals 'Mad Max: Fury Road' using the external knowledge mapping for the movie name.\n2. Join the movie_crew table on movie_id to connect that movie to its crew records and access the job column for each crew member.\n3. Join the person table on person_id to translate each crew record into the corresponding person_name.\n4. Apply the external knowledge that \"crews\" maps to the person_name column and that crew roles are stored in the job column of movie_crew.\n5. Return person_name and job as the two output columns.", + "steps": [ + "Filter the movie table to the single row where the title column equals 'Mad Max: Fury Road' using the external knowledge mapping for the movie name.", + "Join the movie_crew table on movie_id to connect that movie to its crew records and access the job column for each crew member.", + "Join the person table on person_id to translate each crew record into the corresponding person_name.", + "Apply the external knowledge that \"crews\" maps to the person_name column and that crew roles are stored in the job column of movie_crew.", + "Return person_name and job as the two output columns." + ] + }, + "revisql-train:4830": { + "raw": "1. Use the `historical` table, which stores biographical fields including `first_name`, `last_name`, and `google_entity_id_id`.\n2. Filter rows with a WHERE clause requiring `first_name = 'Benjamin'` and `last_name = 'Hawkins'`.\n3. Select only the `google_entity_id_id` column to return the requested identifier.", + "steps": [ + "Use the `historical` table, which stores biographical fields including `first_name`, `last_name`, and `google_entity_id_id`.", + "Filter rows with a WHERE clause requiring `first_name = 'Benjamin'` and `last_name = 'Hawkins'`.", + "Select only the `google_entity_id_id` column to return the requested identifier." + ] + }, + "revisql-train:4841": { + "raw": "1. Use the historical table to locate the legislator and the historical-terms table to obtain term-level state and type information.\n2. Inner join historical as T1 to historical-terms as T2 on T1.bioguide_id equal to T2.bioguide.\n3. Filter T1.google_entity_id_id to the value kg:/m/02pyzk, using the external knowledge that google entity ID maps to this column and value.\n4. Return T2.state and T2.type as the final output columns, where type represents the type of term.", + "steps": [ + "Use the historical table to locate the legislator and the historical-terms table to obtain term-level state and type information.", + "Inner join historical as T1 to historical-terms as T2 on T1.bioguide_id equal to T2.bioguide.", + "Filter T1.google_entity_id_id to the value kg:/m/02pyzk, using the external knowledge that google entity ID maps to this column and value.", + "Return T2.state and T2.type as the final output columns, where type represents the type of term." + ] + }, + "revisql-train:4850": { + "raw": "1. Query only the `current-terms` table, which stores the chamber and class data for current legislators.\n2. Filter rows where `class` IS NULL, using the external knowledge that a null `class` value identifies legislators who are not senators.\n3. Aggregate with a distinct count on the `bioguide` column to ensure each legislator is counted once even if they hold multiple terms.\n4. Return a single column containing the total count of current legislators who are not senators.", + "steps": [ + "Query only the `current-terms` table, which stores the chamber and class data for current legislators.", + "Filter rows where `class` IS NULL, using the external knowledge that a null `class` value identifies legislators who are not senators.", + "Aggregate with a distinct count on the `bioguide` column to ensure each legislator is counted once even if they hold multiple terms.", + "Return a single column containing the total count of current legislators who are not senators." + ] + }, + "revisql-train:4857": { + "raw": "1. Map \"junior senators\" to state_rank = 'junior' and interpret \"in 2009\" as a term overlapping that calendar year, requiring start <= '2009-12-31' and end >= '2009-01-01'.\n2. Query current legislators by joining the `current` table to `current-terms` on bioguide_id = bioguide, applying the state_rank and date overlap filters, and select bioguide_id, first_name, and last_name.\n3. Query historical legislators with the same column selection and filters by joining the `historical` table to `historical-terms` on bioguide_id = bioguide.\n4. Combine both result sets with UNION ALL, then group by bioguide_id to deduplicate any legislator appearing in both current and historical data.\n5. Return only first_name and last_name as the final output columns.", + "steps": [ + "Map \"junior senators\" to state_rank = 'junior' and interpret \"in 2009\" as a term overlapping that calendar year, requiring start <= '2009-12-31' and end >= '2009-01-01'.", + "Query current legislators by joining the `current` table to `current-terms` on bioguide_id = bioguide, applying the state_rank and date overlap filters, and select bioguide_id, first_name, and last_name.", + "Query historical legislators with the same column selection and filters by joining the `historical` table to `historical-terms` on bioguide_id = bioguide.", + "Combine both result sets with UNION ALL, then group by bioguide_id to deduplicate any legislator appearing in both current and historical data.", + "Return only first_name and last_name as the final output columns." + ] + }, + "revisql-train:486": { + "raw": "1. Identify the `movie` table as the source for both movie titles and release dates.\n2. Project only the `title` column in the final output.\n3. Map the requirement \"released before 2000\" to the `release_date` column.\n4. Extract the year from `release_date` using STRFTIME with the %Y specifier and cast the result to an integer.\n5. Filter the rows to keep only those where the resulting year is strictly less than 2000.", + "steps": [ + "Identify the `movie` table as the source for both movie titles and release dates.", + "Project only the `title` column in the final output.", + "Map the requirement \"released before 2000\" to the `release_date` column.", + "Extract the year from `release_date` using STRFTIME with the %Y specifier and cast the result to an integer.", + "Filter the rows to keep only those where the resulting year is strictly less than 2000." + ] + }, + "revisql-train:4861": { + "raw": "1. Identify that legislator names and gender are stored in the `historical` table, while term end dates are stored in the `historical-terms` table.\n2. Join `historical` (as T1) to `historical-terms` (as T2) on `T1.bioguide_id = T2.bioguide` to link each legislator to their term records.\n3. Filter `historical-terms` to rows where the `end` column equals `'1971-01-03'`, corresponding to the term ending on the 3rd of January 1971.\n4. Filter `historical` to rows where `gender_bio` is `'F'`, applying the external knowledge that female legislator maps to `gender_bio = 'F'`.\n5. Project only the `first_name` and `last_name` columns from the `historical` table in the final result.", + "steps": [ + "Identify that legislator names and gender are stored in the `historical` table, while term end dates are stored in the `historical-terms` table.", + "Join `historical` (as T1) to `historical-terms` (as T2) on `T1.bioguide_id = T2.bioguide` to link each legislator to their term records.", + "Filter `historical-terms` to rows where the `end` column equals `'1971-01-03'`, corresponding to the term ending on the 3rd of January 1971.", + "Filter `historical` to rows where `gender_bio` is `'F'`, applying the external knowledge that female legislator maps to `gender_bio = 'F'`.", + "Project only the `first_name` and `last_name` columns from the `historical` table in the final result." + ] + }, + "revisql-train:4866": { + "raw": "1. Join `current-terms` to `current` on `bioguide` matching `bioguide_id` to restrict the results to currently serving legislators.\n2. Apply the external knowledge mapping \"senators\" to the `type` column by filtering `type` to 'sen'.\n3. Filter the `class` column to 1 to isolate election class 1 senators.\n4. Filter the `party` column to 'Republican' to include only members of that party.\n5. Count distinct values of `bioguide` to ensure each legislator is tallied once.\n6. Return a single column named `republican_class1_current` containing that count.", + "steps": [ + "Join `current-terms` to `current` on `bioguide` matching `bioguide_id` to restrict the results to currently serving legislators.", + "Apply the external knowledge mapping \"senators\" to the `type` column by filtering `type` to 'sen'.", + "Filter the `class` column to 1 to isolate election class 1 senators.", + "Filter the `party` column to 'Republican' to include only members of that party.", + "Count distinct values of `bioguide` to ensure each legislator is tallied once.", + "Return a single column named `republican_class1_current` containing that count." + ] + }, + "revisql-train:4868": { + "raw": "1. Query both the current-terms and historical-terms tables, since a term that ended in 1995 could appear in either dataset.\n2. Map the external knowledge to filters: California means state equals CA, representatives means type equals rep, and ended the term in 1995 means the end value starts with 1995.\n3. Apply those three filters to each table individually.\n4. From each filtered table, select the bioguide and end columns to identify the matching term records.\n5. Combine the two result sets using UNION ALL so every qualifying term record is included.\n6. Count all rows in the combined set and return that single aggregated number as the final answer.", + "steps": [ + "Query both the current-terms and historical-terms tables, since a term that ended in 1995 could appear in either dataset.", + "Map the external knowledge to filters: California means state equals CA, representatives means type equals rep, and ended the term in 1995 means the end value starts with 1995.", + "Apply those three filters to each table individually.", + "From each filtered table, select the bioguide and end columns to identify the matching term records.", + "Combine the two result sets using UNION ALL so every qualifying term record is included.", + "Count all rows in the combined set and return that single aggregated number as the final answer." + ] + }, + "revisql-train:487": { + "raw": "1. Start from the `movie` table to locate the row whose `title` is 'Sin City'.\n2. Join `movie_keywords` to `movie` using the common `movie_id` key to reach the associated keywords.\n3. Apply a filter restricting the results to rows where `movie.title` equals 'Sin City'.\n4. Return only the `keyword_id` column from the `movie_keywords` side of the join.", + "steps": [ + "Start from the `movie` table to locate the row whose `title` is 'Sin City'.", + "Join `movie_keywords` to `movie` using the common `movie_id` key to reach the associated keywords.", + "Apply a filter restricting the results to rows where `movie.title` equals 'Sin City'.", + "Return only the `keyword_id` column from the `movie_keywords` side of the join." + ] + }, + "revisql-train:4878": { + "raw": "1. Start from the `current-terms` table and filter to rows where `type` equals 'rep', because district assignments only apply to House representatives.\n2. Group the filtered rows by `bioguide` and compute `COUNT(DISTINCT district)`, keeping only legislators with exactly 3 distinct districts.\n3. For each legislator, calculate total years served by summing the difference between the year extracted from `end` and the year extracted from `start` across all their terms, and require that sum to equal 26.\n4. Compute the earliest start year and the latest end year per legislator, and enforce that the difference between these two years is also 26 to confirm the service was consecutive.\n5. Join the qualifying `bioguide` values to the `current` table on `bioguide_id` to retrieve the corresponding legislators.\n6. Return only the `official_full_name` column from the `current` table as the final result.", + "steps": [ + "Start from the `current-terms` table and filter to rows where `type` equals 'rep', because district assignments only apply to House representatives.", + "Group the filtered rows by `bioguide` and compute `COUNT(DISTINCT district)`, keeping only legislators with exactly 3 distinct districts.", + "For each legislator, calculate total years served by summing the difference between the year extracted from `end` and the year extracted from `start` across all their terms, and require that sum to equal 26.", + "Compute the earliest start year and the latest end year per legislator, and enforce that the difference between these two years is also 26 to confirm the service was consecutive.", + "Join the qualifying `bioguide` values to the `current` table on `bioguide_id` to retrieve the corresponding legislators.", + "Return only the `official_full_name` column from the `current` table as the final result." + ] + }, + "revisql-train:4887": { + "raw": "1. Use the `current` table, which holds static biographical attributes of legislators, and note that no joins are required.\n2. Apply the external knowledge that the question's \"religion\" maps to the `religion_bio` column.\n3. Filter to the single row where `official_full_name` equals 'Sherrod Brown'.\n4. Return only the `religion_bio` column, with no aggregation or ordering needed.", + "steps": [ + "Use the `current` table, which holds static biographical attributes of legislators, and note that no joins are required.", + "Apply the external knowledge that the question's \"religion\" maps to the `religion_bio` column.", + "Filter to the single row where `official_full_name` equals 'Sherrod Brown'.", + "Return only the `religion_bio` column, with no aggregation or ordering needed." + ] + }, + "revisql-train:489": { + "raw": "1. Map the question’s “keywords” to the `keyword_name` column in the `keyword` table, and interpret “highest popularity” as the maximum value of `popularity` in the `movie` table.\n2. Join `movie` to `movie_keywords` on `movie_id` to link each movie to its keyword records.\n3. Join `movie_keywords` to `keyword` on `keyword_id` to access the `keyword_name` values.\n4. Filter to keep only rows where the movie’s `popularity` equals the overall maximum `popularity` found in the `movie` table.\n5. Return the `keyword_name` column as the final result.", + "steps": [ + "Map the question’s “keywords” to the `keyword_name` column in the `keyword` table, and interpret “highest popularity” as the maximum value of `popularity` in the `movie` table.", + "Join `movie` to `movie_keywords` on `movie_id` to link each movie to its keyword records.", + "Join `movie_keywords` to `keyword` on `keyword_id` to access the `keyword_name` values.", + "Filter to keep only rows where the movie’s `popularity` equals the overall maximum `popularity` found in the `movie` table.", + "Return the `keyword_name` column as the final result." + ] + }, + "revisql-train:4897": { + "raw": "1. Join the `current` table to `current-terms` on `current.bioguide_id = current-terms.bioguide` to pair each legislator’s official name with every term record.\n2. Group by `current-terms.bioguide` and count the rows per legislator to calculate the total number of terms served, retaining `official_full_name` in the grouped set.\n3. Compute the maximum of those per-legislator term counts to identify the highest number of terms served by any current legislator.\n4. Filter the grouped results to only the legislator(s) whose term count equals that maximum value.\n5. Return the `official_full_name` column for the resulting legislator(s).", + "steps": [ + "Join the `current` table to `current-terms` on `current.bioguide_id = current-terms.bioguide` to pair each legislator’s official name with every term record.", + "Group by `current-terms.bioguide` and count the rows per legislator to calculate the total number of terms served, retaining `official_full_name` in the grouped set.", + "Compute the maximum of those per-legislator term counts to identify the highest number of terms served by any current legislator.", + "Filter the grouped results to only the legislator(s) whose term count equals that maximum value.", + "Return the `official_full_name` column for the resulting legislator(s)." + ] + }, + "revisql-train:4899": { + "raw": "1. Start with the `current` table for the legislator's `official_full_name` and the `social-media` table for their Facebook presence.\n2. Inner join `current` to `social-media` on `current.bioguide_id` = `social-media.bioguide`.\n3. Map the external knowledge so that the Facebook presence \"senjoniernst\" becomes a filter on `social-media.facebook`.\n4. Restrict the results to rows where `social-media.facebook` equals 'senjoniernst'.\n5. Return only the `official_full_name` column from the `current` table.", + "steps": [ + "Start with the `current` table for the legislator's `official_full_name` and the `social-media` table for their Facebook presence.", + "Inner join `current` to `social-media` on `current.bioguide_id` = `social-media.bioguide`.", + "Map the external knowledge so that the Facebook presence \"senjoniernst\" becomes a filter on `social-media.facebook`.", + "Restrict the results to rows where `social-media.facebook` equals 'senjoniernst'.", + "Return only the `official_full_name` column from the `current` table." + ] + }, + "revisql-train:4903": { + "raw": "1. Select `bioguide_id` and `gender_bio` from both the `current` and `historical` tables.\n2. Combine the two result sets with `UNION ALL` to capture every legislator record.\n3. Filter the combined records to only those where `gender_bio` equals 'F', applying the external knowledge that this value indicates female.\n4. Count distinct `bioguide_id` values so each legislator is only counted once.\n5. Return that single aggregated count as the final answer.", + "steps": [ + "Select `bioguide_id` and `gender_bio` from both the `current` and `historical` tables.", + "Combine the two result sets with `UNION ALL` to capture every legislator record.", + "Filter the combined records to only those where `gender_bio` equals 'F', applying the external knowledge that this value indicates female.", + "Count distinct `bioguide_id` values so each legislator is only counted once.", + "Return that single aggregated count as the final answer." + ] + }, + "revisql-train:4922": { + "raw": "1. Start from the `games_city` junction table, which connects Olympic games to their host cities.\n2. Join `city` on `games_city.city_id = city.id` to access the city names.\n3. Join `games` on `games_city.games_id = games.id` to access the Olympic game names.\n4. Filter rows where `city.city_name = 'London'`, applying the external knowledge that \"held in London\" maps to this column and value.\n5. Return the `games_name` column from the `games` table.", + "steps": [ + "Start from the `games_city` junction table, which connects Olympic games to their host cities.", + "Join `city` on `games_city.city_id = city.id` to access the city names.", + "Join `games` on `games_city.games_id = games.id` to access the Olympic game names.", + "Filter rows where `city.city_name = 'London'`, applying the external knowledge that \"held in London\" maps to this column and value.", + "Return the `games_name` column from the `games` table." + ] + }, + "revisql-train:4924": { + "raw": "1. Join the `games_city` table to the `city` table on `games_city.city_id = city.id` to connect each Olympic game with its host city's name.\n2. Filter the results to rows where `city.city_name` is 'London', applying the external knowledge that \"London\" maps to that exact column value.\n3. Compute `COUNT(DISTINCT games_city.games_id)` to answer \"how many times,\" using the external knowledge that this maps to counting unique game identifiers and ensuring each Olympic Games is counted only once.\n4. Return exactly one column: the resulting count of distinct games_id.", + "steps": [ + "Join the `games_city` table to the `city` table on `games_city.city_id = city.id` to connect each Olympic game with its host city's name.", + "Filter the results to rows where `city.city_name` is 'London', applying the external knowledge that \"London\" maps to that exact column value.", + "Compute `COUNT(DISTINCT games_city.games_id)` to answer \"how many times,\" using the external knowledge that this maps to counting unique game identifiers and ensuring each Olympic Games is counted only once.", + "Return exactly one column: the resulting count of distinct games_id." + ] + }, + "revisql-train:4927": { + "raw": "1. Identify that the required output is the sport name, which maps to the `sport_name` column in the `sport` table, and that the event \"Shooting Women's Trap\" maps to the `event_name` column in the `event` table.\n2. Inner join the `sport` table to the `event` table on `sport.id = event.sport_id` to link each event to its corresponding sport.\n3. Filter the joined results by matching `event.event_name` to the target event \"Shooting Women's Trap\", using a LIKE pattern that handles the apostrophe in \"Women's\".\n4. Return only the `sport_name` column from the `sport` table.", + "steps": [ + "Identify that the required output is the sport name, which maps to the `sport_name` column in the `sport` table, and that the event \"Shooting Women's Trap\" maps to the `event_name` column in the `event` table.", + "Inner join the `sport` table to the `event` table on `sport.id = event.sport_id` to link each event to its corresponding sport.", + "Filter the joined results by matching `event.event_name` to the target event \"Shooting Women's Trap\", using a LIKE pattern that handles the apostrophe in \"Women's\".", + "Return only the `sport_name` column from the `sport` table." + ] + }, + "revisql-train:4932": { + "raw": "1. Filter the person table to the single row where full_name equals 'Jessica Carolina Aguilera Aguilera'.\n2. Inner join games_competitor on person.id = games_competitor.person_id to link the athlete to every Olympic game she participated in.\n3. Apply the external knowledge that the identifier for a game is stored in the games_id column of games_competitor.\n4. Return only the games_id column from the games_competitor table as the result.", + "steps": [ + "Filter the person table to the single row where full_name equals 'Jessica Carolina Aguilera Aguilera'.", + "Inner join games_competitor on person.id = games_competitor.person_id to link the athlete to every Olympic game she participated in.", + "Apply the external knowledge that the identifier for a game is stored in the games_id column of games_competitor.", + "Return only the games_id column from the games_competitor table as the result." + ] + }, + "revisql-train:4934": { + "raw": "1. Join noc_region to person_region on noc_region.id = person_region.region_id, then join person on person_region.person_id = person.id to link athletes to their NOC regions.\n2. Filter the joined results to only rows where noc_region.region_name equals 'Sweden', applying the external knowledge that \"from Sweden\" maps to that region name value.\n3. Calculate the maximum height value from the filtered Swedish athletes, applying the external knowledge that \"tallest athlete\" maps to MAX(height).\n4. Select the person.full_name of the athlete(s) whose height equals that maximum height, applying the external knowledge that \"name\" maps to full_name.", + "steps": [ + "Join noc_region to person_region on noc_region.id = person_region.region_id, then join person on person_region.person_id = person.id to link athletes to their NOC regions.", + "Filter the joined results to only rows where noc_region.region_name equals 'Sweden', applying the external knowledge that \"from Sweden\" maps to that region name value.", + "Calculate the maximum height value from the filtered Swedish athletes, applying the external knowledge that \"tallest athlete\" maps to MAX(height).", + "Select the person.full_name of the athlete(s) whose height equals that maximum height, applying the external knowledge that \"name\" maps to full_name." + ] + }, + "revisql-train:4936": { + "raw": "1. Join the person table with games_competitor on person.id = games_competitor.person_id to link each competitor’s name to their Olympic participation records.\n2. Group by person_id and full_name, then count distinct games_id to calculate the number of unique Olympic Games each person participated in.\n3. Compute the maximum value among those participation counts to find the highest number of Games attended.\n4. Filter the grouped results to keep only the row(s) whose count equals that maximum.\n5. Return the full_name column for the remaining record(s).", + "steps": [ + "Join the person table with games_competitor on person.id = games_competitor.person_id to link each competitor’s name to their Olympic participation records.", + "Group by person_id and full_name, then count distinct games_id to calculate the number of unique Olympic Games each person participated in.", + "Compute the maximum value among those participation counts to find the highest number of Games attended.", + "Filter the grouped results to keep only the row(s) whose count equals that maximum.", + "Return the full_name column for the remaining record(s)." + ] + }, + "revisql-train:4952": { + "raw": "1. Identify that athlete participation is recorded in the games_competitor table, which links each person_id to a specific games_id.\n2. Join the games table to games_competitor on games.id = games_competitor.games_id to associate competitor records with a particular Olympic games.\n3. Filter the games table to the 1992 Summer Olympics by matching games.games_name to '1992 Summer', applying the external knowledge that maps that Olympics reference to this column value.\n4. Count distinct games_competitor.person_id values so each athlete is counted only once regardless of how many events they entered.\n5. Return only that aggregated count of distinct person_id as the final answer.", + "steps": [ + "Identify that athlete participation is recorded in the games_competitor table, which links each person_id to a specific games_id.", + "Join the games table to games_competitor on games.id = games_competitor.games_id to associate competitor records with a particular Olympic games.", + "Filter the games table to the 1992 Summer Olympics by matching games.games_name to '1992 Summer', applying the external knowledge that maps that Olympics reference to this column value.", + "Count distinct games_competitor.person_id values so each athlete is counted only once regardless of how many events they entered.", + "Return only that aggregated count of distinct person_id as the final answer." + ] + }, + "revisql-train:4959": { + "raw": "1. Join the person table to games_competitor on person.id = games_competitor.person_id, then join games_competitor to competitor_event on games_competitor.id = competitor_event.competitor_id.\n2. Filter competitor_event to keep only rows where medal_id is not null and not equal to 4, ensuring only actual won medals are counted.\n3. Group by person.id and count the remaining competitor_event rows per competitor to calculate each individual's medal total, using the external knowledge that the competitor's name maps to person.full_name.\n4. Compute the maximum value among those per-competitor medal counts, applying the external knowledge that \"won the most medals\" refers to that maximum aggregate.\n5. Return only the full_name of the competitor(s) whose medal count equals that maximum value.", + "steps": [ + "Join the person table to games_competitor on person.id = games_competitor.person_id, then join games_competitor to competitor_event on games_competitor.id = competitor_event.competitor_id.", + "Filter competitor_event to keep only rows where medal_id is not null and not equal to 4, ensuring only actual won medals are counted.", + "Group by person.id and count the remaining competitor_event rows per competitor to calculate each individual's medal total, using the external knowledge that the competitor's name maps to person.full_name.", + "Compute the maximum value among those per-competitor medal counts, applying the external knowledge that \"won the most medals\" refers to that maximum aggregate.", + "Return only the full_name of the competitor(s) whose medal count equals that maximum value." + ] + }, + "revisql-train:4961": { + "raw": "1. Start from the person table and filter on full_name = 'Chin Eei Hui' to locate the athlete.\n2. Join person to games_competitor on person_id to retrieve every Olympic participation record for that athlete.\n3. Join games_competitor to competitor_event on competitor_id to find all events the athlete entered.\n4. Join competitor_event to event on event_id, then join event to sport on sport_id; map the requested \"name of the sport\" to the sport.sport_name column per the external knowledge.\n5. Return DISTINCT sport_name so each sport appears only once in the result.", + "steps": [ + "Start from the person table and filter on full_name = 'Chin Eei Hui' to locate the athlete.", + "Join person to games_competitor on person_id to retrieve every Olympic participation record for that athlete.", + "Join games_competitor to competitor_event on competitor_id to find all events the athlete entered.", + "Join competitor_event to event on event_id, then join event to sport on sport_id; map the requested \"name of the sport\" to the sport.sport_name column per the external knowledge.", + "Return DISTINCT sport_name so each sport appears only once in the result." + ] + }, + "revisql-train:4962": { + "raw": "1. Map the question's \"name\" to the person.full_name column and \"oldest person\" to the maximum value of games_competitor.age.\n2. Join person with games_competitor on person.id = games_competitor.person_id in the outer query to connect participant names with their ages.\n3. Use a subquery that repeats the same person-games_competitor join, orders the results by age descending, and limits to the first row to capture the single highest age.\n4. Filter the outer joined result so that only rows where games_competitor.age equals the subquery's maximum age are retained.\n5. Return only the person.full_name column as the final output.", + "steps": [ + "Map the question's \"name\" to the person.full_name column and \"oldest person\" to the maximum value of games_competitor.age.", + "Join person with games_competitor on person.id = games_competitor.person_id in the outer query to connect participant names with their ages.", + "Use a subquery that repeats the same person-games_competitor join, orders the results by age descending, and limits to the first row to capture the single highest age.", + "Filter the outer joined result so that only rows where games_competitor.age equals the subquery's maximum age are retained.", + "Return only the person.full_name column as the final output." + ] + }, + "revisql-train:4967": { + "raw": "1. Start from the `competitor_event` table, which links competitors to their events.\n2. Join `event` on `event_id` to reach the event name, and join `games_competitor` on `competitor_id` to reach the person identifier.\n3. Filter rows where `event_name` equals 'Sailing Mixed 12 metres', applying the external knowledge that maps \"12 meter Mixed Sailing\" to that exact value.\n4. Aggregate by counting distinct `person_id` from `games_competitor` so each person is counted only once regardless of multiple participations.\n5. Return only that total count of unique persons.", + "steps": [ + "Start from the `competitor_event` table, which links competitors to their events.", + "Join `event` on `event_id` to reach the event name, and join `games_competitor` on `competitor_id` to reach the person identifier.", + "Filter rows where `event_name` equals 'Sailing Mixed 12 metres', applying the external knowledge that maps \"12 meter Mixed Sailing\" to that exact value.", + "Aggregate by counting distinct `person_id` from `games_competitor` so each person is counted only once regardless of multiple participations.", + "Return only that total count of unique persons." + ] + }, + "revisql-train:4969": { + "raw": "1. Join the `person`, `games_competitor`, `competitor_event`, and `event` tables using `person.id` → `games_competitor.person_id`, `games_competitor.id` → `competitor_event.competitor_id`, and `competitor_event.event_id` → `event.id`.\n2. Filter to rows where `event.event_name` equals 'Equestrianism Mixed Three-Day Event, Individual'.\n3. For the numerator, count distinct `person.id` values only where `person.gender` is 'F'.\n4. For the denominator, count distinct `person.id` values across all rows returned by that event filter.\n5. Compute the percentage by multiplying the ratio of the female count to the total count by `100.0`, and return the result as a single column named `percentage_women`.", + "steps": [ + "Join the `person`, `games_competitor`, `competitor_event`, and `event` tables using `person.id` → `games_competitor.person_id`, `games_competitor.id` → `competitor_event.competitor_id`, and `competitor_event.event_id` → `event.id`.", + "Filter to rows where `event.event_name` equals 'Equestrianism Mixed Three-Day Event, Individual'.", + "For the numerator, count distinct `person.id` values only where `person.gender` is 'F'.", + "For the denominator, count distinct `person.id` values across all rows returned by that event filter.", + "Compute the percentage by multiplying the ratio of the female count to the total count by `100.0`, and return the result as a single column named `percentage_women`." + ] + }, + "revisql-train:4978": { + "raw": "1. Filter the sport table to rows where sport_name = 'Cycling' and join to event on sport_id to isolate all cycling events.\n2. Join competitor_event on event_id to bring in medal results for those events, then restrict to medal_id = 1 to capture only gold medalists (mapping the external knowledge that gold corresponds to medal_name = 'Gold' onto the schema’s champion identifier).\n3. Join games_competitor on competitor_id to translate each winning competitor record into a person_id.\n4. Join person on person_id to retrieve the full_name of every gold medalist.\n5. Return distinct values of full_name so each gold medalist winner appears only once in the final list.", + "steps": [ + "Filter the sport table to rows where sport_name = 'Cycling' and join to event on sport_id to isolate all cycling events.", + "Join competitor_event on event_id to bring in medal results for those events, then restrict to medal_id = 1 to capture only gold medalists (mapping the external knowledge that gold corresponds to medal_name = 'Gold' onto the schema’s champion identifier).", + "Join games_competitor on competitor_id to translate each winning competitor record into a person_id.", + "Join person on person_id to retrieve the full_name of every gold medalist.", + "Return distinct values of full_name so each gold medalist winner appears only once in the final list." + ] + }, + "revisql-train:4979": { + "raw": "1. Filter the person table to the row where full_name is 'Lee Chong Wei'.\n2. Join games_competitor on person_id to connect the person to their Olympic participation records.\n3. Join competitor_event on competitor_id to obtain the medal_ids for each event entry.\n4. Join medal on medal_id to fetch the corresponding medal_name values.\n5. Exclude rows where medal_id equals 4, applying the external knowledge that only medal_id <> 4 counts as an actual medal.\n6. Return the medal_name column as the final output.", + "steps": [ + "Filter the person table to the row where full_name is 'Lee Chong Wei'.", + "Join games_competitor on person_id to connect the person to their Olympic participation records.", + "Join competitor_event on competitor_id to obtain the medal_ids for each event entry.", + "Join medal on medal_id to fetch the corresponding medal_name values.", + "Exclude rows where medal_id equals 4, applying the external knowledge that only medal_id <> 4 counts as an actual medal.", + "Return the medal_name column as the final output." + ] + }, + "revisql-train:4986": { + "raw": "1. Start with noc_region and filter to rows where region_name equals 'Philippines', applying the external knowledge mapping for the country.\n2. Join person_region on region_id to link the Philippines region to its associated person records.\n3. Join person on person_id to bring in the gender column.\n4. Filter the results to gender = 'F', applying the external knowledge mapping for female athletes.\n5. Count distinct person_id to return the total number of unique female athletes from the Philippines.", + "steps": [ + "Start with noc_region and filter to rows where region_name equals 'Philippines', applying the external knowledge mapping for the country.", + "Join person_region on region_id to link the Philippines region to its associated person records.", + "Join person on person_id to bring in the gender column.", + "Filter the results to gender = 'F', applying the external knowledge mapping for female athletes.", + "Count distinct person_id to return the total number of unique female athletes from the Philippines." + ] + }, + "revisql-train:4989": { + "raw": "1. Filter the person table to the row where full_name equals 'Clara Hughes'.\n2. Join that result with person_region on person_id to find her region_id.\n3. Filter person_region to include only rows with that same region_id.\n4. Count distinct person_id values in the filtered person_region records and return that single number.", + "steps": [ + "Filter the person table to the row where full_name equals 'Clara Hughes'.", + "Join that result with person_region on person_id to find her region_id.", + "Filter person_region to include only rows with that same region_id.", + "Count distinct person_id values in the filtered person_region records and return that single number." + ] + }, + "revisql-train:50": { + "raw": "1. Target the lists table because the question asks about movie lists and their update versus creation dates.\n2. Extract the year portion from list_update_timestamp_utc and list_creation_timestamp_utc by using the first four characters of each text timestamp.\n3. Subtract the creation year from the update year to determine how many years passed between creation and last update.\n4. Filter to keep only rows where that year difference is strictly greater than 10.\n5. Aggregate the remaining rows with a count and return the single count column as the answer.", + "steps": [ + "Target the lists table because the question asks about movie lists and their update versus creation dates.", + "Extract the year portion from list_update_timestamp_utc and list_creation_timestamp_utc by using the first four characters of each text timestamp.", + "Subtract the creation year from the update year to determine how many years passed between creation and last update.", + "Filter to keep only rows where that year difference is strictly greater than 10.", + "Aggregate the remaining rows with a count and return the single count column as the answer." + ] + }, + "revisql-train:500": { + "raw": "1. Join the movie table to movie_keywords on movie_id, then join movie_keywords to keyword on keyword_id to connect each movie's revenue with its keyword names.\n2. Filter the keyword table to only rows where keyword_name equals 'civil war', applying the external knowledge that the keyword \"civil war\" maps directly to this column value.\n3. Calculate the average of the revenue column from the movie table across the filtered set of movies.\n4. Return the single computed average revenue value as the result.", + "steps": [ + "Join the movie table to movie_keywords on movie_id, then join movie_keywords to keyword on keyword_id to connect each movie's revenue with its keyword names.", + "Filter the keyword table to only rows where keyword_name equals 'civil war', applying the external knowledge that the keyword \"civil war\" maps directly to this column value.", + "Calculate the average of the revenue column from the movie table across the filtered set of movies.", + "Return the single computed average revenue value as the result." + ] + }, + "revisql-train:5003": { + "raw": "1. Target the `person` table, which holds both names and physical attributes.\n2. Filter rows where `full_name` equals 'Dagfinn Sverre Aarskog'.\n3. Return the value in the `weight` column for the matched record.", + "steps": [ + "Target the `person` table, which holds both names and physical attributes.", + "Filter rows where `full_name` equals 'Dagfinn Sverre Aarskog'.", + "Return the value in the `weight` column for the matched record." + ] + }, + "revisql-train:5009": { + "raw": "1. Map the external knowledge so that \"1984 Summer Olympic Games\" corresponds to games.games_name = '1984 Summer' and \"20 years old athletes\" corresponds to games_competitor.age = 20.\n2. Join the games table with games_competitor on games.id = games_competitor.games_id to link each Olympic Games to its competitors.\n3. Filter the joined results to only rows where games.games_name equals '1984 Summer'.\n4. Further filter those rows to only those where games_competitor.age equals 20.\n5. Count the person_id column from games_competitor to return the total number of 20-year-old athletes in that Games.", + "steps": [ + "Map the external knowledge so that \"1984 Summer Olympic Games\" corresponds to games.games_name = '1984 Summer' and \"20 years old athletes\" corresponds to games_competitor.age = 20.", + "Join the games table with games_competitor on games.id = games_competitor.games_id to link each Olympic Games to its competitors.", + "Filter the joined results to only rows where games.games_name equals '1984 Summer'.", + "Further filter those rows to only those where games_competitor.age equals 20.", + "Count the person_id column from games_competitor to return the total number of 20-year-old athletes in that Games." + ] + }, + "revisql-train:5012": { + "raw": "1. Use the sport table to locate the sport named 'Athletics', since \"athletics\" maps to sport_name = 'Athletics'.\n2. Join the event table on sport.id = event.sport_id to retrieve every event belonging to that sport.\n3. Map the phrase \"kinds of events\" to the event_name column in the event table per the external knowledge.\n4. Count the event_name values to determine the total number of different event kinds for Athletics.\n5. Return only that count value.", + "steps": [ + "Use the sport table to locate the sport named 'Athletics', since \"athletics\" maps to sport_name = 'Athletics'.", + "Join the event table on sport.id = event.sport_id to retrieve every event belonging to that sport.", + "Map the phrase \"kinds of events\" to the event_name column in the event table per the external knowledge.", + "Count the event_name values to determine the total number of different event kinds for Athletics.", + "Return only that count value." + ] + }, + "revisql-train:5013": { + "raw": "1. Join `noc_region` to `person_region` on `noc_region.id = person_region.region_id`, then join `person_region` to `person` on `person_region.person_id = person.id`.\n2. Filter the results to rows where `region_name` is 'Russia'.\n3. Calculate the maximum `weight` value within this Russian athlete subset.\n4. Select the `full_name` of the athlete whose `weight` equals that maximum.\n5. Return only the `full_name` column.", + "steps": [ + "Join `noc_region` to `person_region` on `noc_region.id = person_region.region_id`, then join `person_region` to `person` on `person_region.person_id = person.id`.", + "Filter the results to rows where `region_name` is 'Russia'.", + "Calculate the maximum `weight` value within this Russian athlete subset.", + "Select the `full_name` of the athlete whose `weight` equals that maximum.", + "Return only the `full_name` column." + ] + }, + "revisql-train:5016": { + "raw": "1. Join person_region with noc_region on region_id = id to connect each athlete to their region name.\n2. Group by region_name and count distinct person_id values to calculate the number of unique athletes per region.\n3. Compute the maximum athlete count across all regions from that grouped result.\n4. Filter the grouped results to keep only the region(s) whose athlete count equals that maximum.\n5. Return the region_name column for the qualifying region(s).", + "steps": [ + "Join person_region with noc_region on region_id = id to connect each athlete to their region name.", + "Group by region_name and count distinct person_id values to calculate the number of unique athletes per region.", + "Compute the maximum athlete count across all regions from that grouped result.", + "Filter the grouped results to keep only the region(s) whose athlete count equals that maximum.", + "Return the region_name column for the qualifying region(s)." + ] + }, + "revisql-train:5018": { + "raw": "1. Join `noc_region` to `person_region` on the region identifier, then join `person` on the person identifier to connect Tonga with athlete body metrics.\n2. Filter `noc_region.region_name` to 'Tonga' and `person.gender` to 'M'.\n3. Exclude rows where `person.weight` equals 0, as the schema specifies that 0 denotes a missing weight value.\n4. Compute the average of `person.weight` over the filtered result set.\n5. Return the single aggregated average weight value.", + "steps": [ + "Join `noc_region` to `person_region` on the region identifier, then join `person` on the person identifier to connect Tonga with athlete body metrics.", + "Filter `noc_region.region_name` to 'Tonga' and `person.gender` to 'M'.", + "Exclude rows where `person.weight` equals 0, as the schema specifies that 0 denotes a missing weight value.", + "Compute the average of `person.weight` over the filtered result set.", + "Return the single aggregated average weight value." + ] + }, + "revisql-train:5020": { + "raw": "1. Start with the games_city junction table and join it to the city table on city_id to connect each Olympic games record to its host city.\n2. Join games_city to the games table on games_id to bring in the year for each games record.\n3. Filter the city table for city_name equal to 'London', applying the external knowledge that \"London\" maps to that column.\n4. Filter the games table for games_year between 1900 and 1992 inclusive, applying the external knowledge that the date range maps to that column.\n5. Count the id values from the games table to return the total number of games London hosted during that period.", + "steps": [ + "Start with the games_city junction table and join it to the city table on city_id to connect each Olympic games record to its host city.", + "Join games_city to the games table on games_id to bring in the year for each games record.", + "Filter the city table for city_name equal to 'London', applying the external knowledge that \"London\" maps to that column.", + "Filter the games table for games_year between 1900 and 1992 inclusive, applying the external knowledge that the date range maps to that column.", + "Count the id values from the games table to return the total number of games London hosted during that period." + ] + }, + "revisql-train:5028": { + "raw": "1. Join the `games` table to `games_competitor` on `games.id` = `games_competitor.games_id` to link Olympic editions to participants.\n2. Join `games_competitor` to `person` on `games_competitor.person_id` = `person.id` to access competitor gender.\n3. Filter `games` using the external knowledge mapping so that `games_name` equals '1948 Summer'.\n4. Filter `person` using the external knowledge mapping so that `gender` equals 'M' for male competitors.\n5. Aggregate by counting distinct `games_competitor.person_id` values and return that single numeric count.", + "steps": [ + "Join the `games` table to `games_competitor` on `games.id` = `games_competitor.games_id` to link Olympic editions to participants.", + "Join `games_competitor` to `person` on `games_competitor.person_id` = `person.id` to access competitor gender.", + "Filter `games` using the external knowledge mapping so that `games_name` equals '1948 Summer'.", + "Filter `person` using the external knowledge mapping so that `gender` equals 'M' for male competitors.", + "Aggregate by counting distinct `games_competitor.person_id` values and return that single numeric count." + ] + }, + "revisql-train:5038": { + "raw": "1. Identify that finding games held in London requires linking games to host cities via the `games_city` bridge table and the `city` lookup table.\n2. Join `games_city` to `city` on `games_city.city_id` = `city.id` to associate each game record with its host city's name.\n3. Filter the results to rows where `city.city_name` equals `'London'`, applying the external knowledge that \"London\" maps to the `city_name` column.\n4. Return only the `games_id` column from `games_city` as the list of game identifiers held in London.", + "steps": [ + "Identify that finding games held in London requires linking games to host cities via the `games_city` bridge table and the `city` lookup table.", + "Join `games_city` to `city` on `games_city.city_id` = `city.id` to associate each game record with its host city's name.", + "Filter the results to rows where `city.city_name` equals `'London'`, applying the external knowledge that \"London\" maps to the `city_name` column.", + "Return only the `games_id` column from `games_city` as the list of game identifiers held in London." + ] + }, + "revisql-train:504": { + "raw": "1. Join the movie table with the movie_company table on movie_id to connect each movie with its production companies.\n2. Use the external knowledge that \"movies in 1916\" maps to the release_date column, extracting the year portion from that date.\n3. Filter the joined rows to keep only those where the extracted year equals 1916.\n4. Return the company_id column from the movie_company table.", + "steps": [ + "Join the movie table with the movie_company table on movie_id to connect each movie with its production companies.", + "Use the external knowledge that \"movies in 1916\" maps to the release_date column, extracting the year portion from that date.", + "Filter the joined rows to keep only those where the extracted year equals 1916.", + "Return the company_id column from the movie_company table." + ] + }, + "revisql-train:5045": { + "raw": "1. Identify the `medal` table to filter for gold medals using the external knowledge that `medal_name = 'Gold'`, and the `competitor_event` table to connect those medals to events via `event_id`.\n2. Join `medal` to `competitor_event` on `medal.id = competitor_event.medal_id` to link medal types to specific event records.\n3. Filter the joined results to only rows where `medal.medal_name` equals `'Gold'`.\n4. Apply `DISTINCT` on `competitor_event.event_id` because multiple competitors in the same event could each win gold, and the question asks for the event id without duplicates.\n5. Return only the `event_id` column from `competitor_event` as the final result.", + "steps": [ + "Identify the `medal` table to filter for gold medals using the external knowledge that `medal_name = 'Gold'`, and the `competitor_event` table to connect those medals to events via `event_id`.", + "Join `medal` to `competitor_event` on `medal.id = competitor_event.medal_id` to link medal types to specific event records.", + "Filter the joined results to only rows where `medal.medal_name` equals `'Gold'`.", + "Apply `DISTINCT` on `competitor_event.event_id` because multiple competitors in the same event could each win gold, and the question asks for the event id without duplicates.", + "Return only the `event_id` column from `competitor_event` as the final result." + ] + }, + "revisql-train:5047": { + "raw": "1. Start from the `games_city` bridge table to connect Olympic games with their host cities.\n2. Join `city` on `games_city.city_id = city.id` to access the `city_name` column.\n3. Join `games` on `games_city.games_id = games.id` to access the year of each games.\n4. Apply the filter `games_year = 1992`, mapping the phrase \"in 1992\" from the question to this column and value using the external knowledge.\n5. Return only the `city_name` column as the answer.", + "steps": [ + "Start from the `games_city` bridge table to connect Olympic games with their host cities.", + "Join `city` on `games_city.city_id = city.id` to access the `city_name` column.", + "Join `games` on `games_city.games_id = games.id` to access the year of each games.", + "Apply the filter `games_year = 1992`, mapping the phrase \"in 1992\" from the question to this column and value using the external knowledge.", + "Return only the `city_name` column as the answer." + ] + }, + "revisql-train:5048": { + "raw": "1. Join `person_region` to `noc_region` on `region_id` to map each athlete to the `region_name` column, since \"region\" refers to `region_name`.\n2. Group by `region_name` and count `person_id` to calculate how many athletes are from each region.\n3. Compute the overall maximum athlete count across all regions using a subquery that groups `person_region` by `region_id`, counts `person_id` per group, and selects the maximum of those counts.\n4. Filter the outer grouped results with a HAVING clause so only regions whose athlete count equals that maximum are retained, satisfying \"majority\" as the largest group(s).\n5. Return the `region_name` column.", + "steps": [ + "Join `person_region` to `noc_region` on `region_id` to map each athlete to the `region_name` column, since \"region\" refers to `region_name`.", + "Group by `region_name` and count `person_id` to calculate how many athletes are from each region.", + "Compute the overall maximum athlete count across all regions using a subquery that groups `person_region` by `region_id`, counts `person_id` per group, and selects the maximum of those counts.", + "Filter the outer grouped results with a HAVING clause so only regions whose athlete count equals that maximum are retained, satisfying \"majority\" as the largest group(s).", + "Return the `region_name` column." + ] + }, + "revisql-train:5052": { + "raw": "1. Filter the city table to rows where city_name equals 'Barcelona', applying the external knowledge that Barcelona maps to that value.\n2. Join games_city to the filtered city results on city_id to retrieve the games_ids for Olympic games held in Barcelona.\n3. Join games_competitor to those games_city results on games_id to gather every athlete participation record for those specific games.\n4. Compute the count of distinct person_id from games_competitor so each athlete is counted only once even if they competed in multiple events or games.\n5. Return that single aggregated value representing the total number of athletes who took part.", + "steps": [ + "Filter the city table to rows where city_name equals 'Barcelona', applying the external knowledge that Barcelona maps to that value.", + "Join games_city to the filtered city results on city_id to retrieve the games_ids for Olympic games held in Barcelona.", + "Join games_competitor to those games_city results on games_id to gather every athlete participation record for those specific games.", + "Compute the count of distinct person_id from games_competitor so each athlete is counted only once even if they competed in multiple events or games.", + "Return that single aggregated value representing the total number of athletes who took part." + ] + }, + "revisql-train:5059": { + "raw": "1. Join `games` to `games_competitor` on `games.id = games_competitor.games_id` to access participant ages linked to each Olympic edition.\n2. Join `games_competitor` to `person_region` on `person_id`, then join `person_region` to `noc_region` on `region_id = noc_region.id` to resolve each athlete's region name.\n3. Filter `games_name` to `'2012 Summer'` to restrict the set to the 2012 Summer Olympics.\n4. Filter `region_name` to `'Argentina'` to keep only competitors from Argentina.\n5. Calculate `AVG(age)` over the filtered `games_competitor` records.\n6. Return exactly one column: the computed average age.", + "steps": [ + "Join `games` to `games_competitor` on `games.id = games_competitor.games_id` to access participant ages linked to each Olympic edition.", + "Join `games_competitor` to `person_region` on `person_id`, then join `person_region` to `noc_region` on `region_id = noc_region.id` to resolve each athlete's region name.", + "Filter `games_name` to `'2012 Summer'` to restrict the set to the 2012 Summer Olympics.", + "Filter `region_name` to `'Argentina'` to keep only competitors from Argentina.", + "Calculate `AVG(age)` over the filtered `games_competitor` records.", + "Return exactly one column: the computed average age." + ] + }, + "revisql-train:5060": { + "raw": "1. Join competitor_event to games_competitor on competitor_id, to event on event_id, and to medal on medal_id to connect each competitor record to the event name and medal type.\n2. Use the external knowledge event name by filtering event_name with LIKE Basketball Men%s Basketball to isolate the men's basketball event.\n3. Count bronze medals for the numerator using a conditional on medal_name equals Bronze.\n4. Count all valid medals for the denominator using a conditional on medal_name not equal to NA, excluding competitors who did not win a medal.\n5. Calculate the percentage by casting the bronze count to REAL, multiplying by 100, and dividing by the total valid medal count.\n6. Return the single computed percentage value as the result.", + "steps": [ + "Join competitor_event to games_competitor on competitor_id, to event on event_id, and to medal on medal_id to connect each competitor record to the event name and medal type.", + "Use the external knowledge event name by filtering event_name with LIKE Basketball Men%s Basketball to isolate the men's basketball event.", + "Count bronze medals for the numerator using a conditional on medal_name equals Bronze.", + "Count all valid medals for the denominator using a conditional on medal_name not equal to NA, excluding competitors who did not win a medal.", + "Calculate the percentage by casting the bronze count to REAL, multiplying by 100, and dividing by the total valid medal count.", + "Return the single computed percentage value as the result." + ] + }, + "revisql-train:5065": { + "raw": "1. Map \"names of the games\" to the `games_name` column in the `games` table, and map \"Paris\" to `city_name = 'Paris'` in the `city` table.\n2. Recognize that `games_city` is the bridge table connecting games to their host cities via `games_id` and `city_id`.\n3. Join `games_city` to `city` on `city_id` to filter for rows where `city_name` equals 'Paris'.\n4. Join `games_city` to `games` on `games_id` to access the corresponding game records.\n5. Return only the `games_name` column from the `games` table.", + "steps": [ + "Map \"names of the games\" to the `games_name` column in the `games` table, and map \"Paris\" to `city_name = 'Paris'` in the `city` table.", + "Recognize that `games_city` is the bridge table connecting games to their host cities via `games_id` and `city_id`.", + "Join `games_city` to `city` on `city_id` to filter for rows where `city_name` equals 'Paris'.", + "Join `games_city` to `games` on `games_id` to access the corresponding game records.", + "Return only the `games_name` column from the `games` table." + ] + }, + "revisql-train:5069": { + "raw": "1. Identify that the `games_city` table links games to host cities and must be connected to the `city` table to access city names.\n2. Join `games_city` to `city` on `games_city.city_id = city.id`.\n3. Apply the external knowledge mapping to filter rows where `city.city_name` equals Tokyo.\n4. Return only the `games_id` column from `games_city`.", + "steps": [ + "Identify that the `games_city` table links games to host cities and must be connected to the `city` table to access city names.", + "Join `games_city` to `city` on `games_city.city_id = city.id`.", + "Apply the external knowledge mapping to filter rows where `city.city_name` equals Tokyo.", + "Return only the `games_id` column from `games_city`." + ] + }, + "revisql-train:5074": { + "raw": "1. Identify that the answer requires the `season` column from the `games` table, and that the competitor description maps to the `height` and `weight` columns in the `person` table.\n2. Join `games` to `games_competitor` on `games.id = games_competitor.games_id` to link each Olympic game to its participants.\n3. Join `games_competitor` to `person` on `games_competitor.person_id = person.id` to access the physical attributes of each competitor.\n4. Filter the `person` table where `height = 180` and `weight = 73` to isolate the competitor specified in the external knowledge.\n5. Return distinct values of `games.season` to list the unique season(s) in which that competitor participated.", + "steps": [ + "Identify that the answer requires the `season` column from the `games` table, and that the competitor description maps to the `height` and `weight` columns in the `person` table.", + "Join `games` to `games_competitor` on `games.id = games_competitor.games_id` to link each Olympic game to its participants.", + "Join `games_competitor` to `person` on `games_competitor.person_id = person.id` to access the physical attributes of each competitor.", + "Filter the `person` table where `height = 180` and `weight = 73` to isolate the competitor specified in the external knowledge.", + "Return distinct values of `games.season` to list the unique season(s) in which that competitor participated." + ] + }, + "revisql-train:5077": { + "raw": "1. Join noc_region to person_region on id = region_id, then join person_region to person on person_id = id to connect region names with gender data.\n2. Map the external knowledge: filter noc_region.region_name to 'Iran' for Iranian competitors and person.gender to 'F' for females.\n3. Apply both filters so only rows matching Iran and female remain.\n4. Count distinct person_region.person_id to total unique female competitors without double-counting.\n5. Return the resulting count of distinct person_ids as the answer column.", + "steps": [ + "Join noc_region to person_region on id = region_id, then join person_region to person on person_id = id to connect region names with gender data.", + "Map the external knowledge: filter noc_region.region_name to 'Iran' for Iranian competitors and person.gender to 'F' for females.", + "Apply both filters so only rows matching Iran and female remain.", + "Count distinct person_region.person_id to total unique female competitors without double-counting.", + "Return the resulting count of distinct person_ids as the answer column." + ] + }, + "revisql-train:5080": { + "raw": "1. Join the games table to games_competitor on games.id = games_competitor.games_id.\n2. Filter to rows where games.games_name equals '2014 Winter', mapping the external knowledge's game condition to the games_name column.\n3. For the numerator, count distinct games_competitor.person_id only when age equals 28, mapping the external knowledge's age condition.\n4. For the denominator, count distinct games_competitor.person_id across all filtered rows to obtain total competitors.\n5. Cast the numerator count to a real number, multiply by 100, and divide by the denominator to compute the percentage, implementing the external knowledge's percentage formula.\n6. Return the single calculated percentage column.", + "steps": [ + "Join the games table to games_competitor on games.id = games_competitor.games_id.", + "Filter to rows where games.games_name equals '2014 Winter', mapping the external knowledge's game condition to the games_name column.", + "For the numerator, count distinct games_competitor.person_id only when age equals 28, mapping the external knowledge's age condition.", + "For the denominator, count distinct games_competitor.person_id across all filtered rows to obtain total competitors.", + "Cast the numerator count to a real number, multiply by 100, and divide by the denominator to compute the percentage, implementing the external knowledge's percentage formula.", + "Return the single calculated percentage column." + ] + }, + "revisql-train:5086": { + "raw": "1. Join zip_data with the country table on zip_code to associate each residential area with its county name.\n2. Filter to rows where the county equals ARECIBO using the external knowledge.\n3. Order the results by white_population from highest to lowest.\n4. Limit the output to the first row only.\n5. Return just the zip_code column.", + "steps": [ + "Join zip_data with the country table on zip_code to associate each residential area with its county name.", + "Filter to rows where the county equals ARECIBO using the external knowledge.", + "Order the results by white_population from highest to lowest.", + "Limit the output to the first row only.", + "Return just the zip_code column." + ] + }, + "revisql-train:5088": { + "raw": "1. Identify that zip_data holds the daylight_savings flag and that the external knowledge maps \"implements daylight saving\" to daylight_savings = 'Yes'.\n2. Join zip_data with the country table on zip_code so that each postal point is paired with its corresponding county name.\n3. Filter the joined rows to keep only those where zip_data.daylight_savings equals 'Yes'.\n4. Because the question asks for counties with at least one qualifying area, apply DISTINCT on the county column from the country table to list each county only once.\n5. Return solely the county name column in the final result.", + "steps": [ + "Identify that zip_data holds the daylight_savings flag and that the external knowledge maps \"implements daylight saving\" to daylight_savings = 'Yes'.", + "Join zip_data with the country table on zip_code so that each postal point is paired with its corresponding county name.", + "Filter the joined rows to keep only those where zip_data.daylight_savings equals 'Yes'.", + "Because the question asks for counties with at least one qualifying area, apply DISTINCT on the county column from the country table to list each county only once.", + "Return solely the county name column in the final result." + ] + }, + "revisql-train:5094": { + "raw": "1. Join zip_data with the country table on zip_code to associate each residential area's population data with its county name.\n2. Filter for rows where the county column equals 'ARECIBO' and female_population is not zero, applying the external knowledge that Arecibo is the target county and that gender ratio requires a non-zero female population.\n3. Compute the gender ratio for each qualifying row by casting male_population to REAL and dividing by female_population.\n4. Order the results by this calculated ratio in descending order and limit to the first row to isolate the highest value.\n5. Return the single calculated ratio column.", + "steps": [ + "Join zip_data with the country table on zip_code to associate each residential area's population data with its county name.", + "Filter for rows where the county column equals 'ARECIBO' and female_population is not zero, applying the external knowledge that Arecibo is the target county and that gender ratio requires a non-zero female population.", + "Compute the gender ratio for each qualifying row by casting male_population to REAL and dividing by female_population.", + "Order the results by this calculated ratio in descending order and limit to the first row to isolate the highest value.", + "Return the single calculated ratio column." + ] + }, + "revisql-train:5097": { + "raw": "1. Filter the zip_data table where the city column equals 'Hartford', using the external knowledge that Hartford is a city name.\n2. Join the alias table to zip_data on the zip_code column to find all aliases associated with Hartford's zip codes.\n3. Apply DISTINCT to the alias values to remove duplicates that arise from a city having multiple zip codes.\n4. Return only the alias column from the alias table.", + "steps": [ + "Filter the zip_data table where the city column equals 'Hartford', using the external knowledge that Hartford is a city name.", + "Join the alias table to zip_data on the zip_code column to find all aliases associated with Hartford's zip codes.", + "Apply DISTINCT to the alias values to remove duplicates that arise from a city having multiple zip codes.", + "Return only the alias column from the alias table." + ] + }, + "revisql-train:5100": { + "raw": "1. Map the external knowledge that \"precise location\" refers to the latitude and longitude columns in the zip_data table.\n2. Start from the area_code table and filter its area_code column to the value 787 to identify the relevant zip codes.\n3. Join the filtered area_code records to zip_data on the shared zip_code column to retrieve the coordinates for those zip codes.\n4. Select only the latitude and longitude columns from zip_data as the final output fields.\n5. Group the results by latitude and longitude to return each unique precise location only once.", + "steps": [ + "Map the external knowledge that \"precise location\" refers to the latitude and longitude columns in the zip_data table.", + "Start from the area_code table and filter its area_code column to the value 787 to identify the relevant zip codes.", + "Join the filtered area_code records to zip_data on the shared zip_code column to retrieve the coordinates for those zip codes.", + "Select only the latitude and longitude columns from zip_data as the final output fields.", + "Group the results by latitude and longitude to return each unique precise location only once." + ] + }, + "revisql-train:5101": { + "raw": "1. Use the `zip_data` table, which holds the state, postal point type, and delivery receptacle counts.\n2. Filter rows where `state` equals 'CA' to limit results to California.\n3. Filter rows where `type` matches 'Community Post Office', applying the external knowledge that this value identifies the target postal point type.\n4. Aggregate by taking the maximum of `total_delivery_receptacles` across the filtered rows to find the highest count.\n5. Return that maximum value in a single column named `max_delivery_receptacles`.", + "steps": [ + "Use the `zip_data` table, which holds the state, postal point type, and delivery receptacle counts.", + "Filter rows where `state` equals 'CA' to limit results to California.", + "Filter rows where `type` matches 'Community Post Office', applying the external knowledge that this value identifies the target postal point type.", + "Aggregate by taking the maximum of `total_delivery_receptacles` across the filtered rows to find the highest count.", + "Return that maximum value in a single column named `max_delivery_receptacles`." + ] + }, + "revisql-train:5107": { + "raw": "1. Filter the congress table to the row where first_name is Murkowski and last_name is Lisa to obtain the state abbreviation.\n2. Join that congress result with zip_data on abbreviation matching state to get all postal points in that state.\n3. Restrict zip_data to rows where employees equals 0, using the external knowledge that zero employees means employees = 0.\n4. Count distinct city values from zip_data to avoid double-counting cities that span multiple zip codes.\n5. Return the total as a single column named num_cities.", + "steps": [ + "Filter the congress table to the row where first_name is Murkowski and last_name is Lisa to obtain the state abbreviation.", + "Join that congress result with zip_data on abbreviation matching state to get all postal points in that state.", + "Restrict zip_data to rows where employees equals 0, using the external knowledge that zero employees means employees = 0.", + "Count distinct city values from zip_data to avoid double-counting cities that span multiple zip codes.", + "Return the total as a single column named num_cities." + ] + }, + "revisql-train:5108": { + "raw": "1. Group `zip_data` by its `state` column and sum `asian_population` to compute the total Asian population for each state abbreviation.\n2. Inner join that grouped result with `congress` on `zip_data.state = congress.abbreviation`, order by the summed Asian population descending, and limit to the top 3 state abbreviations.\n3. Join those top 3 abbreviations back to `congress` on `abbreviation` to select every representative located in those states.\n4. Return the state abbreviation along with `first_name` and `last_name`, applying the external knowledge that a representative’s full name is composed of the `first_name` and `last_name` columns.", + "steps": [ + "Group `zip_data` by its `state` column and sum `asian_population` to compute the total Asian population for each state abbreviation.", + "Inner join that grouped result with `congress` on `zip_data.state = congress.abbreviation`, order by the summed Asian population descending, and limit to the top 3 state abbreviations.", + "Join those top 3 abbreviations back to `congress` on `abbreviation` to select every representative located in those states.", + "Return the state abbreviation along with `first_name` and `last_name`, applying the external knowledge that a representative’s full name is composed of the `first_name` and `last_name` columns." + ] + }, + "revisql-train:511": { + "raw": "1. Join `movie` to `movie_languages` on `movie_id`, then join `movie_languages` to `language` on `language_id` to connect movies with their language names.\n2. Filter for rows where `movie_status` equals 'Post Production', applying the external knowledge that \"post-production movies\" maps to this exact column value.\n3. Further filter for rows where `language_name` equals 'Nederlands', using the provided external knowledge mapping.\n4. Use an existence check on the filtered joined set to test whether any movie satisfies both conditions, because the required output is a binary YES/NO rather than a list of movies.\n5. Return a single column named `answer` using a conditional expression that yields 'YES' when the existence check finds at least one matching row and 'NO' otherwise.", + "steps": [ + "Join `movie` to `movie_languages` on `movie_id`, then join `movie_languages` to `language` on `language_id` to connect movies with their language names.", + "Filter for rows where `movie_status` equals 'Post Production', applying the external knowledge that \"post-production movies\" maps to this exact column value.", + "Further filter for rows where `language_name` equals 'Nederlands', using the provided external knowledge mapping.", + "Use an existence check on the filtered joined set to test whether any movie satisfies both conditions, because the required output is a binary YES/NO rather than a list of movies.", + "Return a single column named `answer` using a conditional expression that yields 'YES' when the existence check finds at least one matching row and 'NO' otherwise." + ] + }, + "revisql-train:5111": { + "raw": "1. Start from the zip_data table and its male_population column, since external knowledge states that \"male\" refers to male_population.\n2. Inner join the country table on zip_code to access county-level geography for filtering.\n3. Restrict the joined rows to those where the county column equals 'NEW HAVEN', using the external knowledge that \"NEW HAVEN\" is a county.\n4. Sum the male_population values across all retained zip codes to compute the total.\n5. Return only that summed total as the single answer column.", + "steps": [ + "Start from the zip_data table and its male_population column, since external knowledge states that \"male\" refers to male_population.", + "Inner join the country table on zip_code to access county-level geography for filtering.", + "Restrict the joined rows to those where the county column equals 'NEW HAVEN', using the external knowledge that \"NEW HAVEN\" is a county.", + "Sum the male_population values across all retained zip codes to compute the total.", + "Return only that summed total as the single answer column." + ] + }, + "revisql-train:5113": { + "raw": "1. Group zip_data by city, sum the over_65 column to measure elders per city, order descending by that sum, and limit to 1 row to isolate the city with the most elders.\n2. Join that city result back to zip_data on city to collect every zip_code belonging to that city.\n3. Join those zip_code rows to the area_code table on zip_code to retrieve the associated area codes.\n4. Return distinct area_code values, naming the column area_code, to eliminate duplicates from multiple zip codes.", + "steps": [ + "Group zip_data by city, sum the over_65 column to measure elders per city, order descending by that sum, and limit to 1 row to isolate the city with the most elders.", + "Join that city result back to zip_data on city to collect every zip_code belonging to that city.", + "Join those zip_code rows to the area_code table on zip_code to retrieve the associated area codes.", + "Return distinct area_code values, naming the column area_code, to eliminate duplicates from multiple zip codes." + ] + }, + "revisql-train:5116": { + "raw": "1. Start from the `zip_congress` table, which holds the ZIP codes to be returned.\n2. Join the `congress` table on `zip_congress.district = congress.cognress_rep_id` to access representative names.\n3. Filter the result to rows where `first_name` equals 'Buchanan' and `last_name` equals 'Vernon'.\n4. Return only the `zip_code` column from `zip_congress`.", + "steps": [ + "Start from the `zip_congress` table, which holds the ZIP codes to be returned.", + "Join the `congress` table on `zip_congress.district = congress.cognress_rep_id` to access representative names.", + "Filter the result to rows where `first_name` equals 'Buchanan' and `last_name` equals 'Vernon'.", + "Return only the `zip_code` column from `zip_congress`." + ] + }, + "revisql-train:5117": { + "raw": "1. Filter the `area_code` table to rows where `area_code` equals 878.\n2. Join the result with `zip_data` on `zip_code` to obtain the corresponding state abbreviations.\n3. Join with the `state` table on `zip_data.state` = `state.abbreviation` to map abbreviations to full state names.\n4. Apply DISTINCT to the state names because one area code can span multiple zip codes within the same state.\n5. Return the `name` column from the `state` table.", + "steps": [ + "Filter the `area_code` table to rows where `area_code` equals 878.", + "Join the result with `zip_data` on `zip_code` to obtain the corresponding state abbreviations.", + "Join with the `state` table on `zip_data.state` = `state.abbreviation` to map abbreviations to full state names.", + "Apply DISTINCT to the state names because one area code can span multiple zip codes within the same state.", + "Return the `name` column from the `state` table." + ] + }, + "revisql-train:5119": { + "raw": "1. Join the CBSA table to zip_data on the CBSA code column to link officer records to geographic zip data.\n2. Map the requested \"position\" to the latitude and longitude columns in zip_data based on the external knowledge.\n3. Filter the joined set to only rows where zip_data.zip_code equals 45503.\n4. Select CBSA_name as the officer's name, and latitude and longitude as the position coordinates.\n5. Group the output by CBSA_name, latitude, and longitude to ensure unique result rows.", + "steps": [ + "Join the CBSA table to zip_data on the CBSA code column to link officer records to geographic zip data.", + "Map the requested \"position\" to the latitude and longitude columns in zip_data based on the external knowledge.", + "Filter the joined set to only rows where zip_data.zip_code equals 45503.", + "Select CBSA_name as the officer's name, and latitude and longitude as the position coordinates.", + "Group the output by CBSA_name, latitude, and longitude to ensure unique result rows." + ] + }, + "revisql-train:5123": { + "raw": "1. Map the external knowledge to the `zip_data` table: use the `city` column for \"Bishopville\" and the `state` column for \"SC\".\n2. Identify that area codes reside in the `area_code` table, which is linked to locations via `zip_code`.\n3. Join `area_code` with `zip_data` on their common `zip_code` column to connect area codes with city/state data.\n4. Filter the joined results to only rows where `city` equals 'Bishopville' and `state` equals 'SC'.\n5. Return the `area_code` column from the `area_code` table.", + "steps": [ + "Map the external knowledge to the `zip_data` table: use the `city` column for \"Bishopville\" and the `state` column for \"SC\".", + "Identify that area codes reside in the `area_code` table, which is linked to locations via `zip_code`.", + "Join `area_code` with `zip_data` on their common `zip_code` column to connect area codes with city/state data.", + "Filter the joined results to only rows where `city` equals 'Bishopville' and `state` equals 'SC'.", + "Return the `area_code` column from the `area_code` table." + ] + }, + "revisql-train:5124": { + "raw": "1. Map the external knowledge so that \"Geneva\" filters the `city` column and \"AL\" filters the `state` column in the `zip_data` table.\n2. Identify that the requested `bad_alias` values are stored in the `avoid` table, which is linked to locations via `zip_code`.\n3. Join `avoid` with `zip_data` on the `zip_code` key to connect bad aliases with city and state information.\n4. Apply the filters `city = 'Geneva'` and `state = 'AL'` to the joined result.\n5. Return only the `bad_alias` column from the `avoid` table.", + "steps": [ + "Map the external knowledge so that \"Geneva\" filters the `city` column and \"AL\" filters the `state` column in the `zip_data` table.", + "Identify that the requested `bad_alias` values are stored in the `avoid` table, which is linked to locations via `zip_code`.", + "Join `avoid` with `zip_data` on the `zip_code` key to connect bad aliases with city and state information.", + "Apply the filters `city = 'Geneva'` and `state = 'AL'` to the joined result.", + "Return only the `bad_alias` column from the `avoid` table." + ] + }, + "revisql-train:5129": { + "raw": "1. Identify that area codes are stored in the area_code table while city names and median age demographics are stored in zip_data, so both tables are needed.\n2. Join area_code to zip_data with an inner join on the shared zip_code column to align each area code with its corresponding city and age data.\n3. Apply the filter median_age > 40 on the zip_data table, using the external knowledge that \"median age over 40\" maps directly to that column and condition.\n4. Return exactly three columns: city from zip_data, zip_code from zip_data, and area_code from the area_code table, with no aggregation or ordering required.", + "steps": [ + "Identify that area codes are stored in the area_code table while city names and median age demographics are stored in zip_data, so both tables are needed.", + "Join area_code to zip_data with an inner join on the shared zip_code column to align each area code with its corresponding city and age data.", + "Apply the filter median_age > 40 on the zip_data table, using the external knowledge that \"median age over 40\" maps directly to that column and condition.", + "Return exactly three columns: city from zip_data, zip_code from zip_data, and area_code from the area_code table, with no aggregation or ordering required." + ] + }, + "revisql-train:5131": { + "raw": "1. Join the `area_code` table to the `country` table on `zip_code` to connect area codes with county data.\n2. Join the `country` table to the `state` table on `country.state = state.abbreviation` to connect counties with state names.\n3. Filter the county column to 'PHILLIPS' per the external knowledge identifying Phillips as the county.\n4. Filter the state name column to 'Montana' per the external knowledge identifying Montana as the state.\n5. Return distinct values of the `area_code` column.", + "steps": [ + "Join the `area_code` table to the `country` table on `zip_code` to connect area codes with county data.", + "Join the `country` table to the `state` table on `country.state = state.abbreviation` to connect counties with state names.", + "Filter the county column to 'PHILLIPS' per the external knowledge identifying Phillips as the county.", + "Filter the state name column to 'Montana' per the external knowledge identifying Montana as the state.", + "Return distinct values of the `area_code` column." + ] + }, + "revisql-train:5136": { + "raw": "1. Target the congress table, which stores representative records and includes the columns state and cognress_rep_id.\n2. Map the external knowledge values \"Alabama\" and \"Illinois\" directly to the state column for filtering.\n3. Count cognress_rep_id conditionally when state equals 'Alabama' to obtain the Alabama representative total.\n4. Count cognress_rep_id conditionally when state equals 'Illinois' to obtain the Illinois representative total.\n5. Cast the Alabama count to REAL so the division produces a decimal ratio rather than integer truncation.\n6. Divide the Alabama count by the Illinois count and return the single computed ratio column.", + "steps": [ + "Target the congress table, which stores representative records and includes the columns state and cognress_rep_id.", + "Map the external knowledge values \"Alabama\" and \"Illinois\" directly to the state column for filtering.", + "Count cognress_rep_id conditionally when state equals 'Alabama' to obtain the Alabama representative total.", + "Count cognress_rep_id conditionally when state equals 'Illinois' to obtain the Illinois representative total.", + "Cast the Alabama count to REAL so the division produces a decimal ratio rather than integer truncation.", + "Divide the Alabama count by the Illinois count and return the single computed ratio column." + ] + }, + "revisql-train:5140": { + "raw": "1. Start from the `avoid` table, which contains `bad_alias`, and the `zip_data` table, which contains state information.\n2. Inner join `avoid` to `zip_data` on the `zip_code` column to link each bad alias with its corresponding state.\n3. Filter the joined rows to only those where `zip_data.state = 'PR'`, applying the external knowledge that Puerto Rico maps to the state code 'PR'.\n4. Select the `bad_alias` column from `avoid` with `DISTINCT` to return each unique bad alias for Puerto Rico zip codes.", + "steps": [ + "Start from the `avoid` table, which contains `bad_alias`, and the `zip_data` table, which contains state information.", + "Inner join `avoid` to `zip_data` on the `zip_code` column to link each bad alias with its corresponding state.", + "Filter the joined rows to only those where `zip_data.state = 'PR'`, applying the external knowledge that Puerto Rico maps to the state code 'PR'.", + "Select the `bad_alias` column from `avoid` with `DISTINCT` to return each unique bad alias for Puerto Rico zip codes." + ] + }, + "revisql-train:5141": { + "raw": "1. Retrieve the latitude and longitude columns from the zip_data table.\n2. Join zip_data to zip_congress on the zip_code column to link postal points to congressional districts.\n3. Join zip_congress to the congress table on district = cognress_rep_id to access representative names.\n4. Filter the congress table to rows where first_name equals 'Grayson' and last_name equals 'Alan'.\n5. Return the latitude and longitude values from zip_data for the matching records.", + "steps": [ + "Retrieve the latitude and longitude columns from the zip_data table.", + "Join zip_data to zip_congress on the zip_code column to link postal points to congressional districts.", + "Join zip_congress to the congress table on district = cognress_rep_id to access representative names.", + "Filter the congress table to rows where first_name equals 'Grayson' and last_name equals 'Alan'.", + "Return the latitude and longitude values from zip_data for the matching records." + ] + }, + "revisql-train:5142": { + "raw": "1. Start from the area_code table to locate records matching area code 787.\n2. Join area_code with zip_data on the zip_code column to access the corresponding state abbreviation.\n3. Filter the joined results to only rows where area_code equals 787.\n4. Return the state column from zip_data, using DISTINCT to eliminate duplicate state abbreviations across multiple matching zip codes.", + "steps": [ + "Start from the area_code table to locate records matching area code 787.", + "Join area_code with zip_data on the zip_code column to access the corresponding state abbreviation.", + "Filter the joined results to only rows where area_code equals 787.", + "Return the state column from zip_data, using DISTINCT to eliminate duplicate state abbreviations across multiple matching zip codes." + ] + }, + "revisql-train:5150": { + "raw": "1. Join the `area_code` table with `zip_data` on the `zip_code` column to link area codes to city demographic data.\n2. Filter the joined rows to keep only those where `area_code` equals 939.\n3. Map the phrase \"highest Asian population\" to ordering the results by `zip_data.asian_population` in descending order.\n4. Limit the ordered results to the first row to isolate the maximum.\n5. Return the `city` column from `zip_data` as the final answer.", + "steps": [ + "Join the `area_code` table with `zip_data` on the `zip_code` column to link area codes to city demographic data.", + "Filter the joined rows to keep only those where `area_code` equals 939.", + "Map the phrase \"highest Asian population\" to ordering the results by `zip_data.asian_population` in descending order.", + "Limit the ordered results to the first row to isolate the maximum.", + "Return the `city` column from `zip_data` as the final answer." + ] + }, + "revisql-train:5151": { + "raw": "1. Map the external knowledge that an elevation of 1039 means filtering zip_data.elevation to equal 1039.\n2. Identify that county and state names are stored in the country table.\n3. Join the country table with zip_data on the zip_code column to link each county/state record to its corresponding elevation data.\n4. Apply the elevation filter to keep only rows where zip_data.elevation is 1039.\n5. Return distinct values of the county and state columns from the country table to avoid duplicate county/state pairs.", + "steps": [ + "Map the external knowledge that an elevation of 1039 means filtering zip_data.elevation to equal 1039.", + "Identify that county and state names are stored in the country table.", + "Join the country table with zip_data on the zip_code column to link each county/state record to its corresponding elevation data.", + "Apply the elevation filter to keep only rows where zip_data.elevation is 1039.", + "Return distinct values of the county and state columns from the country table to avoid duplicate county/state pairs." + ] + }, + "revisql-train:5154": { + "raw": "1. Identify that the area_code table holds the target values and the zip_data table holds the white_population filter, with zip_code as the shared key.\n2. Inner join area_code to zip_data on the zip_code column to link each area code with its demographic record.\n3. Apply a filter on zip_data.white_population to only keep rows where the value is between 1700 and 2000 inclusive.\n4. Return distinct values of the area_code column from the area_code table to avoid duplicate results.", + "steps": [ + "Identify that the area_code table holds the target values and the zip_data table holds the white_population filter, with zip_code as the shared key.", + "Inner join area_code to zip_data on the zip_code column to link each area code with its demographic record.", + "Apply a filter on zip_data.white_population to only keep rows where the value is between 1700 and 2000 inclusive.", + "Return distinct values of the area_code column from the area_code table to avoid duplicate results." + ] + }, + "revisql-train:5155": { + "raw": "1. Locate the table that stores city aliases mapped to zip codes and join it to zip_data on the zip_code column.\n2. Filter the alias records to only those where the alias value is exactly 'Leeds'.\n3. Sum the asian_population column from the zip_data side of the join across all matching rows.\n4. Return that single aggregated total.", + "steps": [ + "Locate the table that stores city aliases mapped to zip codes and join it to zip_data on the zip_code column.", + "Filter the alias records to only those where the alias value is exactly 'Leeds'.", + "Sum the asian_population column from the zip_data side of the join across all matching rows.", + "Return that single aggregated total." + ] + }, + "revisql-train:5160": { + "raw": "1. Use the external knowledge that Dalton is a city to filter the zip_data table on its city column equal to 'Dalton'.\n2. Identify the country table as the source for county names and state abbreviations, which links to zip_data through zip_code.\n3. Join country to zip_data on the zip_code key so each Dalton postal point is paired with its corresponding county and state.\n4. Apply the filter zip_data.city = 'Dalton' to the joined set.\n5. Select distinct county and state columns from the country table to return each unique county-state pair only once.", + "steps": [ + "Use the external knowledge that Dalton is a city to filter the zip_data table on its city column equal to 'Dalton'.", + "Identify the country table as the source for county names and state abbreviations, which links to zip_data through zip_code.", + "Join country to zip_data on the zip_code key so each Dalton postal point is paired with its corresponding county and state.", + "Apply the filter zip_data.city = 'Dalton' to the joined set.", + "Select distinct county and state columns from the country table to return each unique county-state pair only once." + ] + }, + "revisql-train:5162": { + "raw": "1. Join `area_code` to `zip_data` on the `zip_code` column, then filter to keep only rows where `area_code` equals 787.\n2. In one subquery, select distinct `city` and `state` pairs from the filtered results where `type` is 'P.O. Box Only'.\n3. In a second subquery, select distinct `city` and `state` pairs from the same filtered results where `type` is 'Post Office'.\n4. Count the distinct city-state pairs in each subquery, then compute the difference by subtracting the 'Post Office' count from the 'P.O. Box Only' count.\n5. Return the final difference as a single numeric value.", + "steps": [ + "Join `area_code` to `zip_data` on the `zip_code` column, then filter to keep only rows where `area_code` equals 787.", + "In one subquery, select distinct `city` and `state` pairs from the filtered results where `type` is 'P.O. Box Only'.", + "In a second subquery, select distinct `city` and `state` pairs from the same filtered results where `type` is 'Post Office'.", + "Count the distinct city-state pairs in each subquery, then compute the difference by subtracting the 'Post Office' count from the 'P.O. Box Only' count.", + "Return the final difference as a single numeric value." + ] + }, + "revisql-train:5165": { + "raw": "1. Join the country table with zip_data on the zip_code key to link postal points with their demographic data.\n2. Filter the country table's county column to exactly 'DISTRICT OF COLUMBIA' using the external knowledge mapping.\n3. Filter zip_data's black_population to greater than 20000 using the external knowledge mapping.\n4. Count the zip_code values from the country table to tally the qualifying postal points.\n5. Return only that count.", + "steps": [ + "Join the country table with zip_data on the zip_code key to link postal points with their demographic data.", + "Filter the country table's county column to exactly 'DISTRICT OF COLUMBIA' using the external knowledge mapping.", + "Filter zip_data's black_population to greater than 20000 using the external knowledge mapping.", + "Count the zip_code values from the country table to tally the qualifying postal points.", + "Return only that count." + ] + }, + "revisql-train:5166": { + "raw": "1. Identify that the city name is stored in the `zip_data` table and the alias is stored in the `alias` table, with both tables sharing the `zip_code` key.\n2. Join the `alias` table to `zip_data` using an inner join on the `zip_code` column to match each alias with its corresponding postal point.\n3. Filter the joined results to only the row where `zip_code` equals 19019.\n4. Return the `city` column from `zip_data` and the `alias` column from the `alias` table.", + "steps": [ + "Identify that the city name is stored in the `zip_data` table and the alias is stored in the `alias` table, with both tables sharing the `zip_code` key.", + "Join the `alias` table to `zip_data` using an inner join on the `zip_code` column to match each alias with its corresponding postal point.", + "Filter the joined results to only the row where `zip_code` equals 19019.", + "Return the `city` column from `zip_data` and the `alias` column from the `alias` table." + ] + }, + "revisql-train:5170": { + "raw": "1. Map the external knowledge phrase \"the Virgin Islands\" to the name column in the state table by filtering for name equal to Virgin Islands.\n2. Join the state table with the country table on state.abbreviation matching country.state to link state abbreviations with county and zip code records.\n3. Restrict the joined results to rows where state.name is Virgin Islands.\n4. Return the county and zip_code columns from the country table.", + "steps": [ + "Map the external knowledge phrase \"the Virgin Islands\" to the name column in the state table by filtering for name equal to Virgin Islands.", + "Join the state table with the country table on state.abbreviation matching country.state to link state abbreviations with county and zip code records.", + "Restrict the joined results to rows where state.name is Virgin Islands.", + "Return the county and zip_code columns from the country table." + ] + }, + "revisql-train:5173": { + "raw": "1. Start with zip_data as the table for postal points and CBSA as the table for officers, mapping the requested \"zip codes\" to zip_data.zip_code and \"CBSA officers\" to CBSA.CBSA_name.\n2. Inner join CBSA to zip_data on the shared CBSA code column to link each postal point with its corresponding officer.\n3. Filter the zip_data rows where the city column equals Oxford.\n4. Return zip_data.zip_code and CBSA.CBSA_name as the final output columns.", + "steps": [ + "Start with zip_data as the table for postal points and CBSA as the table for officers, mapping the requested \"zip codes\" to zip_data.zip_code and \"CBSA officers\" to CBSA.CBSA_name.", + "Inner join CBSA to zip_data on the shared CBSA code column to link each postal point with its corresponding officer.", + "Filter the zip_data rows where the city column equals Oxford.", + "Return zip_data.zip_code and CBSA.CBSA_name as the final output columns." + ] + }, + "revisql-train:5175": { + "raw": "1. From zip_data, filter to rows where organization equals 'Readers Digest', applying the external knowledge that postal points affiliated with Readers Digest are identified by this exact organization value.\n2. Join zip_congress on zip_code to link each qualifying postal point to its corresponding congressional district.\n3. Join congress on zip_congress.district matching the congress representative ID to access the representative's name fields.\n4. Apply the external knowledge that a representative's full name consists of first_name and last_name, and return zip_code from zip_data along with those two name columns from congress.", + "steps": [ + "From zip_data, filter to rows where organization equals 'Readers Digest', applying the external knowledge that postal points affiliated with Readers Digest are identified by this exact organization value.", + "Join zip_congress on zip_code to link each qualifying postal point to its corresponding congressional district.", + "Join congress on zip_congress.district matching the congress representative ID to access the representative's name fields.", + "Apply the external knowledge that a representative's full name consists of first_name and last_name, and return zip_code from zip_data along with those two name columns from congress." + ] + }, + "revisql-train:5177": { + "raw": "1. Interpret the user's phrase \"the House\" as the value 'House of Repsentatives' in the congress table using the external knowledge.\n2. Join the congress table with zip_congress on congress.cognress_rep_id = zip_congress.district to link each representative to their associated zip codes.\n3. Filter the joined rows to only those where the congress.House column equals 'House of Repsentatives'.\n4. Group the results by zip_congress.zip_code to ensure each qualifying zip code is listed once.\n5. Return the zip_code column from zip_congress.", + "steps": [ + "Interpret the user's phrase \"the House\" as the value 'House of Repsentatives' in the congress table using the external knowledge.", + "Join the congress table with zip_congress on congress.cognress_rep_id = zip_congress.district to link each representative to their associated zip codes.", + "Filter the joined rows to only those where the congress.House column equals 'House of Repsentatives'.", + "Group the results by zip_congress.zip_code to ensure each qualifying zip code is listed once.", + "Return the zip_code column from zip_congress." + ] + }, + "revisql-train:518": { + "raw": "1. Query the movie_crew table, which links each movie_id to its crew person_id; no table joins are necessary.\n2. Group the rows by movie_id and count distinct person_id values within each group to determine the unique crew count per movie.\n3. Apply the external knowledge concept that the average number of crews equals dividing total crew members by total movies by computing the average of the per-movie crew counts across all movies.\n4. Return the final aggregated value in a single column named avg_crew_per_movie.", + "steps": [ + "Query the movie_crew table, which links each movie_id to its crew person_id; no table joins are necessary.", + "Group the rows by movie_id and count distinct person_id values within each group to determine the unique crew count per movie.", + "Apply the external knowledge concept that the average number of crews equals dividing total crew members by total movies by computing the average of the per-movie crew counts across all movies.", + "Return the final aggregated value in a single column named avg_crew_per_movie." + ] + }, + "revisql-train:5180": { + "raw": "1. Map the external knowledge so that \"postal points\" refer to `zip_code` records in the `zip_data` table and \"locations\" correspond to the `latitude` and `longitude` columns in that same table.\n2. Include the `area_code` table because it stores the area code values associated with each `zip_code`.\n3. Join `area_code` to `zip_data` using the shared `zip_code` column to link area codes with their geographic coordinates.\n4. Filter the joined results to only rows where `area_code` equals 410.\n5. Return the `latitude` and `longitude` columns from `zip_data` for every matching row, with no aggregation or ordering required.", + "steps": [ + "Map the external knowledge so that \"postal points\" refer to `zip_code` records in the `zip_data` table and \"locations\" correspond to the `latitude` and `longitude` columns in that same table.", + "Include the `area_code` table because it stores the area code values associated with each `zip_code`.", + "Join `area_code` to `zip_data` using the shared `zip_code` column to link area codes with their geographic coordinates.", + "Filter the joined results to only rows where `area_code` equals 410.", + "Return the `latitude` and `longitude` columns from `zip_data` for every matching row, with no aggregation or ordering required." + ] + }, + "revisql-train:5186": { + "raw": "1. Join the `state` and `country` tables on the state abbreviation column to link each state name with its county records.\n2. Group the joined results by state and compute the count of distinct counties per state.\n3. In a subquery, repeat the same join and grouping to calculate the distinct county count for every state, then apply MAX to find the highest such count.\n4. Filter the outer grouped query with a HAVING clause that keeps only states whose distinct county count equals the maximum value from the subquery.\n5. Return the `name` column from the `state` table for the qualifying states.", + "steps": [ + "Join the `state` and `country` tables on the state abbreviation column to link each state name with its county records.", + "Group the joined results by state and compute the count of distinct counties per state.", + "In a subquery, repeat the same join and grouping to calculate the distinct county count for every state, then apply MAX to find the highest such count.", + "Filter the outer grouped query with a HAVING clause that keeps only states whose distinct county count equals the maximum value from the subquery.", + "Return the `name` column from the `state` table for the qualifying states." + ] + }, + "revisql-train:5187": { + "raw": "1. Locate household counts in the `zip_data` table and district identifiers in the `zip_congress` table.\n2. Join `zip_data` to `zip_congress` on the matching `zip_code` key.\n3. Filter the joined rows to only those where the `district` column equals 'FL-10'.\n4. Sum the `households` column from `zip_data` across all retained rows.\n5. Return that single aggregated total as the result.", + "steps": [ + "Locate household counts in the `zip_data` table and district identifiers in the `zip_congress` table.", + "Join `zip_data` to `zip_congress` on the matching `zip_code` key.", + "Filter the joined rows to only those where the `district` column equals 'FL-10'.", + "Sum the `households` column from `zip_data` across all retained rows.", + "Return that single aggregated total as the result." + ] + }, + "revisql-train:5189": { + "raw": "1. Group zip_data by state and sum female_population for each state abbreviation, excluding any null totals.\n2. Calculate the average of those state-level female population sums to establish the threshold.\n3. Filter to keep only states whose total female population is strictly greater than that average.\n4. Join the remaining state abbreviations to the state table on abbreviation to retrieve the full state names.\n5. Return the name column from the state table.", + "steps": [ + "Group zip_data by state and sum female_population for each state abbreviation, excluding any null totals.", + "Calculate the average of those state-level female population sums to establish the threshold.", + "Filter to keep only states whose total female population is strictly greater than that average.", + "Join the remaining state abbreviations to the state table on abbreviation to retrieve the full state names.", + "Return the name column from the state table." + ] + }, + "revisql-train:5190": { + "raw": "1. Identify the state containing county 'CORYELL' by querying the `country` table for the county name.\n2. Select all distinct zip codes and their `households` from `zip_data` where the `state` matches that result to define the state-wide denominator.\n3. Join `zip_data` with the `country` table on `zip_code` and filter to rows where `county` = 'CORYELL' to isolate the Coryell zip codes for the numerator.\n4. Sum the `households` values from the Coryell zip set and from the full state zip set separately.\n5. Compute the percentage as 100.0 multiplied by the Coryell household sum, divided by the state household sum.\n6. Return the final calculated value in a single column named `percentage`.", + "steps": [ + "Identify the state containing county 'CORYELL' by querying the `country` table for the county name.", + "Select all distinct zip codes and their `households` from `zip_data` where the `state` matches that result to define the state-wide denominator.", + "Join `zip_data` with the `country` table on `zip_code` and filter to rows where `county` = 'CORYELL' to isolate the Coryell zip codes for the numerator.", + "Sum the `households` values from the Coryell zip set and from the full state zip set separately.", + "Compute the percentage as 100.0 multiplied by the Coryell household sum, divided by the state household sum.", + "Return the final calculated value in a single column named `percentage`." + ] + }, + "revisql-train:5191": { + "raw": "1. Map \"name of the CBSA officer\" to the CBSA_name column and \"position of the CBSA officer\" to the CBSA_type column in the CBSA table using the external knowledge.\n2. Join the CBSA table with zip_data on the shared CBSA code so the city filter can be applied.\n3. Filter zip_data to only rows where city is 'Cabo Rojo'.\n4. Group the results by CBSA_name and CBSA_type to avoid duplicate officer entries when a city spans multiple zip codes.\n5. Return the CBSA_name and CBSA_type columns.", + "steps": [ + "Map \"name of the CBSA officer\" to the CBSA_name column and \"position of the CBSA officer\" to the CBSA_type column in the CBSA table using the external knowledge.", + "Join the CBSA table with zip_data on the shared CBSA code so the city filter can be applied.", + "Filter zip_data to only rows where city is 'Cabo Rojo'.", + "Group the results by CBSA_name and CBSA_type to avoid duplicate officer entries when a city spans multiple zip codes.", + "Return the CBSA_name and CBSA_type columns." + ] + }, + "revisql-train:5196": { + "raw": "1. Join the avoid table with zip_data on the zip_code column to associate every bad alias with its state.\n2. Group the joined records by state and count the bad_alias values to compute the total bad aliases per state.\n3. Use a subquery that repeats the same join and state grouping to generate per-state counts, then apply the external knowledge that most bad aliases means selecting the maximum of those counts.\n4. Add a HAVING clause to the outer query that keeps only the state groups whose bad-alias count equals that maximum value.\n5. Return the state column.", + "steps": [ + "Join the avoid table with zip_data on the zip_code column to associate every bad alias with its state.", + "Group the joined records by state and count the bad_alias values to compute the total bad aliases per state.", + "Use a subquery that repeats the same join and state grouping to generate per-state counts, then apply the external knowledge that most bad aliases means selecting the maximum of those counts.", + "Add a HAVING clause to the outer query that keeps only the state groups whose bad-alias count equals that maximum value.", + "Return the state column." + ] + }, + "revisql-train:5198": { + "raw": "1. Join the CBSA table to zip_data on the CBSA code column so every officer record is paired with its corresponding state.\n2. Filter the joined rows to only those where CBSA_type equals 'Metro'.\n3. Group the filtered results by the state column from zip_data.\n4. Count distinct CBSA values within each state group and keep only groups where this count is greater than 20, applying the external knowledge definition.\n5. Return the state column for the remaining groups.", + "steps": [ + "Join the CBSA table to zip_data on the CBSA code column so every officer record is paired with its corresponding state.", + "Filter the joined rows to only those where CBSA_type equals 'Metro'.", + "Group the filtered results by the state column from zip_data.", + "Count distinct CBSA values within each state group and keep only groups where this count is greater than 20, applying the external knowledge definition.", + "Return the state column for the remaining groups." + ] + }, + "revisql-train:5199": { + "raw": "1. Use the external knowledge to map the county name Arecibo to the value ARECIBO in the county column.\n2. Join the country table with zip_data on zip_code to link county names with 2020 population data.\n3. Filter the joined rows to only those where county equals ARECIBO.\n4. Sum the population_2020 column from zip_data across all matching records.\n5. Return the aggregated sum as the single result column.", + "steps": [ + "Use the external knowledge to map the county name Arecibo to the value ARECIBO in the county column.", + "Join the country table with zip_data on zip_code to link county names with 2020 population data.", + "Filter the joined rows to only those where county equals ARECIBO.", + "Sum the population_2020 column from zip_data across all matching records.", + "Return the aggregated sum as the single result column." + ] + }, + "revisql-train:5200": { + "raw": "1. Join the country table with zip_data on zip_code to connect each county to the 2010 population figures of its constituent zip codes.\n2. Group the joined records by county and state, then sum population_2010 to compute the total 2010 population for each county-state combination.\n3. Filter the grouped results to keep only those whose total 2010 population is greater than 10000.\n4. Return distinct county names from the remaining qualifying groups.", + "steps": [ + "Join the country table with zip_data on zip_code to connect each county to the 2010 population figures of its constituent zip codes.", + "Group the joined records by county and state, then sum population_2010 to compute the total 2010 population for each county-state combination.", + "Filter the grouped results to keep only those whose total 2010 population is greater than 10000.", + "Return distinct county names from the remaining qualifying groups." + ] + }, + "revisql-train:5201": { + "raw": "1. Join the table that maps zip codes to counties with `zip_data` on `zip_code` to link each residential area's household count to its corresponding county.\n2. Group by both county name and state so that counties sharing a name across different states remain distinct during aggregation.\n3. Sum the `households` column from `zip_data` within each group to compute the total number of households per county.\n4. Use the external knowledge that \"largest\" refers to the maximum value by ordering those summed totals in descending order and keeping only the top row.\n5. Return solely the county name from that single top result.", + "steps": [ + "Join the table that maps zip codes to counties with `zip_data` on `zip_code` to link each residential area's household count to its corresponding county.", + "Group by both county name and state so that counties sharing a name across different states remain distinct during aggregation.", + "Sum the `households` column from `zip_data` within each group to compute the total number of households per county.", + "Use the external knowledge that \"largest\" refers to the maximum value by ordering those summed totals in descending order and keeping only the top row.", + "Return solely the county name from that single top result." + ] + }, + "revisql-train:5207": { + "raw": "1. Identify the area_code table as the source for the area code and the country table as the source for the county name, noting both tables share the zip_code column.\n2. Inner join the area_code table and the country table on their zip_code columns to relate each area code with its corresponding county.\n3. Filter the joined results to only the row where zip_code equals 1116.\n4. Return the county column from the country table and the area_code column from the area_code table.", + "steps": [ + "Identify the area_code table as the source for the area code and the country table as the source for the county name, noting both tables share the zip_code column.", + "Inner join the area_code table and the country table on their zip_code columns to relate each area code with its corresponding county.", + "Filter the joined results to only the row where zip_code equals 1116.", + "Return the county column from the country table and the area_code column from the area_code table." + ] + }, + "revisql-train:5210": { + "raw": "1. Group zip_data by city and sum water_area to compute each city's total water area.\n2. Find the maximum value among those summed totals to identify the largest water area.\n3. Filter to the city or cities whose total water area equals that maximum.\n4. Join those cities back to zip_data on city to get all corresponding zip codes.\n5. Join the area_code table on zip_code to get the area codes for those zip codes.\n6. Select distinct area_code values as the final answer.", + "steps": [ + "Group zip_data by city and sum water_area to compute each city's total water area.", + "Find the maximum value among those summed totals to identify the largest water area.", + "Filter to the city or cities whose total water area equals that maximum.", + "Join those cities back to zip_data on city to get all corresponding zip codes.", + "Join the area_code table on zip_code to get the area codes for those zip codes.", + "Select distinct area_code values as the final answer." + ] + }, + "revisql-train:5214": { + "raw": "1. Apply the external knowledge that an Asian population of 7 maps to the `asian_population` column; aggregate `zip_data` by `city` and `state` with a sum of that column and keep only groups totaling exactly 7.\n2. Join that filtered city set back to `zip_data` on matching `city` and `state` to retrieve the individual `zip_code` records for those cities.\n3. Join the `alias` table to those zip codes on `zip_code` to link each qualifying postal point to its corresponding alias.\n4. Group the final results by `zip_code` and return the `alias` column.", + "steps": [ + "Apply the external knowledge that an Asian population of 7 maps to the `asian_population` column; aggregate `zip_data` by `city` and `state` with a sum of that column and keep only groups totaling exactly 7.", + "Join that filtered city set back to `zip_data` on matching `city` and `state` to retrieve the individual `zip_code` records for those cities.", + "Join the `alias` table to those zip codes on `zip_code` to link each qualifying postal point to its corresponding alias.", + "Group the final results by `zip_code` and return the `alias` column." + ] + }, + "revisql-train:5216": { + "raw": "1. Join the `alias` table to `zip_data` on the `zip_code` column to link each alias to its postal point details.\n2. Filter the joined rows to only those where the `alias` column equals 'Ponce', applying the external knowledge value.\n3. Map the question's FIPS requirement to the `county_fips` column in `zip_data` and identify records where its value is less than 20.\n4. Compute the percentage by casting the count of matching records to a real number, multiplying by 100, and dividing by the total count of postal points for alias 'Ponce'.\n5. Return a single calculated column containing the resulting percentage.", + "steps": [ + "Join the `alias` table to `zip_data` on the `zip_code` column to link each alias to its postal point details.", + "Filter the joined rows to only those where the `alias` column equals 'Ponce', applying the external knowledge value.", + "Map the question's FIPS requirement to the `county_fips` column in `zip_data` and identify records where its value is less than 20.", + "Compute the percentage by casting the count of matching records to a real number, multiplying by 100, and dividing by the total count of postal points for alias 'Ponce'.", + "Return a single calculated column containing the resulting percentage." + ] + }, + "revisql-train:5217": { + "raw": "1. Join the `country` table (source of county names) with `zip_data` on matching `zip_code` to link each postal point to its county.\n2. Compute the overall average 2020 population using a scalar subquery that selects `AVG(population_2020)` from `zip_data`.\n3. Filter the joined rows by the external knowledge threshold: keep only records where `zip_data.population_2020` is strictly greater than 0.97 multiplied by that average.\n4. Return distinct values of the `county` column from the `country` table to list each qualifying county once without duplicates.", + "steps": [ + "Join the `country` table (source of county names) with `zip_data` on matching `zip_code` to link each postal point to its county.", + "Compute the overall average 2020 population using a scalar subquery that selects `AVG(population_2020)` from `zip_data`.", + "Filter the joined rows by the external knowledge threshold: keep only records where `zip_data.population_2020` is strictly greater than 0.97 multiplied by that average.", + "Return distinct values of the `county` column from the `country` table to list each qualifying county once without duplicates." + ] + }, + "revisql-train:5219": { + "raw": "1. Identify that postal points and their coordinates reside in the zip_data table, specifically in the zip_code, latitude, and longitude columns.\n2. Recognize from the external knowledge that \"Allentown-Bethlehem-Easton, PA-NJ\" maps to the CBSA_name column in the CBSA table.\n3. Join the CBSA table with the zip_data table on the shared CBSA code to link each postal point to its corresponding CBSA name.\n4. Filter the joined set to keep only rows where CBSA_name equals exactly 'Allentown-Bethlehem-Easton, PA-NJ'.\n5. Return the zip_code, latitude, and longitude columns from zip_data for the filtered records.", + "steps": [ + "Identify that postal points and their coordinates reside in the zip_data table, specifically in the zip_code, latitude, and longitude columns.", + "Recognize from the external knowledge that \"Allentown-Bethlehem-Easton, PA-NJ\" maps to the CBSA_name column in the CBSA table.", + "Join the CBSA table with the zip_data table on the shared CBSA code to link each postal point to its corresponding CBSA name.", + "Filter the joined set to keep only rows where CBSA_name equals exactly 'Allentown-Bethlehem-Easton, PA-NJ'.", + "Return the zip_code, latitude, and longitude columns from zip_data for the filtered records." + ] + }, + "revisql-train:5227": { + "raw": "1. Filter `zip_data` to rows where `city` is 'East Springfield' and `state` is 'PA'.\n2. Join `zip_congress` on `zip_code` to link those postal points to their congressional districts.\n3. Join the `congress` table on `cognress_rep_id` equal to `zip_congress.district` to reach the representatives' records.\n4. Map the requested congress representatives' IDs to the `CID` column in the `congress` table per the external knowledge.\n5. Return distinct values of `CID` to avoid duplicate IDs when multiple zip codes fall in the same district.", + "steps": [ + "Filter `zip_data` to rows where `city` is 'East Springfield' and `state` is 'PA'.", + "Join `zip_congress` on `zip_code` to link those postal points to their congressional districts.", + "Join the `congress` table on `cognress_rep_id` equal to `zip_congress.district` to reach the representatives' records.", + "Map the requested congress representatives' IDs to the `CID` column in the `congress` table per the external knowledge.", + "Return distinct values of `CID` to avoid duplicate IDs when multiple zip codes fall in the same district." + ] + }, + "revisql-train:5228": { + "raw": "1. Identify that the CBSA officer name is stored as CBSA_name in the CBSA table, while employee counts are in the zip_data table.\n2. Join CBSA to zip_data on the shared CBSA code key to link each officer to their zip area's employee count.\n3. Compute the highest number of employees by taking the maximum of the employees column in zip_data.\n4. Filter the joined rows to keep only the zip area(s) whose employees value matches that maximum.\n5. Select and return only the CBSA_name column from the CBSA table for the matching row(s).", + "steps": [ + "Identify that the CBSA officer name is stored as CBSA_name in the CBSA table, while employee counts are in the zip_data table.", + "Join CBSA to zip_data on the shared CBSA code key to link each officer to their zip area's employee count.", + "Compute the highest number of employees by taking the maximum of the employees column in zip_data.", + "Filter the joined rows to keep only the zip area(s) whose employees value matches that maximum.", + "Select and return only the CBSA_name column from the CBSA table for the matching row(s)." + ] + }, + "revisql-train:5229": { + "raw": "1. Join the zip_data table with the state table on zip_data.state matching state.abbreviation so the state name is available for filtering.\n2. Restrict the results to rows where state.name equals 'Ohio'.\n3. Restrict further to rows where zip_data.type equals 'Unique Post Office' to isolate unique post office types.\n4. Count the zip_data.zip_code values and return that single aggregated number.", + "steps": [ + "Join the zip_data table with the state table on zip_data.state matching state.abbreviation so the state name is available for filtering.", + "Restrict the results to rows where state.name equals 'Ohio'.", + "Restrict further to rows where zip_data.type equals 'Unique Post Office' to isolate unique post office types.", + "Count the zip_data.zip_code values and return that single aggregated number." + ] + }, + "revisql-train:5230": { + "raw": "1. Join the `state` table to `zip_data` on the state abbreviation matching the `state` column so that full territory names can be used for filtering postal points.\n2. Filter the joined rows to only those where the `name` column in `state` equals 'Guam'.\n3. Sum the `total_beneficiaries` column from `zip_data` across all Guam postal points.\n4. Count the `zip_code` values from `zip_data` to obtain the total number of postal points in Guam.\n5. Cast the summed beneficiaries to a real number and divide it by the count of zip codes to compute the average beneficiaries per postal point.\n6. Return the single resulting calculated average value.", + "steps": [ + "Join the `state` table to `zip_data` on the state abbreviation matching the `state` column so that full territory names can be used for filtering postal points.", + "Filter the joined rows to only those where the `name` column in `state` equals 'Guam'.", + "Sum the `total_beneficiaries` column from `zip_data` across all Guam postal points.", + "Count the `zip_code` values from `zip_data` to obtain the total number of postal points in Guam.", + "Cast the summed beneficiaries to a real number and divide it by the count of zip codes to compute the average beneficiaries per postal point.", + "Return the single resulting calculated average value." + ] + }, + "revisql-train:5237": { + "raw": "1. Identify the rootbeerbrand table as the source for brewery location data since it contains both BreweryName and City columns.\n2. Map the external knowledge that the brewery referenced as AJ Stephans corresponds to the BreweryName value 'AJ Stephans Beverages'.\n3. Filter rootbeerbrand to rows where BreweryName exactly matches 'AJ Stephans Beverages'.\n4. Return only the City column from the resulting row to answer the location question.", + "steps": [ + "Identify the rootbeerbrand table as the source for brewery location data since it contains both BreweryName and City columns.", + "Map the external knowledge that the brewery referenced as AJ Stephans corresponds to the BreweryName value 'AJ Stephans Beverages'.", + "Filter rootbeerbrand to rows where BreweryName exactly matches 'AJ Stephans Beverages'.", + "Return only the City column from the resulting row to answer the location question." + ] + }, + "revisql-train:5238": { + "raw": "1. Join the `customers` table to the `transaction` table on the `CustomerID` key to link each customer to their purchases.\n2. Filter the `customers` side to rows where `First` equals `'Frank-Paul'` and `Last` equals `'Santangelo'`.\n3. Map the external knowledge phrase \"in July, 2014\" to the `transaction` table's `TransactionDate` column, keeping only rows dated in that month and year.\n4. Count the resulting rows and return that count—aggregated on `CustomerID`—as the total number of transactions.", + "steps": [ + "Join the `customers` table to the `transaction` table on the `CustomerID` key to link each customer to their purchases.", + "Filter the `customers` side to rows where `First` equals `'Frank-Paul'` and `Last` equals `'Santangelo'`.", + "Map the external knowledge phrase \"in July, 2014\" to the `transaction` table's `TransactionDate` column, keeping only rows dated in that month and year.", + "Count the resulting rows and return that count—aggregated on `CustomerID`—as the total number of transactions." + ] + }, + "revisql-train:5245": { + "raw": "1. Start from the customers table and select the First and Last columns to produce the requested full names.\n2. Inner join transaction on CustomerID to ensure only customers with at least one purchase are included.\n3. Inner join rootbeer on RootBeerID to connect each transaction to its root beer record and retrieve the BrandID.\n4. Inner join rootbeerbrand on BrandID to access the BreweryName column, filtering for 'AJ Stephans Beverages' as specified in the external knowledge.\n5. Apply DISTINCT to the First and Last columns so each qualifying customer is listed only once.", + "steps": [ + "Start from the customers table and select the First and Last columns to produce the requested full names.", + "Inner join transaction on CustomerID to ensure only customers with at least one purchase are included.", + "Inner join rootbeer on RootBeerID to connect each transaction to its root beer record and retrieve the BrandID.", + "Inner join rootbeerbrand on BrandID to access the BreweryName column, filtering for 'AJ Stephans Beverages' as specified in the external knowledge.", + "Apply DISTINCT to the First and Last columns so each qualifying customer is listed only once." + ] + }, + "revisql-train:5248": { + "raw": "1. Filter the customers table to the single row where First equals 'Frank-Paul' and Last equals 'Santangelo'.\n2. Join the transaction table on CustomerID to retrieve every purchase linked to that customer.\n3. Join rootbeer on RootBeerID, then join rootbeerbrand on BrandID to access the sweetener attributes.\n4. Apply the external definition of non-sweetened by requiring rootbeerbrand.Honey = 'FALSE' and rootbeerbrand.ArtificialSweetener = 'FALSE'.\n5. Count the resulting rows and return that count as the answer.", + "steps": [ + "Filter the customers table to the single row where First equals 'Frank-Paul' and Last equals 'Santangelo'.", + "Join the transaction table on CustomerID to retrieve every purchase linked to that customer.", + "Join rootbeer on RootBeerID, then join rootbeerbrand on BrandID to access the sweetener attributes.", + "Apply the external definition of non-sweetened by requiring rootbeerbrand.Honey = 'FALSE' and rootbeerbrand.ArtificialSweetener = 'FALSE'.", + "Count the resulting rows and return that count as the answer." + ] + }, + "revisql-train:5249": { + "raw": "1. Join `transaction` with `customers` on `CustomerID` to connect each purchase record to the customer's gender and access the `TransactionDate` column.\n2. Filter for male customers by applying `Gender = 'M'`.\n3. Group the joined records by `CustomerID` and `TransactionDate` to aggregate the number of root beers each customer bought on each individual date.\n4. Keep only groups having a record count greater than 3, mapping the requirement \"purchased more than 3 root beers\" to a grouped count threshold.\n5. Return distinct values of `TransactionDate` from the qualifying groups so each date appears only once in the final list.", + "steps": [ + "Join `transaction` with `customers` on `CustomerID` to connect each purchase record to the customer's gender and access the `TransactionDate` column.", + "Filter for male customers by applying `Gender = 'M'`.", + "Group the joined records by `CustomerID` and `TransactionDate` to aggregate the number of root beers each customer bought on each individual date.", + "Keep only groups having a record count greater than 3, mapping the requirement \"purchased more than 3 root beers\" to a grouped count threshold.", + "Return distinct values of `TransactionDate` from the qualifying groups so each date appears only once in the final list." + ] + }, + "revisql-train:5250": { + "raw": "1. Join the rootbeer table to the transaction table on RootBeerID, and then join rootbeerbrand on BrandID, so that each sold item is linked to its brand name and transaction date.\n2. Use the external knowledge to filter for rows where rootbeerbrand.BrandName equals 'A&W' and transaction.TransactionDate falls in August 2015.\n3. Count the total number of matching rootbeer records to obtain the full monthly sales volume.\n4. Cast that count to a real number and divide by 31 to compute the average number of A&W root beers sold per day.\n5. Return exactly one column containing that single calculated daily average value.", + "steps": [ + "Join the rootbeer table to the transaction table on RootBeerID, and then join rootbeerbrand on BrandID, so that each sold item is linked to its brand name and transaction date.", + "Use the external knowledge to filter for rows where rootbeerbrand.BrandName equals 'A&W' and transaction.TransactionDate falls in August 2015.", + "Count the total number of matching rootbeer records to obtain the full monthly sales volume.", + "Cast that count to a real number and divide by 31 to compute the average number of A&W root beers sold per day.", + "Return exactly one column containing that single calculated daily average value." + ] + }, + "revisql-train:5252": { + "raw": "1. Locate the customer James House by filtering the customers table on First equal to James and Last equal to House.\n2. Join the filtered customers table to the rootbeerreview table using CustomerID as the join key to associate the person with every review they wrote.\n3. Count the number of matching rows from the rootbeerreview side to obtain the total number of reviews.\n4. Return only that final count value as the result.", + "steps": [ + "Locate the customer James House by filtering the customers table on First equal to James and Last equal to House.", + "Join the filtered customers table to the rootbeerreview table using CustomerID as the join key to associate the person with every review they wrote.", + "Count the number of matching rows from the rootbeerreview side to obtain the total number of reviews.", + "Return only that final count value as the result." + ] + }, + "revisql-train:5253": { + "raw": "1. Locate the customer in the customers table by filtering First to 'Lisa' and Last to 'Ling'.\n2. Join the customers table to the transaction table using CustomerID as the join key.\n3. From the transaction side of the join, retrieve the CreditCardNumber values.\n4. Apply DISTINCT to the CreditCardNumber results to ensure unique card numbers are returned.", + "steps": [ + "Locate the customer in the customers table by filtering First to 'Lisa' and Last to 'Ling'.", + "Join the customers table to the transaction table using CustomerID as the join key.", + "From the transaction side of the join, retrieve the CreditCardNumber values.", + "Apply DISTINCT to the CreditCardNumber results to ensure unique card numbers are returned." + ] + }, + "revisql-train:5255": { + "raw": "1. Start with the `transaction` table to find the record for transaction number 100885, since \"transaction no.\" maps to the TransactionID column.\n2. Join the `location` table on LocationID to access the location details linked to that transaction.\n3. Filter by TransactionID = 100885 to isolate the specific transaction.\n4. Return the LocationName column from the `location` table, as \"name of the location\" refers to LocationName.", + "steps": [ + "Start with the `transaction` table to find the record for transaction number 100885, since \"transaction no.\" maps to the TransactionID column.", + "Join the `location` table on LocationID to access the location details linked to that transaction.", + "Filter by TransactionID = 100885 to isolate the specific transaction.", + "Return the LocationName column from the `location` table, as \"name of the location\" refers to LocationName." + ] + }, + "revisql-train:5257": { + "raw": "1. Identify that `customers` stores `PhoneNumber` and `transaction` stores `CreditCardNumber`.\n2. Join `customers` to `transaction` on `CustomerID` to link each customer with their payment records.\n3. Filter the results to only rows where `CreditCardNumber` equals 6011179359005382.\n4. Return the `PhoneNumber` column from `customers`, using DISTINCT to avoid duplicate phone numbers if the customer has multiple transactions with that card.", + "steps": [ + "Identify that `customers` stores `PhoneNumber` and `transaction` stores `CreditCardNumber`.", + "Join `customers` to `transaction` on `CustomerID` to link each customer with their payment records.", + "Filter the results to only rows where `CreditCardNumber` equals 6011179359005382.", + "Return the `PhoneNumber` column from `customers`, using DISTINCT to avoid duplicate phone numbers if the customer has multiple transactions with that card." + ] + }, + "revisql-train:5259": { + "raw": "1. Identify that the review text \"Tastes like Australia.\" maps to the `Review` column in `rootbeerreview`, while the desired answer comes from the `FirstPurchaseDate` column in `customers`.\n2. Join the `customers` table to `rootbeerreview` on the shared `CustomerID` key to connect each review with its reviewer.\n3. Filter the result to only the row where `rootbeerreview.Review` is exactly 'Tastes like Australia.'.\n4. Return the single `FirstPurchaseDate` value from the matching `customers` record.", + "steps": [ + "Identify that the review text \"Tastes like Australia.\" maps to the `Review` column in `rootbeerreview`, while the desired answer comes from the `FirstPurchaseDate` column in `customers`.", + "Join the `customers` table to `rootbeerreview` on the shared `CustomerID` key to connect each review with its reviewer.", + "Filter the result to only the row where `rootbeerreview.Review` is exactly 'Tastes like Australia.'.", + "Return the single `FirstPurchaseDate` value from the matching `customers` record." + ] + }, + "revisql-train:526": { + "raw": "1. Start from the movie_languages table and join it to the language table on the language_id key to reach the language_code column.\n2. Filter the joined rows where language_code equals 'vi', mapping the external knowledge that \"vi\" refers to that specific column value.\n3. Use COUNT(DISTINCT movie_id) on movie_languages to ensure each movie is counted only once.\n4. Return only the resulting aggregated count.", + "steps": [ + "Start from the movie_languages table and join it to the language table on the language_id key to reach the language_code column.", + "Filter the joined rows where language_code equals 'vi', mapping the external knowledge that \"vi\" refers to that specific column value.", + "Use COUNT(DISTINCT movie_id) on movie_languages to ensure each movie is counted only once.", + "Return only the resulting aggregated count." + ] + }, + "revisql-train:5262": { + "raw": "1. Join the customers table to rootbeerreview on CustomerID, then join rootbeerbrand on BrandID to connect each customer's email subscription status with their brand review.\n2. Filter rootbeerreview for StarRating equal to 3 and ReviewDate equal to '2014-04-24', applying the external knowledge mappings for the rating and date.\n3. Filter rootbeerbrand for BrandName equal to 'Frostie' to isolate the specified brand.\n4. Compute the output as a CASE expression on customers.SubscribedToEmailList that returns 'YES' when the value is 'TRUE' and 'NO' otherwise, indicating whether the customer permitted regular emails.\n5. Return only this derived column, aliased as result.", + "steps": [ + "Join the customers table to rootbeerreview on CustomerID, then join rootbeerbrand on BrandID to connect each customer's email subscription status with their brand review.", + "Filter rootbeerreview for StarRating equal to 3 and ReviewDate equal to '2014-04-24', applying the external knowledge mappings for the rating and date.", + "Filter rootbeerbrand for BrandName equal to 'Frostie' to isolate the specified brand.", + "Compute the output as a CASE expression on customers.SubscribedToEmailList that returns 'YES' when the value is 'TRUE' and 'NO' otherwise, indicating whether the customer permitted regular emails.", + "Return only this derived column, aliased as result." + ] + }, + "revisql-train:5266": { + "raw": "1. Target the customers table exclusively; no joins are needed.\n2. Map the term \"female\" to the Gender column filtered to the value 'F'.\n3. Map the phrase \"permit the company to send regular emails to them\" to the SubscribedToEmailList column filtered to the value 'TRUE'.\n4. Combine both filters with AND in the WHERE clause.\n5. Apply COUNT to the CustomerID column to compute the total number of matching customers.\n6. Return the resulting count as the answer.", + "steps": [ + "Target the customers table exclusively; no joins are needed.", + "Map the term \"female\" to the Gender column filtered to the value 'F'.", + "Map the phrase \"permit the company to send regular emails to them\" to the SubscribedToEmailList column filtered to the value 'TRUE'.", + "Combine both filters with AND in the WHERE clause.", + "Apply COUNT to the CustomerID column to compute the total number of matching customers.", + "Return the resulting count as the answer." + ] + }, + "revisql-train:5268": { + "raw": "1. Query the `customers` table exclusively, as it contains all necessary name and date fields without requiring joins.\n2. Return the `First` and `Last` columns, mapping these to the full name specified in the external knowledge.\n3. Order the results by `FirstPurchaseDate` in ascending order to surface the earliest customers first, interpreting \"first top 11\" as the earliest purchase dates.\n4. Limit the result set to exactly 11 rows to isolate the top 11 customers from that ordering.", + "steps": [ + "Query the `customers` table exclusively, as it contains all necessary name and date fields without requiring joins.", + "Return the `First` and `Last` columns, mapping these to the full name specified in the external knowledge.", + "Order the results by `FirstPurchaseDate` in ascending order to surface the earliest customers first, interpreting \"first top 11\" as the earliest purchase dates.", + "Limit the result set to exactly 11 rows to isolate the top 11 customers from that ordering." + ] + }, + "revisql-train:5269": { + "raw": "1. Select from the rootbeerbrand table, which contains both the Country and BreweryName columns; no table joins are needed.\n2. Filter rows where Country equals 'Australia', applying the external knowledge that Australia maps to that exact column value.\n3. Aggregate by counting distinct BreweryName values to ensure each brewery is counted only once.\n4. Return only the resulting count column.", + "steps": [ + "Select from the rootbeerbrand table, which contains both the Country and BreweryName columns; no table joins are needed.", + "Filter rows where Country equals 'Australia', applying the external knowledge that Australia maps to that exact column value.", + "Aggregate by counting distinct BreweryName values to ensure each brewery is counted only once.", + "Return only the resulting count column." + ] + }, + "revisql-train:5277": { + "raw": "1. Join `rootbeerbrand` with `rootbeerreview` on `BrandID` to connect each brand to its customer reviews.\n2. Filter `rootbeerreview` to only rows where `StarRating` equals 5, mapping the external knowledge that \"highly rated\" means top star ratings.\n3. Group the joined results by `BrandID` and count the number of 5-star reviews per brand.\n4. In a subquery against `rootbeerreview`, compute the maximum count of 5-star reviews that any single brand has achieved, again grouping by `BrandID`.\n5. Apply a `HAVING` clause to retain only those brands whose own count of 5-star reviews equals that overall maximum count.\n6. Return the `BrandName` column for the resulting brand or brands.", + "steps": [ + "Join `rootbeerbrand` with `rootbeerreview` on `BrandID` to connect each brand to its customer reviews.", + "Filter `rootbeerreview` to only rows where `StarRating` equals 5, mapping the external knowledge that \"highly rated\" means top star ratings.", + "Group the joined results by `BrandID` and count the number of 5-star reviews per brand.", + "In a subquery against `rootbeerreview`, compute the maximum count of 5-star reviews that any single brand has achieved, again grouping by `BrandID`.", + "Apply a `HAVING` clause to retain only those brands whose own count of 5-star reviews equals that overall maximum count.", + "Return the `BrandName` column for the resulting brand or brands." + ] + }, + "revisql-train:5278": { + "raw": "1. Filter the customers table to rows where First equals 'Nicholas' and Last equals 'Sparks'.\n2. Inner join transaction on CustomerID to retrieve all purchases made by that customer.\n3. Inner join rootbeer on RootBeerID, then inner join rootbeerbrand on BrandID to reach the brand name column.\n4. Filter rootbeerbrand by applying a LIKE condition on BrandName to match Henry Weinhard's, mapping the external knowledge brand reference to that column.\n5. Count the CustomerID values from the resulting joined rows and return that count.", + "steps": [ + "Filter the customers table to rows where First equals 'Nicholas' and Last equals 'Sparks'.", + "Inner join transaction on CustomerID to retrieve all purchases made by that customer.", + "Inner join rootbeer on RootBeerID, then inner join rootbeerbrand on BrandID to reach the brand name column.", + "Filter rootbeerbrand by applying a LIKE condition on BrandName to match Henry Weinhard's, mapping the external knowledge brand reference to that column.", + "Count the CustomerID values from the resulting joined rows and return that count." + ] + }, + "revisql-train:5279": { + "raw": "1. Join `transaction` to `rootbeer` on `RootBeerID`, then join `rootbeer` to `rootbeerbrand` on `BrandID` to link every purchase to its brand metadata.\n2. Apply the external knowledge filter for no social-media advertising: restrict `rootbeerbrand` rows to those where `FacebookPage IS NULL` and `Twitter IS NULL`.\n3. Group the joined rows by `BrandID` so purchases are aggregated per brand.\n4. Count the rows in each group to compute the number of purchases for each brand.\n5. Sort the groups by that count in descending order and keep only the top row to isolate the brand with the highest purchase count.\n6. Return the `BrandName` of the resulting brand.", + "steps": [ + "Join `transaction` to `rootbeer` on `RootBeerID`, then join `rootbeer` to `rootbeerbrand` on `BrandID` to link every purchase to its brand metadata.", + "Apply the external knowledge filter for no social-media advertising: restrict `rootbeerbrand` rows to those where `FacebookPage IS NULL` and `Twitter IS NULL`.", + "Group the joined rows by `BrandID` so purchases are aggregated per brand.", + "Count the rows in each group to compute the number of purchases for each brand.", + "Sort the groups by that count in descending order and keep only the top row to isolate the brand with the highest purchase count.", + "Return the `BrandName` of the resulting brand." + ] + }, + "revisql-train:5280": { + "raw": "1. Join the transaction table to rootbeer on RootBeerID, then to rootbeerbrand on BrandID, and to location on LocationID to connect each sale record to its brand and location names.\n2. Filter to BrandName = 'Dog n Suds' and restrict LocationName to only 'Sac State Union' and 'Sac State American River Courtyard'.\n3. Group by the location identifier (LocationID) and count the transactions in each group to measure sales volume per location.\n4. Order the grouped results by the transaction count in descending order and keep only the top row.\n5. Return the LocationName column as the final answer.", + "steps": [ + "Join the transaction table to rootbeer on RootBeerID, then to rootbeerbrand on BrandID, and to location on LocationID to connect each sale record to its brand and location names.", + "Filter to BrandName = 'Dog n Suds' and restrict LocationName to only 'Sac State Union' and 'Sac State American River Courtyard'.", + "Group by the location identifier (LocationID) and count the transactions in each group to measure sales volume per location.", + "Order the grouped results by the transaction count in descending order and keep only the top row.", + "Return the LocationName column as the final answer." + ] + }, + "revisql-train:5281": { + "raw": "1. Join the rootbeer table with the rootbeerbrand table on their shared BrandID column to link each purchased item to its brand name.\n2. Apply the \"canned\" filter by restricting rootbeer.ContainerType to the value 'Can'.\n3. Apply the \"A&W\" filter by restricting rootbeerbrand.BrandName to the value 'A&W'.\n4. Apply the \"in 2016\" filter by restricting rootbeer.PurchaseDate to dates within the year 2016.\n5. Count the surviving rows by counting rootbeer.BrandID and return exactly that single aggregated count column.", + "steps": [ + "Join the rootbeer table with the rootbeerbrand table on their shared BrandID column to link each purchased item to its brand name.", + "Apply the \"canned\" filter by restricting rootbeer.ContainerType to the value 'Can'.", + "Apply the \"A&W\" filter by restricting rootbeerbrand.BrandName to the value 'A&W'.", + "Apply the \"in 2016\" filter by restricting rootbeer.PurchaseDate to dates within the year 2016.", + "Count the surviving rows by counting rootbeer.BrandID and return exactly that single aggregated count column." + ] + }, + "revisql-train:5282": { + "raw": "1. Map the external knowledge that \"Sac State Union\" refers to the `LocationName` value in the `location` table.\n2. Map \"precise location\" to the `Latitude` and `Longitude` columns in the `geolocation` table.\n3. Join the `location` table with the `geolocation` table on the `LocationID` key to link the place name to its coordinates.\n4. Filter for the row where `LocationName` equals 'Sac State Union'.\n5. Return the `Latitude` and `Longitude` columns.", + "steps": [ + "Map the external knowledge that \"Sac State Union\" refers to the `LocationName` value in the `location` table.", + "Map \"precise location\" to the `Latitude` and `Longitude` columns in the `geolocation` table.", + "Join the `location` table with the `geolocation` table on the `LocationID` key to link the place name to its coordinates.", + "Filter for the row where `LocationName` equals 'Sac State Union'.", + "Return the `Latitude` and `Longitude` columns." + ] + }, + "revisql-train:5284": { + "raw": "1. Join rootbeerbrand and rootbeer on BrandID to link each brand’s details to its purchase records.\n2. Filter for rows where BreweryName equals 'Dr Pepper Snapple Group' and PurchaseDate is between '2014-01-01' and '2016-12-31' inclusive.\n3. Group the filtered results by BrandID to aggregate purchases per individual brand.\n4. Count the rows in each brand group, divide by the total count of all purchases matching the same brewery and date criteria using a subquery with the identical join and filters, and multiply by 100.0 to obtain each brand’s percentage share.\n5. Return BrandName and the computed percentage for each brand.", + "steps": [ + "Join rootbeerbrand and rootbeer on BrandID to link each brand’s details to its purchase records.", + "Filter for rows where BreweryName equals 'Dr Pepper Snapple Group' and PurchaseDate is between '2014-01-01' and '2016-12-31' inclusive.", + "Group the filtered results by BrandID to aggregate purchases per individual brand.", + "Count the rows in each brand group, divide by the total count of all purchases matching the same brewery and date criteria using a subquery with the identical join and filters, and multiply by 100.0 to obtain each brand’s percentage share.", + "Return BrandName and the computed percentage for each brand." + ] + }, + "revisql-train:5285": { + "raw": "1. Compute unit profit per brand in rootbeerbrand as CurrentRetailPrice minus WholesaleCost, then filter to the brand or brands with the minimum profit; retain BrandID and BrandName.\n2. Join that result to rootbeer on BrandID and then to transaction on RootBeerID to collect all purchase records for the target brand.\n3. Group by CustomerID and BrandName, then count transaction rows to get the number of purchases each customer made of that brand.\n4. Determine the maximum value among those per-customer purchase counts.\n5. Return only the CustomerID of the customer or customers whose purchase count equals that maximum.", + "steps": [ + "Compute unit profit per brand in rootbeerbrand as CurrentRetailPrice minus WholesaleCost, then filter to the brand or brands with the minimum profit; retain BrandID and BrandName.", + "Join that result to rootbeer on BrandID and then to transaction on RootBeerID to collect all purchase records for the target brand.", + "Group by CustomerID and BrandName, then count transaction rows to get the number of purchases each customer made of that brand.", + "Determine the maximum value among those per-customer purchase counts.", + "Return only the CustomerID of the customer or customers whose purchase count equals that maximum." + ] + }, + "revisql-train:5290": { + "raw": "1. Target the `transaction` table because the question asks about payment methods across all transactions.\n2. Map \"visa card\" to `CreditCardType = 'Visa'` using the external knowledge.\n3. Compute the denominator as the total count of all `TransactionID` records.\n4. Compute the numerator as the conditional count of `TransactionID` rows where `CreditCardType` equals 'Visa'.\n5. Cast the numerator to a real number, multiply by 100, and divide by the denominator to calculate the percentage.\n6. Return a single column containing the resulting percentage of Visa transactions.", + "steps": [ + "Target the `transaction` table because the question asks about payment methods across all transactions.", + "Map \"visa card\" to `CreditCardType = 'Visa'` using the external knowledge.", + "Compute the denominator as the total count of all `TransactionID` records.", + "Compute the numerator as the conditional count of `TransactionID` rows where `CreditCardType` equals 'Visa'.", + "Cast the numerator to a real number, multiply by 100, and divide by the denominator to calculate the percentage.", + "Return a single column containing the resulting percentage of Visa transactions." + ] + }, + "revisql-train:5292": { + "raw": "1. Join the `transaction` table to the `location` table on `LocationID` to link every sale to its location name.\n2. Map the external name \"Sac State American River Courtyard\" to the column `location.LocationName` with the exact value `'Sac State American River Courtyard'`.\n3. Compute the numerator by conditionally counting transactions where `LocationName` matches that value.\n4. Compute the denominator by counting all `TransactionID` values to get the total number of sales.\n5. Cast the numerator count to REAL, multiply by 100, and divide by the denominator to produce the percentage.\n6. Return exactly one column containing the final calculated percentage.", + "steps": [ + "Join the `transaction` table to the `location` table on `LocationID` to link every sale to its location name.", + "Map the external name \"Sac State American River Courtyard\" to the column `location.LocationName` with the exact value `'Sac State American River Courtyard'`.", + "Compute the numerator by conditionally counting transactions where `LocationName` matches that value.", + "Compute the denominator by counting all `TransactionID` values to get the total number of sales.", + "Cast the numerator count to REAL, multiply by 100, and divide by the denominator to produce the percentage.", + "Return exactly one column containing the final calculated percentage." + ] + }, + "revisql-train:5295": { + "raw": "1. Join rootbeer to transaction on RootBeerID and join rootbeer to rootbeerbrand on BrandID to link container details, purchase prices, and brand records.\n2. Use the external knowledge mapping that \"in bottles\" corresponds to rootbeer.ContainerType = 'Bottle' and filter accordingly.\n3. Use the external knowledge mapping that \"more than 2 dollars\" corresponds to transaction.PurchasePrice > 2 and filter accordingly.\n4. Aggregate the results by calculating AVG(transaction.PurchasePrice) to obtain the average cost.\n5. Return exactly one column: the average of PurchasePrice.", + "steps": [ + "Join rootbeer to transaction on RootBeerID and join rootbeer to rootbeerbrand on BrandID to link container details, purchase prices, and brand records.", + "Use the external knowledge mapping that \"in bottles\" corresponds to rootbeer.ContainerType = 'Bottle' and filter accordingly.", + "Use the external knowledge mapping that \"more than 2 dollars\" corresponds to transaction.PurchasePrice > 2 and filter accordingly.", + "Aggregate the results by calculating AVG(transaction.PurchasePrice) to obtain the average cost.", + "Return exactly one column: the average of PurchasePrice." + ] + }, + "revisql-train:5298": { + "raw": "1. Join rootbeer to rootbeerreview on BrandID, and join rootbeerbrand on BrandID, so each review and root beer record carries its brand name.\n2. Filter rootbeerreview to rows where StarRating equals 5 and the year extracted from ReviewDate equals 2012, mapping the \"five stars\" condition to StarRating and the \"in 2012\" period to ReviewDate.\n3. Group the joined results by BrandID and count distinct CustomerIDs to compute the number of five-star reviews per brand.\n4. In a subquery, repeat the same joins, filters, and grouping to compute per-brand five-star counts, then take the maximum of those counts to find the highest review total.\n5. In the outer query, apply a HAVING clause that keeps only brands whose per-brand count equals that maximum count.\n6. Return the BrandName column from rootbeerbrand.", + "steps": [ + "Join rootbeer to rootbeerreview on BrandID, and join rootbeerbrand on BrandID, so each review and root beer record carries its brand name.", + "Filter rootbeerreview to rows where StarRating equals 5 and the year extracted from ReviewDate equals 2012, mapping the \"five stars\" condition to StarRating and the \"in 2012\" period to ReviewDate.", + "Group the joined results by BrandID and count distinct CustomerIDs to compute the number of five-star reviews per brand.", + "In a subquery, repeat the same joins, filters, and grouping to compute per-brand five-star counts, then take the maximum of those counts to find the highest review total.", + "In the outer query, apply a HAVING clause that keeps only brands whose per-brand count equals that maximum count.", + "Return the BrandName column from rootbeerbrand." + ] + }, + "revisql-train:53": { + "raw": "1. Use the `lists` table exclusively, as the question only concerns movie lists and requires no joins.\n2. Filter on `list_creation_timestamp_utc` being greater than '2010/1/1' to satisfy \"created after 2010/1/1\".\n3. Filter on `list_followers` being greater than 200 to satisfy \"over 200 followers\".\n4. Aggregate the filtered rows with a count, since the question asks for a quantity.\n5. Return a single column containing that total count.", + "steps": [ + "Use the `lists` table exclusively, as the question only concerns movie lists and requires no joins.", + "Filter on `list_creation_timestamp_utc` being greater than '2010/1/1' to satisfy \"created after 2010/1/1\".", + "Filter on `list_followers` being greater than 200 to satisfy \"over 200 followers\".", + "Aggregate the filtered rows with a count, since the question asks for a quantity.", + "Return a single column containing that total count." + ] + }, + "revisql-train:5302": { + "raw": "1. Filter the customers table to male customers in Sacramento by applying Gender = 'M' and City = 'Sacramento'.\n2. Join transaction on CustomerID, rootbeer on RootBeerID, and rootbeerbrand on BrandID to link each filtered customer to their purchased brands.\n3. For the numerator, count distinct CustomerIDs where BrandName = 'Dominion' and TransactionDate falls in 2014.\n4. For the denominator, count distinct CustomerIDs across the entire filtered male Sacramento group.\n5. Cast the numerator to a real number, multiply by 100, divide by the denominator, and return this single calculated percentage.", + "steps": [ + "Filter the customers table to male customers in Sacramento by applying Gender = 'M' and City = 'Sacramento'.", + "Join transaction on CustomerID, rootbeer on RootBeerID, and rootbeerbrand on BrandID to link each filtered customer to their purchased brands.", + "For the numerator, count distinct CustomerIDs where BrandName = 'Dominion' and TransactionDate falls in 2014.", + "For the denominator, count distinct CustomerIDs across the entire filtered male Sacramento group.", + "Cast the numerator to a real number, multiply by 100, divide by the denominator, and return this single calculated percentage." + ] + }, + "revisql-train:5304": { + "raw": "1. Start from the customers table to retrieve First, Last, and Email, applying the external knowledge that \"full name\" maps to the First and Last columns.\n2. Inner join customers with transaction on CustomerID to access payment details, then filter the CreditCardType column to 'American Express'.\n3. Inner join transaction with location on LocationID to access location names, then filter the LocationName column to 'Sac State Union'.\n4. Apply DISTINCT across the customer name and email fields to avoid duplicate entries when a customer has multiple matching transactions.\n5. Return exactly the columns First, Last, and Email.", + "steps": [ + "Start from the customers table to retrieve First, Last, and Email, applying the external knowledge that \"full name\" maps to the First and Last columns.", + "Inner join customers with transaction on CustomerID to access payment details, then filter the CreditCardType column to 'American Express'.", + "Inner join transaction with location on LocationID to access location names, then filter the LocationName column to 'Sac State Union'.", + "Apply DISTINCT across the customer name and email fields to avoid duplicate entries when a customer has multiple matching transactions.", + "Return exactly the columns First, Last, and Email." + ] + }, + "revisql-train:5308": { + "raw": "1. Join the customers table with the rootbeerreview table on CustomerID to link each review to the corresponding customer's location data.\n2. Filter rootbeerreview to only rows where StarRating equals 5, mapping the external knowledge that \"5 stars\" corresponds to that column value.\n3. Filter rootbeerreview to only rows where ReviewDate falls in November 2012, mapping the external knowledge that \"in November 2012\" restricts that date column to that month.\n4. Apply a distinct selection on the City column from the customers table to eliminate duplicate city names since the question asks from which cities these customers come.\n5. Return only the City column in the final result.", + "steps": [ + "Join the customers table with the rootbeerreview table on CustomerID to link each review to the corresponding customer's location data.", + "Filter rootbeerreview to only rows where StarRating equals 5, mapping the external knowledge that \"5 stars\" corresponds to that column value.", + "Filter rootbeerreview to only rows where ReviewDate falls in November 2012, mapping the external knowledge that \"in November 2012\" restricts that date column to that month.", + "Apply a distinct selection on the City column from the customers table to eliminate duplicate city names since the question asks from which cities these customers come.", + "Return only the City column in the final result." + ] + }, + "revisql-train:5311": { + "raw": "1. Join rootbeer to transaction on RootBeerID and to rootbeerbrand on BrandID to link each purchase record to its brand attributes and credit card type.\n2. Filter for non-alcoholic beers by checking rootbeerbrand.Alcoholic equals 'FALSE', mapping the question's condition to the brand column.\n3. Group the results by transaction.CreditCardType to aggregate the number of purchases made with each credit card.\n4. Order the groups by the purchase count in descending order and keep only the top row to isolate the most frequently used card.\n5. Return the CreditCardType column as the final answer.", + "steps": [ + "Join rootbeer to transaction on RootBeerID and to rootbeerbrand on BrandID to link each purchase record to its brand attributes and credit card type.", + "Filter for non-alcoholic beers by checking rootbeerbrand.Alcoholic equals 'FALSE', mapping the question's condition to the brand column.", + "Group the results by transaction.CreditCardType to aggregate the number of purchases made with each credit card.", + "Order the groups by the purchase count in descending order and keep only the top row to isolate the most frequently used card.", + "Return the CreditCardType column as the final answer." + ] + }, + "revisql-train:5314": { + "raw": "1. Join rootbeerbrand to rootbeerreview on BrandID to connect each brand’s corn-syrup attribute with its customer star ratings.\n2. Filter the joined set to rows where CornSyrup equals 'TRUE', mapping the phrase “containing corn syrup” to that exact column and value.\n3. Group the remaining records by StarRating to prepare a frequency count for each distinct rating.\n4. Count the number of reviews within each StarRating group and order the groups by that count in descending order so the most common rating appears first.\n5. Restrict the output to the first row only, satisfying the “most common” requirement.\n6. Return the StarRating column as the final answer.", + "steps": [ + "Join rootbeerbrand to rootbeerreview on BrandID to connect each brand’s corn-syrup attribute with its customer star ratings.", + "Filter the joined set to rows where CornSyrup equals 'TRUE', mapping the phrase “containing corn syrup” to that exact column and value.", + "Group the remaining records by StarRating to prepare a frequency count for each distinct rating.", + "Count the number of reviews within each StarRating group and order the groups by that count in descending order so the most common rating appears first.", + "Restrict the output to the first row only, satisfying the “most common” requirement.", + "Return the StarRating column as the final answer." + ] + }, + "revisql-train:5316": { + "raw": "1. Convert the given coordinate string to Latitude = 38.566129 and Longitude = -121.426432 using the external knowledge to filter the geolocation table.\n2. Join rootbeer to rootbeerbrand on BrandID to access the BrandName for each beer.\n3. Join rootbeer to geolocation on LocationID to connect beers to their precise coordinates.\n4. Filter geolocation rows where Latitude equals 38.566129 and Longitude equals -121.426432.\n5. Return distinct BrandName values from rootbeerbrand to avoid duplicate brand entries.", + "steps": [ + "Convert the given coordinate string to Latitude = 38.566129 and Longitude = -121.426432 using the external knowledge to filter the geolocation table.", + "Join rootbeer to rootbeerbrand on BrandID to access the BrandName for each beer.", + "Join rootbeer to geolocation on LocationID to connect beers to their precise coordinates.", + "Filter geolocation rows where Latitude equals 38.566129 and Longitude equals -121.426432.", + "Return distinct BrandName values from rootbeerbrand to avoid duplicate brand entries." + ] + }, + "revisql-train:5323": { + "raw": "1. Join the `customers` and `rootbeerreview` tables on `CustomerID` to link each review to the reviewer’s demographic record.\n2. Filter `customers` to females on the mailing list from Sacramento by requiring `Gender = 'F'`, `SubscribedToEmailList = 'TRUE'`, and `City = 'Sacramento'`.\n3. Filter `rootbeerreview` to the specified rating and period by requiring `StarRating = 4` and `ReviewDate` between `'2013-01-03'` and `'2013-10-26'`.\n4. Count distinct `CustomerID` to tally unique subscribers who meet all criteria.\n5. Return only that final count.", + "steps": [ + "Join the `customers` and `rootbeerreview` tables on `CustomerID` to link each review to the reviewer’s demographic record.", + "Filter `customers` to females on the mailing list from Sacramento by requiring `Gender = 'F'`, `SubscribedToEmailList = 'TRUE'`, and `City = 'Sacramento'`.", + "Filter `rootbeerreview` to the specified rating and period by requiring `StarRating = 4` and `ReviewDate` between `'2013-01-03'` and `'2013-10-26'`.", + "Count distinct `CustomerID` to tally unique subscribers who meet all criteria.", + "Return only that final count." + ] + }, + "revisql-train:5324": { + "raw": "1. Join rootbeer with rootbeerbrand on BrandID to connect each root beer record to its brand and brewery details.\n2. Filter rootbeer to ContainerType = 'Can' to isolate canned root beer per the external knowledge mapping.\n3. Filter rootbeer to PurchaseDate < '2015-06-06' to restrict to purchases before 6/6/2015 per the external knowledge mapping.\n4. Use DISTINCT to ensure each brewery and brand name pair appears only once.\n5. Return BreweryName and BrandName from rootbeerbrand.", + "steps": [ + "Join rootbeer with rootbeerbrand on BrandID to connect each root beer record to its brand and brewery details.", + "Filter rootbeer to ContainerType = 'Can' to isolate canned root beer per the external knowledge mapping.", + "Filter rootbeer to PurchaseDate < '2015-06-06' to restrict to purchases before 6/6/2015 per the external knowledge mapping.", + "Use DISTINCT to ensure each brewery and brand name pair appears only once.", + "Return BreweryName and BrandName from rootbeerbrand." + ] + }, + "revisql-train:5326": { + "raw": "1. Join the customers table to the transaction table on CustomerID to link customer identities with their purchase records.\n2. Filter the customers table to rows where First is Anna and Last is Himes.\n3. Filter the transaction table to rows where CreditCardType is MasterCard, applying the external knowledge that Mastercard maps to that exact value.\n4. Further filter the transaction table to the date range by requiring TransactionDate to fall between 2014-12-25 and 2016-05-20, applying the external knowledge for the date window.\n5. Count the matching transaction rows and return that single count value as the result.", + "steps": [ + "Join the customers table to the transaction table on CustomerID to link customer identities with their purchase records.", + "Filter the customers table to rows where First is Anna and Last is Himes.", + "Filter the transaction table to rows where CreditCardType is MasterCard, applying the external knowledge that Mastercard maps to that exact value.", + "Further filter the transaction table to the date range by requiring TransactionDate to fall between 2014-12-25 and 2016-05-20, applying the external knowledge for the date window.", + "Count the matching transaction rows and return that single count value as the result." + ] + }, + "revisql-train:5327": { + "raw": "1. Join the `customers` table to `rootbeerreview` on `CustomerID` to link each review with the reviewer’s gender.\n2. Filter `rootbeerreview` to only rows where `BrandID` is 10018 and `ReviewDate` falls between `2013-01-25` and `2015-03-10`.\n3. Apply the external knowledge mapping for female customers by filtering `customers.Gender` to `'F'`.\n4. Aggregate the matching rows by computing the average of `rootbeerreview.StarRating`, corresponding to the external knowledge definition of average star rating.\n5. Return the single calculated average star rating column.", + "steps": [ + "Join the `customers` table to `rootbeerreview` on `CustomerID` to link each review with the reviewer’s gender.", + "Filter `rootbeerreview` to only rows where `BrandID` is 10018 and `ReviewDate` falls between `2013-01-25` and `2015-03-10`.", + "Apply the external knowledge mapping for female customers by filtering `customers.Gender` to `'F'`.", + "Aggregate the matching rows by computing the average of `rootbeerreview.StarRating`, corresponding to the external knowledge definition of average star rating.", + "Return the single calculated average star rating column." + ] + }, + "revisql-train:5328": { + "raw": "1. Join rootbeerbrand to rootbeerreview on BrandID to connect each review record to its corresponding brand name.\n2. Filter rootbeerreview to only the row where CustomerID equals 331115.\n3. Map the 1-star rating requirement to the column StarRating with value 1.\n4. Map the quoted review phrase to the column Review with value 'Yuk, more like licorice soda.'.\n5. Return only the BrandName column from rootbeerbrand.", + "steps": [ + "Join rootbeerbrand to rootbeerreview on BrandID to connect each review record to its corresponding brand name.", + "Filter rootbeerreview to only the row where CustomerID equals 331115.", + "Map the 1-star rating requirement to the column StarRating with value 1.", + "Map the quoted review phrase to the column Review with value 'Yuk, more like licorice soda.'.", + "Return only the BrandName column from rootbeerbrand." + ] + }, + "revisql-train:5329": { + "raw": "1. Use the `transaction` table as the base because it contains `PurchasePrice`, `CreditCardType`, and `TransactionDate`.\n2. Inner join the `location` table on the shared `LocationID` key to enable filtering by venue name.\n3. Map the location name 'Sac State American River Courtyard' to the `LocationName` column and filter for that exact value.\n4. Map 'Visa' to the `CreditCardType` column and the date range to `TransactionDate` between '2014-06-03' and '2015-11-27', applying both filters.\n5. Compute total purchases by summing the `PurchasePrice` column.\n6. Return only the aggregated `PurchasePrice` value.", + "steps": [ + "Use the `transaction` table as the base because it contains `PurchasePrice`, `CreditCardType`, and `TransactionDate`.", + "Inner join the `location` table on the shared `LocationID` key to enable filtering by venue name.", + "Map the location name 'Sac State American River Courtyard' to the `LocationName` column and filter for that exact value.", + "Map 'Visa' to the `CreditCardType` column and the date range to `TransactionDate` between '2014-06-03' and '2015-11-27', applying both filters.", + "Compute total purchases by summing the `PurchasePrice` column.", + "Return only the aggregated `PurchasePrice` value." + ] + }, + "revisql-train:5331": { + "raw": "1. Map the question's \"precise coordinate\" to the Latitude and Longitude columns in the geolocation table.\n2. Map \"Sac State Union\" to a filter on the LocationName column in the location table.\n3. Join the location table to the geolocation table on their shared LocationID key.\n4. Apply the filter LocationName = 'Sac State Union' to isolate the target location.\n5. Return the Latitude and Longitude columns from the geolocation side of the join.", + "steps": [ + "Map the question's \"precise coordinate\" to the Latitude and Longitude columns in the geolocation table.", + "Map \"Sac State Union\" to a filter on the LocationName column in the location table.", + "Join the location table to the geolocation table on their shared LocationID key.", + "Apply the filter LocationName = 'Sac State Union' to isolate the target location.", + "Return the Latitude and Longitude columns from the geolocation side of the join." + ] + }, + "revisql-train:5332": { + "raw": "1. Start with the `rootbeerreview` table containing the review text and the `rootbeerbrand` table containing brand names.\n2. Inner join `rootbeerbrand` to `rootbeerreview` on the shared `BrandID` key.\n3. Apply the external knowledge mapping to filter `rootbeerbrand.BrandName` to the value 'Bulldog'.\n4. Apply the external knowledge mapping to filter `rootbeerreview.ReviewDate` to '2013-07-26'.\n5. Return only the `Review` column from `rootbeerreview` as the final result.", + "steps": [ + "Start with the `rootbeerreview` table containing the review text and the `rootbeerbrand` table containing brand names.", + "Inner join `rootbeerbrand` to `rootbeerreview` on the shared `BrandID` key.", + "Apply the external knowledge mapping to filter `rootbeerbrand.BrandName` to the value 'Bulldog'.", + "Apply the external knowledge mapping to filter `rootbeerreview.ReviewDate` to '2013-07-26'.", + "Return only the `Review` column from `rootbeerreview` as the final result." + ] + }, + "revisql-train:5334": { + "raw": "1. From the customers table, identify the single customer with the earliest FirstPurchaseDate and retain their CustomerID, First name, and Last name.\n2. From the rootbeerreview table, find the minimum ReviewDate for that same CustomerID to get the date of their first review.\n3. Join the customer record and the first review record together on CustomerID.\n4. Calculate the difference between the earliest ReviewDate and the customer's FirstPurchaseDate to determine the days between first purchase and first review.\n5. Return the First name, Last name, and that calculated day difference.", + "steps": [ + "From the customers table, identify the single customer with the earliest FirstPurchaseDate and retain their CustomerID, First name, and Last name.", + "From the rootbeerreview table, find the minimum ReviewDate for that same CustomerID to get the date of their first review.", + "Join the customer record and the first review record together on CustomerID.", + "Calculate the difference between the earliest ReviewDate and the customer's FirstPurchaseDate to determine the days between first purchase and first review.", + "Return the First name, Last name, and that calculated day difference." + ] + }, + "revisql-train:5335": { + "raw": "1. Identify that customer names are stored in the customers table and credit card types are stored in the transaction table.\n2. Join transaction to customers on CustomerID to link Kenneth Walton to his purchase records.\n3. Filter the customers table to rows where First equals 'Kenneth' and Last equals 'Walton'.\n4. Apply DISTINCT to the CreditCardType column from the transaction table to avoid duplicate types if the customer has multiple transactions.\n5. Return only the CreditCardType column.", + "steps": [ + "Identify that customer names are stored in the customers table and credit card types are stored in the transaction table.", + "Join transaction to customers on CustomerID to link Kenneth Walton to his purchase records.", + "Filter the customers table to rows where First equals 'Kenneth' and Last equals 'Walton'.", + "Apply DISTINCT to the CreditCardType column from the transaction table to avoid duplicate types if the customer has multiple transactions.", + "Return only the CreditCardType column." + ] + }, + "revisql-train:5337": { + "raw": "1. Join the customers table to the transaction table on CustomerID to link each buyer to their purchase records.\n2. Restrict rows to those where First is Tim and Last is Ocel.\n3. Also include rows where First is Dawn and Last is Childress, combining the two name restrictions with OR.\n4. Skip any grouping, aggregation, or sorting.\n5. Return only the RootBeerID column from the transaction side.", + "steps": [ + "Join the customers table to the transaction table on CustomerID to link each buyer to their purchase records.", + "Restrict rows to those where First is Tim and Last is Ocel.", + "Also include rows where First is Dawn and Last is Childress, combining the two name restrictions with OR.", + "Skip any grouping, aggregation, or sorting.", + "Return only the RootBeerID column from the transaction side." + ] + }, + "revisql-train:5339": { + "raw": "1. Locate Jim Breech in the customers table by filtering the First column to 'Jim' and the Last column to 'Breech'.\n2. Join the transaction table on CustomerID to retrieve all purchase records tied to that customer.\n3. Join the rootbeer table on RootBeerID to bring in the ContainerType for each purchased root beer.\n4. Restrict the result to rows where ContainerType equals 'Bottle', mapping the term \"bottles\" to that specific column value.\n5. Count the matching ContainerType entries and return that single aggregated count as the final answer.", + "steps": [ + "Locate Jim Breech in the customers table by filtering the First column to 'Jim' and the Last column to 'Breech'.", + "Join the transaction table on CustomerID to retrieve all purchase records tied to that customer.", + "Join the rootbeer table on RootBeerID to bring in the ContainerType for each purchased root beer.", + "Restrict the result to rows where ContainerType equals 'Bottle', mapping the term \"bottles\" to that specific column value.", + "Count the matching ContainerType entries and return that single aggregated count as the final answer." + ] + }, + "revisql-train:5342": { + "raw": "1. Join rootbeer with rootbeerbrand on BrandID to link each root beer’s container type to its brand’s state.\n2. Count records from that join where ContainerType is 'Bottle' and the brand State is 'LA' (Louisiana).\n3. Count records from that join where ContainerType is 'Bottle' and the brand State is 'MO' (Missouri).\n4. Subtract the Missouri bottle count from the Louisiana bottle count.\n5. Return the calculated result as a single column named DIFFERENCE.", + "steps": [ + "Join rootbeer with rootbeerbrand on BrandID to link each root beer’s container type to its brand’s state.", + "Count records from that join where ContainerType is 'Bottle' and the brand State is 'LA' (Louisiana).", + "Count records from that join where ContainerType is 'Bottle' and the brand State is 'MO' (Missouri).", + "Subtract the Missouri bottle count from the Louisiana bottle count.", + "Return the calculated result as a single column named DIFFERENCE." + ] + }, + "revisql-train:5347": { + "raw": "1. Apply the external knowledge that best seller means the highest transaction volume per brand: join `transaction` to `rootbeer` on `RootBeerID`, group by `BrandID`, order by the count of transactions descending, and keep only the top brand.\n2. Join that best-seller brand to `rootbeerbrand` on `BrandID` to obtain the brand name.\n3. Left join `rootbeerreview` on `BrandID` to gather all `StarRating` values for this single brand.\n4. Group by `BrandName` and compute the average star rating using `AVG(StarRating)`.\n5. Return `BrandName` and the calculated average star rating as `AvgStarRating`.", + "steps": [ + "Apply the external knowledge that best seller means the highest transaction volume per brand: join `transaction` to `rootbeer` on `RootBeerID`, group by `BrandID`, order by the count of transactions descending, and keep only the top brand.", + "Join that best-seller brand to `rootbeerbrand` on `BrandID` to obtain the brand name.", + "Left join `rootbeerreview` on `BrandID` to gather all `StarRating` values for this single brand.", + "Group by `BrandName` and compute the average star rating using `AVG(StarRating)`.", + "Return `BrandName` and the calculated average star rating as `AvgStarRating`." + ] + }, + "revisql-train:535": { + "raw": "1. Treat \"films\" as the `movie` table, and interpret \"made in the US\" as `country.country_iso_code` equal to 'US', using the `production_country` junction table to link movies to countries.\n2. Full join `movie` to `production_country` on `movie_id`, then left join `country` on `country_id` so that movies without a country record remain in the dataset for the total count.\n3. Use a coalesced movie ID from `production_country` and `movie` to handle null identifiers from either side of the full join when counting distinct films.\n4. For the denominator, count all distinct coalesced movie IDs to get the total film count; for the numerator, count distinct coalesced movie IDs only where the ISO code is 'US'.\n5. Divide the US count by the total count, multiply by 100.0, and return the result as a single column named `us_movie_percentage`.", + "steps": [ + "Treat \"films\" as the `movie` table, and interpret \"made in the US\" as `country.country_iso_code` equal to 'US', using the `production_country` junction table to link movies to countries.", + "Full join `movie` to `production_country` on `movie_id`, then left join `country` on `country_id` so that movies without a country record remain in the dataset for the total count.", + "Use a coalesced movie ID from `production_country` and `movie` to handle null identifiers from either side of the full join when counting distinct films.", + "For the denominator, count all distinct coalesced movie IDs to get the total film count; for the numerator, count distinct coalesced movie IDs only where the ISO code is 'US'.", + "Divide the US count by the total count, multiply by 100.0, and return the result as a single column named `us_movie_percentage`." + ] + }, + "revisql-train:5350": { + "raw": "1. Use only the `customers` table; no joins are required because gender and email subscription status both reside there.\n2. Filter rows to those where `SubscribedToEmailList` equals `'TRUE'`, mapping \"subscribed to the email list\" to that column value.\n3. Compute the denominator by counting all customers remaining after that filter.\n4. Compute the numerator by counting only the filtered customers whose `Gender` equals `'F'`, mapping \"female\" to that column value.\n5. Cast the numerator count to `REAL`, multiply by 100, and divide by the denominator count to produce the percentage.\n6. Return a single column containing the final calculated percentage value.", + "steps": [ + "Use only the `customers` table; no joins are required because gender and email subscription status both reside there.", + "Filter rows to those where `SubscribedToEmailList` equals `'TRUE'`, mapping \"subscribed to the email list\" to that column value.", + "Compute the denominator by counting all customers remaining after that filter.", + "Compute the numerator by counting only the filtered customers whose `Gender` equals `'F'`, mapping \"female\" to that column value.", + "Cast the numerator count to `REAL`, multiply by 100, and divide by the denominator count to produce the percentage.", + "Return a single column containing the final calculated percentage value." + ] + }, + "revisql-train:5354": { + "raw": "1. Join rootbeerbrand with rootbeerreview on BrandID to connect each brand name to its corresponding review records.\n2. In a subquery, filter rootbeerreview for rows where Review equals 'Too Spicy!' and compute the MIN(StarRating) to identify the lowest star rating among only those reviews.\n3. In the outer query, join rootbeerbrand with rootbeerreview again on BrandID and filter for rows where Review equals 'Too Spicy!'.\n4. Further filter the outer query by requiring StarRating to equal the minimum value returned from the subquery.\n5. Return only the BrandName column from rootbeerbrand.", + "steps": [ + "Join rootbeerbrand with rootbeerreview on BrandID to connect each brand name to its corresponding review records.", + "In a subquery, filter rootbeerreview for rows where Review equals 'Too Spicy!' and compute the MIN(StarRating) to identify the lowest star rating among only those reviews.", + "In the outer query, join rootbeerbrand with rootbeerreview again on BrandID and filter for rows where Review equals 'Too Spicy!'.", + "Further filter the outer query by requiring StarRating to equal the minimum value returned from the subquery.", + "Return only the BrandName column from rootbeerbrand." + ] + }, + "revisql-train:5357": { + "raw": "1. Start with the geolocation table to retrieve Latitude and Longitude, since precise location maps to those two columns.\n2. Join the transaction table on LocationID to connect purchases to their geographic coordinates, and join customers on CustomerID to identify the specific purchaser.\n3. Filter the customers table to only rows where First is 'Tommy' and Last is 'Kono'.\n4. Apply a date filter on transaction using TransactionDate LIKE '2014%' to restrict results to purchases made in 2014.\n5. Return distinct Latitude and Longitude as the final output columns.", + "steps": [ + "Start with the geolocation table to retrieve Latitude and Longitude, since precise location maps to those two columns.", + "Join the transaction table on LocationID to connect purchases to their geographic coordinates, and join customers on CustomerID to identify the specific purchaser.", + "Filter the customers table to only rows where First is 'Tommy' and Last is 'Kono'.", + "Apply a date filter on transaction using TransactionDate LIKE '2014%' to restrict results to purchases made in 2014.", + "Return distinct Latitude and Longitude as the final output columns." + ] + }, + "revisql-train:5358": { + "raw": "1. Locate the customer's email in the `Email` column of the `customers` table.\n2. Note that purchase transactions are recorded in the `transaction` table, which shares the `CustomerID` key with `customers`.\n3. Join `customers` to `transaction` using `CustomerID` to associate each transaction with its corresponding customer.\n4. Apply a filter requiring `TransactionID` to equal `100016`, per the external knowledge mapping.\n5. Return only the `Email` value from the matched customer record.", + "steps": [ + "Locate the customer's email in the `Email` column of the `customers` table.", + "Note that purchase transactions are recorded in the `transaction` table, which shares the `CustomerID` key with `customers`.", + "Join `customers` to `transaction` using `CustomerID` to associate each transaction with its corresponding customer.", + "Apply a filter requiring `TransactionID` to equal `100016`, per the external knowledge mapping.", + "Return only the `Email` value from the matched customer record." + ] + }, + "revisql-train:536": { + "raw": "1. Join movie_cast to gender on gender_id to access the gender label for each cast member.\n2. Group by movie_id to aggregate cast members within each movie.\n3. For each movie, compute female_cnt and male_cnt by summing conditional indicators where gender.gender equals 'Female' or 'Male', respectively.\n4. Filter out movies missing either gender by requiring both counts to be greater than zero.\n5. Compute the per-movie ratio as female count divided by male count, ensuring decimal arithmetic.\n6. Average all per-movie ratios and return the single value as avg_female_male_ratio.", + "steps": [ + "Join movie_cast to gender on gender_id to access the gender label for each cast member.", + "Group by movie_id to aggregate cast members within each movie.", + "For each movie, compute female_cnt and male_cnt by summing conditional indicators where gender.gender equals 'Female' or 'Male', respectively.", + "Filter out movies missing either gender by requiring both counts to be greater than zero.", + "Compute the per-movie ratio as female count divided by male count, ensuring decimal arithmetic.", + "Average all per-movie ratios and return the single value as avg_female_male_ratio." + ] + }, + "revisql-train:5369": { + "raw": "1. Identify the Products table as the only source needed, since it contains both the product identifier and the product name.\n2. Map the external knowledge that \"products from id 1 to 10\" refers to an inclusive range filter on the ProductID column from 1 through 10.\n3. Apply that range filter to restrict the rows to those ProductID values.\n4. Return only the Name column from the filtered rows.", + "steps": [ + "Identify the Products table as the only source needed, since it contains both the product identifier and the product name.", + "Map the external knowledge that \"products from id 1 to 10\" refers to an inclusive range filter on the ProductID column from 1 through 10.", + "Apply that range filter to restrict the rows to those ProductID values.", + "Return only the Name column from the filtered rows." + ] + }, + "revisql-train:5376": { + "raw": "1. Start with the Sales table to retrieve ProductID and join it to the Customers table on CustomerID.\n2. Filter the joined rows to only those where the Customers.FirstName equals 'Abby'.\n3. Use DISTINCT on ProductID because a customer may have purchased the same product multiple times.\n4. Return only the ProductID column.", + "steps": [ + "Start with the Sales table to retrieve ProductID and join it to the Customers table on CustomerID.", + "Filter the joined rows to only those where the Customers.FirstName equals 'Abby'.", + "Use DISTINCT on ProductID because a customer may have purchased the same product multiple times.", + "Return only the ProductID column." + ] + }, + "revisql-train:5384": { + "raw": "1. Join the Customers and Sales tables on CustomerID to connect each customer with their purchase records.\n2. Filter the joined rows to only those where Customers.LastName equals 'Alvarez'.\n3. Group the results by CustomerID and sum Sales.Quantity for each group to calculate each customer's total purchased quantity.\n4. In a subquery, repeat the same join, filter, and grouping to compute the maximum of those per-customer total quantities.\n5. Apply a HAVING clause to the grouped results to keep only the customer(s) whose total quantity equals that computed maximum.\n6. Return only the CustomerID column for the qualifying customer(s).", + "steps": [ + "Join the Customers and Sales tables on CustomerID to connect each customer with their purchase records.", + "Filter the joined rows to only those where Customers.LastName equals 'Alvarez'.", + "Group the results by CustomerID and sum Sales.Quantity for each group to calculate each customer's total purchased quantity.", + "In a subquery, repeat the same join, filter, and grouping to compute the maximum of those per-customer total quantities.", + "Apply a HAVING clause to the grouped results to keep only the customer(s) whose total quantity equals that computed maximum.", + "Return only the CustomerID column for the qualifying customer(s)." + ] + }, + "revisql-train:5390": { + "raw": "1. Identify the Customers table to find the person named Adam and the Sales table to obtain purchase quantities.\n2. Join Sales to Customers using CustomerID as the join key to link each transaction to its buyer.\n3. Apply a filter where the Customers table’s FirstName column equals Adam.\n4. Aggregate the results by summing the Quantity column from the Sales table to compute total products purchased.\n5. Return only the resulting sum value as the final output column.", + "steps": [ + "Identify the Customers table to find the person named Adam and the Sales table to obtain purchase quantities.", + "Join Sales to Customers using CustomerID as the join key to link each transaction to its buyer.", + "Apply a filter where the Customers table’s FirstName column equals Adam.", + "Aggregate the results by summing the Quantity column from the Sales table to compute total products purchased.", + "Return only the resulting sum value as the final output column." + ] + }, + "revisql-train:5392": { + "raw": "1. Start from the Products table, since the question asks about products and no other tables are needed.\n2. Filter rows where Price equals 0, applying the external knowledge that \"freebies\" means a zero price.\n3. Count the ProductID values in the filtered result to compute how many freebies exist.\n4. Return the count column as the final answer.", + "steps": [ + "Start from the Products table, since the question asks about products and no other tables are needed.", + "Filter rows where Price equals 0, applying the external knowledge that \"freebies\" means a zero price.", + "Count the ProductID values in the filtered result to compute how many freebies exist.", + "Return the count column as the final answer." + ] + }, + "revisql-train:5393": { + "raw": "1. Join `Products` to `Sales` on `ProductID` to connect each product with its sale records.\n2. Group the joined rows by `ProductID` so quantities can be summed per product.\n3. Apply a `HAVING` filter with `SUM(Quantity) > 950` to keep only products whose total sale quantity exceeds 950, per the external knowledge mapping.\n4. Return only the `Name` column from `Products`.", + "steps": [ + "Join `Products` to `Sales` on `ProductID` to connect each product with its sale records.", + "Group the joined rows by `ProductID` so quantities can be summed per product.", + "Apply a `HAVING` filter with `SUM(Quantity) > 950` to keep only products whose total sale quantity exceeds 950, per the external knowledge mapping.", + "Return only the `Name` column from `Products`." + ] + }, + "revisql-train:5398": { + "raw": "1. Query the Products table twice to obtain the unit Price for two specific items; no joins are required.\n2. Filter one query by Name = 'HL Mountain Frame - Black, 42' to isolate the first product's Price.\n3. Filter the second query by Name = 'LL Mountain Frame - Black, 42' to isolate the second product's Price.\n4. Apply the external knowledge concept of difference by subtracting the LL price from the HL price.\n5. Return the computed result as a single column named num.", + "steps": [ + "Query the Products table twice to obtain the unit Price for two specific items; no joins are required.", + "Filter one query by Name = 'HL Mountain Frame - Black, 42' to isolate the first product's Price.", + "Filter the second query by Name = 'LL Mountain Frame - Black, 42' to isolate the second product's Price.", + "Apply the external knowledge concept of difference by subtracting the LL price from the HL price.", + "Return the computed result as a single column named num." + ] + }, + "revisql-train:54": { + "raw": "1. Use the `lists_users` table, which records each list a user created and whether that user was a subscriber at creation time; no table joins are required.\n2. Filter the rows to those where `user_id` equals 83373278, matching the specified user identifier.\n3. Further filter to rows where `user_subscriber` equals 1, applying the external knowledge that this value means the user was a subscriber when creating the list.\n4. Aggregate by counting all rows that satisfy both filters, since each remaining row represents one qualifying movie list.\n5. Return the resulting single count value as the answer.", + "steps": [ + "Use the `lists_users` table, which records each list a user created and whether that user was a subscriber at creation time; no table joins are required.", + "Filter the rows to those where `user_id` equals 83373278, matching the specified user identifier.", + "Further filter to rows where `user_subscriber` equals 1, applying the external knowledge that this value means the user was a subscriber when creating the list.", + "Aggregate by counting all rows that satisfy both filters, since each remaining row represents one qualifying movie list.", + "Return the resulting single count value as the answer." + ] + }, + "revisql-train:5401": { + "raw": "1. Join the Sales table to Employees on SalesPersonID = EmployeeID, and to Products on ProductID = ProductID.\n2. Filter Employees to FirstName = 'Innes', MiddleInitial = 'e', and LastName = 'del Castillo'.\n3. Map the external knowledge product name 'Short-Sleeve Classic Jersey, L' to the Products.Name column and filter on that exact value.\n4. Count distinct Sales.CustomerID to compute the number of unique customers.\n5. Return the single resulting count of distinct CustomerID as the final answer.", + "steps": [ + "Join the Sales table to Employees on SalesPersonID = EmployeeID, and to Products on ProductID = ProductID.", + "Filter Employees to FirstName = 'Innes', MiddleInitial = 'e', and LastName = 'del Castillo'.", + "Map the external knowledge product name 'Short-Sleeve Classic Jersey, L' to the Products.Name column and filter on that exact value.", + "Count distinct Sales.CustomerID to compute the number of unique customers.", + "Return the single resulting count of distinct CustomerID as the final answer." + ] + }, + "revisql-train:5402": { + "raw": "1. Join Sales to Products on ProductID, to Employees on SalesPersonID = EmployeeID, and to Customers on CustomerID.\n2. Filter Customers to rows where FirstName is 'Elizabeth', MiddleInitial is 'A', and LastName is 'White'.\n3. Filter Products to rows where Name is 'Road-250 Black, 48'.\n4. Return distinct FirstName, MiddleInitial, and LastName from Employees.", + "steps": [ + "Join Sales to Products on ProductID, to Employees on SalesPersonID = EmployeeID, and to Customers on CustomerID.", + "Filter Customers to rows where FirstName is 'Elizabeth', MiddleInitial is 'A', and LastName is 'White'.", + "Filter Products to rows where Name is 'Road-250 Black, 48'.", + "Return distinct FirstName, MiddleInitial, and LastName from Employees." + ] + }, + "revisql-train:5403": { + "raw": "1. Map the external knowledge string 'Headlights - Weatherproof' to the `Name` column in the `Products` table.\n2. Join `Products` to `Sales` on the `ProductID` key to link each product to its transactions.\n3. Filter the joined rows to only those where `Products.Name` equals 'Headlights - Weatherproof'.\n4. Count distinct values of `SalesPersonID` from the `Sales` table to find the number of unique sales people who sold that product.\n5. Return that aggregated count as the single result column.", + "steps": [ + "Map the external knowledge string 'Headlights - Weatherproof' to the `Name` column in the `Products` table.", + "Join `Products` to `Sales` on the `ProductID` key to link each product to its transactions.", + "Filter the joined rows to only those where `Products.Name` equals 'Headlights - Weatherproof'.", + "Count distinct values of `SalesPersonID` from the `Sales` table to find the number of unique sales people who sold that product.", + "Return that aggregated count as the single result column." + ] + }, + "revisql-train:5413": { + "raw": "1. Join the `Sales` table with `Products` on `ProductID` to link each transaction to its product name.\n2. Filter the joined rows to only those where `Products.Name` equals 'Blade', using the external knowledge that Blade is a product name.\n3. Sum the `Quantity` values from `Sales` to compute the total number of Blade units sold.\n4. Return the result as a single column named `TotalQuantity`.", + "steps": [ + "Join the `Sales` table with `Products` on `ProductID` to link each transaction to its product name.", + "Filter the joined rows to only those where `Products.Name` equals 'Blade', using the external knowledge that Blade is a product name.", + "Sum the `Quantity` values from `Sales` to compute the total number of Blade units sold.", + "Return the result as a single column named `TotalQuantity`." + ] + }, + "revisql-train:5418": { + "raw": "1. Identify that you need the `Customers` and `Sales` tables, linked by the `CustomerID` key.\n2. Join `Sales` to `Customers` on `CustomerID` to connect each purchase to the corresponding customer.\n3. Filter the joined rows to keep only those where `SalesPersonID` equals 1.\n4. Apply `DISTINCT` to the `FirstName` column from `Customers` to ensure each customer name appears only once.\n5. Return only the `FirstName` column in the final result.", + "steps": [ + "Identify that you need the `Customers` and `Sales` tables, linked by the `CustomerID` key.", + "Join `Sales` to `Customers` on `CustomerID` to connect each purchase to the corresponding customer.", + "Filter the joined rows to keep only those where `SalesPersonID` equals 1.", + "Apply `DISTINCT` to the `FirstName` column from `Customers` to ensure each customer name appears only once.", + "Return only the `FirstName` column in the final result." + ] + }, + "revisql-train:5427": { + "raw": "1. Use the Employees table alone; no joins are necessary.\n2. Restrict rows to those where LastName equals 'Ringer'.\n3. Count the LastName column to get the number of matching employees.\n4. Return a single column with that count.", + "steps": [ + "Use the Employees table alone; no joins are necessary.", + "Restrict rows to those where LastName equals 'Ringer'.", + "Count the LastName column to get the number of matching employees.", + "Return a single column with that count." + ] + }, + "revisql-train:543": { + "raw": "1. Locate the target film in the movie table by filtering title to 'Open Water', applying the external knowledge that \"Open Water\" maps directly to that title value.\n2. Connect the movie table to movie_cast via an inner join on movie_id, since movie_cast holds the character names and references movie by that key.\n3. Restrict the joined set so only rows belonging to the movie with title 'Open Water' remain.\n4. Return the character_name column from movie_cast as the result.", + "steps": [ + "Locate the target film in the movie table by filtering title to 'Open Water', applying the external knowledge that \"Open Water\" maps directly to that title value.", + "Connect the movie table to movie_cast via an inner join on movie_id, since movie_cast holds the character names and references movie by that key.", + "Restrict the joined set so only rows belonging to the movie with title 'Open Water' remain.", + "Return the character_name column from movie_cast as the result." + ] + }, + "revisql-train:5431": { + "raw": "1. Join the Customers and Sales tables on CustomerID to link each customer to their transaction records.\n2. Filter to rows where the customer's FirstName is exactly 'Kate'.\n3. Group by CustomerID, FirstName, and LastName so each Kate customer is represented by a single aggregated row.\n4. Sum the Quantity values per customer and sort the groups in descending order by that total to find the highest overall quantity.\n5. Restrict the result to just the top row.\n6. Output the FirstName and LastName columns.", + "steps": [ + "Join the Customers and Sales tables on CustomerID to link each customer to their transaction records.", + "Filter to rows where the customer's FirstName is exactly 'Kate'.", + "Group by CustomerID, FirstName, and LastName so each Kate customer is represented by a single aggregated row.", + "Sum the Quantity values per customer and sort the groups in descending order by that total to find the highest overall quantity.", + "Restrict the result to just the top row.", + "Output the FirstName and LastName columns." + ] + }, + "revisql-train:5436": { + "raw": "1. Join Customers to Sales on CustomerID and Sales to Products on ProductID to link Kathryn Deng's purchases to product names.\n2. Filter for rows where the customer's FirstName is 'Kathryn' and LastName is 'Deng'.\n3. Group by ProductID and Name, then sum Sales.Quantity per product to compute each product's total quantity.\n4. In a subquery, repeat the same joins, filter, and grouping to calculate the maximum value among those per-product quantity totals, applying the external knowledge that \"highest quantity\" maps to MAX.\n5. In the outer query, use a HAVING clause to retain only product groups whose summed quantity equals that maximum value.\n6. Return only the Name column from the Products table.", + "steps": [ + "Join Customers to Sales on CustomerID and Sales to Products on ProductID to link Kathryn Deng's purchases to product names.", + "Filter for rows where the customer's FirstName is 'Kathryn' and LastName is 'Deng'.", + "Group by ProductID and Name, then sum Sales.Quantity per product to compute each product's total quantity.", + "In a subquery, repeat the same joins, filter, and grouping to calculate the maximum value among those per-product quantity totals, applying the external knowledge that \"highest quantity\" maps to MAX.", + "In the outer query, use a HAVING clause to retain only product groups whose summed quantity equals that maximum value.", + "Return only the Name column from the Products table." + ] + }, + "revisql-train:5438": { + "raw": "1. Join the Sales table to Customers on CustomerID and to Products on ProductID to connect buyers with the items they purchased.\n2. Filter the customer records by FirstName = 'Erica' and LastName = 'Lu'.\n3. Select the Price and Name columns from the Products table.\n4. Apply DISTINCT to those product columns so duplicate rows are removed if the same product was bought multiple times.", + "steps": [ + "Join the Sales table to Customers on CustomerID and to Products on ProductID to connect buyers with the items they purchased.", + "Filter the customer records by FirstName = 'Erica' and LastName = 'Lu'.", + "Select the Price and Name columns from the Products table.", + "Apply DISTINCT to those product columns so duplicate rows are removed if the same product was bought multiple times." + ] + }, + "revisql-train:5440": { + "raw": "1. Select FirstName and LastName from Customers, applying the external knowledge that \"who\" refers to those name columns.\n2. Join the Sales table to Customers on CustomerID to connect each transaction to its buyer.\n3. Filter Sales to only rows where SalesID is between 30 and 40.\n4. Group the joined results by CustomerID, FirstName, and LastName to prepare for per-customer aggregation.\n5. Apply a HAVING condition so only groups whose total sum of Quantity equals exactly 403 are kept.\n6. Return the customer's FirstName and LastName as the final output columns.", + "steps": [ + "Select FirstName and LastName from Customers, applying the external knowledge that \"who\" refers to those name columns.", + "Join the Sales table to Customers on CustomerID to connect each transaction to its buyer.", + "Filter Sales to only rows where SalesID is between 30 and 40.", + "Group the joined results by CustomerID, FirstName, and LastName to prepare for per-customer aggregation.", + "Apply a HAVING condition so only groups whose total sum of Quantity equals exactly 403 are kept.", + "Return the customer's FirstName and LastName as the final output columns." + ] + }, + "revisql-train:5443": { + "raw": "1. Focus on the Products table only; no joins are required because both the product name and its price are stored there.\n2. Use the external knowledge that \"most expensive\" corresponds to the maximum value of the Price column.\n3. Compute that maximum Price with an aggregate subquery against the Products table.\n4. Filter the Products table to the row(s) whose Price equals that maximum value.\n5. Return exactly the Name column of the resulting product(s).", + "steps": [ + "Focus on the Products table only; no joins are required because both the product name and its price are stored there.", + "Use the external knowledge that \"most expensive\" corresponds to the maximum value of the Price column.", + "Compute that maximum Price with an aggregate subquery against the Products table.", + "Filter the Products table to the row(s) whose Price equals that maximum value.", + "Return exactly the Name column of the resulting product(s)." + ] + }, + "revisql-train:5450": { + "raw": "1. Map the requested product to the Products.Name column and the total sold to a SUM of the Sales.Quantity column.\n2. Join the Products and Sales tables on ProductID to link each product to its sales transactions.\n3. Filter the joined rows to only those where Products.Name equals 'Mountain-500 Black, 42'.\n4. Aggregate the filtered rows by computing the SUM of Sales.Quantity.\n5. Return that single aggregated sum as the only output column.", + "steps": [ + "Map the requested product to the Products.Name column and the total sold to a SUM of the Sales.Quantity column.", + "Join the Products and Sales tables on ProductID to link each product to its sales transactions.", + "Filter the joined rows to only those where Products.Name equals 'Mountain-500 Black, 42'.", + "Aggregate the filtered rows by computing the SUM of Sales.Quantity.", + "Return that single aggregated sum as the only output column." + ] + }, + "revisql-train:5455": { + "raw": "1. Join Products and Sales on ProductID to link each product name with its sold quantities.\n2. Filter Products.Name to rows matching the pattern 'Mountain-500 Black%'.\n3. Group the results by Products.Name to aggregate sales for each distinct product type.\n4. Compute total purchases per type using SUM(Sales.Quantity).\n5. Order the groups by that total in descending order and keep only the first row.\n6. Return the Name of that top row as the most-purchased type.", + "steps": [ + "Join Products and Sales on ProductID to link each product name with its sold quantities.", + "Filter Products.Name to rows matching the pattern 'Mountain-500 Black%'.", + "Group the results by Products.Name to aggregate sales for each distinct product type.", + "Compute total purchases per type using SUM(Sales.Quantity).", + "Order the groups by that total in descending order and keep only the first row.", + "Return the Name of that top row as the most-purchased type." + ] + }, + "revisql-train:5458": { + "raw": "1. Join `Sales` with `Products` on `ProductID` to link each transaction to its product details.\n2. Filter to rows where `Products.Name` equals 'Touring-2000 Blue, 50', mapping the external product name to the `Name` column.\n3. Group the filtered results by `SalesPersonID` and sum `Sales.Quantity` for each employee.\n4. Keep only groups whose total quantity exceeds 20000, mapping \"over 20,000 quantities\" to a `HAVING SUM(Quantity) > 20000` condition.\n5. Count the number of remaining `SalesPersonID` groups to return the final total of qualifying employees.", + "steps": [ + "Join `Sales` with `Products` on `ProductID` to link each transaction to its product details.", + "Filter to rows where `Products.Name` equals 'Touring-2000 Blue, 50', mapping the external product name to the `Name` column.", + "Group the filtered results by `SalesPersonID` and sum `Sales.Quantity` for each employee.", + "Keep only groups whose total quantity exceeds 20000, mapping \"over 20,000 quantities\" to a `HAVING SUM(Quantity) > 20000` condition.", + "Count the number of remaining `SalesPersonID` groups to return the final total of qualifying employees." + ] + }, + "revisql-train:546": { + "raw": "1. Start from the person table and filter to the row where person_name equals 'Sally Menke'.\n2. Join the person table to the movie_crew table on the shared person_id key to reach her crew records.\n3. Map the requested \"job titles\" to the job column in the movie_crew table.\n4. Apply DISTINCT to the job column to remove duplicate titles across multiple movies.\n5. Return only the job column as the final output.", + "steps": [ + "Start from the person table and filter to the row where person_name equals 'Sally Menke'.", + "Join the person table to the movie_crew table on the shared person_id key to reach her crew records.", + "Map the requested \"job titles\" to the job column in the movie_crew table.", + "Apply DISTINCT to the job column to remove duplicate titles across multiple movies.", + "Return only the job column as the final output." + ] + }, + "revisql-train:5469": { + "raw": "1. Left join Sales to Products on ProductID and group by ProductID, summing Quantity with missing sales treated as 0 to get every product’s total sold quantity.\n2. Compute the average of those per-product totals to establish the threshold for “below average.”\n3. Filter the grouped results, keeping only products whose total quantity is strictly less than that average.\n4. Join the surviving product IDs back to Products on ProductID to fetch the Name column.\n5. Return Name.", + "steps": [ + "Left join Sales to Products on ProductID and group by ProductID, summing Quantity with missing sales treated as 0 to get every product’s total sold quantity.", + "Compute the average of those per-product totals to establish the threshold for “below average.”", + "Filter the grouped results, keeping only products whose total quantity is strictly less than that average.", + "Join the surviving product IDs back to Products on ProductID to fetch the Name column.", + "Return Name." + ] + }, + "revisql-train:5473": { + "raw": "1. Use only the Menu table; no joins are needed because both the menu name and page count are stored there.\n2. Filter the name column to exactly 'Waldorf Astoria'.\n3. Map the external knowledge that \"4 pages\" means the page_count column equals 4, and apply that filter.\n4. Combine both conditions with AND so only menus satisfying the name and page count are included.\n5. Apply COUNT(*) to compute the total number of matching menus.\n6. Return only the single aggregated count column.", + "steps": [ + "Use only the Menu table; no joins are needed because both the menu name and page count are stored there.", + "Filter the name column to exactly 'Waldorf Astoria'.", + "Map the external knowledge that \"4 pages\" means the page_count column equals 4, and apply that filter.", + "Combine both conditions with AND so only menus satisfying the name and page count are included.", + "Apply COUNT(*) to compute the total number of matching menus.", + "Return only the single aggregated count column." + ] + }, + "revisql-train:5479": { + "raw": "1. Start from MenuItem and join it to Dish on dish_id, to MenuPage on menu_page_id, and MenuPage to Menu on menu_id to access the dish name and menu currency.\n2. Filter rows to only those where Dish.name equals 'Clear green turtle', using the external knowledge that this is the target dish.\n3. Sum a CASE expression that returns 1 when Menu.currency equals 'Dollars' and 0 otherwise, applying the external knowledge that dollar corresponds to that exact currency value.\n4. Return one column: the resulting total count.", + "steps": [ + "Start from MenuItem and join it to Dish on dish_id, to MenuPage on menu_page_id, and MenuPage to Menu on menu_id to access the dish name and menu currency.", + "Filter rows to only those where Dish.name equals 'Clear green turtle', using the external knowledge that this is the target dish.", + "Sum a CASE expression that returns 1 when Menu.currency equals 'Dollars' and 0 otherwise, applying the external knowledge that dollar corresponds to that exact currency value.", + "Return one column: the resulting total count." + ] + }, + "revisql-train:5481": { + "raw": "1. Join MenuItem to MenuPage on menu_page_id, then MenuPage to Menu on menu_id, and MenuItem to Dish on dish_id to trace each dish back to its menu.\n2. Use the external knowledge that \"Zentral Theater Terrace\" is a menu name to filter the Menu table where name equals that exact value.\n3. Apply DISTINCT to the name column in the Dish table so each dish is listed only once even if it appears on multiple pages.\n4. Return solely the Dish name column as the output.", + "steps": [ + "Join MenuItem to MenuPage on menu_page_id, then MenuPage to Menu on menu_id, and MenuItem to Dish on dish_id to trace each dish back to its menu.", + "Use the external knowledge that \"Zentral Theater Terrace\" is a menu name to filter the Menu table where name equals that exact value.", + "Apply DISTINCT to the name column in the Dish table so each dish is listed only once even if it appears on multiple pages.", + "Return solely the Dish name column as the output." + ] + }, + "revisql-train:5485": { + "raw": "1. Start from MenuItem and join MenuPage on menu_page_id, then join Menu on menu_id to access the sponsor column.\n2. Join Dish on dish_id to access the dish name column.\n3. Filter Dish.name to equal \"Clear green turtle\" per the dish name provided.\n4. Filter Menu.sponsor to IS NULL, mapping \"DIYs of the restaurant\" to a null sponsor value.\n5. Return MenuPage.menu_id as the menu identifier.", + "steps": [ + "Start from MenuItem and join MenuPage on menu_page_id, then join Menu on menu_id to access the sponsor column.", + "Join Dish on dish_id to access the dish name column.", + "Filter Dish.name to equal \"Clear green turtle\" per the dish name provided.", + "Filter Menu.sponsor to IS NULL, mapping \"DIYs of the restaurant\" to a null sponsor value.", + "Return MenuPage.menu_id as the menu identifier." + ] + }, + "revisql-train:5486": { + "raw": "1. Identify the three tables needed: Dish to locate the target dish, MenuItem to connect dishes to their menu pages, and MenuPage to retrieve page numbers.\n2. Join MenuPage to MenuItem on MenuPage.id = MenuItem.menu_page_id, then join MenuItem to Dish on MenuItem.dish_id = Dish.id.\n3. Filter the rows where Dish.name equals 'Clear green turtle', applying the external knowledge that this string is a dish name.\n4. Compute the average of MenuPage.page_number to satisfy the requested \"average page number\".\n5. Return a single column containing the resulting average page number.", + "steps": [ + "Identify the three tables needed: Dish to locate the target dish, MenuItem to connect dishes to their menu pages, and MenuPage to retrieve page numbers.", + "Join MenuPage to MenuItem on MenuPage.id = MenuItem.menu_page_id, then join MenuItem to Dish on MenuItem.dish_id = Dish.id.", + "Filter the rows where Dish.name equals 'Clear green turtle', applying the external knowledge that this string is a dish name.", + "Compute the average of MenuPage.page_number to satisfy the requested \"average page number\".", + "Return a single column containing the resulting average page number." + ] + }, + "revisql-train:5496": { + "raw": "1. Identify that you need the `Dish` table for names and highest prices, and the `MenuItem` table to locate entries tied to menu page 7610 and the specific creation date.\n2. Join `MenuItem` to `Dish` on `MenuItem.dish_id` equal to `Dish.id` to connect each menu item to its corresponding dish record.\n3. Filter `MenuItem` rows to only those with `menu_page_id` equal to 7610.\n4. Apply the external knowledge date mapping by restricting `MenuItem.created_at` to values matching the pattern `'2011-05-23%'` for 23rd May 2011.\n5. Return exactly the two columns `name` and `highest_price` from `Dish`, ensuring distinct rows so each dish appears only once.", + "steps": [ + "Identify that you need the `Dish` table for names and highest prices, and the `MenuItem` table to locate entries tied to menu page 7610 and the specific creation date.", + "Join `MenuItem` to `Dish` on `MenuItem.dish_id` equal to `Dish.id` to connect each menu item to its corresponding dish record.", + "Filter `MenuItem` rows to only those with `menu_page_id` equal to 7610.", + "Apply the external knowledge date mapping by restricting `MenuItem.created_at` to values matching the pattern `'2011-05-23%'` for 23rd May 2011.", + "Return exactly the two columns `name` and `highest_price` from `Dish`, ensuring distinct rows so each dish appears only once." + ] + }, + "revisql-train:5507": { + "raw": "1. Identify the Menu table as the only table needed, since it holds both sponsorship and physical description data.\n2. Map the phrase \"describe the menu physically\" to the physical_description column.\n3. Apply a filter on the sponsor column using LIKE 'Noviomagus' to capture the \"sponsored by Noviomagus\" condition.\n4. Return only the physical_description values for the rows that satisfy the sponsor filter.", + "steps": [ + "Identify the Menu table as the only table needed, since it holds both sponsorship and physical description data.", + "Map the phrase \"describe the menu physically\" to the physical_description column.", + "Apply a filter on the sponsor column using LIKE 'Noviomagus' to capture the \"sponsored by Noviomagus\" condition.", + "Return only the physical_description values for the rows that satisfy the sponsor filter." + ] + }, + "revisql-train:5508": { + "raw": "1. Use the Menu table, which contains the id and occasion columns needed to answer the question.\n2. Filter to the single row where the id column equals 12463.\n3. Return only the occasion column from that matching row.", + "steps": [ + "Use the Menu table, which contains the id and occasion columns needed to answer the question.", + "Filter to the single row where the id column equals 12463.", + "Return only the occasion column from that matching row." + ] + }, + "revisql-train:5509": { + "raw": "1. Use the Menu table exclusively because it contains both the sponsor and location columns required.\n2. Map the external knowledge to filter the sponsor column to the exact string 'Norddeutscher Lloyd Bremen'.\n3. Apply a WHERE condition on sponsor to keep only rows for that specific sponsor.\n4. Extract the location column to satisfy the request for menu locations.\n5. Apply DISTINCT to the location values to ensure the result contains no duplicate locations.", + "steps": [ + "Use the Menu table exclusively because it contains both the sponsor and location columns required.", + "Map the external knowledge to filter the sponsor column to the exact string 'Norddeutscher Lloyd Bremen'.", + "Apply a WHERE condition on sponsor to keep only rows for that specific sponsor.", + "Extract the location column to satisfy the request for menu locations.", + "Apply DISTINCT to the location values to ensure the result contains no duplicate locations." + ] + }, + "revisql-train:5514": { + "raw": "1. Look in the `MenuPage` table, which holds both the `full_height` and `menu_id` columns.\n2. Map \"longest full height\" to the maximum value of `full_height` by sorting all rows in descending order on that column.\n3. Restrict the result to the single top row to capture the tallest page.\n4. Return only the `menu_id` value from that row.", + "steps": [ + "Look in the `MenuPage` table, which holds both the `full_height` and `menu_id` columns.", + "Map \"longest full height\" to the maximum value of `full_height` by sorting all rows in descending order on that column.", + "Restrict the result to the single top row to capture the tallest page.", + "Return only the `menu_id` value from that row." + ] + }, + "revisql-train:5517": { + "raw": "1. Join Menu to MenuPage on menu_id, then join MenuPage to MenuItem on menu_page_id to connect menus with their pages and dish positions.\n2. Map the external knowledge for \"right upper corner\" to MenuItem coordinates by requiring xpos > 0.75 and ypos < 0.25.\n3. Filter the joined rows to keep only MenuItem records satisfying both coordinate thresholds.\n4. Apply DISTINCT to the page_number values from MenuPage to eliminate duplicate pages.\n5. Return only the page_number column.", + "steps": [ + "Join Menu to MenuPage on menu_id, then join MenuPage to MenuItem on menu_page_id to connect menus with their pages and dish positions.", + "Map the external knowledge for \"right upper corner\" to MenuItem coordinates by requiring xpos > 0.75 and ypos < 0.25.", + "Filter the joined rows to keep only MenuItem records satisfying both coordinate thresholds.", + "Apply DISTINCT to the page_number values from MenuPage to eliminate duplicate pages.", + "Return only the page_number column." + ] + }, + "revisql-train:5518": { + "raw": "1. Identify that creation dates are in MenuItem.created_at and dish names are in Dish.name, requiring a join between MenuItem and Dish.\n2. Link the two tables using MenuItem.dish_id matching Dish.id.\n3. Filter for April by checking that the 7th character of MenuItem.created_at equals '4', as defined in the external knowledge.\n4. Apply DISTINCT to avoid duplicate dish names when a dish was created multiple times in April.\n5. Return the name column from Dish.", + "steps": [ + "Identify that creation dates are in MenuItem.created_at and dish names are in Dish.name, requiring a join between MenuItem and Dish.", + "Link the two tables using MenuItem.dish_id matching Dish.id.", + "Filter for April by checking that the 7th character of MenuItem.created_at equals '4', as defined in the external knowledge.", + "Apply DISTINCT to avoid duplicate dish names when a dish was created multiple times in April.", + "Return the name column from Dish." + ] + }, + "revisql-train:5520": { + "raw": "1. Join Dish and MenuItem on Dish.id = MenuItem.dish_id to link each menu item to its corresponding dish.\n2. Filter MenuItem rows to those with id between 1 and 5, applying the external knowledge that \"menu item ID 1 to 5\" maps to MenuItem.id in that range.\n3. Interpret \"regular prices\" as the MenuItem.price column, excluding MenuItem.high_price and Dish.highest_price.\n4. Sort the filtered results by MenuItem.price in descending order and keep only the top row to obtain the highest price.\n5. Return the MenuItem.price value as the final answer.", + "steps": [ + "Join Dish and MenuItem on Dish.id = MenuItem.dish_id to link each menu item to its corresponding dish.", + "Filter MenuItem rows to those with id between 1 and 5, applying the external knowledge that \"menu item ID 1 to 5\" maps to MenuItem.id in that range.", + "Interpret \"regular prices\" as the MenuItem.price column, excluding MenuItem.high_price and Dish.highest_price.", + "Sort the filtered results by MenuItem.price in descending order and keep only the top row to obtain the highest price.", + "Return the MenuItem.price value as the final answer." + ] + }, + "revisql-train:5523": { + "raw": "1. Select MenuPage and MenuItem because MenuItem stores individual prices and MenuPage connects items to their parent menu.\n2. Join MenuItem to MenuPage on MenuPage.id = MenuItem.menu_page_id.\n3. Filter the joined rows to only those where MenuPage.menu_id equals 12882.\n4. Compute the total price by applying SUM to the MenuItem.price column, using the external knowledge that total price is the sum of prices.\n5. Return the single aggregated total price value.", + "steps": [ + "Select MenuPage and MenuItem because MenuItem stores individual prices and MenuPage connects items to their parent menu.", + "Join MenuItem to MenuPage on MenuPage.id = MenuItem.menu_page_id.", + "Filter the joined rows to only those where MenuPage.menu_id equals 12882.", + "Compute the total price by applying SUM to the MenuItem.price column, using the external knowledge that total price is the sum of prices.", + "Return the single aggregated total price value." + ] + }, + "revisql-train:5524": { + "raw": "1. Start from the `Dish` table because the request is about dishes and no joins to other tables are required.\n2. Map the phrase \"highest price\" to the `highest_price` column in `Dish` using the external knowledge.\n3. Sort the rows by `highest_price` in descending order to rank dishes from most to least expensive.\n4. Limit the result set to the first five rows to satisfy the \"top five\" requirement.\n5. Return only the `name` column for those five dishes.", + "steps": [ + "Start from the `Dish` table because the request is about dishes and no joins to other tables are required.", + "Map the phrase \"highest price\" to the `highest_price` column in `Dish` using the external knowledge.", + "Sort the rows by `highest_price` in descending order to rank dishes from most to least expensive.", + "Limit the result set to the first five rows to satisfy the \"top five\" requirement.", + "Return only the `name` column for those five dishes." + ] + }, + "revisql-train:5525": { + "raw": "1. Use the Dish table as the sole source since the question only concerns dishes.\n2. Map the external knowledge that \"free\" means the lowest_price column has a value of 0.\n3. Filter the Dish rows to keep only those where lowest_price equals 0.\n4. Apply COUNT(*) to compute the total number of rows matching that filter.\n5. Return the resulting count as the answer.", + "steps": [ + "Use the Dish table as the sole source since the question only concerns dishes.", + "Map the external knowledge that \"free\" means the lowest_price column has a value of 0.", + "Filter the Dish rows to keep only those where lowest_price equals 0.", + "Apply COUNT(*) to compute the total number of rows matching that filter.", + "Return the resulting count as the answer." + ] + }, + "revisql-train:5527": { + "raw": "1. Identify that the Menu table alone contains both the menu identifier and the dish count, so no joins to other tables are required.\n2. Map the phrase \"highest dish count\" to the dish_count column and sort all menus by this column in descending order.\n3. Apply a limit of 10 rows to the sorted results to isolate only the top ten menus.\n4. Do not apply any additional filters or aggregation, as every menu record is eligible for ranking.\n5. Return exactly the id column for each of the ten resulting rows.", + "steps": [ + "Identify that the Menu table alone contains both the menu identifier and the dish count, so no joins to other tables are required.", + "Map the phrase \"highest dish count\" to the dish_count column and sort all menus by this column in descending order.", + "Apply a limit of 10 rows to the sorted results to isolate only the top ten menus.", + "Do not apply any additional filters or aggregation, as every menu record is eligible for ranking.", + "Return exactly the id column for each of the ten resulting rows." + ] + }, + "revisql-train:5531": { + "raw": "1. Target the Dish table exclusively; no joins are required because appearance-span data resides entirely in this table.\n2. Apply the external knowledge by computing last_appeared minus first_appeared plus 1 and filtering to rows where the result is less than 5.\n3. Enforce data-quality bounds by requiring both first_appeared and last_appeared to be between 1851 and 2012 inclusive.\n4. Aggregate the surviving rows with a count.\n5. Return a single column containing that count.", + "steps": [ + "Target the Dish table exclusively; no joins are required because appearance-span data resides entirely in this table.", + "Apply the external knowledge by computing last_appeared minus first_appeared plus 1 and filtering to rows where the result is less than 5.", + "Enforce data-quality bounds by requiring both first_appeared and last_appeared to be between 1851 and 2012 inclusive.", + "Aggregate the surviving rows with a count.", + "Return a single column containing that count." + ] + }, + "revisql-train:5532": { + "raw": "1. Identify that \"dishes that were free\" corresponds to rows in the Dish table where lowest_price equals 0, per the external knowledge.\n2. Join MenuItem to Dish on Dish.id = MenuItem.dish_id to access the price at which each dish appears on a menu.\n3. Filter the joined results to only rows where Dish.lowest_price = 0.\n4. Return Dish.name and MenuItem.price as the final columns.", + "steps": [ + "Identify that \"dishes that were free\" corresponds to rows in the Dish table where lowest_price equals 0, per the external knowledge.", + "Join MenuItem to Dish on Dish.id = MenuItem.dish_id to access the price at which each dish appears on a menu.", + "Filter the joined results to only rows where Dish.lowest_price = 0.", + "Return Dish.name and MenuItem.price as the final columns." + ] + }, + "revisql-train:555": { + "raw": "1. Use the production_company table to locate the company record and the movie table for film titles, connecting them through the movie_company junction table.\n2. Join production_company to movie_company on company_id, then join movie_company to movie on movie_id.\n3. Filter production_company.company_name to exactly 'Paramount Pictures' per the external knowledge mapping.\n4. Filter movie.release_date to the year 2000 by extracting the year from the date value, per the external knowledge mapping.\n5. Return only the title column from the movie table as the final answer.", + "steps": [ + "Use the production_company table to locate the company record and the movie table for film titles, connecting them through the movie_company junction table.", + "Join production_company to movie_company on company_id, then join movie_company to movie on movie_id.", + "Filter production_company.company_name to exactly 'Paramount Pictures' per the external knowledge mapping.", + "Filter movie.release_date to the year 2000 by extracting the year from the date value, per the external knowledge mapping.", + "Return only the title column from the movie table as the final answer." + ] + }, + "revisql-train:5550": { + "raw": "1. Target the Menu table exclusively; no joins are required.\n2. Filter the sponsor column to exactly 'PACIFIC MAIL STEAMSHIP COMPANY' using the external knowledge mapping.\n3. Filter the page_count column to <= 2 using the external knowledge mapping for \"no more than 2 pages\".\n4. Combine both filters with AND in the WHERE clause.\n5. Apply COUNT(*) to aggregate the number of menus meeting both conditions.\n6. Return exactly one column: the count.", + "steps": [ + "Target the Menu table exclusively; no joins are required.", + "Filter the sponsor column to exactly 'PACIFIC MAIL STEAMSHIP COMPANY' using the external knowledge mapping.", + "Filter the page_count column to <= 2 using the external knowledge mapping for \"no more than 2 pages\".", + "Combine both filters with AND in the WHERE clause.", + "Apply COUNT(*) to aggregate the number of menus meeting both conditions.", + "Return exactly one column: the count." + ] + }, + "revisql-train:5552": { + "raw": "1. Target the Menu table since it holds menu id, sponsor, and page count.\n2. Filter rows where sponsor equals 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY' per the external knowledge mapping.\n3. Find the maximum page_count within that sponsor-specific subset, not across all menus.\n4. Return the id of the menu(s) that satisfy both the sponsor filter and that highest page_count.", + "steps": [ + "Target the Menu table since it holds menu id, sponsor, and page count.", + "Filter rows where sponsor equals 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY' per the external knowledge mapping.", + "Find the maximum page_count within that sponsor-specific subset, not across all menus.", + "Return the id of the menu(s) that satisfy both the sponsor filter and that highest page_count." + ] + }, + "revisql-train:5556": { + "raw": "1. Join MenuPage to MenuItem on MenuPage.id = MenuItem.menu_page_id, MenuItem to Dish on MenuItem.dish_id = Dish.id, and MenuPage to Menu on MenuPage.menu_id = Menu.id to link every dish occurrence to its parent menu.\n2. Filter for rows where Dish.name equals 'baked apples with cream' using the external dish name knowledge.\n3. Group the results by Menu.id and aggregate by summing MenuItem.price to obtain the total price per menu for this specific dish.\n4. Construct a subquery that repeats the same joins and filter, groups by Menu.id to sum MenuItem.price per menu, and then selects the MAX of those totals to find the highest price.\n5. In the outer query, apply a HAVING clause to retain only those Menu.id groups whose summed price equals the maximum total returned by the subquery.\n6. Return the Menu.sponsor column for the qualifying menu or menus.", + "steps": [ + "Join MenuPage to MenuItem on MenuPage.id = MenuItem.menu_page_id, MenuItem to Dish on MenuItem.dish_id = Dish.id, and MenuPage to Menu on MenuPage.menu_id = Menu.id to link every dish occurrence to its parent menu.", + "Filter for rows where Dish.name equals 'baked apples with cream' using the external dish name knowledge.", + "Group the results by Menu.id and aggregate by summing MenuItem.price to obtain the total price per menu for this specific dish.", + "Construct a subquery that repeats the same joins and filter, groups by Menu.id to sum MenuItem.price per menu, and then selects the MAX of those totals to find the highest price.", + "In the outer query, apply a HAVING clause to retain only those Menu.id groups whose summed price equals the maximum total returned by the subquery.", + "Return the Menu.sponsor column for the qualifying menu or menus." + ] + }, + "revisql-train:5566": { + "raw": "1. Join Menu to MenuPage on Menu.id = MenuPage.menu_id so that each menu’s name is paired with its page dimensions.\n2. Filter to only rows where page_number = 1, because the question compares the first pages of the two menus.\n3. Isolate the full_width values for the two specific menus, 'Zentral Theater Terrace' and 'Young''s Hotel', by conditionally aggregating full_width for each name into a single result row.\n4. Subtract the two aggregated widths; if the difference is positive then 'Zentral Theater Terrace' has the bigger page, otherwise 'Young''s Hotel' does, applying the external knowledge comparison rule.\n5. Return exactly one column that contains the name of the menu whose page 1 has the larger full_width.", + "steps": [ + "Join Menu to MenuPage on Menu.id = MenuPage.menu_id so that each menu’s name is paired with its page dimensions.", + "Filter to only rows where page_number = 1, because the question compares the first pages of the two menus.", + "Isolate the full_width values for the two specific menus, 'Zentral Theater Terrace' and 'Young''s Hotel', by conditionally aggregating full_width for each name into a single result row.", + "Subtract the two aggregated widths; if the difference is positive then 'Zentral Theater Terrace' has the bigger page, otherwise 'Young''s Hotel' does, applying the external knowledge comparison rule.", + "Return exactly one column that contains the name of the menu whose page 1 has the larger full_width." + ] + }, + "revisql-train:5569": { + "raw": "1. Join MenuPage with MenuItem on MenuPage.id = MenuItem.menu_page_id to link each menu item to its page.\n2. Filter MenuPage rows to menu_id = 12882 to isolate the requested menu.\n3. Apply the external knowledge that \"page 1\" maps to MenuPage.page_number = 1.\n4. Count the MenuItem rows for that page by aggregating with a conditional sum that yields 1 when page_number is 1 and 0 otherwise.\n5. Return a single column containing the resulting total dish count.", + "steps": [ + "Join MenuPage with MenuItem on MenuPage.id = MenuItem.menu_page_id to link each menu item to its page.", + "Filter MenuPage rows to menu_id = 12882 to isolate the requested menu.", + "Apply the external knowledge that \"page 1\" maps to MenuPage.page_number = 1.", + "Count the MenuItem rows for that page by aggregating with a conditional sum that yields 1 when page_number is 1 and 0 otherwise.", + "Return a single column containing the resulting total dish count." + ] + }, + "revisql-train:5577": { + "raw": "1. Join MenuItem to MenuPage on the menu_page_id foreign key to link every dish item to its corresponding page.\n2. Filter the joined set to only rows where MenuPage.menu_id equals 12882.\n3. Count all MenuItem rows to get the total number of dish instances for this menu.\n4. Count distinct MenuPage.id values to get the total number of pages for this menu.\n5. Divide the total dish count by the page count, using 1.0 multiplied to force decimal division, and return the result as the single column avg_dishes_per_page.", + "steps": [ + "Join MenuItem to MenuPage on the menu_page_id foreign key to link every dish item to its corresponding page.", + "Filter the joined set to only rows where MenuPage.menu_id equals 12882.", + "Count all MenuItem rows to get the total number of dish instances for this menu.", + "Count distinct MenuPage.id values to get the total number of pages for this menu.", + "Divide the total dish count by the page count, using 1.0 multiplied to force decimal division, and return the result as the single column avg_dishes_per_page." + ] + }, + "revisql-train:558": { + "raw": "1. Join `production_company` with `movie_company` on `company_id` to associate each production company with every movie it made.\n2. Group the results by `company_id`, selecting `company_name` for each group.\n3. Use a HAVING clause with `COUNT(company_name) > 150` to filter for companies that produced more than 150 movies, applying the external knowledge threshold.\n4. Return `COUNT(*)` of the filtered groups as a single column representing the number of qualifying production companies.", + "steps": [ + "Join `production_company` with `movie_company` on `company_id` to associate each production company with every movie it made.", + "Group the results by `company_id`, selecting `company_name` for each group.", + "Use a HAVING clause with `COUNT(company_name) > 150` to filter for companies that produced more than 150 movies, applying the external knowledge threshold.", + "Return `COUNT(*)` of the filtered groups as a single column representing the number of qualifying production companies." + ] + }, + "revisql-train:5583": { + "raw": "1. Join the customer and shipment tables on the cust_id column to link each customer to their shipments.\n2. Map a shipment in 2017 to a filter that extracts the year from ship_date and checks that it equals 2017.\n3. Map annual revenue of over 30000000 to a filter on the annual_revenue column with the condition greater than 30000000.\n4. Group the joined results by cust_id and apply a HAVING condition requiring at least one qualifying shipment per customer by counting ship_id.\n5. Count the number of resulting customer groups and return that single total count value.", + "steps": [ + "Join the customer and shipment tables on the cust_id column to link each customer to their shipments.", + "Map a shipment in 2017 to a filter that extracts the year from ship_date and checks that it equals 2017.", + "Map annual revenue of over 30000000 to a filter on the annual_revenue column with the condition greater than 30000000.", + "Group the joined results by cust_id and apply a HAVING condition requiring at least one qualifying shipment per customer by counting ship_id.", + "Count the number of resulting customer groups and return that single total count value." + ] + }, + "revisql-train:5587": { + "raw": "1. Join the shipment table to the city table on city_id so each shipment is matched to its destination city name.\n2. Filter the results to only rows where city.city_name equals 'New York', using the external knowledge that the destination is stored in the city_name column.\n3. Apply the MAX aggregate to shipment.weight to satisfy the request for the maximum weight being transported.\n4. Return only that single calculated maximum weight column.", + "steps": [ + "Join the shipment table to the city table on city_id so each shipment is matched to its destination city name.", + "Filter the results to only rows where city.city_name equals 'New York', using the external knowledge that the destination is stored in the city_name column.", + "Apply the MAX aggregate to shipment.weight to satisfy the request for the maximum weight being transported.", + "Return only that single calculated maximum weight column." + ] + }, + "revisql-train:559": { + "raw": "1. Filter the person table to the row where person_name equals 'Mark Hammel'.\n2. Join the movie_crew table on person_id to connect that person to his crew records.\n3. Apply the external knowledge that the question's term \"role\" maps to the job column in movie_crew.\n4. Return the job column from movie_crew.", + "steps": [ + "Filter the person table to the row where person_name equals 'Mark Hammel'.", + "Join the movie_crew table on person_id to connect that person to his crew records.", + "Apply the external knowledge that the question's term \"role\" maps to the job column in movie_crew.", + "Return the job column from movie_crew." + ] + }, + "revisql-train:5605": { + "raw": "1. Join the truck table with the shipment table on the truck_id column so that every shipment is matched to its corresponding truck.\n2. Filter the joined rows to only those where the make column in the truck table equals 'Kenworth', applying the external knowledge that Kenworth is a truck make.\n3. Count all ship_id values from the shipment table in the filtered set to get the total number of shipments handled by Kenworth trucks.\n4. Count distinct truck_id values from the truck table in the filtered set to get the number of unique Kenworth trucks that were used.\n5. Cast the total shipment count to a real number and divide it by the distinct truck count to compute the average number of shipments per Kenworth truck.\n6. Return a single result column containing this computed average value.", + "steps": [ + "Join the truck table with the shipment table on the truck_id column so that every shipment is matched to its corresponding truck.", + "Filter the joined rows to only those where the make column in the truck table equals 'Kenworth', applying the external knowledge that Kenworth is a truck make.", + "Count all ship_id values from the shipment table in the filtered set to get the total number of shipments handled by Kenworth trucks.", + "Count distinct truck_id values from the truck table in the filtered set to get the number of unique Kenworth trucks that were used.", + "Cast the total shipment count to a real number and divide it by the distinct truck count to compute the average number of shipments per Kenworth truck.", + "Return a single result column containing this computed average value." + ] + }, + "revisql-train:5608": { + "raw": "1. Map the request for a driver's \"full name\" to the `first_name` and `last_name` columns in the `driver` table, and map \"first shipment of the company\" to the minimum `ship_date` value in the `shipment` table.\n2. Join the `driver` and `shipment` tables on the `driver_id` key to associate each shipment with its driver.\n3. Compute the earliest shipment date by taking the minimum `ship_date` across all records in the `shipment` table.\n4. Filter the joined results to keep only the row(s) where the shipment's `ship_date` equals that computed minimum date.\n5. Return the `first_name` and `last_name` columns from the `driver` table as the final output.", + "steps": [ + "Map the request for a driver's \"full name\" to the `first_name` and `last_name` columns in the `driver` table, and map \"first shipment of the company\" to the minimum `ship_date` value in the `shipment` table.", + "Join the `driver` and `shipment` tables on the `driver_id` key to associate each shipment with its driver.", + "Compute the earliest shipment date by taking the minimum `ship_date` across all records in the `shipment` table.", + "Filter the joined results to keep only the row(s) where the shipment's `ship_date` equals that computed minimum date.", + "Return the `first_name` and `last_name` columns from the `driver` table as the final output." + ] + }, + "revisql-train:5609": { + "raw": "1. Map the external knowledge that \"Olympic Camper Sales Inc\" refers to the cust_name column in the customer table.\n2. Join the customer table with the shipment table using cust_id as the join key to link each customer to their shipments.\n3. Filter the joined results to only rows where cust_name equals \"Olympic Camper Sales Inc\".\n4. Count the ship_id values from the shipment table to compute the total number of shipments for that customer.\n5. Return the resulting count as the answer.", + "steps": [ + "Map the external knowledge that \"Olympic Camper Sales Inc\" refers to the cust_name column in the customer table.", + "Join the customer table with the shipment table using cust_id as the join key to link each customer to their shipments.", + "Filter the joined results to only rows where cust_name equals \"Olympic Camper Sales Inc\".", + "Count the ship_id values from the shipment table to compute the total number of shipments for that customer.", + "Return the resulting count as the answer." + ] + }, + "revisql-train:5616": { + "raw": "1. Join the driver table to the shipment table on driver_id, and join the shipment table to the city table on city_id.\n2. Filter the driver rows to only those with first_name equal to 'Holger' and last_name equal to 'Nohr'.\n3. Apply the external knowledge that \"North Las Vegas\" maps to the city_name column, and filter the city rows to that exact value.\n4. Aggregate the result by counting all rows with COUNT(*) to obtain the total number of shipments.\n5. Return only the single aggregated count column.", + "steps": [ + "Join the driver table to the shipment table on driver_id, and join the shipment table to the city table on city_id.", + "Filter the driver rows to only those with first_name equal to 'Holger' and last_name equal to 'Nohr'.", + "Apply the external knowledge that \"North Las Vegas\" maps to the city_name column, and filter the city rows to that exact value.", + "Aggregate the result by counting all rows with COUNT(*) to obtain the total number of shipments.", + "Return only the single aggregated count column." + ] + }, + "revisql-train:5624": { + "raw": "1. Join `shipment` to `city` on `city_id` and to `driver` on `driver_id` to connect delivery destinations with the drivers who made them.\n2. Filter the `city` table to rows where `city_name` equals 'New York'.\n3. Filter the `shipment` table to rows where `ship_date` begins with '2016-02' to capture only February 2016 deliveries.\n4. Select distinct `first_name` and `last_name` from the `driver` table to return each qualifying driver’s full name once without duplicates.", + "steps": [ + "Join `shipment` to `city` on `city_id` and to `driver` on `driver_id` to connect delivery destinations with the drivers who made them.", + "Filter the `city` table to rows where `city_name` equals 'New York'.", + "Filter the `shipment` table to rows where `ship_date` begins with '2016-02' to capture only February 2016 deliveries.", + "Select distinct `first_name` and `last_name` from the `driver` table to return each qualifying driver’s full name once without duplicates." + ] + }, + "revisql-train:563": { + "raw": "1. Join the movie table to movie_genres on movie_id, then join movie_genres to genre on genre_id to access genre names.\n2. Apply the external knowledge that horror movies map to genre_name = 'Horror'.\n3. Count distinct movie_ids only when genre_name is 'Horror' to form the numerator.\n4. Count all distinct movie_ids across the joined result as the denominator for all movies with genres.\n5. Cast the numerator to REAL, multiply by 100.0, and divide by the denominator to compute the percentage proportion.\n6. Return the single calculated percentage value.", + "steps": [ + "Join the movie table to movie_genres on movie_id, then join movie_genres to genre on genre_id to access genre names.", + "Apply the external knowledge that horror movies map to genre_name = 'Horror'.", + "Count distinct movie_ids only when genre_name is 'Horror' to form the numerator.", + "Count all distinct movie_ids across the joined result as the denominator for all movies with genres.", + "Cast the numerator to REAL, multiply by 100.0, and divide by the denominator to compute the percentage proportion.", + "Return the single calculated percentage value." + ] + }, + "revisql-train:5631": { + "raw": "1. Join the `city` table to the `shipment` table on the `city_id` key to link each destination city with its shipments.\n2. Filter to rows where `city.population` is greater than 50000, using the external knowledge that \"larger than 50000\" maps directly to `population > 50000`.\n3. Filter to rows where the year extracted from `shipment.ship_date` equals 2017.\n4. Count distinct `city_id` values so each qualifying city is only counted once regardless of shipment volume.\n5. Return that single aggregated count as the final answer column.", + "steps": [ + "Join the `city` table to the `shipment` table on the `city_id` key to link each destination city with its shipments.", + "Filter to rows where `city.population` is greater than 50000, using the external knowledge that \"larger than 50000\" maps directly to `population > 50000`.", + "Filter to rows where the year extracted from `shipment.ship_date` equals 2017.", + "Count distinct `city_id` values so each qualifying city is only counted once regardless of shipment volume.", + "Return that single aggregated count as the final answer column." + ] + }, + "revisql-train:5632": { + "raw": "1. Identify that the question requires shipment weights and that \"Peterbilt\" refers to the `make` column in the `truck` table based on the external knowledge.\n2. Join the `truck` table with the `shipment` table on the common `truck_id` key to associate each shipment with its truck.\n3. Filter the joined rows to keep only those where `truck.make` is exactly 'Peterbilt'.\n4. Return the `weight` column from the `shipment` table for the filtered records.", + "steps": [ + "Identify that the question requires shipment weights and that \"Peterbilt\" refers to the `make` column in the `truck` table based on the external knowledge.", + "Join the `truck` table with the `shipment` table on the common `truck_id` key to associate each shipment with its truck.", + "Filter the joined rows to keep only those where `truck.make` is exactly 'Peterbilt'.", + "Return the `weight` column from the `shipment` table for the filtered records." + ] + }, + "revisql-train:5633": { + "raw": "1. Identify that you need the truck table for the model_year and the shipment table to locate the specific shipment record.\n2. Join the truck table to the shipment table on truck_id, the shared key that links the truck used to a given shipment.\n3. Use the external knowledge that \"shipment id 1003\" maps to the ship_id column, and filter for the row where ship_id equals 1003.\n4. Return only the model_year column from the truck table as the answer.", + "steps": [ + "Identify that you need the truck table for the model_year and the shipment table to locate the specific shipment record.", + "Join the truck table to the shipment table on truck_id, the shared key that links the truck used to a given shipment.", + "Use the external knowledge that \"shipment id 1003\" maps to the ship_id column, and filter for the row where ship_id equals 1003.", + "Return only the model_year column from the truck table as the answer." + ] + }, + "revisql-train:5637": { + "raw": "1. Join the shipment table to the driver table on the driver_id column to link every shipment to the driver who transported it.\n2. Group the joined records by driver_id so that all shipments for each individual driver are aggregated together.\n3. Apply a HAVING clause with SUM(weight) > 50000 to retain only drivers whose total shipment weight exceeds 50000 pounds, using the external knowledge that \"total weight greater than 50000 pounds\" refers to the aggregated sum of the weight column.\n4. Return the address column from the driver table for the drivers that satisfy the grouped weight condition.", + "steps": [ + "Join the shipment table to the driver table on the driver_id column to link every shipment to the driver who transported it.", + "Group the joined records by driver_id so that all shipments for each individual driver are aggregated together.", + "Apply a HAVING clause with SUM(weight) > 50000 to retain only drivers whose total shipment weight exceeds 50000 pounds, using the external knowledge that \"total weight greater than 50000 pounds\" refers to the aggregated sum of the weight column.", + "Return the address column from the driver table for the drivers that satisfy the grouped weight condition." + ] + }, + "revisql-train:5646": { + "raw": "1. Use the `customer` table exclusively; no joins are required.\n2. Filter rows where `state` equals 'CA' to capture customers living in California.\n3. Filter rows where `cust_type` equals 'retailer' to capture only retailer customers.\n4. Apply `COUNT(*)` to the filtered rows because the question asks for a quantity.\n5. Return a single column containing the total count of matching customers.", + "steps": [ + "Use the `customer` table exclusively; no joins are required.", + "Filter rows where `state` equals 'CA' to capture customers living in California.", + "Filter rows where `cust_type` equals 'retailer' to capture only retailer customers.", + "Apply `COUNT(*)` to the filtered rows because the question asks for a quantity.", + "Return a single column containing the total count of matching customers." + ] + }, + "revisql-train:5654": { + "raw": "1. Map the external knowledge to columns: locate the customer by cust_name 'Klett & Sons Repair', use truck.make for brand, and driver.first_name with driver.last_name for the driver's name.\n2. Filter the customer table to the row where cust_name equals 'Klett & Sons Repair'.\n3. Join the shipment table on cust_id to retrieve all shipments linked to that customer.\n4. Join the truck table on truck_id to get the make, and join the driver table on driver_id to get the first_name and last_name.\n5. Return distinct make, first_name, and last_name to eliminate duplicate truck-driver pairs from multiple shipments.", + "steps": [ + "Map the external knowledge to columns: locate the customer by cust_name 'Klett & Sons Repair', use truck.make for brand, and driver.first_name with driver.last_name for the driver's name.", + "Filter the customer table to the row where cust_name equals 'Klett & Sons Repair'.", + "Join the shipment table on cust_id to retrieve all shipments linked to that customer.", + "Join the truck table on truck_id to get the make, and join the driver table on driver_id to get the first_name and last_name.", + "Return distinct make, first_name, and last_name to eliminate duplicate truck-driver pairs from multiple shipments." + ] + }, + "revisql-train:566": { + "raw": "1. Use only the Method table; no joins are needed because both required attributes exist in it.\n2. Filter rows where Lang = 'en' to isolate English-language methods per the external knowledge.\n3. Further filter those rows to CommentIsXml = 1 to keep only methods whose comments are in XML format per the external knowledge.\n4. Count the Lang column across the filtered rows to compute the total number of matching English language codes.\n5. Return the resulting count of Lang as the final answer.", + "steps": [ + "Use only the Method table; no joins are needed because both required attributes exist in it.", + "Filter rows where Lang = 'en' to isolate English-language methods per the external knowledge.", + "Further filter those rows to CommentIsXml = 1 to keep only methods whose comments are in XML format per the external knowledge.", + "Count the Lang column across the filtered rows to compute the total number of matching English language codes.", + "Return the resulting count of Lang as the final answer." + ] + }, + "revisql-train:5663": { + "raw": "1. Join the `shipment` table to the `driver` table on the matching `driver_id` columns so that driver name details are available for each shipment record.\n2. Filter the joined rows to keep only those where `driver.first_name` equals 'Zachery' and `driver.last_name` equals 'Hicks'.\n3. Aggregate the filtered results with COUNT(*) to total the number of shipments handled by that driver.\n4. Return exactly one column: the resulting count of shipments.", + "steps": [ + "Join the `shipment` table to the `driver` table on the matching `driver_id` columns so that driver name details are available for each shipment record.", + "Filter the joined rows to keep only those where `driver.first_name` equals 'Zachery' and `driver.last_name` equals 'Hicks'.", + "Aggregate the filtered results with COUNT(*) to total the number of shipments handled by that driver.", + "Return exactly one column: the resulting count of shipments." + ] + }, + "revisql-train:567": { + "raw": "1. Query the Method table, filtering to the row where NameTokenized exactly equals 'online median filter test median window filling'.\n2. Use the external knowledge that the task is defined as the second dot-delimited segment of the Name column.\n3. Build a string expression that removes the first segment (everything before and including the first '.'), then keeps only the characters from the start of the remainder up to the next '.'.\n4. Return the result of that expression as a single column named task.", + "steps": [ + "Query the Method table, filtering to the row where NameTokenized exactly equals 'online median filter test median window filling'.", + "Use the external knowledge that the task is defined as the second dot-delimited segment of the Name column.", + "Build a string expression that removes the first segment (everything before and including the first '.'), then keeps only the characters from the start of the remainder up to the next '.'.", + "Return the result of that expression as a single column named task." + ] + }, + "revisql-train:5670": { + "raw": "1. Start with the `shipment` table to locate the record for ship ID 1245 and note that it stores a `truck_id` referencing the truck used.\n2. Join the `truck` table to `shipment` on the shared `truck_id` column to connect the shipment to its specific truck.\n3. Filter the joined rows to keep only the one where `shipment.ship_id` equals 1245.\n4. Return the `model_year` column from the `truck` table as the final answer.", + "steps": [ + "Start with the `shipment` table to locate the record for ship ID 1245 and note that it stores a `truck_id` referencing the truck used.", + "Join the `truck` table to `shipment` on the shared `truck_id` column to connect the shipment to its specific truck.", + "Filter the joined rows to keep only the one where `shipment.ship_id` equals 1245.", + "Return the `model_year` column from the `truck` table as the final answer." + ] + }, + "revisql-train:5684": { + "raw": "1. Target the `pages` table, which stores each page’s `title` and the number of different `words`.\n2. Map the external knowledge that “longest title” corresponds to the maximum value of `LENGTH(title)`.\n3. Use a scalar subquery on `pages` to calculate `MAX(LENGTH(title))` as the threshold.\n4. Filter the main query to only those rows in `pages` where `LENGTH(title)` equals that maximum.\n5. Return exactly the `title` and `words` columns.", + "steps": [ + "Target the `pages` table, which stores each page’s `title` and the number of different `words`.", + "Map the external knowledge that “longest title” corresponds to the maximum value of `LENGTH(title)`.", + "Use a scalar subquery on `pages` to calculate `MAX(LENGTH(title))` as the threshold.", + "Filter the main query to only those rows in `pages` where `LENGTH(title)` equals that maximum.", + "Return exactly the `title` and `words` columns." + ] + }, + "revisql-train:5685": { + "raw": "1. Use only the `pages` table, since it already holds both the page titles and the per-page count of different words, so no joins are necessary.\n2. Filter to Catalan-language pages by requiring `lid = 1`, because the schema defines `lid=1` as the Catalan language.\n3. Apply the external knowledge that “less than 10 number of different words” maps directly to the `words` column, adding the condition `words < 10`.\n4. Return exactly the `title` column to list the qualifying Wikipedia page titles.", + "steps": [ + "Use only the `pages` table, since it already holds both the page titles and the per-page count of different words, so no joins are necessary.", + "Filter to Catalan-language pages by requiring `lid = 1`, because the schema defines `lid=1` as the Catalan language.", + "Apply the external knowledge that “less than 10 number of different words” maps directly to the `words` column, adding the condition `words < 10`.", + "Return exactly the `title` column to list the qualifying Wikipedia page titles." + ] + }, + "revisql-train:5694": { + "raw": "1. Retrieve the word id (wid) from the words table for the row where word equals 'system'.\n2. Inner join words to biwords on wid = w1st to connect each word to the pairs in which it appears as the first word.\n3. Filter the joined results to only those rows where the first-word id (w1st) matches the wid retrieved for 'system'.\n4. Compute the average of the occurrences column from the filtered biwords records.\n5. Return that single calculated average value.", + "steps": [ + "Retrieve the word id (wid) from the words table for the row where word equals 'system'.", + "Inner join words to biwords on wid = w1st to connect each word to the pairs in which it appears as the first word.", + "Filter the joined results to only those rows where the first-word id (w1st) matches the wid retrieved for 'system'.", + "Compute the average of the occurrences column from the filtered biwords records.", + "Return that single calculated average value." + ] + }, + "revisql-train:5696": { + "raw": "1. Join the `biwords` table to the `words` table twice: first on `w1st` matching `wid` to retrieve the first word, then on `w2nd` matching `wid` to retrieve the second word.\n2. Filter the `biwords` rows to only those where `lid` equals 1, representing the Catalan language.\n3. Compute the maximum `occurrences` value within `biwords` for `lid` = 1 to identify the most frequent pair.\n4. Retain only the biword record(s) whose `occurrences` equal that computed maximum.\n5. Return the `word` column from the first join labeled as `first_word` and from the second join labeled as `second_word`.", + "steps": [ + "Join the `biwords` table to the `words` table twice: first on `w1st` matching `wid` to retrieve the first word, then on `w2nd` matching `wid` to retrieve the second word.", + "Filter the `biwords` rows to only those where `lid` equals 1, representing the Catalan language.", + "Compute the maximum `occurrences` value within `biwords` for `lid` = 1 to identify the most frequent pair.", + "Retain only the biword record(s) whose `occurrences` equal that computed maximum.", + "Return the `word` column from the first join labeled as `first_word` and from the second join labeled as `second_word`." + ] + }, + "revisql-train:5701": { + "raw": "1. Map \"different words\" to counting distinct `wid` values in `pages_words` and \"least number\" to the minimum aggregate.\n2. Group `pages_words` by `pid` and count distinct `wid` to compute the number of different words for each page.\n3. Determine the overall minimum value among those per-page counts.\n4. Join the `pages` table with the grouped results on matching `pid` to associate each page title with its distinct word count.\n5. Filter the joined rows to keep only those where the count equals that overall minimum.\n6. Return the `title` column from `pages`.", + "steps": [ + "Map \"different words\" to counting distinct `wid` values in `pages_words` and \"least number\" to the minimum aggregate.", + "Group `pages_words` by `pid` and count distinct `wid` to compute the number of different words for each page.", + "Determine the overall minimum value among those per-page counts.", + "Join the `pages` table with the grouped results on matching `pid` to associate each page title with its distinct word count.", + "Filter the joined rows to keep only those where the count equals that overall minimum.", + "Return the `title` column from `pages`." + ] + }, + "revisql-train:571": { + "raw": "1. Use the `Repo` table, as it holds repository metadata including stars and addresses.\n2. Map the requested \"github address\" to the `Url` column and the \"amount of stars\" to the `Stars` column.\n3. Interpret \"most liked\" as the maximum value of `Stars` across all rows in `Repo`.\n4. Filter `Repo` to the row(s) where `Stars` equals that maximum value.\n5. Return exactly the `Url` and `Stars` columns for the resulting row(s).", + "steps": [ + "Use the `Repo` table, as it holds repository metadata including stars and addresses.", + "Map the requested \"github address\" to the `Url` column and the \"amount of stars\" to the `Stars` column.", + "Interpret \"most liked\" as the maximum value of `Stars` across all rows in `Repo`.", + "Filter `Repo` to the row(s) where `Stars` equals that maximum value.", + "Return exactly the `Url` and `Stars` columns for the resulting row(s)." + ] + }, + "revisql-train:5713": { + "raw": "1. Use the `words` table, which links word ids to their text values.\n2. Filter on `wid = 88`, mapping the question's \"88\" to the word id column using the external knowledge.\n3. Also filter on `word = 'Animals'` to check the associated word string.\n4. Perform an existence test to determine whether a single row matches both filters.\n5. Output one column named `YORN` that returns 'YES' if the row exists and 'NO' otherwise.", + "steps": [ + "Use the `words` table, which links word ids to their text values.", + "Filter on `wid = 88`, mapping the question's \"88\" to the word id column using the external knowledge.", + "Also filter on `word = 'Animals'` to check the associated word string.", + "Perform an existence test to determine whether a single row matches both filters.", + "Output one column named `YORN` that returns 'YES' if the row exists and 'NO' otherwise." + ] + }, + "revisql-train:5718": { + "raw": "1. Filter the words table to the row where the word column equals 'fresc', applying the external knowledge that \"fresc\" refers to that specific value.\n2. Join words to pages_words on wid to find every page occurrence linked to that word id.\n3. Join pages_words to pages on pid to access the page metadata for those occurrences.\n4. Return only the revision column from the pages table.", + "steps": [ + "Filter the words table to the row where the word column equals 'fresc', applying the external knowledge that \"fresc\" refers to that specific value.", + "Join words to pages_words on wid to find every page occurrence linked to that word id.", + "Join pages_words to pages on pid to access the page metadata for those occurrences.", + "Return only the revision column from the pages table." + ] + }, + "revisql-train:5722": { + "raw": "1. Use the `pages` table, which holds the Wikipedia page id (`pid`) and page titles (`title`).\n2. Restrict rows to Catalan-language pages by filtering `lid` = 1.\n3. Apply the external numeric-value rule to the `title` column by checking for any digit 0 through 9 using `LIKE` patterns joined with OR.\n4. Return only the `pid` column as the answer.", + "steps": [ + "Use the `pages` table, which holds the Wikipedia page id (`pid`) and page titles (`title`).", + "Restrict rows to Catalan-language pages by filtering `lid` = 1.", + "Apply the external numeric-value rule to the `title` column by checking for any digit 0 through 9 using `LIKE` patterns joined with OR.", + "Return only the `pid` column as the answer." + ] + }, + "revisql-train:5739": { + "raw": "1. Use the `biwords` table, which stores word pairs that appear together via the `w1st` and `w2nd` columns; no joins are required.\n2. Map \"word 1\" and \"word 25\" to `wid` values 1 and 25, meaning the pair must consist of these two specific word IDs.\n3. Filter for both possible orderings of the pair: word 1 as the first element and word 25 as the second, and the reverse.\n4. Sum the `occurrences` column to compute the total frequency in response to \"how frequently.\"\n5. Return the result as a single column named `frequency`.", + "steps": [ + "Use the `biwords` table, which stores word pairs that appear together via the `w1st` and `w2nd` columns; no joins are required.", + "Map \"word 1\" and \"word 25\" to `wid` values 1 and 25, meaning the pair must consist of these two specific word IDs.", + "Filter for both possible orderings of the pair: word 1 as the first element and word 25 as the second, and the reverse.", + "Sum the `occurrences` column to compute the total frequency in response to \"how frequently.\"", + "Return the result as a single column named `frequency`." + ] + }, + "revisql-train:574": { + "raw": "1. Map \"github address\" to the `Url` column in the `Repo` table.\n2. Identify that the solution path is stored in the `Path` column of the `Solution` table.\n3. Join `Repo` to `Solution` on `Repo.Id = Solution.RepoId`.\n4. Filter for rows where `Solution.Path` equals 'nofear_Mara\\Mara.sln'.\n5. Return the `Url` value from the matched `Repo` record.", + "steps": [ + "Map \"github address\" to the `Url` column in the `Repo` table.", + "Identify that the solution path is stored in the `Path` column of the `Solution` table.", + "Join `Repo` to `Solution` on `Repo.Id = Solution.RepoId`.", + "Filter for rows where `Solution.Path` equals 'nofear_Mara\\Mara.sln'.", + "Return the `Url` value from the matched `Repo` record." + ] + }, + "revisql-train:575": { + "raw": "1. Isolate the repository with the longest download processed time by filtering Repo.ProcessedTime against the maximum value selected from the Repo table.\n2. Left join the Solution table on RepoId to access the WasCompiled flag for every solution path belonging to that repository.\n3. Group the joined rows by repository Id so the compilation status can be evaluated across all of its solutions together.\n4. Apply the external rule that \"without needs of compilation\" means every solution must have WasCompiled = 1: translate this into a conditional expression that returns 1 when WasCompiled equals 1 and 0 otherwise, then compute the minimum of that value across the group.\n5. Return the repository Id as RepoId and a Yes/No indicator as CanRunWithoutCompilation, outputting 'Yes' only when the aggregated minimum equals 1, otherwise 'No'.", + "steps": [ + "Isolate the repository with the longest download processed time by filtering Repo.ProcessedTime against the maximum value selected from the Repo table.", + "Left join the Solution table on RepoId to access the WasCompiled flag for every solution path belonging to that repository.", + "Group the joined rows by repository Id so the compilation status can be evaluated across all of its solutions together.", + "Apply the external rule that \"without needs of compilation\" means every solution must have WasCompiled = 1: translate this into a conditional expression that returns 1 when WasCompiled equals 1 and 0 otherwise, then compute the minimum of that value across the group.", + "Return the repository Id as RepoId and a Yes/No indicator as CanRunWithoutCompilation, outputting 'Yes' only when the aggregated minimum equals 1, otherwise 'No'." + ] + }, + "revisql-train:5761": { + "raw": "1. Identify that the `locale` is stored in the `langs` table and the page title is stored in the `pages` table.\n2. Join the `langs` table to the `pages` table on the `lid` column, which links each page to its language.\n3. Filter the `pages` table to the row where `title` equals `Anys 90` using the external knowledge mapping.\n4. Return only the `locale` column from the `langs` table.", + "steps": [ + "Identify that the `locale` is stored in the `langs` table and the page title is stored in the `pages` table.", + "Join the `langs` table to the `pages` table on the `lid` column, which links each page to its language.", + "Filter the `pages` table to the row where `title` equals `Anys 90` using the external knowledge mapping.", + "Return only the `locale` column from the `langs` table." + ] + }, + "revisql-train:5770": { + "raw": "1. Use the `pages_words` table, which links each page (`pid`) to each word (`wid`) and records how many times that word appears in that specific page via the `occurrences` column.\n2. Apply the external knowledge to filter rows where `occurrences` is strictly greater than 3000, capturing only page-word pairs where the word appears more than 3,000 times on that page.\n3. From the filtered results, count the distinct `pid` values to return the total number of distinct pages meeting the condition.", + "steps": [ + "Use the `pages_words` table, which links each page (`pid`) to each word (`wid`) and records how many times that word appears in that specific page via the `occurrences` column.", + "Apply the external knowledge to filter rows where `occurrences` is strictly greater than 3000, capturing only page-word pairs where the word appears more than 3,000 times on that page.", + "From the filtered results, count the distinct `pid` values to return the total number of distinct pages meeting the condition." + ] + }, + "revisql-train:5781": { + "raw": "1. Start from the `words` table and isolate the row where the `word` column equals 'grec'.\n2. Inner join `pages_words` on the `wid` key to find every page instance linked to that word.\n3. Inner join `pages` on the `pid` key to bring in each page's metadata, specifically the `words` column that stores the number of words on that page.\n4. Apply the filter that `pages_words.occurrences` must equal 52, reflecting the condition that \"grec\" occurred 52 times.\n5. Aggregate by summing the `words` column from the `pages` table across all rows that survived the filters.\n6. Return only that single summed total as the final answer.", + "steps": [ + "Start from the `words` table and isolate the row where the `word` column equals 'grec'.", + "Inner join `pages_words` on the `wid` key to find every page instance linked to that word.", + "Inner join `pages` on the `pid` key to bring in each page's metadata, specifically the `words` column that stores the number of words on that page.", + "Apply the filter that `pages_words.occurrences` must equal 52, reflecting the condition that \"grec\" occurred 52 times.", + "Aggregate by summing the `words` column from the `pages` table across all rows that survived the filters.", + "Return only that single summed total as the final answer." + ] + }, + "revisql-train:5782": { + "raw": "1. Map the literal terms \"àbac\" and \"xinès\" to the `word` column and \"occurrence\" to the `occurrences` column using the external knowledge.\n2. Query the `words` table to obtain the `wid` value where `word` is \"àbac\" and the `wid` value where `word` is \"xinès\".\n3. Filter the `biwords` table for the row where `w1st` equals the `wid` of \"àbac\" and `w2nd` equals the `wid` of \"xinès\".\n4. Return the value from the `occurrences` column of that matching `biwords` row.", + "steps": [ + "Map the literal terms \"àbac\" and \"xinès\" to the `word` column and \"occurrence\" to the `occurrences` column using the external knowledge.", + "Query the `words` table to obtain the `wid` value where `word` is \"àbac\" and the `wid` value where `word` is \"xinès\".", + "Filter the `biwords` table for the row where `w1st` equals the `wid` of \"àbac\" and `w2nd` equals the `wid` of \"xinès\".", + "Return the value from the `occurrences` column of that matching `biwords` row." + ] + }, + "revisql-train:5786": { + "raw": "1. Start from the `biwords` table to access all word-pair records and their individual occurrence counts.\n2. Join the `words` table on `words.wid = biwords.w1st` to translate the first word’s id into its actual text, since `w1st` represents the first word of the pair.\n3. Apply a filter requiring `words.word` to equal `'àbac'`, using the external knowledge that the word `'àbac'` is stored in the `word` column.\n4. Compute the sum of `biwords.occurrences` to aggregate the total occurrences, mapping the requested “occurrence” to the `occurrences` column.\n5. Return the aggregated result in a single column named `total_occurrences`.", + "steps": [ + "Start from the `biwords` table to access all word-pair records and their individual occurrence counts.", + "Join the `words` table on `words.wid = biwords.w1st` to translate the first word’s id into its actual text, since `w1st` represents the first word of the pair.", + "Apply a filter requiring `words.word` to equal `'àbac'`, using the external knowledge that the word `'àbac'` is stored in the `word` column.", + "Compute the sum of `biwords.occurrences` to aggregate the total occurrences, mapping the requested “occurrence” to the `occurrences` column.", + "Return the aggregated result in a single column named `total_occurrences`." + ] + }, + "revisql-train:579": { + "raw": "1. Identify that popularity corresponds to the Watchers column in Repo, so the 2nd most popular repository is the one with the second-highest Watchers value.\n2. Find that second-highest Watchers value by examining all rows in Repo, ordering by Watchers from highest to lowest, and selecting the second entry.\n3. Join Repo to Solution on Repo.Id equals Solution.RepoId to associate each repository with its solution paths.\n4. Filter the joined set to keep only the repository whose Watchers value matches the second-highest value identified in step 2.\n5. Compute and return the count of distinct Solution.Path values from the remaining rows.", + "steps": [ + "Identify that popularity corresponds to the Watchers column in Repo, so the 2nd most popular repository is the one with the second-highest Watchers value.", + "Find that second-highest Watchers value by examining all rows in Repo, ordering by Watchers from highest to lowest, and selecting the second entry.", + "Join Repo to Solution on Repo.Id equals Solution.RepoId to associate each repository with its solution paths.", + "Filter the joined set to keep only the repository whose Watchers value matches the second-highest value identified in step 2.", + "Compute and return the count of distinct Solution.Path values from the remaining rows." + ] + }, + "revisql-train:5790": { + "raw": "1. Target the `langs_words` table, which stores repetition counts of each word per language.\n2. Restrict the dataset to Catalan by filtering on `lid = 1`.\n3. Map \"most repetitions\" to the maximum value of the `occurrences` column computed over that same Catalan subset.\n4. Locate the row or rows in `langs_words` where `lid = 1` and `occurrences` equals that maximum.\n5. Return the `wid` column, since the word ID is requested.", + "steps": [ + "Target the `langs_words` table, which stores repetition counts of each word per language.", + "Restrict the dataset to Catalan by filtering on `lid = 1`.", + "Map \"most repetitions\" to the maximum value of the `occurrences` column computed over that same Catalan subset.", + "Locate the row or rows in `langs_words` where `lid = 1` and `occurrences` equals that maximum.", + "Return the `wid` column, since the word ID is requested." + ] + }, + "revisql-train:5795": { + "raw": "1. Filter the `biwords` table to the single row where `occurrences = 116430`.\n2. Identify the second word of the pair from the `w2nd` column in that row.\n3. Join the `words` table to `biwords` on `words.wid = biwords.w2nd` to convert the second word id into its text.\n4. Return the `word` column from `words`.", + "steps": [ + "Filter the `biwords` table to the single row where `occurrences = 116430`.", + "Identify the second word of the pair from the `w2nd` column in that row.", + "Join the `words` table to `biwords` on `words.wid = biwords.w2nd` to convert the second word id into its text.", + "Return the `word` column from `words`." + ] + }, + "revisql-train:5804": { + "raw": "1. Start from the words table to isolate the row where the word column equals 'exemple'.\n2. Join langs_words on the wid column to link the word to its language-specific repetition statistics.\n3. Restrict the langs_words side to lid = 1, which identifies the Catalan language.\n4. Return the occurrences column from langs_words, as it stores the repetition count for that word in Catalan.", + "steps": [ + "Start from the words table to isolate the row where the word column equals 'exemple'.", + "Join langs_words on the wid column to link the word to its language-specific repetition statistics.", + "Restrict the langs_words side to lid = 1, which identifies the Catalan language.", + "Return the occurrences column from langs_words, as it stores the repetition count for that word in Catalan." + ] + }, + "revisql-train:581": { + "raw": "1. Join the Solution table to the Method table on Solution.Id equal to Method.SolutionId.\n2. Filter Solution.Path to the exact string 'bmatzelle_nini\\Source\\Nini.sln'.\n3. Filter Method.NameTokenized to the exact string 'alias text add alias'.\n4. Return only the Method.FullComment column.", + "steps": [ + "Join the Solution table to the Method table on Solution.Id equal to Method.SolutionId.", + "Filter Solution.Path to the exact string 'bmatzelle_nini\\Source\\Nini.sln'.", + "Filter Method.NameTokenized to the exact string 'alias text add alias'.", + "Return only the Method.FullComment column." + ] + }, + "revisql-train:5817": { + "raw": "1. Locate the word \"grec\" in the words table using the word column.\n2. Join pages_words on wid to find all page occurrences linked to that word.\n3. Filter the pages_words rows to only those with occurrences equal to 52.\n4. Join pages on pid to reach the page details for the filtered rows.\n5. Return the title column from the pages table.", + "steps": [ + "Locate the word \"grec\" in the words table using the word column.", + "Join pages_words on wid to find all page occurrences linked to that word.", + "Filter the pages_words rows to only those with occurrences equal to 52.", + "Join pages on pid to reach the page details for the filtered rows.", + "Return the title column from the pages table." + ] + }, + "revisql-train:582": { + "raw": "1. Map the requested \"linearized sequenced of API calls\" to the ApiCalls column in the Method table.\n2. Note the solution path constraint belongs to the Path column in the Solution table.\n3. Join Solution to Method on Solution.Id = Method.SolutionId.\n4. Filter for rows where Solution.Path exactly equals 'mauriciodeamorim_tdd.encontro2\\Tdd.Encontro2.sln'.\n5. Return only the ApiCalls column from the Method table.", + "steps": [ + "Map the requested \"linearized sequenced of API calls\" to the ApiCalls column in the Method table.", + "Note the solution path constraint belongs to the Path column in the Solution table.", + "Join Solution to Method on Solution.Id = Method.SolutionId.", + "Filter for rows where Solution.Path exactly equals 'mauriciodeamorim_tdd.encontro2\\Tdd.Encontro2.sln'.", + "Return only the ApiCalls column from the Method table." + ] + }, + "revisql-train:5820": { + "raw": "1. Identify the Airlines table as the source containing individual flight records.\n2. Map the asked date to the FL_DATE column using the external knowledge, targeting the exact value '2018/8/1'.\n3. Filter the Airlines table to only rows where FL_DATE equals that specific date string.\n4. Aggregate the filtered result by counting all rows to compute the total number of flights.\n5. Return the single resulting count value.", + "steps": [ + "Identify the Airlines table as the source containing individual flight records.", + "Map the asked date to the FL_DATE column using the external knowledge, targeting the exact value '2018/8/1'.", + "Filter the Airlines table to only rows where FL_DATE equals that specific date string.", + "Aggregate the filtered result by counting all rows to compute the total number of flights.", + "Return the single resulting count value." + ] + }, + "revisql-train:5822": { + "raw": "1. Start from the Airlines table, which contains the flight date, cancellation flag, and destination airport code.\n2. Filter rows to the specific date by matching FL_DATE to '2018/8/1'.\n3. Restrict the result to cancelled flights only by requiring CANCELLED = 1.\n4. Map the phrase \"destination cities\" directly to the DEST column in Airlines.\n5. Group the filtered rows by DEST to ensure each destination city appears only once in the output.\n6. Return the DEST column as the final result.", + "steps": [ + "Start from the Airlines table, which contains the flight date, cancellation flag, and destination airport code.", + "Filter rows to the specific date by matching FL_DATE to '2018/8/1'.", + "Restrict the result to cancelled flights only by requiring CANCELLED = 1.", + "Map the phrase \"destination cities\" directly to the DEST column in Airlines.", + "Group the filtered rows by DEST to ensure each destination city appears only once in the output.", + "Return the DEST column as the final result." + ] + }, + "revisql-train:5828": { + "raw": "1. Join the `Airlines` table to `Airports` on `Airlines.ORIGIN` = `Airports.Code` to match flights to their origin airport descriptions.\n2. Filter the joined rows to those where `Airports.Description` equals 'New York, NY: John F. Kennedy International'.\n3. Further filter to rows where `Airlines.FL_DATE` equals '2018/8/1'.\n4. Compute the minimum of `CRS_DEP_TIME` across the remaining rows to identify the earliest scheduled departure.\n5. Return that minimum value as a single column named `earliest_scheduled_dep`.", + "steps": [ + "Join the `Airlines` table to `Airports` on `Airlines.ORIGIN` = `Airports.Code` to match flights to their origin airport descriptions.", + "Filter the joined rows to those where `Airports.Description` equals 'New York, NY: John F. Kennedy International'.", + "Further filter to rows where `Airlines.FL_DATE` equals '2018/8/1'.", + "Compute the minimum of `CRS_DEP_TIME` across the remaining rows to identify the earliest scheduled departure.", + "Return that minimum value as a single column named `earliest_scheduled_dep`." + ] + }, + "revisql-train:5831": { + "raw": "1. Join the `Airlines` table with `Air Carriers` on `OP_CARRIER_AIRLINE_ID` = `Code` to link flights to carrier names.\n2. Filter to rows where `Air Carriers`.`Description` is exactly `'American Airlines Inc.: AA'`.\n3. Filter to rows where `Airlines`.`FL_DATE` equals `'2018/8/1'`.\n4. Filter to rows where `Airlines`.`ACTUAL_ELAPSED_TIME` is strictly less than `Airlines`.`CRS_ELAPSED_TIME`.\n5. Count the remaining rows and return that single value aliased as `count`.", + "steps": [ + "Join the `Airlines` table with `Air Carriers` on `OP_CARRIER_AIRLINE_ID` = `Code` to link flights to carrier names.", + "Filter to rows where `Air Carriers`.`Description` is exactly `'American Airlines Inc.: AA'`.", + "Filter to rows where `Airlines`.`FL_DATE` equals `'2018/8/1'`.", + "Filter to rows where `Airlines`.`ACTUAL_ELAPSED_TIME` is strictly less than `Airlines`.`CRS_ELAPSED_TIME`.", + "Count the remaining rows and return that single value aliased as `count`." + ] + }, + "revisql-train:5832": { + "raw": "1. Join the Airlines table to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to bring in carrier descriptions.\n2. Filter for rows where the carrier Description is exactly 'American Airlines Inc.: AA'.\n3. In a subquery using the same join and filter, compute the maximum DEP_DELAY to identify the longest departure delay for that carrier only.\n4. In the outer query, keep only flights where DEP_DELAY equals that subquery maximum.\n5. Return the flight number column OP_CARRIER_FL_NUM from the qualifying rows.", + "steps": [ + "Join the Airlines table to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to bring in carrier descriptions.", + "Filter for rows where the carrier Description is exactly 'American Airlines Inc.: AA'.", + "In a subquery using the same join and filter, compute the maximum DEP_DELAY to identify the longest departure delay for that carrier only.", + "In the outer query, keep only flights where DEP_DELAY equals that subquery maximum.", + "Return the flight number column OP_CARRIER_FL_NUM from the qualifying rows." + ] + }, + "revisql-train:5833": { + "raw": "1. Start from the Airlines table and join `Air Carriers` on OP_CARRIER_AIRLINE_ID = Code to access carrier descriptions, and join Airports on DEST = Code to reference destination airports.\n2. Filter for American Airlines Inc. by matching `Air Carriers`.Description to the external knowledge value 'American Airlines Inc.: AA'.\n3. Apply the external knowledge that landing in New York corresponds to Airlines.DEST = 'JFK'.\n4. Since the question asks how many, aggregate with SUM(CASE WHEN DEST = 'JFK' THEN 1 ELSE 0 END) to count only the flights scheduled for New York.\n5. Return the result as a single column named count.", + "steps": [ + "Start from the Airlines table and join `Air Carriers` on OP_CARRIER_AIRLINE_ID = Code to access carrier descriptions, and join Airports on DEST = Code to reference destination airports.", + "Filter for American Airlines Inc. by matching `Air Carriers`.Description to the external knowledge value 'American Airlines Inc.: AA'.", + "Apply the external knowledge that landing in New York corresponds to Airlines.DEST = 'JFK'.", + "Since the question asks how many, aggregate with SUM(CASE WHEN DEST = 'JFK' THEN 1 ELSE 0 END) to count only the flights scheduled for New York.", + "Return the result as a single column named count." + ] + }, + "revisql-train:5835": { + "raw": "1. Filter the Airlines table to rows where FL_DATE equals '2018/8/1'.\n2. Join Airlines to Airports on ORIGIN = Code and to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to bring in carrier descriptions.\n3. Use conditional counts on Air Carriers.Description to tally flights separately for 'American Airlines Inc.: AA' and 'Endeavor Air Inc.: 9E'.\n4. Compare the two tallies in a CASE expression: return 'American Airlines Inc.' if its count is greater, otherwise return 'Endeavor Air Inc.'.\n5. Return the final value as a single column named RESULT.", + "steps": [ + "Filter the Airlines table to rows where FL_DATE equals '2018/8/1'.", + "Join Airlines to Airports on ORIGIN = Code and to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to bring in carrier descriptions.", + "Use conditional counts on Air Carriers.Description to tally flights separately for 'American Airlines Inc.: AA' and 'Endeavor Air Inc.: 9E'.", + "Compare the two tallies in a CASE expression: return 'American Airlines Inc.' if its count is greater, otherwise return 'Endeavor Air Inc.'.", + "Return the final value as a single column named RESULT." + ] + }, + "revisql-train:5836": { + "raw": "1. Use the Airlines table for flight departure delays and the Air Carriers table for operator names.\n2. Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code.\n3. Filter to rows where Air Carriers.Description is 'American Airlines Inc.: AA', mapping the external knowledge for American Airlines Inc.\n4. Calculate the average departure delay by averaging the DEP_DELAY column from Airlines.\n5. Return only that single aggregated column, the average of DEP_DELAY.", + "steps": [ + "Use the Airlines table for flight departure delays and the Air Carriers table for operator names.", + "Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code.", + "Filter to rows where Air Carriers.Description is 'American Airlines Inc.: AA', mapping the external knowledge for American Airlines Inc.", + "Calculate the average departure delay by averaging the DEP_DELAY column from Airlines.", + "Return only that single aggregated column, the average of DEP_DELAY." + ] + }, + "revisql-train:5837": { + "raw": "1. Join the Airlines table to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to link each flight to its carrier description.\n2. Map American Airlines Inc. to the Air Carriers.Description column by filtering to 'American Airlines Inc.: AA'.\n3. Map every day in August, 2018 to the Airlines.FL_DATE column using the LIKE '2018/8%' pattern.\n4. Filter out cancelled flights by requiring Airlines.CANCELLED = 0 so only actually operated flights are counted.\n5. Compute the daily average by counting all remaining rows, casting the count to a real number, and dividing by 31.\n6. Return the single calculated value in a column named avg_flights_per_day.", + "steps": [ + "Join the Airlines table to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to link each flight to its carrier description.", + "Map American Airlines Inc. to the Air Carriers.Description column by filtering to 'American Airlines Inc.: AA'.", + "Map every day in August, 2018 to the Airlines.FL_DATE column using the LIKE '2018/8%' pattern.", + "Filter out cancelled flights by requiring Airlines.CANCELLED = 0 so only actually operated flights are counted.", + "Compute the daily average by counting all remaining rows, casting the count to a real number, and dividing by 31.", + "Return the single calculated value in a column named avg_flights_per_day." + ] + }, + "revisql-train:5838": { + "raw": "1. Use the `Air Carriers` table, which stores the master list of individual air carriers.\n2. Target the `Code` column, as it is the primary key that uniquely identifies each carrier.\n3. Apply a COUNT aggregation on `Code` to compute the total number of air carrier records.\n4. Return only the resulting count value as the single output column.", + "steps": [ + "Use the `Air Carriers` table, which stores the master list of individual air carriers.", + "Target the `Code` column, as it is the primary key that uniquely identifies each carrier.", + "Apply a COUNT aggregation on `Code` to compute the total number of air carrier records.", + "Return only the resulting count value as the single output column." + ] + }, + "revisql-train:5840": { + "raw": "1. Join the Airlines table with Airports on Airlines.DEST = Airports.Code to resolve destination airport details for each flight.\n2. Apply the filter Airlines.FL_DATE = '2018/8/7' to restrict to flights on that specific date.\n3. Apply the filter Airlines.CANCELLED = 0 to include only flights that actually landed, matching the \"landed on\" requirement.\n4. Restrict to Oakland Airport by filtering Airports.Description to contain 'Oakland', mapping the natural language reference to the description column.\n5. Count the qualifying flights and return the result as a single column named count.", + "steps": [ + "Join the Airlines table with Airports on Airlines.DEST = Airports.Code to resolve destination airport details for each flight.", + "Apply the filter Airlines.FL_DATE = '2018/8/7' to restrict to flights on that specific date.", + "Apply the filter Airlines.CANCELLED = 0 to include only flights that actually landed, matching the \"landed on\" requirement.", + "Restrict to Oakland Airport by filtering Airports.Description to contain 'Oakland', mapping the natural language reference to the description column.", + "Count the qualifying flights and return the result as a single column named count." + ] + }, + "revisql-train:5842": { + "raw": "1. Start with the Airlines table and join the Airports table on Airlines.DEST = Airports.Code to resolve the destination airport reference.\n2. Filter FL_DATE to '2018/8/12' to isolate flights operating on that specific date.\n3. Filter DEST to 'MIA' to restrict the results to Miami Airport.\n4. Filter ARR_DELAY to values less than 0 to keep only flights that landed earlier than scheduled.\n5. Return COUNT(*) as the sole output column to report the total number of qualifying flights.", + "steps": [ + "Start with the Airlines table and join the Airports table on Airlines.DEST = Airports.Code to resolve the destination airport reference.", + "Filter FL_DATE to '2018/8/12' to isolate flights operating on that specific date.", + "Filter DEST to 'MIA' to restrict the results to Miami Airport.", + "Filter ARR_DELAY to values less than 0 to keep only flights that landed earlier than scheduled.", + "Return COUNT(*) as the sole output column to report the total number of qualifying flights." + ] + }, + "revisql-train:5843": { + "raw": "1. Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to access carrier descriptions.\n2. Filter Air Carriers.Description to 'American Airlines Inc.: AA' per the external knowledge mapping for American Airlines.\n3. Filter Airlines.CANCELLED to 1 to capture only cancelled flights.\n4. Filter Airlines.CANCELLATION_CODE to 'A' per the external knowledge mapping for type A cancellation code.\n5. Return COUNT(*) as the single output column representing the total number of matching flights.", + "steps": [ + "Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to access carrier descriptions.", + "Filter Air Carriers.Description to 'American Airlines Inc.: AA' per the external knowledge mapping for American Airlines.", + "Filter Airlines.CANCELLED to 1 to capture only cancelled flights.", + "Filter Airlines.CANCELLATION_CODE to 'A' per the external knowledge mapping for type A cancellation code.", + "Return COUNT(*) as the single output column representing the total number of matching flights." + ] + }, + "revisql-train:5847": { + "raw": "1. Join the `Airports` table to the `Airlines` table on `Airports.Code` = `Airlines.DEST`, because landed flights are defined by the destination airport code.\n2. Filter the `Airlines` rows to only those where `FL_DATE` equals `'2018/8/15'`, mapping the phrase \"on 2018/8/15\" to that column.\n3. Group the joined results by `Airports.Code` and count the number of rows in each group to tally how many flights landed at each airport.\n4. Order the grouped results by the flight count in descending order and keep only the first row to isolate the airport with the maximum number of landed flights.\n5. Return the `Airports.Description` column, which corresponds to the name of the airport.", + "steps": [ + "Join the `Airports` table to the `Airlines` table on `Airports.Code` = `Airlines.DEST`, because landed flights are defined by the destination airport code.", + "Filter the `Airlines` rows to only those where `FL_DATE` equals `'2018/8/15'`, mapping the phrase \"on 2018/8/15\" to that column.", + "Group the joined results by `Airports.Code` and count the number of rows in each group to tally how many flights landed at each airport.", + "Order the grouped results by the flight count in descending order and keep only the first row to isolate the airport with the maximum number of landed flights.", + "Return the `Airports.Description` column, which corresponds to the name of the airport." + ] + }, + "revisql-train:5852": { + "raw": "1. Join Airlines to Airports on Airlines.DEST = Airports.Code to filter flights by their destination city name.\n2. Keep only rows where Airports.Description contains Pittsburgh and both Airlines.CRS_ELAPSED_TIME and Airlines.ACTUAL_ELAPSED_TIME are not null.\n3. Count faster-than-scheduled flights by summing a conditional indicator where ACTUAL_ELAPSED_TIME is less than CRS_ELAPSED_TIME.\n4. Count all flights in the filtered set as the total denominator.\n5. Compute the percentage by casting the faster-flight count to a real number, multiplying by 100, and dividing by the total count.\n6. Return a single column containing the calculated percentage value.", + "steps": [ + "Join Airlines to Airports on Airlines.DEST = Airports.Code to filter flights by their destination city name.", + "Keep only rows where Airports.Description contains Pittsburgh and both Airlines.CRS_ELAPSED_TIME and Airlines.ACTUAL_ELAPSED_TIME are not null.", + "Count faster-than-scheduled flights by summing a conditional indicator where ACTUAL_ELAPSED_TIME is less than CRS_ELAPSED_TIME.", + "Count all flights in the filtered set as the total denominator.", + "Compute the percentage by casting the faster-flight count to a real number, multiplying by 100, and dividing by the total count.", + "Return a single column containing the calculated percentage value." + ] + }, + "revisql-train:5854": { + "raw": "1. Use the Airlines table exclusively; no joins are needed because FL_DATE, CANCELLED, and DEP_DELAY all reside in this single table.\n2. Filter FL_DATE to the exact value '2018/8/1' to isolate flights operating on 8/1/2018.\n3. Map the external definition of \"departed on time\" to the combined conditions CANCELLED = 0 and DEP_DELAY <= 0.\n4. Aggregate by counting all rows that satisfy the date and on-time departure filters.\n5. Return exactly one column: the total count of flights meeting these criteria.", + "steps": [ + "Use the Airlines table exclusively; no joins are needed because FL_DATE, CANCELLED, and DEP_DELAY all reside in this single table.", + "Filter FL_DATE to the exact value '2018/8/1' to isolate flights operating on 8/1/2018.", + "Map the external definition of \"departed on time\" to the combined conditions CANCELLED = 0 and DEP_DELAY <= 0.", + "Aggregate by counting all rows that satisfy the date and on-time departure filters.", + "Return exactly one column: the total count of flights meeting these criteria." + ] + }, + "revisql-train:5855": { + "raw": "1. Identify the Airports table as the only source needed, since the question asks for airport codes by location.\n2. Map the phrase \"airport found in Ankara, Turkey\" to the Description column using the external knowledge that this location is stored as a substring there.\n3. Filter rows by applying a LIKE condition on Description to match any text containing \"Ankara, Turkey\".\n4. Return only the Code column from the resulting rows.", + "steps": [ + "Identify the Airports table as the only source needed, since the question asks for airport codes by location.", + "Map the phrase \"airport found in Ankara, Turkey\" to the Description column using the external knowledge that this location is stored as a substring there.", + "Filter rows by applying a LIKE condition on Description to match any text containing \"Ankara, Turkey\".", + "Return only the Code column from the resulting rows." + ] + }, + "revisql-train:5857": { + "raw": "1. Use only the Airports table; no joins are needed.\n2. Map the requested \"IATA code\" to the Code column.\n3. Map \"Anita Bay Airport in Anita Bay, Alaska\" to the exact Description value 'Anita Bay, AK: Anita Bay Airport' using the external knowledge.\n4. Filter rows where Description equals that exact string.\n5. Return only the Code column, with no aggregation or ordering required.", + "steps": [ + "Use only the Airports table; no joins are needed.", + "Map the requested \"IATA code\" to the Code column.", + "Map \"Anita Bay Airport in Anita Bay, Alaska\" to the exact Description value 'Anita Bay, AK: Anita Bay Airport' using the external knowledge.", + "Filter rows where Description equals that exact string.", + "Return only the Code column, with no aggregation or ordering required." + ] + }, + "revisql-train:5861": { + "raw": "1. Join Airlines to Airports on Airlines.ORIGIN = Airports.Code to access airport descriptions.\n2. Filter rows to August 2018 using FL_DATE like '2018/8%', origin code 'DFW', and Airports.Description equal to 'Dallas/Fort Worth, TX: Dallas/Fort Worth International'.\n3. Keep only cancelled flights by requiring CANCELLED = 1 and the most serious cancellation reason by requiring CANCELLATION_CODE = 'A'.\n4. Group the remaining records by FL_DATE to compute the number of qualifying cancelled flights per day.\n5. Order the groups by the daily flight count in descending order and restrict the output to the first row only.\n6. Return the FL_DATE column as the day with the highest number of such cancelled flights.", + "steps": [ + "Join Airlines to Airports on Airlines.ORIGIN = Airports.Code to access airport descriptions.", + "Filter rows to August 2018 using FL_DATE like '2018/8%', origin code 'DFW', and Airports.Description equal to 'Dallas/Fort Worth, TX: Dallas/Fort Worth International'.", + "Keep only cancelled flights by requiring CANCELLED = 1 and the most serious cancellation reason by requiring CANCELLATION_CODE = 'A'.", + "Group the remaining records by FL_DATE to compute the number of qualifying cancelled flights per day.", + "Order the groups by the daily flight count in descending order and restrict the output to the first row only.", + "Return the FL_DATE column as the day with the highest number of such cancelled flights." + ] + }, + "revisql-train:5862": { + "raw": "1. Join the Airlines table to the Airports table on Airports.Code = Airlines.DEST to identify flights by their arrival airport.\n2. Filter for Meadows Field by requiring Airports.Description = 'Bakersfield, CA: Meadows Field' and confirming Airlines.DEST = 'BFL'.\n3. Restrict to August 2018 by filtering Airlines.FL_DATE with the pattern '2018/8%'.\n4. Keep only on-time arrivals by requiring Airlines.ARR_DELAY <= 0.\n5. Group the results by Airlines.TAIL_NUM and return that column to list each distinct aircraft tail number.", + "steps": [ + "Join the Airlines table to the Airports table on Airports.Code = Airlines.DEST to identify flights by their arrival airport.", + "Filter for Meadows Field by requiring Airports.Description = 'Bakersfield, CA: Meadows Field' and confirming Airlines.DEST = 'BFL'.", + "Restrict to August 2018 by filtering Airlines.FL_DATE with the pattern '2018/8%'.", + "Keep only on-time arrivals by requiring Airlines.ARR_DELAY <= 0.", + "Group the results by Airlines.TAIL_NUM and return that column to list each distinct aircraft tail number." + ] + }, + "revisql-train:5863": { + "raw": "1. Join the Airports table to the Airlines table on Airports.Code = Airlines.DEST, because the destination field maps to the airport IATA code.\n2. Filter the joined rows to only those where Airports.Description equals 'Boston, MA: Logan International' and Airlines.DEST equals 'BOS', isolating flights whose destination is Logan International.\n3. Order the filtered results by Airlines.SECURITY_DELAY in descending order, since the highest delay in minutes due to security corresponds to the maximum of that column.\n4. Restrict the result to a single row using a limit of 1 to capture the top record.\n5. Return the Airlines.OP_CARRIER_AIRLINE_ID column, which holds the airline id of the carrier operator.", + "steps": [ + "Join the Airports table to the Airlines table on Airports.Code = Airlines.DEST, because the destination field maps to the airport IATA code.", + "Filter the joined rows to only those where Airports.Description equals 'Boston, MA: Logan International' and Airlines.DEST equals 'BOS', isolating flights whose destination is Logan International.", + "Order the filtered results by Airlines.SECURITY_DELAY in descending order, since the highest delay in minutes due to security corresponds to the maximum of that column.", + "Restrict the result to a single row using a limit of 1 to capture the top record.", + "Return the Airlines.OP_CARRIER_AIRLINE_ID column, which holds the airline id of the carrier operator." + ] + }, + "revisql-train:5869": { + "raw": "1. Filter `Air Carriers` to the row where `Description` equals 'Republic Airline: YX' per the external knowledge mapping.\n2. Join that result to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID` to collect all flights operated by that carrier.\n3. Group the joined records by `Airlines.ORIGIN` to aggregate departures per airport.\n4. Count the flights in each group to measure volume from each origin.\n5. Order the groups by that count in descending order and keep only the top row.\n6. Return the `ORIGIN` column as the airport code.", + "steps": [ + "Filter `Air Carriers` to the row where `Description` equals 'Republic Airline: YX' per the external knowledge mapping.", + "Join that result to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID` to collect all flights operated by that carrier.", + "Group the joined records by `Airlines.ORIGIN` to aggregate departures per airport.", + "Count the flights in each group to measure volume from each origin.", + "Order the groups by that count in descending order and keep only the top row.", + "Return the `ORIGIN` column as the airport code." + ] + }, + "revisql-train:5871": { + "raw": "1. Join the Airlines table to Air Carriers on Airlines.OP_CARRIER_AIRLINE_ID = Air Carriers.Code.\n2. Keep only rows where Air Carriers.Description equals 'Delta Air Lines Inc.: DL' to select Delta Air Lines.\n3. Keep only rows where Airlines.FL_DATE matches the pattern '2018/8/%' to restrict to August 2018.\n4. Sum the Airlines.LATE_AIRCRAFT_DELAY values, which holds minutes delayed due to a late aircraft.\n5. Cast that total to REAL and divide by 60 to convert the summed minutes into total hours.\n6. Return a single column containing that computed total hours value.", + "steps": [ + "Join the Airlines table to Air Carriers on Airlines.OP_CARRIER_AIRLINE_ID = Air Carriers.Code.", + "Keep only rows where Air Carriers.Description equals 'Delta Air Lines Inc.: DL' to select Delta Air Lines.", + "Keep only rows where Airlines.FL_DATE matches the pattern '2018/8/%' to restrict to August 2018.", + "Sum the Airlines.LATE_AIRCRAFT_DELAY values, which holds minutes delayed due to a late aircraft.", + "Cast that total to REAL and divide by 60 to convert the summed minutes into total hours.", + "Return a single column containing that computed total hours value." + ] + }, + "revisql-train:5873": { + "raw": "1. Query the `Air Carriers` table, which stores airline descriptions and their corresponding codes.\n2. Filter the `Description` column using a LIKE pattern beginning with 'Mississippi Valley Airlines%' based on the external knowledge.\n3. Return the `Code` column as the result.", + "steps": [ + "Query the `Air Carriers` table, which stores airline descriptions and their corresponding codes.", + "Filter the `Description` column using a LIKE pattern beginning with 'Mississippi Valley Airlines%' based on the external knowledge.", + "Return the `Code` column as the result." + ] + }, + "revisql-train:588": { + "raw": "1. Query the Method table because it holds the method name and comment-format flag.\n2. Filter to the single row where Name equals 'HtmlSharp.HtmlParser.Feed'.\n3. Use the external knowledge that CommentIsXml = 0 means the comment is not XML and CommentIsXml = 1 means it is XML.\n4. Transform the integer flag with a CASE expression so it returns the string 'No' for 0 and 'Yes' for 1.\n5. Return exactly one column named isXMLFormat containing that Yes/No result.", + "steps": [ + "Query the Method table because it holds the method name and comment-format flag.", + "Filter to the single row where Name equals 'HtmlSharp.HtmlParser.Feed'.", + "Use the external knowledge that CommentIsXml = 0 means the comment is not XML and CommentIsXml = 1 means it is XML.", + "Transform the integer flag with a CASE expression so it returns the string 'No' for 0 and 'Yes' for 1.", + "Return exactly one column named isXMLFormat containing that Yes/No result." + ] + }, + "revisql-train:5881": { + "raw": "1. Map the question's terms to schema columns: \"flight carrier operator\" refers to Air Carriers.Description, \"from Atlantic City\" means Airlines.ORIGIN = 'ACY', and \"to Fort Lauderdale\" means Airlines.DEST = 'FLL'.\n2. Join Airlines to Air Carriers on Airlines.OP_CARRIER_AIRLINE_ID = Air Carriers.Code to connect each flight record with its carrier's name.\n3. Filter the joined data to only rows where Airlines.ORIGIN is 'ACY' and Airlines.DEST is 'FLL'.\n4. Group the results by Air Carriers.Description to eliminate duplicate entries and list each distinct carrier operator once.\n5. Return the Description column from Air Carriers as the answer.", + "steps": [ + "Map the question's terms to schema columns: \"flight carrier operator\" refers to Air Carriers.Description, \"from Atlantic City\" means Airlines.ORIGIN = 'ACY', and \"to Fort Lauderdale\" means Airlines.DEST = 'FLL'.", + "Join Airlines to Air Carriers on Airlines.OP_CARRIER_AIRLINE_ID = Air Carriers.Code to connect each flight record with its carrier's name.", + "Filter the joined data to only rows where Airlines.ORIGIN is 'ACY' and Airlines.DEST is 'FLL'.", + "Group the results by Air Carriers.Description to eliminate duplicate entries and list each distinct carrier operator once.", + "Return the Description column from Air Carriers as the answer." + ] + }, + "revisql-train:5882": { + "raw": "1. Identify that the request asks for the description associated with the airport code 'A11'.\n2. Use the Airports table, which contains the Code and Description columns needed.\n3. Filter the rows to only the one where Code matches 'A11'.\n4. Return the Description column as the result.", + "steps": [ + "Identify that the request asks for the description associated with the airport code 'A11'.", + "Use the Airports table, which contains the Code and Description columns needed.", + "Filter the rows to only the one where Code matches 'A11'.", + "Return the Description column as the result." + ] + }, + "revisql-train:5883": { + "raw": "1. Use the Airlines table, which contains the origin airport for each flight.\n2. Filter rows where the Origin column equals 'OKC', applying the external knowledge that Oklahoma City maps to the IATA code OKC.\n3. Apply COUNT(*) to compute the total number of flights matching that origin filter.\n4. Return the aggregated result in a single column named num.", + "steps": [ + "Use the Airlines table, which contains the origin airport for each flight.", + "Filter rows where the Origin column equals 'OKC', applying the external knowledge that Oklahoma City maps to the IATA code OKC.", + "Apply COUNT(*) to compute the total number of flights matching that origin filter.", + "Return the aggregated result in a single column named num." + ] + }, + "revisql-train:5885": { + "raw": "1. Use the Airlines table, which stores flight numbers and destination airport codes.\n2. Map the user phrase \"flight number\" to the OP_CARRIER_FL_NUM column using the external knowledge.\n3. Filter rows in Airlines where OP_CARRIER_FL_NUM equals 1596.\n4. Return the DEST column values from the matching rows.", + "steps": [ + "Use the Airlines table, which stores flight numbers and destination airport codes.", + "Map the user phrase \"flight number\" to the OP_CARRIER_FL_NUM column using the external knowledge.", + "Filter rows in Airlines where OP_CARRIER_FL_NUM equals 1596.", + "Return the DEST column values from the matching rows." + ] + }, + "revisql-train:5886": { + "raw": "1. Use the Airports table since the request concerns airport codes and their descriptions.\n2. Map the external knowledge that a code ending in the number 3 means filtering the Code column with a pattern that matches any string ending in 3.\n3. Apply that filter to the Airports table to keep only rows where the Code satisfies the ending-with-3 condition.\n4. Return only the Description column for the matching airports.", + "steps": [ + "Use the Airports table since the request concerns airport codes and their descriptions.", + "Map the external knowledge that a code ending in the number 3 means filtering the Code column with a pattern that matches any string ending in 3.", + "Apply that filter to the Airports table to keep only rows where the Code satisfies the ending-with-3 condition.", + "Return only the Description column for the matching airports." + ] + }, + "revisql-train:5887": { + "raw": "1. Use only the Airports table; no joins are necessary because both the requested identifier and the descriptive condition reside there.\n2. Map the external knowledge to the Description column by filtering for the exact value Driftwood Bay, AK: Driftwood Bay Airport.\n3. Extract the matching row’s Code value, which is the airport’s IATA identifier.\n4. Return exactly the Code column as the final result.", + "steps": [ + "Use only the Airports table; no joins are necessary because both the requested identifier and the descriptive condition reside there.", + "Map the external knowledge to the Description column by filtering for the exact value Driftwood Bay, AK: Driftwood Bay Airport.", + "Extract the matching row’s Code value, which is the airport’s IATA identifier.", + "Return exactly the Code column as the final result." + ] + }, + "revisql-train:5888": { + "raw": "1. Identify that the Airlines table holds flight records and contains the CANCELLED indicator needed to answer the question.\n2. Use the external knowledge that a cancelled flight is defined by CANCELLED = 1.\n3. Filter the Airlines table to include only rows where CANCELLED equals 1.\n4. Apply COUNT(*) on the filtered result to compute the total number of cancelled flights.\n5. Return the single aggregated count column as the answer.", + "steps": [ + "Identify that the Airlines table holds flight records and contains the CANCELLED indicator needed to answer the question.", + "Use the external knowledge that a cancelled flight is defined by CANCELLED = 1.", + "Filter the Airlines table to include only rows where CANCELLED equals 1.", + "Apply COUNT(*) on the filtered result to compute the total number of cancelled flights.", + "Return the single aggregated count column as the answer." + ] + }, + "revisql-train:5889": { + "raw": "1. Target the Airlines table, which contains both the flight date and tail number fields needed.\n2. Filter rows where FL_DATE equals exactly '2018/8/17' to isolate flights from August 17, 2018.\n3. Map the requested \"tail number\" to the TAIL_NUM column in that table.\n4. Group the results by TAIL_NUM so each distinct tail number appears only once.\n5. Return solely the TAIL_NUM column in the final output.", + "steps": [ + "Target the Airlines table, which contains both the flight date and tail number fields needed.", + "Filter rows where FL_DATE equals exactly '2018/8/17' to isolate flights from August 17, 2018.", + "Map the requested \"tail number\" to the TAIL_NUM column in that table.", + "Group the results by TAIL_NUM so each distinct tail number appears only once.", + "Return solely the TAIL_NUM column in the final output." + ] + }, + "revisql-train:5890": { + "raw": "1. Identify that the Airlines table contains both the origin airport code in ORIGIN and the flight duration in ACTUAL_ELAPSED_TIME, so no joins are needed.\n2. Map the external phrase \"shortest actual elapsed time\" to the minimum value of ACTUAL_ELAPSED_TIME, and exclude rows where this column is NULL to avoid invalid comparisons.\n3. Compute that minimum value using an aggregate subquery against the Airlines table.\n4. Filter the main Airlines query to only rows whose ACTUAL_ELAPSED_TIME equals the value returned by the subquery.\n5. Return exactly the ORIGIN column from the matching rows.", + "steps": [ + "Identify that the Airlines table contains both the origin airport code in ORIGIN and the flight duration in ACTUAL_ELAPSED_TIME, so no joins are needed.", + "Map the external phrase \"shortest actual elapsed time\" to the minimum value of ACTUAL_ELAPSED_TIME, and exclude rows where this column is NULL to avoid invalid comparisons.", + "Compute that minimum value using an aggregate subquery against the Airlines table.", + "Filter the main Airlines query to only rows whose ACTUAL_ELAPSED_TIME equals the value returned by the subquery.", + "Return exactly the ORIGIN column from the matching rows." + ] + }, + "revisql-train:5891": { + "raw": "1. Recognize that the requested flight date and tail number map to the FL_DATE and TAIL_NUM columns in the Airlines table.\n2. Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to access the carrier description.\n3. Filter the joined rows where Air Carriers.Description equals 'ExpressJet Airlines Inc.: EV', applying the external knowledge identifier for ExpressJet.\n4. Return only the FL_DATE and TAIL_NUM columns from Airlines.", + "steps": [ + "Recognize that the requested flight date and tail number map to the FL_DATE and TAIL_NUM columns in the Airlines table.", + "Join Airlines to Air Carriers on OP_CARRIER_AIRLINE_ID = Code to access the carrier description.", + "Filter the joined rows where Air Carriers.Description equals 'ExpressJet Airlines Inc.: EV', applying the external knowledge identifier for ExpressJet.", + "Return only the FL_DATE and TAIL_NUM columns from Airlines." + ] + }, + "revisql-train:5896": { + "raw": "1. Map the requested carrier name \"Spirit Air Lines: NK\" to the Description column in the Air Carriers table using the external knowledge.\n2. Join Air Carriers with Airlines on the carrier primary key Code matching the foreign key OP_CARRIER_AIRLINE_ID.\n3. Filter the joined rows to only those where Air Carriers.Description equals 'Spirit Air Lines: NK'.\n4. Return the ACTUAL_ELAPSED_TIME column from the Airlines table.", + "steps": [ + "Map the requested carrier name \"Spirit Air Lines: NK\" to the Description column in the Air Carriers table using the external knowledge.", + "Join Air Carriers with Airlines on the carrier primary key Code matching the foreign key OP_CARRIER_AIRLINE_ID.", + "Filter the joined rows to only those where Air Carriers.Description equals 'Spirit Air Lines: NK'.", + "Return the ACTUAL_ELAPSED_TIME column from the Airlines table." + ] + }, + "revisql-train:5897": { + "raw": "1. Join the `Air Carriers` table to the `Airlines` table on the carrier identifier, matching `Air Carriers.Code` with `Airlines.OP_CARRIER_AIRLINE_ID`.\n2. Filter the joined rows to only those where `Air Carriers.Description` equals the external knowledge value 'Delta Air Lines Inc.: DL'.\n3. Order the filtered results by `Airlines.DEP_DELAY` in descending order so the flight with the longest departure delay appears first.\n4. Return only the top row and output the `Airlines.TAIL_NUM` column as the result.", + "steps": [ + "Join the `Air Carriers` table to the `Airlines` table on the carrier identifier, matching `Air Carriers.Code` with `Airlines.OP_CARRIER_AIRLINE_ID`.", + "Filter the joined rows to only those where `Air Carriers.Description` equals the external knowledge value 'Delta Air Lines Inc.: DL'.", + "Order the filtered results by `Airlines.DEP_DELAY` in descending order so the flight with the longest departure delay appears first.", + "Return only the top row and output the `Airlines.TAIL_NUM` column as the result." + ] + }, + "revisql-train:59": { + "raw": "1. Locate the target list by filtering the lists table where list_title equals '250 Favourite Films'.\n2. Join lists_users to that record using both list_id and user_id to reach the creator's status at the time of creation.\n3. Map the trialist condition to the lists_users.user_trialist column, treating a value of 1 as the user being a trialist.\n4. Return a single derived column that shows 'Yes' when user_trialist is 1 and 'No' otherwise.", + "steps": [ + "Locate the target list by filtering the lists table where list_title equals '250 Favourite Films'.", + "Join lists_users to that record using both list_id and user_id to reach the creator's status at the time of creation.", + "Map the trialist condition to the lists_users.user_trialist column, treating a value of 1 as the user being a trialist.", + "Return a single derived column that shows 'Yes' when user_trialist is 1 and 'No' otherwise." + ] + }, + "revisql-train:5902": { + "raw": "1. Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID`.\n2. Filter `Airlines.FL_DATE` to exactly '2018/8/2' to capture August 2, 2018.\n3. Filter `Air Carriers.Description` with a LIKE pattern containing 'Horizon Air' to isolate that carrier.\n4. Aggregate the surviving rows with `COUNT(*)` to obtain the total number of flights.\n5. Return only that single computed count column.", + "steps": [ + "Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID`.", + "Filter `Airlines.FL_DATE` to exactly '2018/8/2' to capture August 2, 2018.", + "Filter `Air Carriers.Description` with a LIKE pattern containing 'Horizon Air' to isolate that carrier.", + "Aggregate the surviving rows with `COUNT(*)` to obtain the total number of flights.", + "Return only that single computed count column." + ] + }, + "revisql-train:5904": { + "raw": "1. Use the `Air Carriers` and `Airlines` tables, since carrier descriptions are stored in the former while flight dates and elapsed times are in the latter.\n2. Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID`.\n3. Filter to rows where `Air Carriers.Description` equals 'Endeavor Air Inc.: 9E'.\n4. Filter to rows where `Airlines.ACTUAL_ELAPSED_TIME` is less than 40, applying the external knowledge mapping.\n5. Return distinct values of the `FL_DATE` column from `Airlines`.", + "steps": [ + "Use the `Air Carriers` and `Airlines` tables, since carrier descriptions are stored in the former while flight dates and elapsed times are in the latter.", + "Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID`.", + "Filter to rows where `Air Carriers.Description` equals 'Endeavor Air Inc.: 9E'.", + "Filter to rows where `Airlines.ACTUAL_ELAPSED_TIME` is less than 40, applying the external knowledge mapping.", + "Return distinct values of the `FL_DATE` column from `Airlines`." + ] + }, + "revisql-train:5907": { + "raw": "1. Map the tail number N922US to the TAIL_NUM column and Phoenix to the ORIGIN column in the Airlines table.\n2. Filter the Airlines table to rows where TAIL_NUM equals 'N922US' and ORIGIN equals 'PHX'.\n3. Join the Air Carriers table to Airlines using OP_CARRIER_AIRLINE_ID equal to the Air Carriers Code.\n4. Group the results by the air carrier Description to remove any duplicate carrier names.\n5. Return the Description column from the Air Carriers table.", + "steps": [ + "Map the tail number N922US to the TAIL_NUM column and Phoenix to the ORIGIN column in the Airlines table.", + "Filter the Airlines table to rows where TAIL_NUM equals 'N922US' and ORIGIN equals 'PHX'.", + "Join the Air Carriers table to Airlines using OP_CARRIER_AIRLINE_ID equal to the Air Carriers Code.", + "Group the results by the air carrier Description to remove any duplicate carrier names.", + "Return the Description column from the Air Carriers table." + ] + }, + "revisql-train:5911": { + "raw": "1. Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID` to link carrier descriptions to flight records.\n2. Filter to rows where `Air Carriers.Description` contains 'American Airlines'.\n3. Identify earlier departures using the condition `Airlines.DEP_DELAY < 0`.\n4. Calculate the percentage by summing the earlier-departure indicators, casting that sum to a real number, multiplying by 100, and dividing by the total count of flights.\n5. Return the single computed percentage column.", + "steps": [ + "Join `Air Carriers` to `Airlines` on `Air Carriers.Code` = `Airlines.OP_CARRIER_AIRLINE_ID` to link carrier descriptions to flight records.", + "Filter to rows where `Air Carriers.Description` contains 'American Airlines'.", + "Identify earlier departures using the condition `Airlines.DEP_DELAY < 0`.", + "Calculate the percentage by summing the earlier-departure indicators, casting that sum to a real number, multiplying by 100, and dividing by the total count of flights.", + "Return the single computed percentage column." + ] + }, + "revisql-train:5913": { + "raw": "1. Use the `book` table, as it holds the publication and page-count attributes needed.\n2. Map the phrase \"book with the most pages\" to ordering by the `num_pages` column in descending order, reflecting the external knowledge that this refers to the maximum page count.\n3. Limit the result set to the first row so only the single book with the highest `num_pages` is retained.\n4. Return exactly the `publication_date` column from that row.", + "steps": [ + "Use the `book` table, as it holds the publication and page-count attributes needed.", + "Map the phrase \"book with the most pages\" to ordering by the `num_pages` column in descending order, reflecting the external knowledge that this refers to the maximum page count.", + "Limit the result set to the first row so only the single book with the highest `num_pages` is retained.", + "Return exactly the `publication_date` column from that row." + ] + }, + "revisql-train:5916": { + "raw": "1. Start with the `book` and `publisher` tables and join them on `publisher_id` to link every book to its publisher.\n2. Map the external knowledge so that \"name of publisher\" targets the `publisher_name` column and \"published the most number of books\" means counting `book_id` per publisher.\n3. Group the joined results by `publisher_id` so each publisher forms a single aggregate group.\n4. Count `book_id` within each group to get the total books per publisher.\n5. Order those groups by the book count in descending order and keep only the top row.\n6. Return exactly the `publisher_name` column as the answer.", + "steps": [ + "Start with the `book` and `publisher` tables and join them on `publisher_id` to link every book to its publisher.", + "Map the external knowledge so that \"name of publisher\" targets the `publisher_name` column and \"published the most number of books\" means counting `book_id` per publisher.", + "Group the joined results by `publisher_id` so each publisher forms a single aggregate group.", + "Count `book_id` within each group to get the total books per publisher.", + "Order those groups by the book count in descending order and keep only the top row.", + "Return exactly the `publisher_name` column as the answer." + ] + }, + "revisql-train:5917": { + "raw": "1. Join the book table with the publisher table on the publisher_id column to link each book to its publisher.\n2. Filter the joined rows to only those where publisher_name equals 'Thomas Nelson', mapping the external publisher name to that column.\n3. Sort the remaining rows by publication_date in ascending order, since the oldest book corresponds to the minimum date.\n4. Limit the sorted results to the first row to isolate the single oldest book.\n5. Return the title column from the book table.", + "steps": [ + "Join the book table with the publisher table on the publisher_id column to link each book to its publisher.", + "Filter the joined rows to only those where publisher_name equals 'Thomas Nelson', mapping the external publisher name to that column.", + "Sort the remaining rows by publication_date in ascending order, since the oldest book corresponds to the minimum date.", + "Limit the sorted results to the first row to isolate the single oldest book.", + "Return the title column from the book table." + ] + }, + "revisql-train:5919": { + "raw": "1. Identify the book table for page counts (num_pages) and publisher linkage (publisher_id), and the publisher table for the desired output column (publisher_name).\n2. Perform an inner join between book and publisher using publisher_id as the join key.\n3. Sort the results by num_pages in descending order to surface the book with the most pages at the top.\n4. Keep only the first row to isolate the single book with the maximum page count.\n5. Return exactly the publisher_name column.", + "steps": [ + "Identify the book table for page counts (num_pages) and publisher linkage (publisher_id), and the publisher table for the desired output column (publisher_name).", + "Perform an inner join between book and publisher using publisher_id as the join key.", + "Sort the results by num_pages in descending order to surface the book with the most pages at the top.", + "Keep only the first row to isolate the single book with the maximum page count.", + "Return exactly the publisher_name column." + ] + }, + "revisql-train:5920": { + "raw": "1. Start from the book table to access each book and its associated language_id.\n2. Inner join book_language on language_id to map every book to its language_name.\n3. Filter the joined rows using the external knowledge that English books are identified by language_name LIKE '%English%'.\n4. Apply COUNT(*) to aggregate the filtered results into a single total.\n5. Return that count as the sole output column representing the number of English books.", + "steps": [ + "Start from the book table to access each book and its associated language_id.", + "Inner join book_language on language_id to map every book to its language_name.", + "Filter the joined rows using the external knowledge that English books are identified by language_name LIKE '%English%'.", + "Apply COUNT(*) to aggregate the filtered results into a single total.", + "Return that count as the sole output column representing the number of English books." + ] + }, + "revisql-train:5924": { + "raw": "1. Filter the customer table to rows where first_name is 'Lucas' and last_name is 'Wyldbore'.\n2. Join cust_order on customer_id, then join order_line on order_id to gather all order lines belonging to that customer.\n3. Join book on book_id to access the page count for each ordered book.\n4. Apply the page filter by keeping only rows where book.num_pages is greater than 300, mapping the phrase \"over 300 pages\" to that column condition.\n5. Count the surviving order lines and return that single aggregated count as the result.", + "steps": [ + "Filter the customer table to rows where first_name is 'Lucas' and last_name is 'Wyldbore'.", + "Join cust_order on customer_id, then join order_line on order_id to gather all order lines belonging to that customer.", + "Join book on book_id to access the page count for each ordered book.", + "Apply the page filter by keeping only rows where book.num_pages is greater than 300, mapping the phrase \"over 300 pages\" to that column condition.", + "Count the surviving order lines and return that single aggregated count as the result." + ] + }, + "revisql-train:5926": { + "raw": "1. Filter the customer table to the row where first_name equals 'Lucas' and last_name equals 'Wyldbore'.\n2. Join that customer record to cust_order on customer_id, then join cust_order to order_line on order_id, to collect every book price for all orders placed by this customer.\n3. Group the joined order_line rows by order_id and sum the price column to compute the total amount spent on each individual order.\n4. Calculate the average of those per-order totals and return that single calculated value as the answer.", + "steps": [ + "Filter the customer table to the row where first_name equals 'Lucas' and last_name equals 'Wyldbore'.", + "Join that customer record to cust_order on customer_id, then join cust_order to order_line on order_id, to collect every book price for all orders placed by this customer.", + "Group the joined order_line rows by order_id and sum the price column to compute the total amount spent on each individual order.", + "Calculate the average of those per-order totals and return that single calculated value as the answer." + ] + }, + "revisql-train:5927": { + "raw": "1. Filter the customer table to the single row where first_name equals Lucas and last_name equals Wyldbore.\n2. Join cust_order on customer_id to collect all orders placed by that customer.\n3. Join order_line on order_id to reach every individual book line item and its associated price.\n4. Apply the external knowledge that \"books over $13\" maps to order_line.price being greater than 13.\n5. Compute the numerator as the sum of a conditional count that returns 1 for each line with price above 13 and 0 otherwise, and compute the denominator as the total count of all order lines for this customer.\n6. Cast the numerator to a real number, multiply by 100, divide by the denominator, and return the resulting percentage as the sole output value.", + "steps": [ + "Filter the customer table to the single row where first_name equals Lucas and last_name equals Wyldbore.", + "Join cust_order on customer_id to collect all orders placed by that customer.", + "Join order_line on order_id to reach every individual book line item and its associated price.", + "Apply the external knowledge that \"books over $13\" maps to order_line.price being greater than 13.", + "Compute the numerator as the sum of a conditional count that returns 1 for each line with price above 13 and 0 otherwise, and compute the denominator as the total count of all order lines for this customer.", + "Cast the numerator to a real number, multiply by 100, divide by the denominator, and return the resulting percentage as the sole output value." + ] + }, + "revisql-train:5933": { + "raw": "1. Filter the book table to the single row where book_id equals 1405.\n2. Join the book_language table on the language_id column to connect that book with its language record.\n3. Apply the external knowledge that the phrase \"language written in\" corresponds to the language_name column in book_language.\n4. Return only the language_name column as the result.", + "steps": [ + "Filter the book table to the single row where book_id equals 1405.", + "Join the book_language table on the language_id column to connect that book with its language record.", + "Apply the external knowledge that the phrase \"language written in\" corresponds to the language_name column in book_language.", + "Return only the language_name column as the result." + ] + }, + "revisql-train:5934": { + "raw": "1. Map the external knowledge so that \"customer\" corresponds to the `first_name` and `last_name` columns in the `customer` table, and \"most orders\" corresponds to the maximum count of orders per customer.\n2. Join the `customer` table with `cust_order` on the `customer_id` key to link each customer to their orders.\n3. Group the joined results by `customer_id` to aggregate all orders belonging to the same customer together.\n4. Count the number of orders within each group and sort the groups by this count in descending order to place the customer with the highest number of orders first.\n5. Limit the result set to the single top row to isolate the customer who made the most orders.\n6. Return exactly the `first_name` and `last_name` columns as the customer's full name.", + "steps": [ + "Map the external knowledge so that \"customer\" corresponds to the `first_name` and `last_name` columns in the `customer` table, and \"most orders\" corresponds to the maximum count of orders per customer.", + "Join the `customer` table with `cust_order` on the `customer_id` key to link each customer to their orders.", + "Group the joined results by `customer_id` to aggregate all orders belonging to the same customer together.", + "Count the number of orders within each group and sort the groups by this count in descending order to place the customer with the highest number of orders first.", + "Limit the result set to the single top row to isolate the customer who made the most orders.", + "Return exactly the `first_name` and `last_name` columns as the customer's full name." + ] + }, + "revisql-train:5936": { + "raw": "1. Filter the author table for rows where author_name equals 'David Foster Wallace', using the external knowledge that this exact string maps to the author_name column.\n2. Join the filtered author results to book_author on author_id to collect all book_id values associated with that author.\n3. Join those book_id records to the book table on book_id to access the corresponding book titles.\n4. Count the title column from the book table and return that single aggregated count as the answer.", + "steps": [ + "Filter the author table for rows where author_name equals 'David Foster Wallace', using the external knowledge that this exact string maps to the author_name column.", + "Join the filtered author results to book_author on author_id to collect all book_id values associated with that author.", + "Join those book_id records to the book table on book_id to access the corresponding book titles.", + "Count the title column from the book table and return that single aggregated count as the answer." + ] + }, + "revisql-train:5938": { + "raw": "1. Filter the customer table to rows where first_name is 'Malina' and last_name is 'Johnson'.\n2. Join customer_address on customer_id, then keep only the row where status_id equals 1 to identify the current active address.\n3. Join address on address_id to retrieve the country_id linked to that active address.\n4. Join country on country_id; the external knowledge indicates that \"country\" maps to the country_name column.\n5. Return the country_name column as the final result.", + "steps": [ + "Filter the customer table to rows where first_name is 'Malina' and last_name is 'Johnson'.", + "Join customer_address on customer_id, then keep only the row where status_id equals 1 to identify the current active address.", + "Join address on address_id to retrieve the country_id linked to that active address.", + "Join country on country_id; the external knowledge indicates that \"country\" maps to the country_name column.", + "Return the country_name column as the final result." + ] + }, + "revisql-train:594": { + "raw": "1. Join Repo and Solution on Repo.Id = Solution.RepoId to link each solution to its repository metrics.\n2. Map repository popularity to the Repo.Watchers column based on the external knowledge.\n3. Conditionally aggregate Repo.Watchers for Solution.Id = 18 and for Solution.Id = 19 to obtain each repository’s popularity score in a single row.\n4. Compare the two aggregated scores and return the string 'solution ID18' if it is larger, or 'solution ID19' if it is larger.\n5. Return exactly one column named isMorePopular containing the selected label.", + "steps": [ + "Join Repo and Solution on Repo.Id = Solution.RepoId to link each solution to its repository metrics.", + "Map repository popularity to the Repo.Watchers column based on the external knowledge.", + "Conditionally aggregate Repo.Watchers for Solution.Id = 18 and for Solution.Id = 19 to obtain each repository’s popularity score in a single row.", + "Compare the two aggregated scores and return the string 'solution ID18' if it is larger, or 'solution ID19' if it is larger.", + "Return exactly one column named isMorePopular containing the selected label." + ] + }, + "revisql-train:5946": { + "raw": "1. Join the `country` table to `address` on `country_id`, then join `address` to `cust_order` on `address_id` matching `dest_address_id`.\n2. Filter for rows where `country_name` equals 'Iran', using the external knowledge that Iran maps to this column value.\n3. Filter for orders placed in 2022 by extracting the year from `order_date` and checking it equals '2022', using the external knowledge mapping for 2022 orders.\n4. Aggregate the result with `COUNT(*)` to compute the total number of matching orders.\n5. Return exactly the single count column.", + "steps": [ + "Join the `country` table to `address` on `country_id`, then join `address` to `cust_order` on `address_id` matching `dest_address_id`.", + "Filter for rows where `country_name` equals 'Iran', using the external knowledge that Iran maps to this column value.", + "Filter for orders placed in 2022 by extracting the year from `order_date` and checking it equals '2022', using the external knowledge mapping for 2022 orders.", + "Aggregate the result with `COUNT(*)` to compute the total number of matching orders.", + "Return exactly the single count column." + ] + }, + "revisql-train:5947": { + "raw": "1. Filter the customer table to rows where first_name is 'Daisey' and last_name is 'Lamball'.\n2. Join cust_order on customer_id to collect all orders placed by that customer.\n3. Join shipping_method on shipping_method_id to access the method_name for each order.\n4. Restrict to rows where method_name equals 'International', matching the \"via International shipping\" condition.\n5. Count the surviving order records to return the total number of qualifying orders.", + "steps": [ + "Filter the customer table to rows where first_name is 'Daisey' and last_name is 'Lamball'.", + "Join cust_order on customer_id to collect all orders placed by that customer.", + "Join shipping_method on shipping_method_id to access the method_name for each order.", + "Restrict to rows where method_name equals 'International', matching the \"via International shipping\" condition.", + "Count the surviving order records to return the total number of qualifying orders." + ] + }, + "revisql-train:5949": { + "raw": "1. Filter the customer table to rows where first_name is 'Antonia' and last_name is 'Poltun'.\n2. Join cust_order on customer_id to retrieve all orders placed by that customer.\n3. Join order_history on order_id to access the status history for each order.\n4. Join order_status on status_id and apply the external knowledge that \"order returned\" means status_value equals 'Returned'.\n5. Return the count of matching orders.", + "steps": [ + "Filter the customer table to rows where first_name is 'Antonia' and last_name is 'Poltun'.", + "Join cust_order on customer_id to retrieve all orders placed by that customer.", + "Join order_history on order_id to access the status history for each order.", + "Join order_status on status_id and apply the external knowledge that \"order returned\" means status_value equals 'Returned'.", + "Return the count of matching orders." + ] + }, + "revisql-train:5954": { + "raw": "1. Join the book table to book_author on book_id, then join author on author_id, and join publisher on publisher_id to link each book with its author and publishing house.\n2. Filter the rows where author_name equals 'Agatha Christie'.\n3. Order the remaining records by publication_date in ascending order to find the earliest book.\n4. Restrict the result set to the first row only.\n5. Return the publisher_name column.", + "steps": [ + "Join the book table to book_author on book_id, then join author on author_id, and join publisher on publisher_id to link each book with its author and publishing house.", + "Filter the rows where author_name equals 'Agatha Christie'.", + "Order the remaining records by publication_date in ascending order to find the earliest book.", + "Restrict the result set to the first row only.", + "Return the publisher_name column." + ] + }, + "revisql-train:5957": { + "raw": "1. Map \"name of publisher\" to the `publisher_name` column and \"published the most number of books\" to the maximum of per-publisher book counts.\n2. Join the `book` and `publisher` tables on `publisher_id` to link each book to its publisher.\n3. In a subquery, group the joined data by `publisher_id`, count `book_id` per publisher as `TotalBooks`, and take the `MAX` of these counts to find the highest number of books any publisher released.\n4. In the main query, join `book` and `publisher` again on `publisher_id`, group by `publisher_name`, and count the books per publisher name.\n5. Use a `HAVING` clause to keep only those groups where the book count equals the maximum value returned by the subquery.\n6. Return the `publisher_name` column.", + "steps": [ + "Map \"name of publisher\" to the `publisher_name` column and \"published the most number of books\" to the maximum of per-publisher book counts.", + "Join the `book` and `publisher` tables on `publisher_id` to link each book to its publisher.", + "In a subquery, group the joined data by `publisher_id`, count `book_id` per publisher as `TotalBooks`, and take the `MAX` of these counts to find the highest number of books any publisher released.", + "In the main query, join `book` and `publisher` again on `publisher_id`, group by `publisher_name`, and count the books per publisher name.", + "Use a `HAVING` clause to keep only those groups where the book count equals the maximum value returned by the subquery.", + "Return the `publisher_name` column." + ] + }, + "revisql-train:596": { + "raw": "1. Use only the Repo and Solution tables; Method and MethodParameter are irrelevant for this question.\n2. Inner join Repo to Solution on Repo.Id = Solution.RepoId to connect the target solution to its parent repository.\n3. Filter Solution.Path to exactly 'jeffdik_tachy\\src\\Tachy.sln' to isolate the required solution record.\n4. Apply DISTINCT to the result set because the join may produce multiple rows with the same processed time value.\n5. Return the ProcessedTime column from the Solution table as the final answer.", + "steps": [ + "Use only the Repo and Solution tables; Method and MethodParameter are irrelevant for this question.", + "Inner join Repo to Solution on Repo.Id = Solution.RepoId to connect the target solution to its parent repository.", + "Filter Solution.Path to exactly 'jeffdik_tachy\\src\\Tachy.sln' to isolate the required solution record.", + "Apply DISTINCT to the result set because the join may produce multiple rows with the same processed time value.", + "Return the ProcessedTime column from the Solution table as the final answer." + ] + }, + "revisql-train:5960": { + "raw": "1. Join the book table to book_author on book_id, then join book_author to author on author_id to link each book with its author name.\n2. Filter the author table to author_name = 'Al Gore', using the external knowledge that \"Al Gore\" maps to the author_name column.\n3. Filter the book table to num_pages < 400, using the external knowledge that \"less than 400 pages\" maps to the num_pages column.\n4. Apply COUNT(*) to the filtered rows to compute the total number of qualifying books.\n5. Return the resulting count.", + "steps": [ + "Join the book table to book_author on book_id, then join book_author to author on author_id to link each book with its author name.", + "Filter the author table to author_name = 'Al Gore', using the external knowledge that \"Al Gore\" maps to the author_name column.", + "Filter the book table to num_pages < 400, using the external knowledge that \"less than 400 pages\" maps to the num_pages column.", + "Apply COUNT(*) to the filtered rows to compute the total number of qualifying books.", + "Return the resulting count." + ] + }, + "revisql-train:5961": { + "raw": "1. Map the request so that \"author's name\" targets author.author_name, \"publisher's name\" targets publisher.publisher_name, and the date condition targets book.publication_date equal to '1997-07-10'.\n2. Start from the book table and restrict rows to those with publication_date = '1997-07-10'.\n3. Join book_author on book_id to link each qualifying book to its author record(s).\n4. Join author on author_id to access the author_name column.\n5. Join publisher on publisher_id to access the publisher_name column.\n6. Return only the two columns author_name and publisher_name.", + "steps": [ + "Map the request so that \"author's name\" targets author.author_name, \"publisher's name\" targets publisher.publisher_name, and the date condition targets book.publication_date equal to '1997-07-10'.", + "Start from the book table and restrict rows to those with publication_date = '1997-07-10'.", + "Join book_author on book_id to link each qualifying book to its author record(s).", + "Join author on author_id to access the author_name column.", + "Join publisher on publisher_id to access the publisher_name column.", + "Return only the two columns author_name and publisher_name." + ] + }, + "revisql-train:5963": { + "raw": "1. Join the `book` table with `order_line` on `book_id` to connect each book's title to its order prices.\n2. Group the results by `book_id` to compute the maximum sale price per book from the `order_line` records.\n3. Determine the overall highest price across all rows in the `order_line` table to establish the \"most expensive\" threshold.\n4. Filter the grouped results to keep only books whose maximum sale price equals that overall highest price.\n5. Return the `title` column from the `book` table.", + "steps": [ + "Join the `book` table with `order_line` on `book_id` to connect each book's title to its order prices.", + "Group the results by `book_id` to compute the maximum sale price per book from the `order_line` records.", + "Determine the overall highest price across all rows in the `order_line` table to establish the \"most expensive\" threshold.", + "Filter the grouped results to keep only books whose maximum sale price equals that overall highest price.", + "Return the `title` column from the `book` table." + ] + }, + "revisql-train:5966": { + "raw": "1. Start from the book table to access each book's book_id and publisher_id.\n2. Join publisher on publisher_id and filter to rows where publisher_name equals 'Berkley Trade' using the external knowledge.\n3. Join order_line on book_id and filter to rows where price is less than 1, applying the external knowledge that \"book cost less than 1 dollar\" means price < 1.\n4. Count distinct book_id values to avoid duplicates from multiple order lines.\n5. Return that count as the single answer column.", + "steps": [ + "Start from the book table to access each book's book_id and publisher_id.", + "Join publisher on publisher_id and filter to rows where publisher_name equals 'Berkley Trade' using the external knowledge.", + "Join order_line on book_id and filter to rows where price is less than 1, applying the external knowledge that \"book cost less than 1 dollar\" means price < 1.", + "Count distinct book_id values to avoid duplicates from multiple order lines.", + "Return that count as the single answer column." + ] + }, + "revisql-train:5970": { + "raw": "1. Join the book table to book_author on book_id to link each book with its author records.\n2. Join the author table to book_author on author_id to access the author_name for each book.\n3. Join the publisher table to book on publisher_id to connect each book to its publisher.\n4. Filter to rows where publisher_name equals 'Abrams', applying the external knowledge that Abrams is a publisher_name.\n5. Return the author_name column from the author table.", + "steps": [ + "Join the book table to book_author on book_id to link each book with its author records.", + "Join the author table to book_author on author_id to access the author_name for each book.", + "Join the publisher table to book on publisher_id to connect each book to its publisher.", + "Filter to rows where publisher_name equals 'Abrams', applying the external knowledge that Abrams is a publisher_name.", + "Return the author_name column from the author table." + ] + }, + "revisql-train:5972": { + "raw": "1. Join `book` to `book_author` on `book_id`, then join `book_author` to `author` on `author_id` to connect each book with its author name.\n2. Filter rows where `author_name` equals 'Abraham Lincoln', using the external knowledge that this value identifies the target author.\n3. For each matching book, determine whether its `publication_date` falls in 1992 by extracting the year, applying the external knowledge that \"published in 1992\" maps to the year portion of that column.\n4. Compute the percentage by dividing the count of books with a 1992 publication date by the total count of Abraham Lincoln’s books and multiplying by 100; cast the numerator to a real type to force decimal division.\n5. Return a single column containing the resulting percentage value.", + "steps": [ + "Join `book` to `book_author` on `book_id`, then join `book_author` to `author` on `author_id` to connect each book with its author name.", + "Filter rows where `author_name` equals 'Abraham Lincoln', using the external knowledge that this value identifies the target author.", + "For each matching book, determine whether its `publication_date` falls in 1992 by extracting the year, applying the external knowledge that \"published in 1992\" maps to the year portion of that column.", + "Compute the percentage by dividing the count of books with a 1992 publication date by the total count of Abraham Lincoln’s books and multiplying by 100; cast the numerator to a real type to force decimal division.", + "Return a single column containing the resulting percentage value." + ] + }, + "revisql-train:5975": { + "raw": "1. Use the address table, which contains both the city and street_name columns; no joins are needed.\n2. Map the question's term \"streets\" to the street_name column using the external knowledge.\n3. Map \"Dallas\" to the city column and filter rows where city equals 'Dallas'.\n4. Return only the street_name column in the result set.", + "steps": [ + "Use the address table, which contains both the city and street_name columns; no joins are needed.", + "Map the question's term \"streets\" to the street_name column using the external knowledge.", + "Map \"Dallas\" to the city column and filter rows where city equals 'Dallas'.", + "Return only the street_name column in the result set." + ] + }, + "revisql-train:598": { + "raw": "1. Use the `Repo` table to isolate the repository whose `Url` equals 'https://github.com/maxild/playground.git'.\n2. Join `Solution` to `Repo` on `Repo.Id = Solution.RepoId` to link that repository with all of its solutions.\n3. Return only the `Path` column from the `Solution` table.", + "steps": [ + "Use the `Repo` table to isolate the repository whose `Url` equals 'https://github.com/maxild/playground.git'.", + "Join `Solution` to `Repo` on `Repo.Id = Solution.RepoId` to link that repository with all of its solutions.", + "Return only the `Path` column from the `Solution` table." + ] + }, + "revisql-train:5982": { + "raw": "1. Map \"published in Japanese\" to `language_name = 'Japanese'` in the `book_language` table per the external knowledge.\n2. Identify that the `book` table supplies the `book_id` values that must be counted.\n3. Join `book_language` to `book` on the `language_id` key to associate each language with its books.\n4. Filter the joined rows to only those where `language_name` equals 'Japanese'.\n5. Count `book_id` from the `book` table and return that single aggregated value.", + "steps": [ + "Map \"published in Japanese\" to `language_name = 'Japanese'` in the `book_language` table per the external knowledge.", + "Identify that the `book` table supplies the `book_id` values that must be counted.", + "Join `book_language` to `book` on the `language_id` key to associate each language with its books.", + "Filter the joined rows to only those where `language_name` equals 'Japanese'.", + "Count `book_id` from the `book` table and return that single aggregated value." + ] + }, + "revisql-train:5985": { + "raw": "1. Start from `customer_address` and join it to `address` on `address_id` to connect customers to their location records.\n2. Join `country` on `country_id` to make the country name available for filtering.\n3. Use the external knowledge that \"Australia\" maps to `country.country_name` and filter rows where that column equals `'Australia'`.\n4. Aggregate with `COUNT(DISTINCT customer_address.customer_id)` so customers with multiple Australian addresses are counted only once.\n5. Return exactly that single aggregated value: the count of unique customers from Australia.", + "steps": [ + "Start from `customer_address` and join it to `address` on `address_id` to connect customers to their location records.", + "Join `country` on `country_id` to make the country name available for filtering.", + "Use the external knowledge that \"Australia\" maps to `country.country_name` and filter rows where that column equals `'Australia'`.", + "Aggregate with `COUNT(DISTINCT customer_address.customer_id)` so customers with multiple Australian addresses are counted only once.", + "Return exactly that single aggregated value: the count of unique customers from Australia." + ] + }, + "revisql-train:5988": { + "raw": "1. Join cust_order to shipping_method on shipping_method_id equals method_id to attach the method name to each order.\n2. Filter to orders from 2020 by extracting the year from order_date.\n3. Map international shipping to the method_name value 'International' per the external knowledge.\n4. Sum a conditional indicator that is 1 when the method_name is 'International' and 0 otherwise to get the international order count.\n5. Divide that sum by the total count of all 2020 orders in the set, multiply by 100, and cast the numerator to a real number to produce a precise percentage.\n6. Return the single calculated percentage column.", + "steps": [ + "Join cust_order to shipping_method on shipping_method_id equals method_id to attach the method name to each order.", + "Filter to orders from 2020 by extracting the year from order_date.", + "Map international shipping to the method_name value 'International' per the external knowledge.", + "Sum a conditional indicator that is 1 when the method_name is 'International' and 0 otherwise to get the international order count.", + "Divide that sum by the total count of all 2020 orders in the set, multiply by 100, and cast the numerator to a real number to produce a precise percentage.", + "Return the single calculated percentage column." + ] + }, + "revisql-train:5990": { + "raw": "1. Use the `cust_order` table since it holds every order and its `order_date`.\n2. Extract the year portion from `order_date` to group orders by calendar year.\n3. Group the rows by that extracted year value.\n4. Count the number of orders in each year group.\n5. Order the groups by that count in descending order and keep only the first row.\n6. Return the single year value from that top row.", + "steps": [ + "Use the `cust_order` table since it holds every order and its `order_date`.", + "Extract the year portion from `order_date` to group orders by calendar year.", + "Group the rows by that extracted year value.", + "Count the number of orders in each year group.", + "Order the groups by that count in descending order and keep only the first row.", + "Return the single year value from that top row." + ] + }, + "revisql-train:5991": { + "raw": "1. Identify that the question only requires the `order_line` table, specifically the `price` column stored there.\n2. Map the phrase \"average price\" to the aggregation function `AVG(price)` per the external knowledge.\n3. Compute the average across all rows in `order_line` with no filters, joins, or grouping needed.\n4. Return exactly one column: the calculated average price.", + "steps": [ + "Identify that the question only requires the `order_line` table, specifically the `price` column stored there.", + "Map the phrase \"average price\" to the aggregation function `AVG(price)` per the external knowledge.", + "Compute the average across all rows in `order_line` with no filters, joins, or grouping needed.", + "Return exactly one column: the calculated average price." + ] + }, + "revisql-train:5992": { + "raw": "1. Use the `book` table as the sole source; no joins are needed.\n2. Map \"published in 1995\" to the `publication_date` column and extract the year portion to compare against the value '1995'.\n3. Map \"list all of the books\" to returning the `title` column.\n4. Apply a WHERE filter that keeps only rows where the extracted year from `publication_date` equals '1995'.\n5. Project exactly the `title` column in the result without aggregation or ordering.", + "steps": [ + "Use the `book` table as the sole source; no joins are needed.", + "Map \"published in 1995\" to the `publication_date` column and extract the year portion to compare against the value '1995'.", + "Map \"list all of the books\" to returning the `title` column.", + "Apply a WHERE filter that keeps only rows where the extracted year from `publication_date` equals '1995'.", + "Project exactly the `title` column in the result without aggregation or ordering." + ] + }, + "revisql-train:5993": { + "raw": "1. Use only the customer table and extract the domain from each email by taking the substring that appears after the '@' character through the end of the string.\n2. Group the records by this extracted domain and count the number of customers associated with each domain.\n3. In a separate subquery, perform the same domain extraction and counting to determine the maximum customer count across all domains.\n4. Apply a HAVING clause to the grouped results to retain only those domains whose customer count equals that maximum value.\n5. Return the extracted domain column as the final output.", + "steps": [ + "Use only the customer table and extract the domain from each email by taking the substring that appears after the '@' character through the end of the string.", + "Group the records by this extracted domain and count the number of customers associated with each domain.", + "In a separate subquery, perform the same domain extraction and counting to determine the maximum customer count across all domains.", + "Apply a HAVING clause to the grouped results to retain only those domains whose customer count equals that maximum value.", + "Return the extracted domain column as the final output." + ] + }, + "revisql-train:5994": { + "raw": "1. Start from the `publisher` table, as the question asks only about publishers and no joins are needed.\n2. Filter rows where `publisher_name` contains the word \"book\" by using a LIKE pattern `%book%`, applying the external knowledge that maps the phrase to `publisher_name LIKE '%book%'`.\n3. Aggregate the filtered rows with `COUNT(*)` to compute the total number of matching publishers.\n4. Return a single column containing that count.", + "steps": [ + "Start from the `publisher` table, as the question asks only about publishers and no joins are needed.", + "Filter rows where `publisher_name` contains the word \"book\" by using a LIKE pattern `%book%`, applying the external knowledge that maps the phrase to `publisher_name LIKE '%book%'`.", + "Aggregate the filtered rows with `COUNT(*)` to compute the total number of matching publishers.", + "Return a single column containing that count." + ] + }, + "revisql-train:6006": { + "raw": "1. Join the customer table to customer_address on customer_id to link each customer with their address records.\n2. Group by customer_id, first_name, and last_name, and count address_id per group to get each customer’s total number of addresses.\n3. Compute the maximum of those per-customer address counts to determine the highest number of addresses any customer has.\n4. Filter the grouped results to keep only the customer(s) whose address count equals that maximum.\n5. Return first_name and last_name as the customer identifiers.", + "steps": [ + "Join the customer table to customer_address on customer_id to link each customer with their address records.", + "Group by customer_id, first_name, and last_name, and count address_id per group to get each customer’s total number of addresses.", + "Compute the maximum of those per-customer address counts to determine the highest number of addresses any customer has.", + "Filter the grouped results to keep only the customer(s) whose address count equals that maximum.", + "Return first_name and last_name as the customer identifiers." + ] + }, + "revisql-train:6015": { + "raw": "1. Map the phrase \"most expensive book\" to the maximum price value stored in the order_line table, as indicated by the external knowledge.\n2. Compute the maximum price across all rows in the order_line table.\n3. Join order_line with the book table on book_id to bring in the book title for each line item.\n4. Filter the joined set to retain only rows where the order_line price equals that computed maximum price.\n5. Return distinct values of the book title column so each book meeting the criteria appears only once.", + "steps": [ + "Map the phrase \"most expensive book\" to the maximum price value stored in the order_line table, as indicated by the external knowledge.", + "Compute the maximum price across all rows in the order_line table.", + "Join order_line with the book table on book_id to bring in the book title for each line item.", + "Filter the joined set to retain only rows where the order_line price equals that computed maximum price.", + "Return distinct values of the book title column so each book meeting the criteria appears only once." + ] + }, + "revisql-train:6016": { + "raw": "1. Filter the book table to rows where the title equals \"Anleitung zum Zickigsein\", applying the external knowledge that this string is a book title.\n2. Join book to order_line on book_id to gather every order line associated with that book.\n3. Join order_line to cust_order on order_id to link each purchase to the customer who placed the order.\n4. Aggregate with a distinct count of customer_id from cust_order so each customer is counted only once even if they ordered multiple times.\n5. Return the count of distinct customer_id.", + "steps": [ + "Filter the book table to rows where the title equals \"Anleitung zum Zickigsein\", applying the external knowledge that this string is a book title.", + "Join book to order_line on book_id to gather every order line associated with that book.", + "Join order_line to cust_order on order_id to link each purchase to the customer who placed the order.", + "Aggregate with a distinct count of customer_id from cust_order so each customer is counted only once even if they ordered multiple times.", + "Return the count of distinct customer_id." + ] + }, + "revisql-train:6018": { + "raw": "1. Map \"youngest book\" to the book having the maximum `publication_date` in the `book` table.\n2. Isolate the book record(s) with that latest date by comparing `publication_date` against the table-wide maximum.\n3. Join the filtered `book` set to `order_line` on `book_id` to collect the relevant order lines.\n4. Join those order lines to `cust_order` on `order_id` to identify the ordering customers.\n5. Count the distinct `customer_id` values from `cust_order` and return that total.", + "steps": [ + "Map \"youngest book\" to the book having the maximum `publication_date` in the `book` table.", + "Isolate the book record(s) with that latest date by comparing `publication_date` against the table-wide maximum.", + "Join the filtered `book` set to `order_line` on `book_id` to collect the relevant order lines.", + "Join those order lines to `cust_order` on `order_id` to identify the ordering customers.", + "Count the distinct `customer_id` values from `cust_order` and return that total." + ] + }, + "revisql-train:6023": { + "raw": "1. Join the book table to publisher on publisher_id, to book_author on book_id, and book_author to author on author_id.\n2. Apply the external knowledge value for the publisher by filtering publisher.publisher_name to 'Scholastic'.\n3. Apply the external knowledge value for the author by filtering author.author_name to the provided author name.\n4. Use COUNT(*) to aggregate and count how many books satisfy both filters.\n5. Return only the count column.", + "steps": [ + "Join the book table to publisher on publisher_id, to book_author on book_id, and book_author to author on author_id.", + "Apply the external knowledge value for the publisher by filtering publisher.publisher_name to 'Scholastic'.", + "Apply the external knowledge value for the author by filtering author.author_name to the provided author name.", + "Use COUNT(*) to aggregate and count how many books satisfy both filters.", + "Return only the count column." + ] + }, + "revisql-train:6024": { + "raw": "1. Join the book table to the publisher table on publisher_id so that every book is paired with its publisher's name.\n2. Group the joined results by publisher_name to aggregate all books under each publisher.\n3. Count the number of books per publisher and keep only groups where that count is at least 30, applying the external knowledge that \"published at least 30 books\" means Count(book_id) >= 30.\n4. Return only the publisher_name column as the final output.", + "steps": [ + "Join the book table to the publisher table on publisher_id so that every book is paired with its publisher's name.", + "Group the joined results by publisher_name to aggregate all books under each publisher.", + "Count the number of books per publisher and keep only groups where that count is at least 30, applying the external knowledge that \"published at least 30 books\" means Count(book_id) >= 30.", + "Return only the publisher_name column as the final output." + ] + }, + "revisql-train:6025": { + "raw": "1. Target the `address` table, which contains the required street fields.\n2. Include `street_name` in the output to satisfy the street name requirement.\n3. Extract the last character of `street_number` using `SUBSTR(..., -1)` to obtain the last number of the street.\n4. Label that extracted value as `last_digit` in the result set.\n5. Retrieve these two columns for every address record without applying any filters or joins.", + "steps": [ + "Target the `address` table, which contains the required street fields.", + "Include `street_name` in the output to satisfy the street name requirement.", + "Extract the last character of `street_number` using `SUBSTR(..., -1)` to obtain the last number of the street.", + "Label that extracted value as `last_digit` in the result set.", + "Retrieve these two columns for every address record without applying any filters or joins." + ] + }, + "revisql-train:6032": { + "raw": "1. Start with the `address` table to get the physical address fields and join it to `customer_address` on `address_id` to link each address to its customer and status identifier.\n2. Join `address_status` on `status_id` to access the textual `address_status` value for each customer address.\n3. Filter the results to only rows where `address_status` is 'Inactive', applying the external knowledge that \"no longer active\" means inactive, and use a case-insensitive comparison to ensure robust matching.\n4. Return the columns that constitute the customer address: `street_number`, `street_name`, and `city` from the `address` table.", + "steps": [ + "Start with the `address` table to get the physical address fields and join it to `customer_address` on `address_id` to link each address to its customer and status identifier.", + "Join `address_status` on `status_id` to access the textual `address_status` value for each customer address.", + "Filter the results to only rows where `address_status` is 'Inactive', applying the external knowledge that \"no longer active\" means inactive, and use a case-insensitive comparison to ensure robust matching.", + "Return the columns that constitute the customer address: `street_number`, `street_name`, and `city` from the `address` table." + ] + }, + "revisql-train:6033": { + "raw": "1. Start from the customer table and select first_name and last_name to compose the full name.\n2. Join customer_address on customer_id to link each customer to their address records.\n3. Join address on address_id to access the city column for each address.\n4. Filter customer_address to only rows where status_id = 1, which the schema defines as the currently active address.\n5. Filter address to rows where city equals 'Baiyin', applying the external knowledge that Baiyin is the city value.\n6. Apply DISTINCT to first_name and last_name so the result returns each qualifying customer's full name only once.", + "steps": [ + "Start from the customer table and select first_name and last_name to compose the full name.", + "Join customer_address on customer_id to link each customer to their address records.", + "Join address on address_id to access the city column for each address.", + "Filter customer_address to only rows where status_id = 1, which the schema defines as the currently active address.", + "Filter address to rows where city equals 'Baiyin', applying the external knowledge that Baiyin is the city value.", + "Apply DISTINCT to first_name and last_name so the result returns each qualifying customer's full name only once." + ] + }, + "revisql-train:6034": { + "raw": "1. Select the email column from the customer table.\n2. Join customer to cust_order on customer_id to link each customer to their orders.\n3. Join cust_order to shipping_method on shipping_method_id = method_id to access the method name.\n4. Filter for rows where method_name equals 'Priority', using the external knowledge that \"priority method\" maps to that exact value.\n5. Apply DISTINCT to the email column to ensure each customer appears only once, and return exactly that column.", + "steps": [ + "Select the email column from the customer table.", + "Join customer to cust_order on customer_id to link each customer to their orders.", + "Join cust_order to shipping_method on shipping_method_id = method_id to access the method name.", + "Filter for rows where method_name equals 'Priority', using the external knowledge that \"priority method\" maps to that exact value.", + "Apply DISTINCT to the email column to ensure each customer appears only once, and return exactly that column." + ] + }, + "revisql-train:6038": { + "raw": "1. Identify the book table, which holds the title column, and the order_line table, which stores the price paid for each book in an order.\n2. Join book to order_line on the shared book_id key so that every order line is linked to its corresponding book title.\n3. Filter the joined rows to only those where the title is exactly 'The Prophet', using the external knowledge that this string maps to the title column.\n4. Apply the MAX aggregate to the price column from the order_line table to find the highest purchase price.\n5. Return the single resulting maximum price value as the answer.", + "steps": [ + "Identify the book table, which holds the title column, and the order_line table, which stores the price paid for each book in an order.", + "Join book to order_line on the shared book_id key so that every order line is linked to its corresponding book title.", + "Filter the joined rows to only those where the title is exactly 'The Prophet', using the external knowledge that this string maps to the title column.", + "Apply the MAX aggregate to the price column from the order_line table to find the highest purchase price.", + "Return the single resulting maximum price value as the answer." + ] + }, + "revisql-train:6041": { + "raw": "1. Join the `book` table to the `publisher` table on `publisher_id` to associate each book with its publisher.\n2. Filter the results to only rows where `publisher_name` equals 'HarperCollins Publishers'.\n3. Apply the external knowledge that \"under 300 pages\" maps to the `num_pages` column in the `book` table being less than 300.\n4. Aggregate the filtered rows by counting the number of matching books.\n5. Return the resulting count.", + "steps": [ + "Join the `book` table to the `publisher` table on `publisher_id` to associate each book with its publisher.", + "Filter the results to only rows where `publisher_name` equals 'HarperCollins Publishers'.", + "Apply the external knowledge that \"under 300 pages\" maps to the `num_pages` column in the `book` table being less than 300.", + "Aggregate the filtered rows by counting the number of matching books.", + "Return the resulting count." + ] + }, + "revisql-train:6044": { + "raw": "1. Filter the customer table to rows where first_name equals 'Kaleena'.\n2. Join cust_order on customer_id to retrieve all orders placed by that customer.\n3. Join shipping_method on shipping_method_id to bring in the method_name for each order.\n4. Count international orders by summing a CASE expression that returns 1 when method_name is 'International' and 0 otherwise.\n5. Divide that international count by the total number of orders returned by COUNT(*), multiply by 100, and cast the numerator to REAL to ensure decimal division.\n6. Return the single calculated percentage column.", + "steps": [ + "Filter the customer table to rows where first_name equals 'Kaleena'.", + "Join cust_order on customer_id to retrieve all orders placed by that customer.", + "Join shipping_method on shipping_method_id to bring in the method_name for each order.", + "Count international orders by summing a CASE expression that returns 1 when method_name is 'International' and 0 otherwise.", + "Divide that international count by the total number of orders returned by COUNT(*), multiply by 100, and cast the numerator to REAL to ensure decimal division.", + "Return the single calculated percentage column." + ] + }, + "revisql-train:6047": { + "raw": "1. Map “biggest page count” to the maximum value of the num_pages column in the book table and compute that maximum.\n2. Join the book table to book_author on book_id, then join book_author to author on author_id to link page counts to author names.\n3. Filter the joined rows to only those where the book’s num_pages equals the maximum value found in step 1.\n4. Return the distinct author_name column from the author table, since “author” refers to author_name.", + "steps": [ + "Map “biggest page count” to the maximum value of the num_pages column in the book table and compute that maximum.", + "Join the book table to book_author on book_id, then join book_author to author on author_id to link page counts to author names.", + "Filter the joined rows to only those where the book’s num_pages equals the maximum value found in step 1.", + "Return the distinct author_name column from the author table, since “author” refers to author_name." + ] + }, + "revisql-train:6049": { + "raw": "1. Start from the customer table and filter to the single row where first_name is 'Ursola' and last_name is 'Purdy'.\n2. Join customer_address on customer_id, keeping only the row where status_id equals 1 to get the current active address.\n3. Join address on address_id to retrieve street_number, street_name, and city.\n4. Join country on country_id to retrieve country_name.\n5. Return the four columns street_number, street_name, city, and country_name as the full address.", + "steps": [ + "Start from the customer table and filter to the single row where first_name is 'Ursola' and last_name is 'Purdy'.", + "Join customer_address on customer_id, keeping only the row where status_id equals 1 to get the current active address.", + "Join address on address_id to retrieve street_number, street_name, and city.", + "Join country on country_id to retrieve country_name.", + "Return the four columns street_number, street_name, city, and country_name as the full address." + ] + }, + "revisql-train:6053": { + "raw": "1. Use the `shipping_method` table, which stores `method_name` and `cost`.\n2. Locate the `cost` value for the row where `method_name` equals 'Priority'.\n3. Locate the `cost` value for the row where `method_name` equals 'Express'.\n4. Subtract the two retrieved costs and wrap the result with `ABS` to ensure a positive difference.\n5. Return the final value as a single column named `cost_difference`.", + "steps": [ + "Use the `shipping_method` table, which stores `method_name` and `cost`.", + "Locate the `cost` value for the row where `method_name` equals 'Priority'.", + "Locate the `cost` value for the row where `method_name` equals 'Express'.", + "Subtract the two retrieved costs and wrap the result with `ABS` to ensure a positive difference.", + "Return the final value as a single column named `cost_difference`." + ] + }, + "revisql-train:6054": { + "raw": "1. Join the `order_history` table to `order_status` on the shared `status_id` column to associate each history record with its descriptive status value.\n2. Filter the joined rows to only those where `order_status.status_value` equals 'Cancelled', applying the external knowledge that \"cancelled\" maps to that specific value.\n3. Further filter to rows where the year extracted from `order_history.status_date` equals 2022, applying the external knowledge that \"in 2022\" maps to that date column.\n4. Aggregate by computing a count of distinct `order_history.order_id` values so each order is tallied only once.\n5. Return that single aggregated count of distinct `order_id`s as the final output column.", + "steps": [ + "Join the `order_history` table to `order_status` on the shared `status_id` column to associate each history record with its descriptive status value.", + "Filter the joined rows to only those where `order_status.status_value` equals 'Cancelled', applying the external knowledge that \"cancelled\" maps to that specific value.", + "Further filter to rows where the year extracted from `order_history.status_date` equals 2022, applying the external knowledge that \"in 2022\" maps to that date column.", + "Aggregate by computing a count of distinct `order_history.order_id` values so each order is tallied only once.", + "Return that single aggregated count of distinct `order_id`s as the final output column." + ] + }, + "revisql-train:6062": { + "raw": "1. Identify the three tables needed: book for the titles, author for the author name, and book_author as the junction linking them.\n2. Join book to book_author on their shared book_id, then join author to book_author on their shared author_id.\n3. Apply the filter on the author table using the external knowledge that the target value for author_name is exactly 'Tom Clancy'.\n4. Return only the title column from the book table.", + "steps": [ + "Identify the three tables needed: book for the titles, author for the author name, and book_author as the junction linking them.", + "Join book to book_author on their shared book_id, then join author to book_author on their shared author_id.", + "Apply the filter on the author table using the external knowledge that the target value for author_name is exactly 'Tom Clancy'.", + "Return only the title column from the book table." + ] + }, + "revisql-train:6064": { + "raw": "1. Identify the `book` table as holding the title and `publisher_id`, and the `publisher` table as holding the publisher name.\n2. Inner join `book` to `publisher` on their shared `publisher_id` key.\n3. Filter `book.title` to the exact given title, \"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\", handling the internal apostrophe.\n4. Return only the `publisher_name` column from the `publisher` table.", + "steps": [ + "Identify the `book` table as holding the title and `publisher_id`, and the `publisher` table as holding the publisher name.", + "Inner join `book` to `publisher` on their shared `publisher_id` key.", + "Filter `book.title` to the exact given title, \"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\", handling the internal apostrophe.", + "Return only the `publisher_name` column from the `publisher` table." + ] + }, + "revisql-train:6066": { + "raw": "1. Begin with the `customer` table, selecting `first_name` and `last_name` to form the full name.\n2. Join `customer_address` on `customer_id` to link each customer to their address records.\n3. Join `address` on `address_id` to access the street and city details.\n4. Filter the address rows using the provided values: `street_number` = 55, `street_name` = 'Dorton Pass', and `city` = 'Huangqiao'.\n5. Apply DISTINCT to the name columns to avoid duplicates, then return only `first_name` and `last_name`.", + "steps": [ + "Begin with the `customer` table, selecting `first_name` and `last_name` to form the full name.", + "Join `customer_address` on `customer_id` to link each customer to their address records.", + "Join `address` on `address_id` to access the street and city details.", + "Filter the address rows using the provided values: `street_number` = 55, `street_name` = 'Dorton Pass', and `city` = 'Huangqiao'.", + "Apply DISTINCT to the name columns to avoid duplicates, then return only `first_name` and `last_name`." + ] + }, + "revisql-train:6068": { + "raw": "1. Identify that the `address` table stores location details and the `country` table stores country names, with `country_id` as the common join key.\n2. Join `address` to `country` on `country_id` to associate each address with its country name.\n3. Filter the joined results to only rows where `country_name` equals 'Poland'.\n4. Apply the external knowledge that the term \"address\" maps to the columns `street_number`, `street_name`, and `city` in the `address` table.\n5. Return exactly those three columns from the `address` table for all matching rows, with no aggregation or ordering needed.", + "steps": [ + "Identify that the `address` table stores location details and the `country` table stores country names, with `country_id` as the common join key.", + "Join `address` to `country` on `country_id` to associate each address with its country name.", + "Filter the joined results to only rows where `country_name` equals 'Poland'.", + "Apply the external knowledge that the term \"address\" maps to the columns `street_number`, `street_name`, and `city` in the `address` table.", + "Return exactly those three columns from the `address` table for all matching rows, with no aggregation or ordering needed." + ] + }, + "revisql-train:6069": { + "raw": "1. Filter the customer table to the row where first_name is 'Nicolette' and last_name is 'Sadler'.\n2. Join that result to cust_order on customer_id to get the customer's orders.\n3. Filter cust_order to order_date = '2020-06-29 19:40:07', mapping the given 6/29/2020 7:40:07 PM to the database datetime format.\n4. Join cust_order to shipping_method on shipping_method_id = method_id.\n5. Return the method_name column from shipping_method.", + "steps": [ + "Filter the customer table to the row where first_name is 'Nicolette' and last_name is 'Sadler'.", + "Join that result to cust_order on customer_id to get the customer's orders.", + "Filter cust_order to order_date = '2020-06-29 19:40:07', mapping the given 6/29/2020 7:40:07 PM to the database datetime format.", + "Join cust_order to shipping_method on shipping_method_id = method_id.", + "Return the method_name column from shipping_method." + ] + }, + "revisql-train:6071": { + "raw": "1. Identify the `book` table, which holds the title and `language_id`, and the `book_language` table, which holds the human-readable `language_name`.\n2. Join `book` to `book_language` on the shared `language_id` key to map each book to its corresponding language.\n3. Filter the rows to keep only the record where the `title` equals 'El plan infinito', using the external knowledge that this string is the book title.\n4. Return the `language_name` column from the `book_language` table as the final answer.", + "steps": [ + "Identify the `book` table, which holds the title and `language_id`, and the `book_language` table, which holds the human-readable `language_name`.", + "Join `book` to `book_language` on the shared `language_id` key to map each book to its corresponding language.", + "Filter the rows to keep only the record where the `title` equals 'El plan infinito', using the external knowledge that this string is the book title.", + "Return the `language_name` column from the `book_language` table as the final answer." + ] + }, + "revisql-train:6072": { + "raw": "1. Join the book table to publisher on publisher_id, and left join through book_author to author on book_id and author_id so every book published by Viz Media remains in the result set even if it has no listed author.\n2. Filter to rows where publisher.publisher_name equals 'VIZ Media'.\n3. For the numerator, count distinct book_ids only where author.author_name is 'Hirohiko Araki'.\n4. For the denominator, count distinct book_ids across the entire filtered result to capture the total number of Viz Media books.\n5. Cast the numerator to a real number, multiply by 100.0, divide by the denominator, and return that single calculated value as the percentage column.", + "steps": [ + "Join the book table to publisher on publisher_id, and left join through book_author to author on book_id and author_id so every book published by Viz Media remains in the result set even if it has no listed author.", + "Filter to rows where publisher.publisher_name equals 'VIZ Media'.", + "For the numerator, count distinct book_ids only where author.author_name is 'Hirohiko Araki'.", + "For the denominator, count distinct book_ids across the entire filtered result to capture the total number of Viz Media books.", + "Cast the numerator to a real number, multiply by 100.0, divide by the denominator, and return that single calculated value as the percentage column." + ] + }, + "revisql-train:6076": { + "raw": "1. Join the book_author table to the author table on the author_id column to associate each book with its author's name.\n2. Filter the joined results by the author_name column equal to 'A.J. Ayer', applying the external knowledge.\n3. Count the number of matching rows to calculate the total books written by that author.\n4. Return the count.", + "steps": [ + "Join the book_author table to the author table on the author_id column to associate each book with its author's name.", + "Filter the joined results by the author_name column equal to 'A.J. Ayer', applying the external knowledge.", + "Count the number of matching rows to calculate the total books written by that author.", + "Return the count." + ] + }, + "revisql-train:6077": { + "raw": "1. Filter the author table to the single row where author_name matches 'A.J. Ayer' using the provided external knowledge.\n2. Join book_author to that author row on author_id to retrieve all associated book_ids for this author.\n3. Join the book table to those book_author rows on book_id to access the title column.\n4. Return only the title column from the book table as the final answer.", + "steps": [ + "Filter the author table to the single row where author_name matches 'A.J. Ayer' using the provided external knowledge.", + "Join book_author to that author row on author_id to retrieve all associated book_ids for this author.", + "Join the book table to those book_author rows on book_id to access the title column.", + "Return only the title column from the book table as the final answer." + ] + }, + "revisql-train:6078": { + "raw": "1. Use the book table and the publisher table, joining them on the shared publisher_id key to link each book to its publisher.\n2. Map the external knowledge to a filter on the book table's title column by matching the exact value The Season: A Candid Look at Broadway.\n3. Select and return only the publisher_name column from the publisher table.", + "steps": [ + "Use the book table and the publisher table, joining them on the shared publisher_id key to link each book to its publisher.", + "Map the external knowledge to a filter on the book table's title column by matching the exact value The Season: A Candid Look at Broadway.", + "Select and return only the publisher_name column from the publisher table." + ] + }, + "revisql-train:608": { + "raw": "1. Identify the Repo table to locate the target repository and the Solution table to access its contained solutions.\n2. Join Repo and Solution on Repo.Id = Solution.RepoId to link each repository to its solutions.\n3. Filter the results to only rows where Repo.Stars equals 8094.\n4. Count the number of matching Solution records by counting Solution.RepoId.\n5. Return only that single count value.", + "steps": [ + "Identify the Repo table to locate the target repository and the Solution table to access its contained solutions.", + "Join Repo and Solution on Repo.Id = Solution.RepoId to link each repository to its solutions.", + "Filter the results to only rows where Repo.Stars equals 8094.", + "Count the number of matching Solution records by counting Solution.RepoId.", + "Return only that single count value." + ] + }, + "revisql-train:6080": { + "raw": "1. Join the `book` table to the `publisher` table on `publisher_id` to link each book to its publisher name.\n2. Filter rows where `publisher_name` equals 'Free Press', applying the external knowledge that 'Free Press' maps to that column.\n3. Filter rows where the year extracted from `publication_date` falls between 1990 and 2000, applying the external knowledge date range to that column.\n4. Order the remaining rows by `num_pages` in descending order, applying the external knowledge that \"most number of pages\" maps to the maximum value in that column.\n5. Limit the result to the first row only to isolate the single book with the highest page count.\n6. Return only the `title` column from the `book` table.", + "steps": [ + "Join the `book` table to the `publisher` table on `publisher_id` to link each book to its publisher name.", + "Filter rows where `publisher_name` equals 'Free Press', applying the external knowledge that 'Free Press' maps to that column.", + "Filter rows where the year extracted from `publication_date` falls between 1990 and 2000, applying the external knowledge date range to that column.", + "Order the remaining rows by `num_pages` in descending order, applying the external knowledge that \"most number of pages\" maps to the maximum value in that column.", + "Limit the result to the first row only to isolate the single book with the highest page count.", + "Return only the `title` column from the `book` table." + ] + }, + "revisql-train:6082": { + "raw": "1. Start from the customer table and isolate the row where first_name equals 'Kandy'.\n2. Join customer_address on customer_id to connect the customer to their associated addresses.\n3. Use the external knowledge that \"current address\" corresponds to status_id = 1 in customer_address, and filter to keep only those rows.\n4. Join address on address_id to reach the actual address details.\n5. Return the columns street_number, street_name, and city from the address table, as these constitute the address per the external knowledge.", + "steps": [ + "Start from the customer table and isolate the row where first_name equals 'Kandy'.", + "Join customer_address on customer_id to connect the customer to their associated addresses.", + "Use the external knowledge that \"current address\" corresponds to status_id = 1 in customer_address, and filter to keep only those rows.", + "Join address on address_id to reach the actual address details.", + "Return the columns street_number, street_name, and city from the address table, as these constitute the address per the external knowledge." + ] + }, + "revisql-train:6085": { + "raw": "1. Filter the customer table to the row where the email column equals the external knowledge value \"rturbitt2@geocities.jp\".\n2. Join customer_address on customer_id to reach the customer's addresses, then keep only the active address by filtering status_id to 1.\n3. Join address on address_id to retrieve the country_id linked to that active address.\n4. Join country on country_id to map the identifier to the human-readable country_name column, since the question asks for the country.\n5. Return the country_name column as the final result.", + "steps": [ + "Filter the customer table to the row where the email column equals the external knowledge value \"rturbitt2@geocities.jp\".", + "Join customer_address on customer_id to reach the customer's addresses, then keep only the active address by filtering status_id to 1.", + "Join address on address_id to retrieve the country_id linked to that active address.", + "Join country on country_id to map the identifier to the human-readable country_name column, since the question asks for the country.", + "Return the country_name column as the final result." + ] + }, + "revisql-train:609": { + "raw": "1. Identify that the requested \"solution path\" corresponds to the `Path` column in the `Solution` table.\n2. Identify that the method name condition corresponds to the `Name` column in the `Method` table, using the exact value 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'.\n3. Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to associate each method with its solution.\n4. Filter the joined results to only rows where `Method.Name` equals 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'.\n5. Return only the `Path` column from the `Solution` table.", + "steps": [ + "Identify that the requested \"solution path\" corresponds to the `Path` column in the `Solution` table.", + "Identify that the method name condition corresponds to the `Name` column in the `Method` table, using the exact value 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'.", + "Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to associate each method with its solution.", + "Filter the joined results to only rows where `Method.Name` equals 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'.", + "Return only the `Path` column from the `Solution` table." + ] + }, + "revisql-train:6093": { + "raw": "1. Use the book table as the base and filter on its isbn13 column for the value 76092025986, applying the external knowledge that this number is an ISBN13.\n2. Join the publisher table to the book table with an inner join on publisher_id to reach the publisher’s details.\n3. Since the request is only for the publisher’s name, select the publisher_name column from the publisher table.\n4. No aggregation or ordering is needed; simply return that single column for the matching book record.", + "steps": [ + "Use the book table as the base and filter on its isbn13 column for the value 76092025986, applying the external knowledge that this number is an ISBN13.", + "Join the publisher table to the book table with an inner join on publisher_id to reach the publisher’s details.", + "Since the request is only for the publisher’s name, select the publisher_name column from the publisher table.", + "No aggregation or ordering is needed; simply return that single column for the matching book record." + ] + }, + "revisql-train:6096": { + "raw": "1. Map the requested attribute \"number of pages\" to the `num_pages` column in the `book` table using the external knowledge.\n2. Locate order ID 1167 in the `order_line` table via its `order_id` column.\n3. Join the `book` table with the `order_line` table on the shared `book_id` key to connect each order line to its book.\n4. Apply a filter requiring `order_line.order_id` to equal 1167.\n5. Return only the `num_pages` column from the `book` table.", + "steps": [ + "Map the requested attribute \"number of pages\" to the `num_pages` column in the `book` table using the external knowledge.", + "Locate order ID 1167 in the `order_line` table via its `order_id` column.", + "Join the `book` table with the `order_line` table on the shared `book_id` key to connect each order line to its book.", + "Apply a filter requiring `order_line.order_id` to equal 1167.", + "Return only the `num_pages` column from the `book` table." + ] + }, + "revisql-train:6097": { + "raw": "1. Identify the book table as the source for book titles and the book_language table as the source for language names.\n2. Join the book table to the book_language table on their shared language_id column.\n3. Filter the joined rows where the book_language.language_name column equals British English, applying the external knowledge that British English is a language_name value.\n4. Apply DISTINCT to the title column from the book table to ensure each book title appears only once in the results.\n5. Return only the title column.", + "steps": [ + "Identify the book table as the source for book titles and the book_language table as the source for language names.", + "Join the book table to the book_language table on their shared language_id column.", + "Filter the joined rows where the book_language.language_name column equals British English, applying the external knowledge that British English is a language_name value.", + "Apply DISTINCT to the title column from the book table to ensure each book title appears only once in the results.", + "Return only the title column." + ] + }, + "revisql-train:610": { + "raw": "1. Recognize that \"tokenized name\" refers to the `NameTokenized` column in the `Method` table and that \"processed time for its solution\" refers to `ProcessedTime` in the `Solution` table.\n2. Join the `Solution` table to the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent solution.\n3. Filter the `Method` rows to only those where `NameTokenized` equals `'interp parser expr'`.\n4. Return the `ProcessedTime` column from the matching `Solution` row.", + "steps": [ + "Recognize that \"tokenized name\" refers to the `NameTokenized` column in the `Method` table and that \"processed time for its solution\" refers to `ProcessedTime` in the `Solution` table.", + "Join the `Solution` table to the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent solution.", + "Filter the `Method` rows to only those where `NameTokenized` equals `'interp parser expr'`.", + "Return the `ProcessedTime` column from the matching `Solution` row." + ] + }, + "revisql-train:6102": { + "raw": "1. Start from the order_line table to access purchase prices, join it to cust_order on order_id to connect each item to its order, then join cust_order to customer on customer_id to reach buyer emails.\n2. Apply the price range filter on order_line.price using BETWEEN 3 AND 5 to capture only books priced from 3 to 5 dollars.\n3. Use DISTINCT to ensure each customer email appears only once, since one customer may have multiple qualifying purchases.\n4. Return the email column from the customer table.", + "steps": [ + "Start from the order_line table to access purchase prices, join it to cust_order on order_id to connect each item to its order, then join cust_order to customer on customer_id to reach buyer emails.", + "Apply the price range filter on order_line.price using BETWEEN 3 AND 5 to capture only books priced from 3 to 5 dollars.", + "Use DISTINCT to ensure each customer email appears only once, since one customer may have multiple qualifying purchases.", + "Return the email column from the customer table." + ] + }, + "revisql-train:611": { + "raw": "1. Identify that the requested \"repository number\" maps to the `RepoId` column in the `Solution` table.\n2. Note that the method constraint refers to the `Name` column in the `Method` table with the exact value `'SCore.Poisson.ngtIndex'`.\n3. Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to associate each method with its parent solution.\n4. Filter the joined rows to only those where `Method.Name` equals `'SCore.Poisson.ngtIndex'`.\n5. Return the single `RepoId` value from the matching `Solution` row.", + "steps": [ + "Identify that the requested \"repository number\" maps to the `RepoId` column in the `Solution` table.", + "Note that the method constraint refers to the `Name` column in the `Method` table with the exact value `'SCore.Poisson.ngtIndex'`.", + "Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to associate each method with its parent solution.", + "Filter the joined rows to only those where `Method.Name` equals `'SCore.Poisson.ngtIndex'`.", + "Return the single `RepoId` value from the matching `Solution` row." + ] + }, + "revisql-train:6112": { + "raw": "1. Filter the employee table to the record where first_name is 'Joshua' and last_name is 'Rosa'.\n2. Inner join the employee table with the inspection table on the employee_id key to link the employee to their inspections.\n3. Use the external knowledge that \"in 2010\" corresponds to inspection_date in the year 2010 and filter the joined results accordingly.\n4. Count the inspection_id values from the inspection table to compute the total number of inspections.\n5. Return the resulting count as the output column.", + "steps": [ + "Filter the employee table to the record where first_name is 'Joshua' and last_name is 'Rosa'.", + "Inner join the employee table with the inspection table on the employee_id key to link the employee to their inspections.", + "Use the external knowledge that \"in 2010\" corresponds to inspection_date in the year 2010 and filter the joined results accordingly.", + "Count the inspection_id values from the inspection table to compute the total number of inspections.", + "Return the resulting count as the output column." + ] + }, + "revisql-train:6113": { + "raw": "1. Filter the employee table to the single record where first_name is 'Joshua' and last_name is 'Rosa'.\n2. Join employee to inspection on employee_id to retrieve all inspections conducted by that employee.\n3. Join inspection to establishment on license_no to get the facility details for each of those inspections.\n4. Map the requested \"assumed name\" to the dba_name column in the establishment table.\n5. Select distinct dba_name values so each facility appears only once in the result.", + "steps": [ + "Filter the employee table to the single record where first_name is 'Joshua' and last_name is 'Rosa'.", + "Join employee to inspection on employee_id to retrieve all inspections conducted by that employee.", + "Join inspection to establishment on license_no to get the facility details for each of those inspections.", + "Map the requested \"assumed name\" to the dba_name column in the establishment table.", + "Select distinct dba_name values so each facility appears only once in the result." + ] + }, + "revisql-train:6115": { + "raw": "1. Identify that facility location coordinates are stored in the `establishment` table as `latitude` and `longitude`, while inspection dates are stored in the `inspection` table.\n2. Join `inspection` to `establishment` on the `license_no` key to link each inspection record to its corresponding facility.\n3. Filter the `inspection` records to only those with an `inspection_date` of '2010-05-11', applying the external knowledge that 2010/5/11 maps to this exact date value.\n4. Return the `latitude` and `longitude` columns from the `establishment` table as the final output.", + "steps": [ + "Identify that facility location coordinates are stored in the `establishment` table as `latitude` and `longitude`, while inspection dates are stored in the `inspection` table.", + "Join `inspection` to `establishment` on the `license_no` key to link each inspection record to its corresponding facility.", + "Filter the `inspection` records to only those with an `inspection_date` of '2010-05-11', applying the external knowledge that 2010/5/11 maps to this exact date value.", + "Return the `latitude` and `longitude` columns from the `establishment` table as the final output." + ] + }, + "revisql-train:6117": { + "raw": "1. Identify that full names require the first_name and last_name columns from the employee table.\n2. Filter the employee table to only rows where the title is 'Sanitarian'.\n3. Join the inspection table on employee_id to connect each sanitarian to the inspections they performed.\n4. Join the establishment table on license_no to identify the facility inspected in each record.\n5. Apply the external knowledge mapping that the facility \"Burbank\" corresponds to dba_name = 'Burbank' to filter the establishment records.\n6. Return distinct combinations of first_name and last_name so each sanitarian appears only once.", + "steps": [ + "Identify that full names require the first_name and last_name columns from the employee table.", + "Filter the employee table to only rows where the title is 'Sanitarian'.", + "Join the inspection table on employee_id to connect each sanitarian to the inspections they performed.", + "Join the establishment table on license_no to identify the facility inspected in each record.", + "Apply the external knowledge mapping that the facility \"Burbank\" corresponds to dba_name = 'Burbank' to filter the establishment records.", + "Return distinct combinations of first_name and last_name so each sanitarian appears only once." + ] + }, + "revisql-train:6118": { + "raw": "1. Map the external knowledge: \"assumed name\" refers to the `dba_name` column in the `establishment` table, \"failed an inspection\" means `results = 'Fail'` in the `inspection` table, and \"in 2010\" means the year portion of `inspection_date` is 2010.\n2. Join the `inspection` table with the `establishment` table on `license_no` to link each inspection record to its facility.\n3. Filter the joined data to include only rows where `results` equals `'Fail'` and `inspection_date` is in 2010.\n4. Because a facility may have multiple failed inspections in that year, deduplicate the output so each facility appears only once.\n5. Return exactly the `dba_name` column as the list of assumed names.", + "steps": [ + "Map the external knowledge: \"assumed name\" refers to the `dba_name` column in the `establishment` table, \"failed an inspection\" means `results = 'Fail'` in the `inspection` table, and \"in 2010\" means the year portion of `inspection_date` is 2010.", + "Join the `inspection` table with the `establishment` table on `license_no` to link each inspection record to its facility.", + "Filter the joined data to include only rows where `results` equals `'Fail'` and `inspection_date` is in 2010.", + "Because a facility may have multiple failed inspections in that year, deduplicate the output so each facility appears only once.", + "Return exactly the `dba_name` column as the list of assumed names." + ] + }, + "revisql-train:6121": { + "raw": "1. Join `establishment` to `inspection` (aliased as i1) on `license_no` to locate the facility where `dba_name` is 'Azha Restaurant Inc.'.\n2. Filter `i1` to the single inspection with `inspection_date` = '2010-01-21' and `results` = 'Pass'.\n3. Self-join `inspection` (aliased as i2) to `i1` by matching `i2.followup_to` to `i1.inspection_id` to find the follow-up record.\n4. Return only `i2.inspection_date` as the follow-up inspection date.", + "steps": [ + "Join `establishment` to `inspection` (aliased as i1) on `license_no` to locate the facility where `dba_name` is 'Azha Restaurant Inc.'.", + "Filter `i1` to the single inspection with `inspection_date` = '2010-01-21' and `results` = 'Pass'.", + "Self-join `inspection` (aliased as i2) to `i1` by matching `i2.followup_to` to `i1.inspection_id` to find the follow-up record.", + "Return only `i2.inspection_date` as the follow-up inspection date." + ] + }, + "revisql-train:6122": { + "raw": "1. Join the inspection table to the establishment table on license_no so that every inspection record carries its facility’s risk level.\n2. Filter inspection_date to the year 2010, applying the external knowledge that “in 2010” maps to that date column.\n3. Filter the joined rows to only those where the establishment’s risk_level equals 3, using the external knowledge that the most serious food safety issues correspond to risk_level 3.\n4. Count distinct license_no values to return the number of unique facilities that had at least one 2010 inspection and have the highest risk level.", + "steps": [ + "Join the inspection table to the establishment table on license_no so that every inspection record carries its facility’s risk level.", + "Filter inspection_date to the year 2010, applying the external knowledge that “in 2010” maps to that date column.", + "Filter the joined rows to only those where the establishment’s risk_level equals 3, using the external knowledge that the most serious food safety issues correspond to risk_level 3.", + "Count distinct license_no values to return the number of unique facilities that had at least one 2010 inspection and have the highest risk level." + ] + }, + "revisql-train:6136": { + "raw": "1. Group the inspection table by employee_id and count inspection_id to compute how many inspections each employee conducted.\n2. Compute the maximum value of those counts to determine the highest number of inspections performed.\n3. Isolate the employee_id(s) whose inspection count matches that maximum.\n4. Join those employee_id(s) with the employee table on employee_id.\n5. Return the salary column from the employee table.", + "steps": [ + "Group the inspection table by employee_id and count inspection_id to compute how many inspections each employee conducted.", + "Compute the maximum value of those counts to determine the highest number of inspections performed.", + "Isolate the employee_id(s) whose inspection count matches that maximum.", + "Join those employee_id(s) with the employee table on employee_id.", + "Return the salary column from the employee table." + ] + }, + "revisql-train:6137": { + "raw": "1. Filter the `establishment` table to rows where `risk_level` equals 3 and `facility_type` is 'TAVERN', applying the external knowledge mappings.\n2. Left join `inspection` to `establishment` on `license_no` so every risk level 3 tavern is retained, including those with no inspections.\n3. Group the joined results by `establishment.license_no` to aggregate per individual tavern.\n4. Count `inspection.inspection_id` within each group to obtain the inspection count for that specific license.\n5. In an outer query, compute the average of those per-tavern inspection counts.\n6. Return a single column named `avg_inspections_per_tavern` as the final result.", + "steps": [ + "Filter the `establishment` table to rows where `risk_level` equals 3 and `facility_type` is 'TAVERN', applying the external knowledge mappings.", + "Left join `inspection` to `establishment` on `license_no` so every risk level 3 tavern is retained, including those with no inspections.", + "Group the joined results by `establishment.license_no` to aggregate per individual tavern.", + "Count `inspection.inspection_id` within each group to obtain the inspection count for that specific license.", + "In an outer query, compute the average of those per-tavern inspection counts.", + "Return a single column named `avg_inspections_per_tavern` as the final result." + ] + }, + "revisql-train:6138": { + "raw": "1. Join the establishment table to the inspection table on license_no to link facility details with inspection records.\n2. Filter the joined rows to only those where establishment.dba_name equals 'POCKETS' and establishment.facility_type equals 'Restaurant', mapping the external knowledge for Pockets and Restaurant.\n3. Count inspection.inspection_id values where inspection.results equals 'Pass' to get the number of passed inspections.\n4. Count all inspection.inspection_id values in the filtered set to get the total number of inspections.\n5. Cast the passed inspection count to a real number, multiply by 100, and divide by the total inspection count to compute the pass rate percentage.\n6. Return exactly one column containing this calculated inspection pass rate percentage.", + "steps": [ + "Join the establishment table to the inspection table on license_no to link facility details with inspection records.", + "Filter the joined rows to only those where establishment.dba_name equals 'POCKETS' and establishment.facility_type equals 'Restaurant', mapping the external knowledge for Pockets and Restaurant.", + "Count inspection.inspection_id values where inspection.results equals 'Pass' to get the number of passed inspections.", + "Count all inspection.inspection_id values in the filtered set to get the total number of inspections.", + "Cast the passed inspection count to a real number, multiply by 100, and divide by the total inspection count to compute the pass rate percentage.", + "Return exactly one column containing this calculated inspection pass rate percentage." + ] + }, + "revisql-train:6140": { + "raw": "1. Identify the establishment table as the only source needed because it contains both the business identifier and the address; no joins are required.\n2. Map the user’s phrase “assumed name” to the dba_name column using the external knowledge.\n3. Map the location “2903 W Irving Park Rd” to a filter on the address column with the exact string '2903 W IRVING PARK RD ' provided in the external knowledge.\n4. Apply that address filter in the WHERE clause to restrict rows to the specified location.\n5. Return the dba_name column and use DISTINCT to output unique assumed names for that address.", + "steps": [ + "Identify the establishment table as the only source needed because it contains both the business identifier and the address; no joins are required.", + "Map the user’s phrase “assumed name” to the dba_name column using the external knowledge.", + "Map the location “2903 W Irving Park Rd” to a filter on the address column with the exact string '2903 W IRVING PARK RD ' provided in the external knowledge.", + "Apply that address filter in the WHERE clause to restrict rows to the specified location.", + "Return the dba_name column and use DISTINCT to output unique assumed names for that address." + ] + }, + "revisql-train:6141": { + "raw": "1. Query the employee table alone; no joins are needed.\n2. Return the columns first_name and last_name, which together form the full name per the external knowledge.\n3. Order the records by salary in ascending order so the employee with the lowest salary appears first.\n4. Restrict the output to the first row only to isolate that single employee.\n5. The final result must contain exactly first_name and last_name.", + "steps": [ + "Query the employee table alone; no joins are needed.", + "Return the columns first_name and last_name, which together form the full name per the external knowledge.", + "Order the records by salary in ascending order so the employee with the lowest salary appears first.", + "Restrict the output to the first row only to isolate that single employee.", + "The final result must contain exactly first_name and last_name." + ] + }, + "revisql-train:6145": { + "raw": "1. Join establishment to inspection on license_no to connect each facility with its inspection records.\n2. Filter for rows where establishment.dba_name is exactly 'RENALDI''S PIZZA' per the provided business name mapping.\n3. Compute the earliest inspection date by taking the minimum of inspection.inspection_date.\n4. Return that single minimum inspection_date value as the answer.", + "steps": [ + "Join establishment to inspection on license_no to connect each facility with its inspection records.", + "Filter for rows where establishment.dba_name is exactly 'RENALDI''S PIZZA' per the provided business name mapping.", + "Compute the earliest inspection date by taking the minimum of inspection.inspection_date.", + "Return that single minimum inspection_date value as the answer." + ] + }, + "revisql-train:6146": { + "raw": "1. Filter the inspection table to rows where inspection_date falls in March 2016.\n2. Group the filtered inspections by employee_id and count the number of inspections per employee.\n3. Order the grouped counts descending and keep only the top employee with the highest inspection count.\n4. Join that result to the employee table on employee_id.\n5. Return the first_name and last_name columns from the employee table.", + "steps": [ + "Filter the inspection table to rows where inspection_date falls in March 2016.", + "Group the filtered inspections by employee_id and count the number of inspections per employee.", + "Order the grouped counts descending and keep only the top employee with the highest inspection count.", + "Join that result to the employee table on employee_id.", + "Return the first_name and last_name columns from the employee table." + ] + }, + "revisql-train:6148": { + "raw": "1. Filter the employee table to the row where first_name equals 'David' and last_name equals 'Hodges'.\n2. Inner join the inspection table on employee_id to get all inspections performed by that employee.\n3. Filter the inspections to only those with inspection_type = 'Short Form Complaint' per the external knowledge mapping.\n4. Further filter to only inspections where results = 'Pass' per the external knowledge mapping.\n5. Count the distinct license_no values from the inspection table to return the number of unique businesses that passed at least once.", + "steps": [ + "Filter the employee table to the row where first_name equals 'David' and last_name equals 'Hodges'.", + "Inner join the inspection table on employee_id to get all inspections performed by that employee.", + "Filter the inspections to only those with inspection_type = 'Short Form Complaint' per the external knowledge mapping.", + "Further filter to only inspections where results = 'Pass' per the external knowledge mapping.", + "Count the distinct license_no values from the inspection table to return the number of unique businesses that passed at least once." + ] + }, + "revisql-train:6149": { + "raw": "1. Join establishment and inspection on license_no to link each business to its inspection records.\n2. Filter for rows where ward equals 42, inspection_date is between 2010-01-01 and 2015-12-31, and results is 'Fail'.\n3. Group by establishment.license_no to count failed inspections per individual business.\n4. Apply HAVING COUNT(*) >= 5 to retain only businesses with at least five failed inspections.\n5. Wrap the grouped result as a subquery and select COUNT(*) to return a single column containing the number of qualifying businesses.", + "steps": [ + "Join establishment and inspection on license_no to link each business to its inspection records.", + "Filter for rows where ward equals 42, inspection_date is between 2010-01-01 and 2015-12-31, and results is 'Fail'.", + "Group by establishment.license_no to count failed inspections per individual business.", + "Apply HAVING COUNT(*) >= 5 to retain only businesses with at least five failed inspections.", + "Wrap the grouped result as a subquery and select COUNT(*) to return a single column containing the number of qualifying businesses." + ] + }, + "revisql-train:6151": { + "raw": "1. Join establishment to inspection on license_no, then join violation on inspection_id to link each business’s assumed name to its violation fines.\n2. Filter to inspections where inspection_date falls in 2014.\n3. Group by dba_name and compute the sum of fine for each business.\n4. Order the grouped results by total fine descending and keep only the top record to isolate the highest total.\n5. Return the dba_name column from that single record.", + "steps": [ + "Join establishment to inspection on license_no, then join violation on inspection_id to link each business’s assumed name to its violation fines.", + "Filter to inspections where inspection_date falls in 2014.", + "Group by dba_name and compute the sum of fine for each business.", + "Order the grouped results by total fine descending and keep only the top record to isolate the highest total.", + "Return the dba_name column from that single record." + ] + }, + "revisql-train:6153": { + "raw": "1. Locate the target data in the violation table under the column inspector_comment.\n2. Map \"Taqueria La Fiesta\" to the establishment table's dba_name using the exact value 'TAQUERIA LA FIESTA'.\n3. Map the date \"1/25/2010\" to the inspection table's inspection_date using the exact value '2010-01-25'.\n4. Join establishment to inspection on license_no to connect the business to its inspections.\n5. Join inspection to violation on inspection_id to connect the inspection to its detailed comments.\n6. Filter by the mapped dba_name and inspection_date, and return only the inspector_comment column.", + "steps": [ + "Locate the target data in the violation table under the column inspector_comment.", + "Map \"Taqueria La Fiesta\" to the establishment table's dba_name using the exact value 'TAQUERIA LA FIESTA'.", + "Map the date \"1/25/2010\" to the inspection table's inspection_date using the exact value '2010-01-25'.", + "Join establishment to inspection on license_no to connect the business to its inspections.", + "Join inspection to violation on inspection_id to connect the inspection to its detailed comments.", + "Filter by the mapped dba_name and inspection_date, and return only the inspector_comment column." + ] + }, + "revisql-train:6154": { + "raw": "1. Join establishment to inspection on license_no, then join inspection to violation on inspection_id to link the facility and inspection date to its fines.\n2. Filter establishment.dba_name to exactly 'RON OF JAPAN INC'.\n3. Filter inspection.inspection_date to February 2014 by matching the year-month portion to '2014-02'.\n4. Sum the fine column from the violation table across all matching rows.\n5. Return that single total fine amount.", + "steps": [ + "Join establishment to inspection on license_no, then join inspection to violation on inspection_id to link the facility and inspection date to its fines.", + "Filter establishment.dba_name to exactly 'RON OF JAPAN INC'.", + "Filter inspection.inspection_date to February 2014 by matching the year-month portion to '2014-02'.", + "Sum the fine column from the violation table across all matching rows.", + "Return that single total fine amount." + ] + }, + "revisql-train:6159": { + "raw": "1. Target the employee table, as the question seeks an employee attribute tied to a physical address.\n2. Map the external knowledge to column filters: address = '7211 S Hermitage Ave', city = 'Chicago', and state = 'IL'.\n3. Apply all three location filters together with AND to isolate the specific employee record.\n4. Return only the last_name column from the matching row.", + "steps": [ + "Target the employee table, as the question seeks an employee attribute tied to a physical address.", + "Map the external knowledge to column filters: address = '7211 S Hermitage Ave', city = 'Chicago', and state = 'IL'.", + "Apply all three location filters together with AND to isolate the specific employee record.", + "Return only the last_name column from the matching row." + ] + }, + "revisql-train:6163": { + "raw": "1. Filter the establishment table to rows where dba_name equals 'PIZZA RUSTICA, INC.' using the external knowledge mapping.\n2. Join the inspection table to the filtered establishment records on the license_no column.\n3. Select the inspection_id column from the inspection table.\n4. Apply DISTINCT to the inspection_id values to return only unique inspection identifiers.", + "steps": [ + "Filter the establishment table to rows where dba_name equals 'PIZZA RUSTICA, INC.' using the external knowledge mapping.", + "Join the inspection table to the filtered establishment records on the license_no column.", + "Select the inspection_id column from the inspection table.", + "Apply DISTINCT to the inspection_id values to return only unique inspection identifiers." + ] + }, + "revisql-train:6164": { + "raw": "1. Filter the establishment table to only rows where facility_type equals 'Restaurant'.\n2. Restrict those establishments to the highest risk_level by matching against a subquery that selects MAX(risk_level) from establishment.\n3. Join the inspection table on license_no to link establishments to their inspection records.\n4. Keep only inspection rows where results equals 'Pass' to identify at least one passed inspection.\n5. Count distinct license_no values to return the number of unique restaurants meeting all criteria.", + "steps": [ + "Filter the establishment table to only rows where facility_type equals 'Restaurant'.", + "Restrict those establishments to the highest risk_level by matching against a subquery that selects MAX(risk_level) from establishment.", + "Join the inspection table on license_no to link establishments to their inspection records.", + "Keep only inspection rows where results equals 'Pass' to identify at least one passed inspection.", + "Count distinct license_no values to return the number of unique restaurants meeting all criteria." + ] + }, + "revisql-train:6167": { + "raw": "1. Join the establishment table to the inspection table on license_no to link each facility with its inspection records.\n2. Filter establishment using the external knowledge mappings: keep only rows where facility_type equals 'Restaurant' and risk_level equals the lowest level, which is 1.\n3. Filter inspection using the external knowledge mappings: keep only rows where inspection_type equals 'Complaint' and results equals 'Fail'.\n4. Count distinct establishment license_no values so each restaurant is counted only once.\n5. Return the resulting count of distinct license numbers as the answer column.", + "steps": [ + "Join the establishment table to the inspection table on license_no to link each facility with its inspection records.", + "Filter establishment using the external knowledge mappings: keep only rows where facility_type equals 'Restaurant' and risk_level equals the lowest level, which is 1.", + "Filter inspection using the external knowledge mappings: keep only rows where inspection_type equals 'Complaint' and results equals 'Fail'.", + "Count distinct establishment license_no values so each restaurant is counted only once.", + "Return the resulting count of distinct license numbers as the answer column." + ] + }, + "revisql-train:6168": { + "raw": "1. Filter the inspection table to the row where inspection_id equals 48216.\n2. Join establishment on license_no to retrieve the establishment’s address, city, and state, which together constitute the complete address.\n3. Join violation on inspection_id to collect every individual fine recorded for that inspection.\n4. Compute the total fine by summing the fine amounts from the violation table.\n5. Group by the establishment’s address, city, state, and zip to aggregate the fines correctly.\n6. Return the total fine along with the address, city, and state columns as the complete address.", + "steps": [ + "Filter the inspection table to the row where inspection_id equals 48216.", + "Join establishment on license_no to retrieve the establishment’s address, city, and state, which together constitute the complete address.", + "Join violation on inspection_id to collect every individual fine recorded for that inspection.", + "Compute the total fine by summing the fine amounts from the violation table.", + "Group by the establishment’s address, city, state, and zip to aggregate the fines correctly.", + "Return the total fine along with the address, city, and state columns as the complete address." + ] + }, + "revisql-train:6169": { + "raw": "1. Join inspection_point with violation on point_id to connect point definitions to specific inspection findings.\n2. Map the critical point level criterion to inspection_point.point_level = 'Critical'.\n3. Map the $500 fine criterion to violation.fine = 500.\n4. Map the inspector comment criterion to violation.inspector_comment = 'CDI ON 5-17-10'.\n5. Return violation.inspection_id.", + "steps": [ + "Join inspection_point with violation on point_id to connect point definitions to specific inspection findings.", + "Map the critical point level criterion to inspection_point.point_level = 'Critical'.", + "Map the $500 fine criterion to violation.fine = 500.", + "Map the inspector comment criterion to violation.inspector_comment = 'CDI ON 5-17-10'.", + "Return violation.inspection_id." + ] + }, + "revisql-train:617": { + "raw": "1. Map \"number of watchers\" to the `Watchers` column in `Repo`, and map \"solution No. 326689\" to `Solution.Id` = 326689 using the external knowledge.\n2. Join the `Repo` table with the `Solution` table on `Repo.Id` = `Solution.RepoId` to link each solution record to its parent repository.\n3. Filter the joined set to retain only the row where `Solution.Id` equals 326689.\n4. Return the single `Watchers` value from the matching `Repo` record.", + "steps": [ + "Map \"number of watchers\" to the `Watchers` column in `Repo`, and map \"solution No. 326689\" to `Solution.Id` = 326689 using the external knowledge.", + "Join the `Repo` table with the `Solution` table on `Repo.Id` = `Solution.RepoId` to link each solution record to its parent repository.", + "Filter the joined set to retain only the row where `Solution.Id` equals 326689.", + "Return the single `Watchers` value from the matching `Repo` record." + ] + }, + "revisql-train:6172": { + "raw": "1. Filter the inspection table for rows where results equals 'Fail' and collect the distinct license_no values to identify every establishment that failed an inspection.\n2. Join that set with the establishment table on license_no to retrieve the risk_level for each failed establishment.\n3. Determine the maximum risk_level found among those failed establishments.\n4. Divide the count of failed establishments whose risk_level equals that maximum by the total count of failed establishments, multiply the result by 100.0, and return it as a single column named percentage_highest_risk.", + "steps": [ + "Filter the inspection table for rows where results equals 'Fail' and collect the distinct license_no values to identify every establishment that failed an inspection.", + "Join that set with the establishment table on license_no to retrieve the risk_level for each failed establishment.", + "Determine the maximum risk_level found among those failed establishments.", + "Divide the count of failed establishments whose risk_level equals that maximum by the total count of failed establishments, multiply the result by 100.0, and return it as a single column named percentage_highest_risk." + ] + }, + "revisql-train:6173": { + "raw": "1. Filter the employee table to only rows where salary is between 75000 and 85000 inclusive, mapping the external knowledge salary range directly to the salary column.\n2. Join the filtered employees to the inspection table on employee_id, then join inspection to the violation table on inspection_id, to access each violation's fine amount.\n3. Group the joined results by employee_id so each employee is represented exactly once.\n4. For each employee, create binary indicators showing whether any of their violations have a fine equal to 100 and whether any have a fine equal to 500.\n5. Sum the fine-100 indicators across all employees, sum the fine-500 indicators across all employees, subtract the second sum from the first, and return the result as a single difference column.", + "steps": [ + "Filter the employee table to only rows where salary is between 75000 and 85000 inclusive, mapping the external knowledge salary range directly to the salary column.", + "Join the filtered employees to the inspection table on employee_id, then join inspection to the violation table on inspection_id, to access each violation's fine amount.", + "Group the joined results by employee_id so each employee is represented exactly once.", + "For each employee, create binary indicators showing whether any of their violations have a fine equal to 100 and whether any have a fine equal to 500.", + "Sum the fine-100 indicators across all employees, sum the fine-500 indicators across all employees, subtract the second sum from the first, and return the result as a single difference column." + ] + }, + "revisql-train:6175": { + "raw": "1. Start with the inspection table as the sole data source.\n2. Filter the results column to the value 'Fail', using the external knowledge that \"failed\" maps to that value.\n3. Filter the inspection_date column to the year 2014, using the external knowledge that \"in 2014\" maps to that date range.\n4. Count the inspection_id values across the rows meeting both filters.\n5. Return the count of inspection_id.", + "steps": [ + "Start with the inspection table as the sole data source.", + "Filter the results column to the value 'Fail', using the external knowledge that \"failed\" maps to that value.", + "Filter the inspection_date column to the year 2014, using the external knowledge that \"in 2014\" maps to that date range.", + "Count the inspection_id values across the rows meeting both filters.", + "Return the count of inspection_id." + ] + }, + "revisql-train:6177": { + "raw": "1. Identify that the date condition belongs to the `inspection` table while the requested `point_id` and `fine` values are stored in the `violation` table, so both tables are required.\n2. Join `inspection` with `violation` on the shared key `inspection_id` to associate each violation with its inspection date.\n3. Apply the filter by mapping the external knowledge to the `inspection_date` column, keeping only rows equal to '2010-08-07'.\n4. Return exactly the two columns `point_id` and `fine` from the violation side.", + "steps": [ + "Identify that the date condition belongs to the `inspection` table while the requested `point_id` and `fine` values are stored in the `violation` table, so both tables are required.", + "Join `inspection` with `violation` on the shared key `inspection_id` to associate each violation with its inspection date.", + "Apply the filter by mapping the external knowledge to the `inspection_date` column, keeping only rows equal to '2010-08-07'.", + "Return exactly the two columns `point_id` and `fine` from the violation side." + ] + }, + "revisql-train:6178": { + "raw": "1. Join the `violation` table to `inspection_point` on the `point_id` key to connect each violation with its category.\n2. Filter the joined rows to only those where `inspection_point.category` equals 'Personnel', applying the external knowledge mapping.\n3. Count distinct `inspection_id` values from the `violation` table so that inspections with multiple personnel violations are counted once.\n4. Return the single aggregated count column as the final result.", + "steps": [ + "Join the `violation` table to `inspection_point` on the `point_id` key to connect each violation with its category.", + "Filter the joined rows to only those where `inspection_point.category` equals 'Personnel', applying the external knowledge mapping.", + "Count distinct `inspection_id` values from the `violation` table so that inspections with multiple personnel violations are counted once.", + "Return the single aggregated count column as the final result." + ] + }, + "revisql-train:618": { + "raw": "1. Filter the Repo table to keep only rows where Stars equals 189.\n2. Left join Solution on Repo.Id = Solution.RepoId, restricting the join to rows where WasCompiled is 0 (indicating the solution needs to be compiled) so repositories with no such solutions are preserved.\n3. Group the joined results by Repo.Id.\n4. Count Solution.Id within each group to compute the number of solutions needing compilation.\n5. Return Repo.Id and the computed count as the two output columns.", + "steps": [ + "Filter the Repo table to keep only rows where Stars equals 189.", + "Left join Solution on Repo.Id = Solution.RepoId, restricting the join to rows where WasCompiled is 0 (indicating the solution needs to be compiled) so repositories with no such solutions are preserved.", + "Group the joined results by Repo.Id.", + "Count Solution.Id within each group to compute the number of solutions needing compilation.", + "Return Repo.Id and the computed count as the two output columns." + ] + }, + "revisql-train:6181": { + "raw": "1. Identify that facility names map to establishment.dba_name, inspection dates to inspection.inspection_date, and the inspector's name to employee.first_name and employee.last_name.\n2. Join establishment to inspection on license_no to connect facilities with their inspection records.\n3. Join inspection to employee on employee_id to connect each inspection to the responsible employee.\n4. Filter inspection_date to '2012-11-20' using the external knowledge mapping for 20th November 2012.\n5. Filter employee.first_name to 'Sarah' and employee.last_name to 'Lindsey' to isolate that inspector's records.\n6. Return distinct values of establishment.dba_name to list each inspected facility name only once.", + "steps": [ + "Identify that facility names map to establishment.dba_name, inspection dates to inspection.inspection_date, and the inspector's name to employee.first_name and employee.last_name.", + "Join establishment to inspection on license_no to connect facilities with their inspection records.", + "Join inspection to employee on employee_id to connect each inspection to the responsible employee.", + "Filter inspection_date to '2012-11-20' using the external knowledge mapping for 20th November 2012.", + "Filter employee.first_name to 'Sarah' and employee.last_name to 'Lindsey' to isolate that inspector's records.", + "Return distinct values of establishment.dba_name to list each inspected facility name only once." + ] + }, + "revisql-train:6182": { + "raw": "1. Filter the employee table to the single row where first_name is 'Lisa' and last_name is 'Tillman'.\n2. Join the inspection table on employee_id and restrict the results to inspections with an inspection_date in January 2014.\n3. Join the violation table on inspection_id to bring in the fine for each violation tied to those inspections.\n4. Join the inspection_point table on point_id to retrieve the category corresponding to each violation.\n5. Return distinct pairs of the category column from inspection_point and the fine column from violation.", + "steps": [ + "Filter the employee table to the single row where first_name is 'Lisa' and last_name is 'Tillman'.", + "Join the inspection table on employee_id and restrict the results to inspections with an inspection_date in January 2014.", + "Join the violation table on inspection_id to bring in the fine for each violation tied to those inspections.", + "Join the inspection_point table on point_id to retrieve the category corresponding to each violation.", + "Return distinct pairs of the category column from inspection_point and the fine column from violation." + ] + }, + "revisql-train:6185": { + "raw": "1. Use the external knowledge to locate the facility by filtering establishment.dba_name to 'JEAN SAMOCKI'.\n2. Join establishment to inspection on license_no to bring in the inspection results and employee_id.\n3. Join inspection to employee on employee_id to access the inspector's first_name and last_name.\n4. Return the inspector's first_name, last_name, and the corresponding inspection results.", + "steps": [ + "Use the external knowledge to locate the facility by filtering establishment.dba_name to 'JEAN SAMOCKI'.", + "Join establishment to inspection on license_no to bring in the inspection results and employee_id.", + "Join inspection to employee on employee_id to access the inspector's first_name and last_name.", + "Return the inspector's first_name, last_name, and the corresponding inspection results." + ] + }, + "revisql-train:620": { + "raw": "1. Map the tokenized name condition to the Method table, filtering NameTokenized to the exact value 't jadwal entity get single mpic'.\n2. Map the requested \"path time for its solution\" to the ProcessedTime column in the Solution table.\n3. Join Method to Solution on Method.SolutionId equal to Solution.Id.\n4. Return the ProcessedTime values from the Solution table for all matching rows.", + "steps": [ + "Map the tokenized name condition to the Method table, filtering NameTokenized to the exact value 't jadwal entity get single mpic'.", + "Map the requested \"path time for its solution\" to the ProcessedTime column in the Solution table.", + "Join Method to Solution on Method.SolutionId equal to Solution.Id.", + "Return the ProcessedTime values from the Solution table for all matching rows." + ] + }, + "revisql-train:6207": { + "raw": "1. Identify that \"full name\" maps to the first_name and last_name columns in the employee table, and \"license 1334073\" maps to license_no = 1334073 in the inspection table.\n2. Join the employee table to the inspection table on employee_id to link each inspector to the establishments they inspected.\n3. Filter the joined results to keep only rows where inspection.license_no equals 1334073.\n4. Apply DISTINCT to the output because a single employee may have performed multiple inspections for that establishment.\n5. Return the first_name and last_name columns as the final result.", + "steps": [ + "Identify that \"full name\" maps to the first_name and last_name columns in the employee table, and \"license 1334073\" maps to license_no = 1334073 in the inspection table.", + "Join the employee table to the inspection table on employee_id to link each inspector to the establishments they inspected.", + "Filter the joined results to keep only rows where inspection.license_no equals 1334073.", + "Apply DISTINCT to the output because a single employee may have performed multiple inspections for that establishment.", + "Return the first_name and last_name columns as the final result." + ] + }, + "revisql-train:621": { + "raw": "1. Map the requested \"repository ID\" to the `RepoId` column in the `Solution` table and the method identifier to the `Name` column in the `Method` table.\n2. Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent solution.\n3. Filter the `Method` rows where `Name` equals `'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal'`.\n4. Select `RepoId` from the `Solution` side of the join, using `DISTINCT` to avoid duplicate repository IDs.\n5. Return only the `RepoId` column as the final output.", + "steps": [ + "Map the requested \"repository ID\" to the `RepoId` column in the `Solution` table and the method identifier to the `Name` column in the `Method` table.", + "Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent solution.", + "Filter the `Method` rows where `Name` equals `'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal'`.", + "Select `RepoId` from the `Solution` side of the join, using `DISTINCT` to avoid duplicate repository IDs.", + "Return only the `RepoId` column as the final output." + ] + }, + "revisql-train:6221": { + "raw": "1. Use the `employee` table to locate staff records.\n2. Filter to the single row where `first_name` equals 'Jessica' and `last_name` equals 'Anthony'.\n3. Return the value in the `salary` column as the answer.", + "steps": [ + "Use the `employee` table to locate staff records.", + "Filter to the single row where `first_name` equals 'Jessica' and `last_name` equals 'Anthony'.", + "Return the value in the `salary` column as the answer." + ] + }, + "revisql-train:6226": { + "raw": "1. Use the `establishment` table because the question concerns facility risk levels.\n2. Determine the highest risk level by computing the maximum value of the `risk_level` column across all rows in that table.\n3. Filter the `establishment` rows to only those whose `risk_level` equals that maximum value.\n4. Count the number of rows that satisfy the filter to obtain the total.\n5. Return the resulting count as the single output column.", + "steps": [ + "Use the `establishment` table because the question concerns facility risk levels.", + "Determine the highest risk level by computing the maximum value of the `risk_level` column across all rows in that table.", + "Filter the `establishment` rows to only those whose `risk_level` equals that maximum value.", + "Count the number of rows that satisfy the filter to obtain the total.", + "Return the resulting count as the single output column." + ] + }, + "revisql-train:623": { + "raw": "1. Map the question’s “repository” to the Repo table and “solutions” to the Solution table.\n2. Join Repo to Solution on Repo.Id = Solution.RepoId to associate each repository with its solutions.\n3. Filter the results to only rows where Repo.Stars equals 3060.\n4. Count the number of Solution rows that satisfy the filter using Solution.RepoId.\n5. Return that single aggregated count.", + "steps": [ + "Map the question’s “repository” to the Repo table and “solutions” to the Solution table.", + "Join Repo to Solution on Repo.Id = Solution.RepoId to associate each repository with its solutions.", + "Filter the results to only rows where Repo.Stars equals 3060.", + "Count the number of Solution rows that satisfy the filter using Solution.RepoId.", + "Return that single aggregated count." + ] + }, + "revisql-train:624": { + "raw": "1. In the Method table, filter rows where Lang equals sw and group by SolutionId, counting rows per group to compute each solution's number of sw methods.\n2. Determine the maximum value among those per-solution counts to identify the highest number of sw methods.\n3. Join the Solution table to the grouped counts on Solution Id matching the count query's SolutionId.\n4. Keep only the solution or solutions where the per-solution count equals that maximum value.\n5. Return the Path column from the Solution table.", + "steps": [ + "In the Method table, filter rows where Lang equals sw and group by SolutionId, counting rows per group to compute each solution's number of sw methods.", + "Determine the maximum value among those per-solution counts to identify the highest number of sw methods.", + "Join the Solution table to the grouped counts on Solution Id matching the count query's SolutionId.", + "Keep only the solution or solutions where the per-solution count equals that maximum value.", + "Return the Path column from the Solution table." + ] + }, + "revisql-train:6251": { + "raw": "1. Join the `coins` table to the `historical` table on `coins.id = historical.coin_id`.\n2. Filter `coins.name` to the exact value `'Zetacoin'` using the provided entity mapping.\n3. Filter `historical.date` to the inclusive range between `'2013-11-01'` and `'2013-11-07'` to cover the specified week.\n4. Return the `price` column from the `historical` table.", + "steps": [ + "Join the `coins` table to the `historical` table on `coins.id = historical.coin_id`.", + "Filter `coins.name` to the exact value `'Zetacoin'` using the provided entity mapping.", + "Filter `historical.date` to the inclusive range between `'2013-11-01'` and `'2013-11-07'` to cover the specified week.", + "Return the `price` column from the `historical` table." + ] + }, + "revisql-train:6252": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id to pair each coin’s name with its daily transaction records.\n2. Filter the coins table to rows where the name equals 'WARP', applying the external knowledge that WRAP maps to that exact name value.\n3. Filter the historical table to August 2016 by matching the date column against the year-month value '2016-08'.\n4. Return the time_high and time_low columns from the historical table as the final answer fields.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id to pair each coin’s name with its daily transaction records.", + "Filter the coins table to rows where the name equals 'WARP', applying the external knowledge that WRAP maps to that exact name value.", + "Filter the historical table to August 2016 by matching the date column against the year-month value '2016-08'.", + "Return the time_high and time_low columns from the historical table as the final answer fields." + ] + }, + "revisql-train:6259": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id to link each coin to its price history.\n2. Group the joined results by coins.id so that aggregate calculations apply to each individual coin.\n3. Apply the external knowledge filter by keeping only groups where the average of historical.price is greater than 1000.\n4. Return exactly the status column from the coins table for the coins that meet this criterion.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id to link each coin to its price history.", + "Group the joined results by coins.id so that aggregate calculations apply to each individual coin.", + "Apply the external knowledge filter by keeping only groups where the average of historical.price is greater than 1000.", + "Return exactly the status column from the coins table for the coins that meet this criterion." + ] + }, + "revisql-train:6260": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id so that coin names can be paired with their transaction records.\n2. Compute the minimum value of historical.percent_change_1h across the entire historical table to capture the greatest decline.\n3. Filter the joined results to only those rows where historical.percent_change_1h equals that minimum value.\n4. Return coins.name and historical.date as the output columns.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id so that coin names can be paired with their transaction records.", + "Compute the minimum value of historical.percent_change_1h across the entire historical table to capture the greatest decline.", + "Filter the joined results to only those rows where historical.percent_change_1h equals that minimum value.", + "Return coins.name and historical.date as the output columns." + ] + }, + "revisql-train:6263": { + "raw": "1. Use the coins table for cryptocurrency names and the historical table for rank and date records.\n2. Join historical to coins on historical.coin_id matching coins.id.\n3. Filter the historical date to '2013-04-28' by mapping the question's date \"2013/4/28\".\n4. Filter for the top rank by mapping \"ranked the first\" to historical.cmc_rank equal to 1.\n5. Return only the name column from the coins table.", + "steps": [ + "Use the coins table for cryptocurrency names and the historical table for rank and date records.", + "Join historical to coins on historical.coin_id matching coins.id.", + "Filter the historical date to '2013-04-28' by mapping the question's date \"2013/4/28\".", + "Filter for the top rank by mapping \"ranked the first\" to historical.cmc_rank equal to 1.", + "Return only the name column from the coins table." + ] + }, + "revisql-train:6264": { + "raw": "1. Identify that the coins table holds the cryptocurrency name and the historical table holds the price and date records.\n2. Join historical to coins on coins.id = historical.coin_id to link the coin to its market data.\n3. Filter coins.name to 'Bitcoin' to isolate the requested cryptocurrency.\n4. Map the external knowledge date \"2013/4/28\" to the column historical.date using the value '2013-04-28' and filter on it.\n5. Return the historical.price column as the dollar worth on that date.", + "steps": [ + "Identify that the coins table holds the cryptocurrency name and the historical table holds the price and date records.", + "Join historical to coins on coins.id = historical.coin_id to link the coin to its market data.", + "Filter coins.name to 'Bitcoin' to isolate the requested cryptocurrency.", + "Map the external knowledge date \"2013/4/28\" to the column historical.date using the value '2013-04-28' and filter on it.", + "Return the historical.price column as the dollar worth on that date." + ] + }, + "revisql-train:6266": { + "raw": "1. Join the `coins` table to the `historical` table on `coins.id = historical.coin_id` to link each coin's name with its daily price records.\n2. Filter `coins` to the row where the `name` column equals 'Bitcoin'.\n3. Filter `historical` to the row where the `date` column equals '2013-04-29', converting the question's 2013/4/29 format to the ISO date value.\n4. Return only the `close` column from the `historical` table, since external knowledge maps \"price when it closed\" to that column.", + "steps": [ + "Join the `coins` table to the `historical` table on `coins.id = historical.coin_id` to link each coin's name with its daily price records.", + "Filter `coins` to the row where the `name` column equals 'Bitcoin'.", + "Filter `historical` to the row where the `date` column equals '2013-04-29', converting the question's 2013/4/29 format to the ISO date value.", + "Return only the `close` column from the `historical` table, since external knowledge maps \"price when it closed\" to that column." + ] + }, + "revisql-train:6273": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id to connect coin identities with their daily market data.\n2. Filter historical.date to exactly '2013-04-28' to match the specific day mentioned in the question.\n3. Filter coins.name to include only 'Bitcoin' and 'Litecoin' to limit the comparison to the two requested cryptocurrencies.\n4. Order the joined results by historical.circulating_supply in descending order, since the largest value corresponds to the bigger number of coins circulating in the market.\n5. Apply a limit of 1 to keep only the top record with the highest circulating supply.\n6. Return the coins.name column to output the name of the cryptocurrency that had the larger circulating supply on that date.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id to connect coin identities with their daily market data.", + "Filter historical.date to exactly '2013-04-28' to match the specific day mentioned in the question.", + "Filter coins.name to include only 'Bitcoin' and 'Litecoin' to limit the comparison to the two requested cryptocurrencies.", + "Order the joined results by historical.circulating_supply in descending order, since the largest value corresponds to the bigger number of coins circulating in the market.", + "Apply a limit of 1 to keep only the top record with the highest circulating supply.", + "Return the coins.name column to output the name of the cryptocurrency that had the larger circulating supply on that date." + ] + }, + "revisql-train:6274": { + "raw": "1. Map the phrase \"how much\" to the `price` column in the `historical` table and identify that the coin name is stored in the `coins` table.\n2. Join `coins` to `historical` on `coins.id = historical.coin_id` to connect the coin record to its daily data.\n3. Filter `coins.name` to the exact value `'Bitcoin'`.\n4. Filter `historical.date` to `'2013-04-28'` by mapping the asked date 2013/4/28 into the ISO date format used in the database.\n5. Return only the `price` column from the `historical` table as the final result.", + "steps": [ + "Map the phrase \"how much\" to the `price` column in the `historical` table and identify that the coin name is stored in the `coins` table.", + "Join `coins` to `historical` on `coins.id = historical.coin_id` to connect the coin record to its daily data.", + "Filter `coins.name` to the exact value `'Bitcoin'`.", + "Filter `historical.date` to `'2013-04-28'` by mapping the asked date 2013/4/28 into the ISO date format used in the database.", + "Return only the `price` column from the `historical` table as the final result." + ] + }, + "revisql-train:6284": { + "raw": "1. Join the coins table with the historical table on coins.id matching historical.coin_id to link each coin's name to its daily market records.\n2. Apply the date filter to the historical table using 2013-04-29 to isolate trading data from April 29, 2013.\n3. Apply the rank filter to the historical table using cmc_rank equal to 1 to capture only the top-ranked coin for that day.\n4. Return solely the name column from the coins table to answer which coin held the first rank.", + "steps": [ + "Join the coins table with the historical table on coins.id matching historical.coin_id to link each coin's name to its daily market records.", + "Apply the date filter to the historical table using 2013-04-29 to isolate trading data from April 29, 2013.", + "Apply the rank filter to the historical table using cmc_rank equal to 1 to capture only the top-ranked coin for that day.", + "Return solely the name column from the coins table to answer which coin held the first rank." + ] + }, + "revisql-train:6286": { + "raw": "1. Join the `coins` table to the `historical` table on `coins.id = historical.coin_id`.\n2. Map \"traded the highest total value in the past 24 hours\" to the maximum value of `historical.volume_24h` across all rows.\n3. Compute the global maximum `volume_24h` from the `historical` table.\n4. Filter the joined results to keep only rows where `historical.volume_24h` equals that computed maximum.\n5. Return the `name` column from the `coins` table.", + "steps": [ + "Join the `coins` table to the `historical` table on `coins.id = historical.coin_id`.", + "Map \"traded the highest total value in the past 24 hours\" to the maximum value of `historical.volume_24h` across all rows.", + "Compute the global maximum `volume_24h` from the `historical` table.", + "Filter the joined results to keep only rows where `historical.volume_24h` equals that computed maximum.", + "Return the `name` column from the `coins` table." + ] + }, + "revisql-train:6291": { + "raw": "1. Join the `coins` table to the `historical` table on `coins.id = historical.coin_id` to link each coin’s name with its daily trading record.\n2. Filter the `historical` rows to only those where `date` equals '2014-01-01'.\n3. Restrict the results to the top five coins by requiring `cmc_rank` to be less than or equal to 5.\n4. Return the `name` column from the `coins` table as the final output.", + "steps": [ + "Join the `coins` table to the `historical` table on `coins.id = historical.coin_id` to link each coin’s name with its daily trading record.", + "Filter the `historical` rows to only those where `date` equals '2014-01-01'.", + "Restrict the results to the top five coins by requiring `cmc_rank` to be less than or equal to 5.", + "Return the `name` column from the `coins` table as the final output." + ] + }, + "revisql-train:6294": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id to link each coin to its daily trading records.\n2. Filter the joined rows to only those where coins.name is 'Dogecoin'.\n3. Apply the external knowledge mapping that \"in June 2021\" corresponds to year(historical.date) = 2021 and month(historical.date) = 6.\n4. Aggregate the filtered rows by summing historical.volume_24h to compute the total value traded.\n5. Return the single resulting column: the sum of volume_24h.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id to link each coin to its daily trading records.", + "Filter the joined rows to only those where coins.name is 'Dogecoin'.", + "Apply the external knowledge mapping that \"in June 2021\" corresponds to year(historical.date) = 2021 and month(historical.date) = 6.", + "Aggregate the filtered rows by summing historical.volume_24h to compute the total value traded.", + "Return the single resulting column: the sum of volume_24h." + ] + }, + "revisql-train:6295": { + "raw": "1. Join the coins table to the historical table on coins.id = historical.coin_id to link each coin’s name with its daily price data.\n2. Filter the historical records to only April 28, 2013 by using date = '2013-04-28'.\n3. Compute the average price for that same day by aggregating the price column from historical where date is '2013-04-28'.\n4. Keep only those joined rows where the coin’s price on that date is strictly greater than the computed daily average price.\n5. Return the name column from the coins table for the coins that satisfy the above condition.", + "steps": [ + "Join the coins table to the historical table on coins.id = historical.coin_id to link each coin’s name with its daily price data.", + "Filter the historical records to only April 28, 2013 by using date = '2013-04-28'.", + "Compute the average price for that same day by aggregating the price column from historical where date is '2013-04-28'.", + "Keep only those joined rows where the coin’s price on that date is strictly greater than the computed daily average price.", + "Return the name column from the coins table for the coins that satisfy the above condition." + ] + }, + "revisql-train:6296": { + "raw": "1. Join the `coins` table with the `historical` table on `coins.id = historical.coin_id` to link each coin's name to its historical records.\n2. Filter the `historical` rows to only those with `date = '2013-05-29'`.\n3. Apply the price-increase condition by requiring `percent_change_1h > 0`, mapping the phrase \"higher than the price 1 hour ago\".\n4. Select the `name` column from the `coins` table to list the names of the qualifying coins.", + "steps": [ + "Join the `coins` table with the `historical` table on `coins.id = historical.coin_id` to link each coin's name to its historical records.", + "Filter the `historical` rows to only those with `date = '2013-05-29'`.", + "Apply the price-increase condition by requiring `percent_change_1h > 0`, mapping the phrase \"higher than the price 1 hour ago\".", + "Select the `name` column from the `coins` table to list the names of the qualifying coins." + ] + }, + "revisql-train:630": { + "raw": "1. Join the Repo and Solution tables on Repo.Id = Solution.RepoId to link each solution to its parent repository.\n2. Use a scalar subquery on Repo to find MAX(Forks), which identifies the repository with the most forks per the external knowledge.\n3. Filter the joined results to keep only rows where Repo.Forks equals that maximum forks value.\n4. Aggregate the filtered Solution rows by summing their ProcessedTime column to compute the total processed time.\n5. Return exactly that single aggregated sum of ProcessedTime as the final result.", + "steps": [ + "Join the Repo and Solution tables on Repo.Id = Solution.RepoId to link each solution to its parent repository.", + "Use a scalar subquery on Repo to find MAX(Forks), which identifies the repository with the most forks per the external knowledge.", + "Filter the joined results to keep only rows where Repo.Forks equals that maximum forks value.", + "Aggregate the filtered Solution rows by summing their ProcessedTime column to compute the total processed time.", + "Return exactly that single aggregated sum of ProcessedTime as the final result." + ] + }, + "revisql-train:6315": { + "raw": "1. Identify that product names reside in the Products table and that order line items reside in OrderDetails; join the two tables on ProductID.\n2. Filter OrderDetails to only rows where OrderID equals 10248, mapping the phrase \"order no.\" to the OrderID column.\n3. Apply DISTINCT to the product names to avoid duplicates in case the same product appears across multiple detail rows for that single order.\n4. Return only the ProductName column from the Products table.", + "steps": [ + "Identify that product names reside in the Products table and that order line items reside in OrderDetails; join the two tables on ProductID.", + "Filter OrderDetails to only rows where OrderID equals 10248, mapping the phrase \"order no.\" to the OrderID column.", + "Apply DISTINCT to the product names to avoid duplicates in case the same product appears across multiple detail rows for that single order.", + "Return only the ProductName column from the Products table." + ] + }, + "revisql-train:6318": { + "raw": "1. Identify that the answer requires the ProductName from the Products table, but the quantity information needed to determine the result is stored in the OrderDetails table.\n2. Filter OrderDetails to only rows where OrderID equals 10248, isolating the items in that specific order.\n3. Apply the external knowledge that \"highest quantity\" corresponds to the maximum Quantity value; sort the filtered OrderDetails rows by Quantity in descending order and keep only the top row to obtain the single ProductID with the highest quantity.\n4. Use that ProductID to look up the matching record in the Products table, linking the two tables on the ProductID key.\n5. Return exactly the ProductName column as the final result.", + "steps": [ + "Identify that the answer requires the ProductName from the Products table, but the quantity information needed to determine the result is stored in the OrderDetails table.", + "Filter OrderDetails to only rows where OrderID equals 10248, isolating the items in that specific order.", + "Apply the external knowledge that \"highest quantity\" corresponds to the maximum Quantity value; sort the filtered OrderDetails rows by Quantity in descending order and keep only the top row to obtain the single ProductID with the highest quantity.", + "Use that ProductID to look up the matching record in the Products table, linking the two tables on the ProductID key.", + "Return exactly the ProductName column as the final result." + ] + }, + "revisql-train:6341": { + "raw": "1. Start with the `Orders` table to locate the record for order No. 10385, mapping the question's \"order No.\" to the `OrderID` column.\n2. Join the `Shippers` table using the key `ShipperID` (`Orders.ShipperID = Shippers.ShipperID`) to access the shipper's company name.\n3. Apply a filter restricting the result to the row where `Orders.OrderID = 10385`.\n4. Return only the `ShipperName` column from the `Shippers` table as the answer.", + "steps": [ + "Start with the `Orders` table to locate the record for order No. 10385, mapping the question's \"order No.\" to the `OrderID` column.", + "Join the `Shippers` table using the key `ShipperID` (`Orders.ShipperID = Shippers.ShipperID`) to access the shipper's company name.", + "Apply a filter restricting the result to the row where `Orders.OrderID = 10385`.", + "Return only the `ShipperName` column from the `Shippers` table as the answer." + ] + }, + "revisql-train:6359": { + "raw": "1. Start from the Suppliers table; no joins are required.\n2. Filter the Country column to the value 'USA' using the external knowledge that United States of America maps to 'USA'.\n3. Aggregate by computing the count of SupplierID to answer \"how many.\"\n4. Return exactly one column: the count of SupplierID.", + "steps": [ + "Start from the Suppliers table; no joins are required.", + "Filter the Country column to the value 'USA' using the external knowledge that United States of America maps to 'USA'.", + "Aggregate by computing the count of SupplierID to answer \"how many.\"", + "Return exactly one column: the count of SupplierID." + ] + }, + "revisql-train:636": { + "raw": "1. Use the external knowledge to map \"repository id\" to the `RepoId` column in the `Solution` table and \"tokenized name\" to the `NameTokenized` column in the `Method` table.\n2. Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent repository.\n3. Filter the results to only the rows where `Method.NameTokenized` equals 'crc parameters get hash code'.\n4. Return the `RepoId` column from the `Solution` table.", + "steps": [ + "Use the external knowledge to map \"repository id\" to the `RepoId` column in the `Solution` table and \"tokenized name\" to the `NameTokenized` column in the `Method` table.", + "Join the `Solution` table with the `Method` table on `Solution.Id = Method.SolutionId` to link each method to its parent repository.", + "Filter the results to only the rows where `Method.NameTokenized` equals 'crc parameters get hash code'.", + "Return the `RepoId` column from the `Solution` table." + ] + }, + "revisql-train:6364": { + "raw": "1. Join Orders to Customers on CustomerID and to Shippers on ShipperID to link every order with its customer’s country and the shipping company that handled it.\n2. Map \"in the United States of America\" to the filter Customers.Country = 'USA' and \"shipping company\" to Shippers.ShipperName, since the schema stores country in Customers and company name in Shippers.\n3. Group the joined results by Shippers.ShipperName and count the number of orders for each company to measure how widely it is used.\n4. Use a subquery that repeats the same joins, USA filter, and grouping to compute the maximum order count across all shipping companies.\n5. In the main query, keep only those groups whose order count matches that subquery maximum to capture the most widely used shipper(s).\n6. Return exactly the ShipperName column.", + "steps": [ + "Join Orders to Customers on CustomerID and to Shippers on ShipperID to link every order with its customer’s country and the shipping company that handled it.", + "Map \"in the United States of America\" to the filter Customers.Country = 'USA' and \"shipping company\" to Shippers.ShipperName, since the schema stores country in Customers and company name in Shippers.", + "Group the joined results by Shippers.ShipperName and count the number of orders for each company to measure how widely it is used.", + "Use a subquery that repeats the same joins, USA filter, and grouping to compute the maximum order count across all shipping companies.", + "In the main query, keep only those groups whose order count matches that subquery maximum to capture the most widely used shipper(s).", + "Return exactly the ShipperName column." + ] + }, + "revisql-train:6365": { + "raw": "1. Identify that the Products and Suppliers tables share the SupplierID key, which links each product to its supplier.\n2. Join Products to Suppliers on SupplierID to bring supplier names together with product records.\n3. Filter the joined results to only rows where SupplierName equals 'Pavlova, Ltd.' using the external knowledge mapping.\n4. Apply COUNT(*) to count the number of product rows associated with that supplier.\n5. Return only the resulting count column.", + "steps": [ + "Identify that the Products and Suppliers tables share the SupplierID key, which links each product to its supplier.", + "Join Products to Suppliers on SupplierID to bring supplier names together with product records.", + "Filter the joined results to only rows where SupplierName equals 'Pavlova, Ltd.' using the external knowledge mapping.", + "Apply COUNT(*) to count the number of product rows associated with that supplier.", + "Return only the resulting count column." + ] + }, + "revisql-train:6371": { + "raw": "1. Map the phrase \"most unique products\" to counting distinct ProductID per supplier; because ProductID is the primary key of the Products table, this is equivalent to counting rows per SupplierID in Products.\n2. Join Suppliers to Products on SupplierID to associate each supplier's name with their products.\n3. Group the joined results by SupplierID to aggregate at the supplier level.\n4. In a subquery against Products, compute the row count per SupplierID, group by SupplierID, and take the maximum of those counts to find the highest number of products any supplier offers.\n5. Apply a HAVING clause in the main query to retain only the supplier(s) whose product count equals that maximum.\n6. Return only the SupplierName column.", + "steps": [ + "Map the phrase \"most unique products\" to counting distinct ProductID per supplier; because ProductID is the primary key of the Products table, this is equivalent to counting rows per SupplierID in Products.", + "Join Suppliers to Products on SupplierID to associate each supplier's name with their products.", + "Group the joined results by SupplierID to aggregate at the supplier level.", + "In a subquery against Products, compute the row count per SupplierID, group by SupplierID, and take the maximum of those counts to find the highest number of products any supplier offers.", + "Apply a HAVING clause in the main query to retain only the supplier(s) whose product count equals that maximum.", + "Return only the SupplierName column." + ] + }, + "revisql-train:638": { + "raw": "1. Map the requested \"solutions ids\" to the column `Solution.Id` based on the external knowledge.\n2. Join the `Repo` table to the `Solution` table on `Repo.Id` = `Solution.RepoId` to link each solution to its parent repository.\n3. Filter the joined rows where `Repo.ProcessedTime` equals 636430968896066073 to isolate the target repository.\n4. Return `Solution.Id` from the filtered results to list all solution ids belonging to that repository.", + "steps": [ + "Map the requested \"solutions ids\" to the column `Solution.Id` based on the external knowledge.", + "Join the `Repo` table to the `Solution` table on `Repo.Id` = `Solution.RepoId` to link each solution to its parent repository.", + "Filter the joined rows where `Repo.ProcessedTime` equals 636430968896066073 to isolate the target repository.", + "Return `Solution.Id` from the filtered results to list all solution ids belonging to that repository." + ] + }, + "revisql-train:6385": { + "raw": "1. Use only the Customers table; no joins are needed because all required fields and the filter condition exist in this single table.\n2. Map the phrase \"from Madrid\" to a WHERE clause on the City column with the exact value 'Madrid', per the external knowledge.\n3. Do not apply any aggregation or ordering; simply return the qualifying rows as-is.\n4. Return exactly three columns: CustomerName, ContactName, and Address.", + "steps": [ + "Use only the Customers table; no joins are needed because all required fields and the filter condition exist in this single table.", + "Map the phrase \"from Madrid\" to a WHERE clause on the City column with the exact value 'Madrid', per the external knowledge.", + "Do not apply any aggregation or ordering; simply return the qualifying rows as-is.", + "Return exactly three columns: CustomerName, ContactName, and Address." + ] + }, + "revisql-train:6393": { + "raw": "1. Join Products to OrderDetails on ProductID, then join OrderDetails to Orders on OrderID to make order dates available.\n2. Filter Orders.OrderDate to the 1997 calendar window: greater than or equal to '1997-01-01' and strictly less than '1998-01-01'.\n3. Order the rows by Products.Price in descending order to rank the most costly items first.\n4. Apply DISTINCT on ProductName so each product appears only once even if it was ordered multiple times in 1997.\n5. Limit the result to 5 rows and return only the ProductName column.", + "steps": [ + "Join Products to OrderDetails on ProductID, then join OrderDetails to Orders on OrderID to make order dates available.", + "Filter Orders.OrderDate to the 1997 calendar window: greater than or equal to '1997-01-01' and strictly less than '1998-01-01'.", + "Order the rows by Products.Price in descending order to rank the most costly items first.", + "Apply DISTINCT on ProductName so each product appears only once even if it was ordered multiple times in 1997.", + "Limit the result to 5 rows and return only the ProductName column." + ] + }, + "revisql-train:64": { + "raw": "1. Map the natural-language list name \"250 Favourite Films\" to the `list_title` column in the `lists` table and the requested \"avatar image\" to the `user_avatar_image_url` column in the `lists_users` table.\n2. Join the `lists` table with the `lists_users` table on both `list_id` and `user_id` to connect each list with the profile data of the user who created it.\n3. Filter the joined rows to keep only those where `list_title` equals exactly '250 Favourite Films'.\n4. Return solely the `user_avatar_image_url` column from the user-side table as the answer.", + "steps": [ + "Map the natural-language list name \"250 Favourite Films\" to the `list_title` column in the `lists` table and the requested \"avatar image\" to the `user_avatar_image_url` column in the `lists_users` table.", + "Join the `lists` table with the `lists_users` table on both `list_id` and `user_id` to connect each list with the profile data of the user who created it.", + "Filter the joined rows to keep only those where `list_title` equals exactly '250 Favourite Films'.", + "Return solely the `user_avatar_image_url` column from the user-side table as the answer." + ] + }, + "revisql-train:640": { + "raw": "1. Identify the two tables needed: Repo, to access the repository metrics, and Solution, to list the solution identifiers.\n2. Join Repo to Solution on Repo.Id = Solution.RepoId so that every solution is linked to its parent repository.\n3. Use the condition Repo.Forks > Repo.Watchers / 2 to filter for repositories where forks exceed half the watchers.\n4. Return distinct values of Solution.Id to list each qualifying solution once without duplicates.", + "steps": [ + "Identify the two tables needed: Repo, to access the repository metrics, and Solution, to list the solution identifiers.", + "Join Repo to Solution on Repo.Id = Solution.RepoId so that every solution is linked to its parent repository.", + "Use the condition Repo.Forks > Repo.Watchers / 2 to filter for repositories where forks exceed half the watchers.", + "Return distinct values of Solution.Id to list each qualifying solution once without duplicates." + ] + }, + "revisql-train:6403": { + "raw": "1. Join OrderDetails with Products on ProductID to match each ordered item with its unit price.\n2. Compute every line-item cost by multiplying Products.Price with OrderDetails.Quantity.\n3. Group by OrderID and sum those line-item costs to get the total price for each order.\n4. Apply MAX over the set of per-order totals to obtain the single highest value.\n5. Return the result in a column named highest_total.", + "steps": [ + "Join OrderDetails with Products on ProductID to match each ordered item with its unit price.", + "Compute every line-item cost by multiplying Products.Price with OrderDetails.Quantity.", + "Group by OrderID and sum those line-item costs to get the total price for each order.", + "Apply MAX over the set of per-order totals to obtain the single highest value.", + "Return the result in a column named highest_total." + ] + }, + "revisql-train:6413": { + "raw": "1. Join Customers to Orders on CustomerID, then to OrderDetails on OrderID, and finally to Products on ProductID to connect postal codes with product names and shipment quantities.\n2. Filter the joined data to keep only rows where Customers.PostalCode equals '28023'.\n3. Group the filtered rows by Products.ProductID (and its associated ProductName) to aggregate per product.\n4. Sum OrderDetails.Quantity within each group to compute total shipped quantity per product, applying the external definition that the least shipped product is the one with the minimum total quantity.\n5. Order the grouped results by that summed quantity in ascending order so the smallest total appears first.\n6. Limit the output to the first row and return only the Products.ProductName column.", + "steps": [ + "Join Customers to Orders on CustomerID, then to OrderDetails on OrderID, and finally to Products on ProductID to connect postal codes with product names and shipment quantities.", + "Filter the joined data to keep only rows where Customers.PostalCode equals '28023'.", + "Group the filtered rows by Products.ProductID (and its associated ProductName) to aggregate per product.", + "Sum OrderDetails.Quantity within each group to compute total shipped quantity per product, applying the external definition that the least shipped product is the one with the minimum total quantity.", + "Order the grouped results by that summed quantity in ascending order so the smallest total appears first.", + "Limit the output to the first row and return only the Products.ProductName column." + ] + }, + "revisql-train:6428": { + "raw": "1. Start with the `Orders` table because it holds the required order numbers in the `OrderID` column.\n2. Join the `Shippers` table to `Orders` using the `ShipperID` key present in both tables to bring in shipping company names.\n3. Use the external knowledge that \"Speedy Express\" is a shipper name by filtering where `ShipperName` equals 'Speedy Express'.\n4. Return only the `OrderID` column from `Orders` to list the matching order numbers.", + "steps": [ + "Start with the `Orders` table because it holds the required order numbers in the `OrderID` column.", + "Join the `Shippers` table to `Orders` using the `ShipperID` key present in both tables to bring in shipping company names.", + "Use the external knowledge that \"Speedy Express\" is a shipper name by filtering where `ShipperName` equals 'Speedy Express'.", + "Return only the `OrderID` column from `Orders` to list the matching order numbers." + ] + }, + "revisql-train:6437": { + "raw": "1. Select the `Suppliers` table alone; no joins are needed because both the supplier name and its representative are stored there.\n2. Map the phrase \"who is representing\" to the `ContactName` column using the external knowledge.\n3. Filter `SupplierName` to the exact company name provided in the external knowledge.\n4. Use no aggregation or ordering since the query returns a single representative for one supplier.\n5. Return only the `ContactName` column.", + "steps": [ + "Select the `Suppliers` table alone; no joins are needed because both the supplier name and its representative are stored there.", + "Map the phrase \"who is representing\" to the `ContactName` column using the external knowledge.", + "Filter `SupplierName` to the exact company name provided in the external knowledge.", + "Use no aggregation or ordering since the query returns a single representative for one supplier.", + "Return only the `ContactName` column." + ] + }, + "revisql-train:6451": { + "raw": "1. Filter the Customers table to rows where Address equals 'Grenzacherweg 237', applying the external address reference to the Customers.Address column.\n2. Join Orders to the filtered Customers on CustomerID to retrieve all orders placed by that customer location.\n3. Join OrderDetails to those Orders on OrderID to get the individual product lines for each order.\n4. Join Products to those OrderDetails on ProductID to obtain the corresponding product names.\n5. Return only the ProductName column, using DISTINCT to ensure each product is listed once.", + "steps": [ + "Filter the Customers table to rows where Address equals 'Grenzacherweg 237', applying the external address reference to the Customers.Address column.", + "Join Orders to the filtered Customers on CustomerID to retrieve all orders placed by that customer location.", + "Join OrderDetails to those Orders on OrderID to get the individual product lines for each order.", + "Join Products to those OrderDetails on ProductID to obtain the corresponding product names.", + "Return only the ProductName column, using DISTINCT to ensure each product is listed once." + ] + }, + "revisql-train:646": { + "raw": "1. Identify that the requested metric is the Stars count, which is stored in the Repo table.\n2. Map the phrase \"solution 20\" to a filter on Solution.Id equal to 20 using the external knowledge.\n3. Join Repo to Solution on Repo.Id = Solution.RepoId to link each solution to its corresponding repository.\n4. Restrict the results to only the row where Solution.Id is 20.\n5. Return the Stars column from Repo as the final answer.", + "steps": [ + "Identify that the requested metric is the Stars count, which is stored in the Repo table.", + "Map the phrase \"solution 20\" to a filter on Solution.Id equal to 20 using the external knowledge.", + "Join Repo to Solution on Repo.Id = Solution.RepoId to link each solution to its corresponding repository.", + "Restrict the results to only the row where Solution.Id is 20.", + "Return the Stars column from Repo as the final answer." + ] + }, + "revisql-train:6465": { + "raw": "1. Identify that product names are stored in the Products table and supplier names are stored in the Suppliers table.\n2. Join Products to Suppliers on the SupplierID foreign key to associate each product with its supplier.\n3. Map the external knowledge supplier name to the Suppliers.SupplierName column and filter for rows equal to 'Exotic Liquid'.\n4. Return only the ProductName column from the Products table as the final result.", + "steps": [ + "Identify that product names are stored in the Products table and supplier names are stored in the Suppliers table.", + "Join Products to Suppliers on the SupplierID foreign key to associate each product with its supplier.", + "Map the external knowledge supplier name to the Suppliers.SupplierName column and filter for rows equal to 'Exotic Liquid'.", + "Return only the ProductName column from the Products table as the final result." + ] + }, + "revisql-train:6472": { + "raw": "1. Map the external knowledge string \"10 boxes x 12 pieces\" to the `Unit` column in the `Products` table.\n2. Join `Products` with `Suppliers` on the `SupplierID` key to connect each product to its supplying company.\n3. Apply a filter requiring `Products.Unit` to exactly equal '10 boxes x 12 pieces'.\n4. Return only the `ContactName` column from the `Suppliers` table.", + "steps": [ + "Map the external knowledge string \"10 boxes x 12 pieces\" to the `Unit` column in the `Products` table.", + "Join `Products` with `Suppliers` on the `SupplierID` key to connect each product to its supplying company.", + "Apply a filter requiring `Products.Unit` to exactly equal '10 boxes x 12 pieces'.", + "Return only the `ContactName` column from the `Suppliers` table." + ] + }, + "revisql-train:6475": { + "raw": "1. Start from the OrderDetails table, which contains both ProductID and Quantity; no table joins are required.\n2. Group all rows by ProductID to aggregate order lines for each individual product.\n3. Sum the Quantity column within each group to compute the total number of quantities ordered per product.\n4. Order the grouped results by that summed quantity in descending order, applying the external knowledge that “descending in number of quantity ordered” means highest total first.\n5. Limit the result to the top 5 rows and return only the ProductID column.", + "steps": [ + "Start from the OrderDetails table, which contains both ProductID and Quantity; no table joins are required.", + "Group all rows by ProductID to aggregate order lines for each individual product.", + "Sum the Quantity column within each group to compute the total number of quantities ordered per product.", + "Order the grouped results by that summed quantity in descending order, applying the external knowledge that “descending in number of quantity ordered” means highest total first.", + "Limit the result to the top 5 rows and return only the ProductID column." + ] + }, + "revisql-train:6482": { + "raw": "1. Join OrderDetails to Products on ProductID, then join Products to Categories on CategoryID to link order quantities with product categories.\n2. Filter Categories.CategoryName to 'Seafood' using the external knowledge that Seafood is the target category name.\n3. Filter OrderDetails.Quantity to greater than 50 using the external knowledge that order quantity of more than 50 means Quantity > 50.\n4. Count distinct Products.ProductID to find how many unique seafood products have orders meeting the quantity threshold.\n5. Return only that single aggregated count of distinct ProductIDs.", + "steps": [ + "Join OrderDetails to Products on ProductID, then join Products to Categories on CategoryID to link order quantities with product categories.", + "Filter Categories.CategoryName to 'Seafood' using the external knowledge that Seafood is the target category name.", + "Filter OrderDetails.Quantity to greater than 50 using the external knowledge that order quantity of more than 50 means Quantity > 50.", + "Count distinct Products.ProductID to find how many unique seafood products have orders meeting the quantity threshold.", + "Return only that single aggregated count of distinct ProductIDs." + ] + }, + "revisql-train:649": { + "raw": "1. Identify that method names reside in the `Name` column of the Method table and solution paths reside in the `Path` column of the Solution table.\n2. Join the Solution table to the Method table on `Solution.Id = Method.SolutionId` to link each method to its containing solution.\n3. Filter the results to only rows where `Solution.Path` equals 'wallerdev_htmlsharp\\HtmlSharp.sln'.\n4. Return the `Name` column from the Method table as the final output.", + "steps": [ + "Identify that method names reside in the `Name` column of the Method table and solution paths reside in the `Path` column of the Solution table.", + "Join the Solution table to the Method table on `Solution.Id = Method.SolutionId` to link each method to its containing solution.", + "Filter the results to only rows where `Solution.Path` equals 'wallerdev_htmlsharp\\HtmlSharp.sln'.", + "Return the `Name` column from the Method table as the final output." + ] + }, + "revisql-train:6503": { + "raw": "1. Identify the Employees table as the source containing employee information.\n2. Map the request for \"full names\" to the FirstName and LastName columns per the external knowledge.\n3. Because the question asks for all employees, omit any filters or joins.\n4. Retrieve the FirstName and LastName columns from every row in the Employees table.", + "steps": [ + "Identify the Employees table as the source containing employee information.", + "Map the request for \"full names\" to the FirstName and LastName columns per the external knowledge.", + "Because the question asks for all employees, omit any filters or joins.", + "Retrieve the FirstName and LastName columns from every row in the Employees table." + ] + }, + "revisql-train:651": { + "raw": "1. Use the external knowledge to interpret \"solution 1\" as the row where Solution.Id equals 1.\n2. Identify that the requested address is stored in the Repo table under the Url column.\n3. Join Repo to Solution on Repo.Id = Solution.RepoId to connect each solution to its repository.\n4. Filter the joined set to keep only the row where Solution.Id = 1.\n5. Return exactly the Repo.Url column.", + "steps": [ + "Use the external knowledge to interpret \"solution 1\" as the row where Solution.Id equals 1.", + "Identify that the requested address is stored in the Repo table under the Url column.", + "Join Repo to Solution on Repo.Id = Solution.RepoId to connect each solution to its repository.", + "Filter the joined set to keep only the row where Solution.Id = 1.", + "Return exactly the Repo.Url column." + ] + }, + "revisql-train:6516": { + "raw": "1. Start with the Orders table, since order dates, customer IDs, and order counts are all available there without needing joins.\n2. Filter to August 1996 by mapping that phrase to OrderDate beginning with '1996-08%'.\n3. Group the filtered rows by CustomerID and count OrderID within each group to compute per-customer totals.\n4. Order those totals descending and keep only the first row, which maps the highest amount requirement to the maximum count.\n5. Return the count value from that top row as the final result.", + "steps": [ + "Start with the Orders table, since order dates, customer IDs, and order counts are all available there without needing joins.", + "Filter to August 1996 by mapping that phrase to OrderDate beginning with '1996-08%'.", + "Group the filtered rows by CustomerID and count OrderID within each group to compute per-customer totals.", + "Order those totals descending and keep only the first row, which maps the highest amount requirement to the maximum count.", + "Return the count value from that top row as the final result." + ] + }, + "revisql-train:6521": { + "raw": "1. Join OrderDetails to Orders on OrderID, to Products on ProductID, and Products to Categories on CategoryID to link order quantities with order dates and product categories.\n2. Use the external knowledge to filter Categories.CategoryName to exactly 'Condiments'.\n3. Use the external knowledge to filter Orders.OrderDate to the year 1997.\n4. Sum OrderDetails.Quantity to calculate the total number of condiments sold.\n5. Return a single column named total_condiments_sold containing that summed value.", + "steps": [ + "Join OrderDetails to Orders on OrderID, to Products on ProductID, and Products to Categories on CategoryID to link order quantities with order dates and product categories.", + "Use the external knowledge to filter Categories.CategoryName to exactly 'Condiments'.", + "Use the external knowledge to filter Orders.OrderDate to the year 1997.", + "Sum OrderDetails.Quantity to calculate the total number of condiments sold.", + "Return a single column named total_condiments_sold containing that summed value." + ] + }, + "revisql-train:6530": { + "raw": "1. Start from the Employees table and isolate the row where FirstName is 'Nancy' and LastName is 'Davolio'.\n2. Join Orders on EmployeeID to get all orders she handled, then keep only those with an OrderDate in December 1996.\n3. Join OrderDetails on OrderID to bring in the Quantity for each product line in those orders.\n4. Join Products on ProductID to bring in the Price for each corresponding line item.\n5. Compute the overall total by summing Price multiplied by Quantity across all resulting rows.\n6. Return that single aggregated value as total_sales.", + "steps": [ + "Start from the Employees table and isolate the row where FirstName is 'Nancy' and LastName is 'Davolio'.", + "Join Orders on EmployeeID to get all orders she handled, then keep only those with an OrderDate in December 1996.", + "Join OrderDetails on OrderID to bring in the Quantity for each product line in those orders.", + "Join Products on ProductID to bring in the Price for each corresponding line item.", + "Compute the overall total by summing Price multiplied by Quantity across all resulting rows.", + "Return that single aggregated value as total_sales." + ] + }, + "revisql-train:654": { + "raw": "1. Identify the need to query both the `Solution` table for the path and the `Method` table for the tokenized name filter.\n2. Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.\n3. Filter the rows by `Method.NameTokenized = 'html parser feed'`, applying the external knowledge that maps the phrase \"tokenized name\" to the `NameTokenized` column and the given value.\n4. Return only the `Path` column from the `Solution` table as the result.", + "steps": [ + "Identify the need to query both the `Solution` table for the path and the `Method` table for the tokenized name filter.", + "Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.", + "Filter the rows by `Method.NameTokenized = 'html parser feed'`, applying the external knowledge that maps the phrase \"tokenized name\" to the `NameTokenized` column and the given value.", + "Return only the `Path` column from the `Solution` table as the result." + ] + }, + "revisql-train:6541": { + "raw": "1. Start with the Customers table only; no joins are necessary because every required field and filter resides in this single table.\n2. Apply the external knowledge that \"in London\" maps to the City column, filtering for rows where City equals 'London'.\n3. Do not perform any aggregation or ordering since the question asks only for a simple filtered list.\n4. Return exactly the CustomerName and Address columns for the qualifying customers.", + "steps": [ + "Start with the Customers table only; no joins are necessary because every required field and filter resides in this single table.", + "Apply the external knowledge that \"in London\" maps to the City column, filtering for rows where City equals 'London'.", + "Do not perform any aggregation or ordering since the question asks only for a simple filtered list.", + "Return exactly the CustomerName and Address columns for the qualifying customers." + ] + }, + "revisql-train:6543": { + "raw": "1. Use the Customers table since the request is for customer information.\n2. Map the external knowledge phrase \"located in Canada\" to the Country column with the exact value 'Canada'.\n3. Retrieve the CustomerName and City columns for the final result set.\n4. Apply a filter on the Country column to return only rows equal to 'Canada'.", + "steps": [ + "Use the Customers table since the request is for customer information.", + "Map the external knowledge phrase \"located in Canada\" to the Country column with the exact value 'Canada'.", + "Retrieve the CustomerName and City columns for the final result set.", + "Apply a filter on the Country column to return only rows equal to 'Canada'." + ] + }, + "revisql-train:6547": { + "raw": "1. Identify that supplier information comes from the Suppliers table and product information comes from the Products table.\n2. Join Suppliers to Products on SupplierID to associate each product with its supplying company.\n3. Apply a filter on Suppliers.SupplierName equal to 'Escargots Nouveaux' per the external knowledge mapping.\n4. Return the ContactName column from Suppliers and the ProductName column from Products.", + "steps": [ + "Identify that supplier information comes from the Suppliers table and product information comes from the Products table.", + "Join Suppliers to Products on SupplierID to associate each product with its supplying company.", + "Apply a filter on Suppliers.SupplierName equal to 'Escargots Nouveaux' per the external knowledge mapping.", + "Return the ContactName column from Suppliers and the ProductName column from Products." + ] + }, + "revisql-train:656": { + "raw": "1. Join the Solution and Method tables on Solution.Id = Method.SolutionId to connect each method with its parent solution.\n2. Filter for english methods by applying Method.Lang = 'en' per the external knowledge mapping.\n3. Filter for solutions that do not need compilation by using Solution.WasCompiled = 1, since WasCompiled = 0 maps to solutions that need to be compiled.\n4. Return only the Method.NameTokenized column as the required tokenized names.", + "steps": [ + "Join the Solution and Method tables on Solution.Id = Method.SolutionId to connect each method with its parent solution.", + "Filter for english methods by applying Method.Lang = 'en' per the external knowledge mapping.", + "Filter for solutions that do not need compilation by using Solution.WasCompiled = 1, since WasCompiled = 0 maps to solutions that need to be compiled.", + "Return only the Method.NameTokenized column as the required tokenized names." + ] + }, + "revisql-train:6562": { + "raw": "1. Identify that OrderDetails and Products are needed, joined on ProductID, because quantity lives in OrderDetails and unit price lives in Products.\n2. Filter the joined rows to only those where OrderDetails.OrderID equals 10359.\n3. Map the external knowledge definition of total payment—SUM(UnitPrice × Quantity)—to the schema by using Products.Price as the unit price and OrderDetails.Quantity as the quantity.\n4. Compute the product of Price and Quantity for each row, then aggregate the results with SUM.\n5. Return the final aggregated value aliased as total_payment.", + "steps": [ + "Identify that OrderDetails and Products are needed, joined on ProductID, because quantity lives in OrderDetails and unit price lives in Products.", + "Filter the joined rows to only those where OrderDetails.OrderID equals 10359.", + "Map the external knowledge definition of total payment—SUM(UnitPrice × Quantity)—to the schema by using Products.Price as the unit price and OrderDetails.Quantity as the quantity.", + "Compute the product of Price and Quantity for each row, then aggregate the results with SUM.", + "Return the final aggregated value aliased as total_payment." + ] + }, + "revisql-train:6577": { + "raw": "1. Join Orders to OrderDetails on OrderID, then to Products on ProductID, and to Customers on CustomerID to connect each order line to its product price and customer name.\n2. Filter where Customers.CustomerName equals 'Around the Horn', applying the external knowledge that this string maps to the CustomerName column.\n3. Group by Orders.OrderID and compute each order's total value as the sum of OrderDetails.Quantity multiplied by Products.Price.\n4. Count the resulting orders to get the total number of orders, and compute the average of the per-order totals to get the average order value.\n5. Return the final two columns named total_orders and average_order_value.", + "steps": [ + "Join Orders to OrderDetails on OrderID, then to Products on ProductID, and to Customers on CustomerID to connect each order line to its product price and customer name.", + "Filter where Customers.CustomerName equals 'Around the Horn', applying the external knowledge that this string maps to the CustomerName column.", + "Group by Orders.OrderID and compute each order's total value as the sum of OrderDetails.Quantity multiplied by Products.Price.", + "Count the resulting orders to get the total number of orders, and compute the average of the per-order totals to get the average order value.", + "Return the final two columns named total_orders and average_order_value." + ] + }, + "revisql-train:659": { + "raw": "1. Join the Solution table to the Method table on Solution.Id = Method.SolutionId to link each method to its repository.\n2. Filter for rows where Solution.RepoId equals 3, applying the external knowledge that repository \"3\" maps to this RepoId value.\n3. Further filter for rows where Method.CommentIsXml equals 1, since XML-format comments correspond to that column value per the external knowledge.\n4. Count the Method.SolutionId values to tally the number of methods meeting both conditions.\n5. Return exactly one column: the resulting aggregate count.", + "steps": [ + "Join the Solution table to the Method table on Solution.Id = Method.SolutionId to link each method to its repository.", + "Filter for rows where Solution.RepoId equals 3, applying the external knowledge that repository \"3\" maps to this RepoId value.", + "Further filter for rows where Method.CommentIsXml equals 1, since XML-format comments correspond to that column value per the external knowledge.", + "Count the Method.SolutionId values to tally the number of methods meeting both conditions.", + "Return exactly one column: the resulting aggregate count." + ] + }, + "revisql-train:6602": { + "raw": "1. Left join Orders to OrderDetails on OrderID, group by Orders.OrderID, and compute each order’s total quantity as COALESCE(SUM(OrderDetails.Quantity), 0) so orders without details are kept as zero.\n2. Apply the external knowledge mapping that “order quantity less than 50” means the per-order SUM(Quantity) is under 50.\n3. In an outer query, count how many orders meet that < 50 condition, divide by the total number of orders with COUNT(*), multiply by 100.0, and cast the numerator to REAL to force decimal division.\n4. Return exactly one column named pct_orders_lt_50 containing the resulting percentage.", + "steps": [ + "Left join Orders to OrderDetails on OrderID, group by Orders.OrderID, and compute each order’s total quantity as COALESCE(SUM(OrderDetails.Quantity), 0) so orders without details are kept as zero.", + "Apply the external knowledge mapping that “order quantity less than 50” means the per-order SUM(Quantity) is under 50.", + "In an outer query, count how many orders meet that < 50 condition, divide by the total number of orders with COUNT(*), multiply by 100.0, and cast the numerator to REAL to force decimal division.", + "Return exactly one column named pct_orders_lt_50 containing the resulting percentage." + ] + }, + "revisql-train:6613": { + "raw": "1. Map the question's \"products\" to the ProductName column in the Products table, and recognize that \"suppliers\" connects via the SupplierID foreign key.\n2. Join Products to Suppliers on SupplierID to link each product with its supplier's country.\n3. Apply a filter on Suppliers.Country equal to 'Finland', using the external knowledge that Finland is a country value.\n4. Return only the ProductName column from the Products table.", + "steps": [ + "Map the question's \"products\" to the ProductName column in the Products table, and recognize that \"suppliers\" connects via the SupplierID foreign key.", + "Join Products to Suppliers on SupplierID to link each product with its supplier's country.", + "Apply a filter on Suppliers.Country equal to 'Finland', using the external knowledge that Finland is a country value.", + "Return only the ProductName column from the Products table." + ] + }, + "revisql-train:6618": { + "raw": "1. Start with OrderDetails and join to Orders on OrderID to link each order line to its parent order and customer.\n2. Join Customers on CustomerID to bring in the City column, since external knowledge maps cities to Customers.City.\n3. Join Products on ProductID to access the product name for filtering.\n4. Apply a filter on Products.ProductName equal to 'Mishi Kobe Niku', using the external knowledge that this is a product name.\n5. Select distinct values of Customers.City so each destination city appears only once in the result.", + "steps": [ + "Start with OrderDetails and join to Orders on OrderID to link each order line to its parent order and customer.", + "Join Customers on CustomerID to bring in the City column, since external knowledge maps cities to Customers.City.", + "Join Products on ProductID to access the product name for filtering.", + "Apply a filter on Products.ProductName equal to 'Mishi Kobe Niku', using the external knowledge that this is a product name.", + "Select distinct values of Customers.City so each destination city appears only once in the result." + ] + }, + "revisql-train:6629": { + "raw": "1. Start from the Customers table and filter to rows where Country equals 'Germany' to isolate customers from Germany.\n2. Join Orders on CustomerID, then OrderDetails on OrderID, then Products on ProductID to connect each German customer's orders to the products they ordered.\n3. Group the results by ProductID and ProductName so that order lines for the same product are aggregated together.\n4. Order the grouped results by the count of order details in descending order and keep only the first row to identify the most common product.\n5. Return the ProductName column as the final answer.", + "steps": [ + "Start from the Customers table and filter to rows where Country equals 'Germany' to isolate customers from Germany.", + "Join Orders on CustomerID, then OrderDetails on OrderID, then Products on ProductID to connect each German customer's orders to the products they ordered.", + "Group the results by ProductID and ProductName so that order lines for the same product are aggregated together.", + "Order the grouped results by the count of order details in descending order and keep only the first row to identify the most common product.", + "Return the ProductName column as the final answer." + ] + }, + "revisql-train:6640": { + "raw": "1. Identify that employee names reside in the Employees table as FirstName and LastName, and that the customer \"Victuailles en stock\" corresponds to CustomerName in the Customers table.\n2. Join Employees to Orders on EmployeeID to associate each employee with the orders they manage.\n3. Join Orders to Customers on CustomerID to bring the customer name into the result for filtering.\n4. Filter the rows to keep only those where CustomerName equals 'Victuailles en stock'.\n5. Return the FirstName and LastName columns from Employees, using DISTINCT to list each managing employee only once.", + "steps": [ + "Identify that employee names reside in the Employees table as FirstName and LastName, and that the customer \"Victuailles en stock\" corresponds to CustomerName in the Customers table.", + "Join Employees to Orders on EmployeeID to associate each employee with the orders they manage.", + "Join Orders to Customers on CustomerID to bring the customer name into the result for filtering.", + "Filter the rows to keep only those where CustomerName equals 'Victuailles en stock'.", + "Return the FirstName and LastName columns from Employees, using DISTINCT to list each managing employee only once." + ] + }, + "revisql-train:6650": { + "raw": "1. Start from the Orders table and join OrderDetails on OrderID, then join Products on ProductID, and finally join Suppliers on SupplierID to connect the order date to the supplying companies.\n2. Apply the filter that 14 August 1996 maps to the Orders.OrderDate column, keeping only rows for that specific date.\n3. Use DISTINCT on the supplier names since one supplier may have provided multiple products within the same order.\n4. Return only the SupplierName column from the Suppliers table.", + "steps": [ + "Start from the Orders table and join OrderDetails on OrderID, then join Products on ProductID, and finally join Suppliers on SupplierID to connect the order date to the supplying companies.", + "Apply the filter that 14 August 1996 maps to the Orders.OrderDate column, keeping only rows for that specific date.", + "Use DISTINCT on the supplier names since one supplier may have provided multiple products within the same order.", + "Return only the SupplierName column from the Suppliers table." + ] + }, + "revisql-train:6659": { + "raw": "1. Identify that the question asks for an employee's name, which per the external knowledge corresponds to the FirstName and LastName columns in the Employees table.\n2. Locate order handling data in the Orders table, which contains OrderID and the linking key EmployeeID.\n3. Join Employees to Orders using the EmployeeID foreign key relationship to associate each order with its employee.\n4. Filter the result to the single row where Orders.OrderID is 10270.\n5. Return the FirstName and LastName columns from the Employees table.", + "steps": [ + "Identify that the question asks for an employee's name, which per the external knowledge corresponds to the FirstName and LastName columns in the Employees table.", + "Locate order handling data in the Orders table, which contains OrderID and the linking key EmployeeID.", + "Join Employees to Orders using the EmployeeID foreign key relationship to associate each order with its employee.", + "Filter the result to the single row where Orders.OrderID is 10270.", + "Return the FirstName and LastName columns from the Employees table." + ] + }, + "revisql-train:6661": { + "raw": "1. Start with the Orders table since it holds the OrderID to look up.\n2. Join the Customers table on CustomerID to access the customer's location data.\n3. Filter the result to only the row where OrderID equals 10276.\n4. Return the Country column from the Customers table.", + "steps": [ + "Start with the Orders table since it holds the OrderID to look up.", + "Join the Customers table on CustomerID to access the customer's location data.", + "Filter the result to only the row where OrderID equals 10276.", + "Return the Country column from the Customers table." + ] + }, + "revisql-train:6668": { + "raw": "1. Start with the Orders table and join it to Shippers on the ShipperID key to connect each order to its shipper name.\n2. Filter the joined rows using the external knowledge that \"United Package\" maps to ShipperName = 'United Package'.\n3. Apply COUNT(*) to aggregate the surviving rows into a total number of orders.\n4. Return the single resulting count column.", + "steps": [ + "Start with the Orders table and join it to Shippers on the ShipperID key to connect each order to its shipper name.", + "Filter the joined rows using the external knowledge that \"United Package\" maps to ShipperName = 'United Package'.", + "Apply COUNT(*) to aggregate the surviving rows into a total number of orders.", + "Return the single resulting count column." + ] + }, + "revisql-train:6673": { + "raw": "1. Target the `orders` table because both the order comment and total price are stored there.\n2. Map \"comment of the order\" to the `o_comment` column and \"highest total price\" to the maximum value of `o_totalprice`.\n3. Compute the maximum `o_totalprice` across all rows in `orders` using an aggregate subquery.\n4. Filter the `orders` table to retain only the row(s) where `o_totalprice` equals that computed maximum.\n5. Return only the `o_comment` value for the matching order(s).", + "steps": [ + "Target the `orders` table because both the order comment and total price are stored there.", + "Map \"comment of the order\" to the `o_comment` column and \"highest total price\" to the maximum value of `o_totalprice`.", + "Compute the maximum `o_totalprice` across all rows in `orders` using an aggregate subquery.", + "Filter the `orders` table to retain only the row(s) where `o_totalprice` equals that computed maximum.", + "Return only the `o_comment` value for the matching order(s)." + ] + }, + "revisql-train:6696": { + "raw": "1. Join the `orders` table to the `lineitem` table on `o_orderkey` = `l_orderkey` to link each order to its line items.\n2. Filter for the specific order by requiring `o_totalprice` = 218195.43, mapping the question's target total price to the orders column.\n3. Filter for returned items only by requiring `l_returnflag` = 'R', applying the external knowledge mapping for returned items.\n4. Return the `l_suppkey` column from `lineitem`, which corresponds to the supplier id requested.", + "steps": [ + "Join the `orders` table to the `lineitem` table on `o_orderkey` = `l_orderkey` to link each order to its line items.", + "Filter for the specific order by requiring `o_totalprice` = 218195.43, mapping the question's target total price to the orders column.", + "Filter for returned items only by requiring `l_returnflag` = 'R', applying the external knowledge mapping for returned items.", + "Return the `l_suppkey` column from `lineitem`, which corresponds to the supplier id requested." + ] + }, + "revisql-train:670": { + "raw": "1. Filter the Method table to rows where NameTokenized begins with 'query language%', applying the external knowledge that \"tokenized name\" maps to the NameTokenized column.\n2. Join the filtered methods with the Solution table on Solution.Id = Method.SolutionId to attach the repository identifier RepoId to each matching method.\n3. Group the joined results by RepoId to aggregate methods that reside in the same repository.\n4. Restrict the groups with a HAVING clause requiring more than one matching method per repository, ensuring the methods share the tokenized name within that repository.\n5. In an outer query, sum the per-repository counts to return a single aggregated value representing the total number of qualifying methods.", + "steps": [ + "Filter the Method table to rows where NameTokenized begins with 'query language%', applying the external knowledge that \"tokenized name\" maps to the NameTokenized column.", + "Join the filtered methods with the Solution table on Solution.Id = Method.SolutionId to attach the repository identifier RepoId to each matching method.", + "Group the joined results by RepoId to aggregate methods that reside in the same repository.", + "Restrict the groups with a HAVING clause requiring more than one matching method per repository, ensuring the methods share the tokenized name within that repository.", + "In an outer query, sum the per-repository counts to return a single aggregated value representing the total number of qualifying methods." + ] + }, + "revisql-train:6704": { + "raw": "1. Identify that the highest debt corresponds to the most negative account balance, which is the minimum value of `c_acctbal` in the customer table.\n2. Compute the minimum `c_acctbal` across all rows in the customer table to find the highest debt amount.\n3. Filter the customer table to the row or rows where `c_acctbal` equals that minimum value.\n4. Return the `c_name` column from the filtered result.", + "steps": [ + "Identify that the highest debt corresponds to the most negative account balance, which is the minimum value of `c_acctbal` in the customer table.", + "Compute the minimum `c_acctbal` across all rows in the customer table to find the highest debt amount.", + "Filter the customer table to the row or rows where `c_acctbal` equals that minimum value.", + "Return the `c_name` column from the filtered result." + ] + }, + "revisql-train:6708": { + "raw": "1. Use only the customer table; no joins are necessary.\n2. Filter rows where c_mktsegment equals 'AUTOMOBILE' per the external knowledge mapping.\n3. Count the customer keys using c_custkey to compute the total.\n4. Return the single aggregated count column.", + "steps": [ + "Use only the customer table; no joins are necessary.", + "Filter rows where c_mktsegment equals 'AUTOMOBILE' per the external knowledge mapping.", + "Count the customer keys using c_custkey to compute the total.", + "Return the single aggregated count column." + ] + }, + "revisql-train:6710": { + "raw": "1. Map the question's concepts using the external knowledge: interpret \"highest amount of total price\" as the maximum value of `o_totalprice` in the `orders` table, and \"when shipped\" as the `l_shipdate` column in the `lineitem` table.\n2. Aggregate the `orders` table with `MAX(o_totalprice)` to find the single highest total price value.\n3. Filter the `orders` table to retrieve the `o_orderkey`(s) whose `o_totalprice` equals that maximum value.\n4. Use those `o_orderkey`(s) to filter the `lineitem` table by matching `l_orderkey` to the identified order key(s).\n5. Return the `l_shipdate` column from the qualifying `lineitem` rows as the final answer.", + "steps": [ + "Map the question's concepts using the external knowledge: interpret \"highest amount of total price\" as the maximum value of `o_totalprice` in the `orders` table, and \"when shipped\" as the `l_shipdate` column in the `lineitem` table.", + "Aggregate the `orders` table with `MAX(o_totalprice)` to find the single highest total price value.", + "Filter the `orders` table to retrieve the `o_orderkey`(s) whose `o_totalprice` equals that maximum value.", + "Use those `o_orderkey`(s) to filter the `lineitem` table by matching `l_orderkey` to the identified order key(s).", + "Return the `l_shipdate` column from the qualifying `lineitem` rows as the final answer." + ] + }, + "revisql-train:6725": { + "raw": "1. Use the orders table exclusively because order dates and total prices are both stored there and no joins are required.\n2. Map the phrase \"highest total price\" to the maximum value of the o_totalprice column by computing MAX(o_totalprice) in a subquery against the same orders table.\n3. Filter the orders table to keep only rows where o_totalprice equals that maximum value returned by the subquery.\n4. Return only the o_orderdate column for the matching rows.", + "steps": [ + "Use the orders table exclusively because order dates and total prices are both stored there and no joins are required.", + "Map the phrase \"highest total price\" to the maximum value of the o_totalprice column by computing MAX(o_totalprice) in a subquery against the same orders table.", + "Filter the orders table to keep only rows where o_totalprice equals that maximum value returned by the subquery.", + "Return only the o_orderdate column for the matching rows." + ] + }, + "revisql-train:6727": { + "raw": "1. Focus on the partsupp table because it stores stock availability for every part supply.\n2. Apply the external knowledge mapping \"nearly out of stock\" to the filter condition ps_availqty < 10.\n3. Aggregate by computing a count of distinct ps_suppkey values from the rows meeting that condition.\n4. Return that single aggregated count as the only output column.", + "steps": [ + "Focus on the partsupp table because it stores stock availability for every part supply.", + "Apply the external knowledge mapping \"nearly out of stock\" to the filter condition ps_availqty < 10.", + "Aggregate by computing a count of distinct ps_suppkey values from the rows meeting that condition.", + "Return that single aggregated count as the only output column." + ] + }, + "revisql-train:6728": { + "raw": "1. Query the `part` table exclusively; no joins are needed because the manufacturer and part identifier are both in this table.\n2. Map the external knowledge to the `p_mfgr` column, isolating rows equal to 'Manufacturer#3', and to `p_partkey` for counting both the filtered subset and the full set.\n3. Aggregate by counting all `p_partkey` values for the total denominator, and summing an indicator for rows where `p_mfgr = 'Manufacturer#3'` to get the numerator.\n4. Compute the percentage as the numerator multiplied by 100 and divided by the denominator, casting the numerator to a real type to ensure decimal division.\n5. Return a single column containing the final computed percentage value.", + "steps": [ + "Query the `part` table exclusively; no joins are needed because the manufacturer and part identifier are both in this table.", + "Map the external knowledge to the `p_mfgr` column, isolating rows equal to 'Manufacturer#3', and to `p_partkey` for counting both the filtered subset and the full set.", + "Aggregate by counting all `p_partkey` values for the total denominator, and summing an indicator for rows where `p_mfgr = 'Manufacturer#3'` to get the numerator.", + "Compute the percentage as the numerator multiplied by 100 and divided by the denominator, casting the numerator to a real type to ensure decimal division.", + "Return a single column containing the final computed percentage value." + ] + }, + "revisql-train:6729": { + "raw": "1. Start from the `part` table because the request only requires part attributes and no joins are necessary.\n2. Use the external knowledge that the phrase \"Medium Plated Brass\" maps to the exact string value in the `p_type` column.\n3. Use the external knowledge that \"parts name\" maps to the `p_name` column.\n4. Filter rows with the predicate that `p_type` equals 'MEDIUM PLATED BRASS'.\n5. Project and return only the `p_name` column in the result.", + "steps": [ + "Start from the `part` table because the request only requires part attributes and no joins are necessary.", + "Use the external knowledge that the phrase \"Medium Plated Brass\" maps to the exact string value in the `p_type` column.", + "Use the external knowledge that \"parts name\" maps to the `p_name` column.", + "Filter rows with the predicate that `p_type` equals 'MEDIUM PLATED BRASS'.", + "Project and return only the `p_name` column in the result." + ] + }, + "revisql-train:6736": { + "raw": "1. Filter the part table to rows where p_name equals 'chocolate floral blue coral cyan'.\n2. Join partsupp on part.p_partkey = partsupp.ps_partkey to retrieve the supply cost for each part-supplier pair.\n3. Join lineitem on partsupp.ps_partkey = lineitem.l_partkey and partsupp.ps_suppkey = lineitem.l_suppkey to match actual sales quantities and prices.\n4. Map the external knowledge profit formula to columns by calculating l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity for each line item row.\n5. Sum that profit expression across all joined and filtered rows.\n6. Return exactly one column containing the aggregated total profit.", + "steps": [ + "Filter the part table to rows where p_name equals 'chocolate floral blue coral cyan'.", + "Join partsupp on part.p_partkey = partsupp.ps_partkey to retrieve the supply cost for each part-supplier pair.", + "Join lineitem on partsupp.ps_partkey = lineitem.l_partkey and partsupp.ps_suppkey = lineitem.l_suppkey to match actual sales quantities and prices.", + "Map the external knowledge profit formula to columns by calculating l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity for each line item row.", + "Sum that profit expression across all joined and filtered rows.", + "Return exactly one column containing the aggregated total profit." + ] + }, + "revisql-train:675": { + "raw": "1. Target the Method table, which holds method metadata including names and tokenized names.\n2. Map the external knowledge so that \"tokenized name\" corresponds to the NameTokenized column and the method identifier corresponds to the Name column.\n3. Apply a filter requiring Name to exactly equal 'Sky.Excel.ExcelBook.TypeConvert'.\n4. Return only the NameTokenized value for the matching row.", + "steps": [ + "Target the Method table, which holds method metadata including names and tokenized names.", + "Map the external knowledge so that \"tokenized name\" corresponds to the NameTokenized column and the method identifier corresponds to the Name column.", + "Apply a filter requiring Name to exactly equal 'Sky.Excel.ExcelBook.TypeConvert'.", + "Return only the NameTokenized value for the matching row." + ] + }, + "revisql-train:6751": { + "raw": "1. Identify that country names are stored in the `nation` table (`n_name`) and region comment descriptions are stored in the `region` table (`r_comment`).\n2. Join `nation` to `region` on `n_regionkey = r_regionkey` to link each country to its corresponding region.\n3. Filter the joined rows where `r_comment` equals the external knowledge value `'furiously express accounts wake sly'`.\n4. Return only the `n_name` column as the final output.", + "steps": [ + "Identify that country names are stored in the `nation` table (`n_name`) and region comment descriptions are stored in the `region` table (`r_comment`).", + "Join `nation` to `region` on `n_regionkey = r_regionkey` to link each country to its corresponding region.", + "Filter the joined rows where `r_comment` equals the external knowledge value `'furiously express accounts wake sly'`.", + "Return only the `n_name` column as the final output." + ] + }, + "revisql-train:6754": { + "raw": "1. Identify that customer phone numbers reside in `customer.c_phone` and order totals reside in `orders.o_totalprice`, per the external knowledge mapping.\n2. Join the `orders` table with the `customer` table on `orders.o_custkey = customer.c_custkey` to associate each order with its customer.\n3. Use a subquery against `orders` to calculate `MAX(o_totalprice)`, representing the highest total price.\n4. Filter the joined rows to only those where `orders.o_totalprice` equals the maximum value returned by the subquery.\n5. Select and return the `c_phone` column for the customers who placed those highest-price orders.", + "steps": [ + "Identify that customer phone numbers reside in `customer.c_phone` and order totals reside in `orders.o_totalprice`, per the external knowledge mapping.", + "Join the `orders` table with the `customer` table on `orders.o_custkey = customer.c_custkey` to associate each order with its customer.", + "Use a subquery against `orders` to calculate `MAX(o_totalprice)`, representing the highest total price.", + "Filter the joined rows to only those where `orders.o_totalprice` equals the maximum value returned by the subquery.", + "Select and return the `c_phone` column for the customers who placed those highest-price orders." + ] + }, + "revisql-train:6756": { + "raw": "1. Identify that the requested name and marketing segment map to `c_name` and `c_mktsegment` in the `customer` table.\n2. Identify that the total order price condition maps to `o_totalprice = 199180.63` in the `orders` table.\n3. Join `orders` to `customer` using `o_custkey = c_custkey` to link each order to its respective customer.\n4. Filter the joined rows to only those where `o_totalprice` equals 199180.63.\n5. Return exactly the two columns `c_name` and `c_mktsegment` from the matched customer record.", + "steps": [ + "Identify that the requested name and marketing segment map to `c_name` and `c_mktsegment` in the `customer` table.", + "Identify that the total order price condition maps to `o_totalprice = 199180.63` in the `orders` table.", + "Join `orders` to `customer` using `o_custkey = c_custkey` to link each order to its respective customer.", + "Filter the joined rows to only those where `o_totalprice` equals 199180.63.", + "Return exactly the two columns `c_name` and `c_mktsegment` from the matched customer record." + ] + }, + "revisql-train:6757": { + "raw": "1. Filter the customer table to the row where c_address equals 'wH55UnX7 VI' using the external address mapping.\n2. Join the nation table to that customer row on c_nationkey = n_nationkey to retrieve the nation name.\n3. Join the region table to that nation on n_regionkey = r_regionkey to retrieve the region name.\n4. Return the columns n_name and r_name as the requested nation and region.", + "steps": [ + "Filter the customer table to the row where c_address equals 'wH55UnX7 VI' using the external address mapping.", + "Join the nation table to that customer row on c_nationkey = n_nationkey to retrieve the nation name.", + "Join the region table to that nation on n_regionkey = r_regionkey to retrieve the region name.", + "Return the columns n_name and r_name as the requested nation and region." + ] + }, + "revisql-train:6761": { + "raw": "1. Use the `customer` table exclusively, as the question only requests customer attributes and requires no joins.\n2. Map the external knowledge to identify that \"name of the customer\" corresponds to column `c_name` and \"phone number of the customer\" corresponds to column `c_phone`.\n3. Apply the external knowledge to translate \"have more than 9000 account balance\" into the filter condition `c_acctbal > 9000`.\n4. Return exactly the two columns `c_name` and `c_phone`, retrieving only rows from `customer` that satisfy the balance filter.", + "steps": [ + "Use the `customer` table exclusively, as the question only requests customer attributes and requires no joins.", + "Map the external knowledge to identify that \"name of the customer\" corresponds to column `c_name` and \"phone number of the customer\" corresponds to column `c_phone`.", + "Apply the external knowledge to translate \"have more than 9000 account balance\" into the filter condition `c_acctbal > 9000`.", + "Return exactly the two columns `c_name` and `c_phone`, retrieving only rows from `customer` that satisfy the balance filter." + ] + }, + "revisql-train:6765": { + "raw": "1. Target the `partsupp` table exclusively; no joins are needed.\n2. Identify the high-cost subset using the filter `ps_supplycost > 500`.\n3. Map the external percentage formula to a numerator by conditionally counting those rows, i.e., summing an indicator that is 1 when `ps_supplycost > 500` and 0 otherwise.\n4. Use `COUNT(ps_suppkey)` as the denominator to get the total number of part supply records.\n5. Cast the numerator to `REAL`, multiply by 100, and divide by the denominator to avoid integer division and produce the percentage.\n6. Return a single column containing the final calculated percentage value.", + "steps": [ + "Target the `partsupp` table exclusively; no joins are needed.", + "Identify the high-cost subset using the filter `ps_supplycost > 500`.", + "Map the external percentage formula to a numerator by conditionally counting those rows, i.e., summing an indicator that is 1 when `ps_supplycost > 500` and 0 otherwise.", + "Use `COUNT(ps_suppkey)` as the denominator to get the total number of part supply records.", + "Cast the numerator to `REAL`, multiply by 100, and divide by the denominator to avoid integer division and produce the percentage.", + "Return a single column containing the final calculated percentage value." + ] + }, + "revisql-train:6766": { + "raw": "1. Identify that only the supplier table is needed and no joins are required.\n2. Map the external knowledge terms \"supply key\" to the s_suppkey column and \"account balance\" to the s_acctbal column.\n3. Select exactly the two columns s_suppkey and s_acctbal for the final output.\n4. Order the rows by s_acctbal in descending order to surface the highest balances first.\n5. Restrict the result to the first ten rows to isolate the top ten suppliers.", + "steps": [ + "Identify that only the supplier table is needed and no joins are required.", + "Map the external knowledge terms \"supply key\" to the s_suppkey column and \"account balance\" to the s_acctbal column.", + "Select exactly the two columns s_suppkey and s_acctbal for the final output.", + "Order the rows by s_acctbal in descending order to surface the highest balances first.", + "Restrict the result to the first ten rows to isolate the top ten suppliers." + ] + }, + "revisql-train:6779": { + "raw": "1. Join the `orders` table to the `lineitem` table on `o_orderkey = l_orderkey` to link order priority with shipment mode and ship date.\n2. Filter rows to low-priority orders by requiring `o_orderpriority = '5-LOW'` and to truck shipments by requiring `l_shipmode = 'TRUCK'`, mapping the external knowledge conditions directly to those columns.\n3. Extract the year from `l_shipdate` to separate the lineitems into 1995 and 1996 groups.\n4. For each year, compute the monthly average number of orders by taking a distinct count of `o_orderkey` and dividing it by `12.0`.\n5. Subtract the 1996 monthly average from the 1995 monthly average and return that single calculated difference value.", + "steps": [ + "Join the `orders` table to the `lineitem` table on `o_orderkey = l_orderkey` to link order priority with shipment mode and ship date.", + "Filter rows to low-priority orders by requiring `o_orderpriority = '5-LOW'` and to truck shipments by requiring `l_shipmode = 'TRUCK'`, mapping the external knowledge conditions directly to those columns.", + "Extract the year from `l_shipdate` to separate the lineitems into 1995 and 1996 groups.", + "For each year, compute the monthly average number of orders by taking a distinct count of `o_orderkey` and dividing it by `12.0`.", + "Subtract the 1996 monthly average from the 1995 monthly average and return that single calculated difference value." + ] + }, + "revisql-train:678": { + "raw": "1. Identify that github addresses correspond to the `Url` column in the `Repo` table.\n2. Join the `Repo` table with the `Solution` table on `Repo.Id = Solution.RepoId` to associate each repository with its solutions.\n3. Map the external knowledge that \"can be implemented without the need of compilation\" to the condition `Solution.WasCompiled = 1`.\n4. Filter the joined results to include only rows where `WasCompiled` equals 1.\n5. Return the `Url` column from `Repo` as the final output.", + "steps": [ + "Identify that github addresses correspond to the `Url` column in the `Repo` table.", + "Join the `Repo` table with the `Solution` table on `Repo.Id = Solution.RepoId` to associate each repository with its solutions.", + "Map the external knowledge that \"can be implemented without the need of compilation\" to the condition `Solution.WasCompiled = 1`.", + "Filter the joined results to include only rows where `WasCompiled` equals 1.", + "Return the `Url` column from `Repo` as the final output." + ] + }, + "revisql-train:6788": { + "raw": "1. Filter the orders table to rows where o_orderdate falls in April 1994 using the pattern '1994-04-%', then group by o_custkey and count the rows per customer to get each customer's order volume for that month.\n2. Compute the maximum of those per-customer order counts to identify the highest order volume achieved in April 1994.\n3. Isolate the customer key(s) whose order count equals that maximum, preserving any ties for the top volume.\n4. Join those top customer key(s) to the customer table on c_custkey = o_custkey to retrieve the corresponding market segment values from c_mktsegment.\n5. Return the distinct c_mktsegment column as the final answer.", + "steps": [ + "Filter the orders table to rows where o_orderdate falls in April 1994 using the pattern '1994-04-%', then group by o_custkey and count the rows per customer to get each customer's order volume for that month.", + "Compute the maximum of those per-customer order counts to identify the highest order volume achieved in April 1994.", + "Isolate the customer key(s) whose order count equals that maximum, preserving any ties for the top volume.", + "Join those top customer key(s) to the customer table on c_custkey = o_custkey to retrieve the corresponding market segment values from c_mktsegment.", + "Return the distinct c_mktsegment column as the final answer." + ] + }, + "revisql-train:6802": { + "raw": "1. Target the `lineitem` table, since it stores both the ship mode (`l_shipmode`) and the ship instruction (`l_shipinstruct`).\n2. Filter rows where `l_shipinstruct` equals 'DELIVER IN PERSON', applying the external knowledge that this value corresponds to \"deliver in person\".\n3. Compute two conditional counts over the filtered rows: how many have `l_shipmode` = 'RAIL' and how many have `l_shipmode` = 'MAIL'.\n4. Compare the two counts with a CASE expression and return 'RAIL' when it is larger, otherwise return 'MAIL'.\n5. Project exactly one column named `result` holding the winning ship mode.", + "steps": [ + "Target the `lineitem` table, since it stores both the ship mode (`l_shipmode`) and the ship instruction (`l_shipinstruct`).", + "Filter rows where `l_shipinstruct` equals 'DELIVER IN PERSON', applying the external knowledge that this value corresponds to \"deliver in person\".", + "Compute two conditional counts over the filtered rows: how many have `l_shipmode` = 'RAIL' and how many have `l_shipmode` = 'MAIL'.", + "Compare the two counts with a CASE expression and return 'RAIL' when it is larger, otherwise return 'MAIL'.", + "Project exactly one column named `result` holding the winning ship mode." + ] + }, + "revisql-train:681": { + "raw": "1. Recognize that \"solution paths\" maps to the `Path` column in the `Solution` table and \"sampling time\" maps to the `SampledAt` column in the `Method` table, so both tables are needed.\n2. Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.\n3. Filter the joined rows by `Method.SampledAt = 636482822660118007` using the provided external knowledge value.\n4. Apply `DISTINCT` because one solution can contain multiple methods, and only unique solution paths should be listed.\n5. Return only the `Path` column from the `Solution` table.", + "steps": [ + "Recognize that \"solution paths\" maps to the `Path` column in the `Solution` table and \"sampling time\" maps to the `SampledAt` column in the `Method` table, so both tables are needed.", + "Join `Solution` to `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.", + "Filter the joined rows by `Method.SampledAt = 636482822660118007` using the provided external knowledge value.", + "Apply `DISTINCT` because one solution can contain multiple methods, and only unique solution paths should be listed.", + "Return only the `Path` column from the `Solution` table." + ] + }, + "revisql-train:6819": { + "raw": "1. Query only the customer table since no joins are needed.\n2. Map the requested customer name to the c_name column and interpret \"most in debt\" as the minimum c_acctbal, per the schema note that negative balances indicate debt.\n3. Compute the minimum c_acctbal value across all customer records using an aggregate subquery.\n4. Filter the customer table to the row whose c_acctbal equals that minimum value.\n5. Return exactly the c_name column.", + "steps": [ + "Query only the customer table since no joins are needed.", + "Map the requested customer name to the c_name column and interpret \"most in debt\" as the minimum c_acctbal, per the schema note that negative balances indicate debt.", + "Compute the minimum c_acctbal value across all customer records using an aggregate subquery.", + "Filter the customer table to the row whose c_acctbal equals that minimum value.", + "Return exactly the c_name column." + ] + }, + "revisql-train:683": { + "raw": "1. Map \"solution path\" to the `Path` column in the `Solution` table and \"method name\" to the `Name` column in the `Method` table using the external knowledge.\n2. Join `Solution` with `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.\n3. Filter the joined results to only rows where `Solution.Path` equals 'graffen_NLog.Targets.Syslog\\src\\NLog.Targets.Syslog.sln'.\n4. Apply `DISTINCT` to the `Method.Name` values to eliminate duplicate method names from the output.\n5. Return only the `Name` column from the `Method` table.", + "steps": [ + "Map \"solution path\" to the `Path` column in the `Solution` table and \"method name\" to the `Name` column in the `Method` table using the external knowledge.", + "Join `Solution` with `Method` on `Solution.Id = Method.SolutionId` to link each method to its containing solution.", + "Filter the joined results to only rows where `Solution.Path` equals 'graffen_NLog.Targets.Syslog\\src\\NLog.Targets.Syslog.sln'.", + "Apply `DISTINCT` to the `Method.Name` values to eliminate duplicate method names from the output.", + "Return only the `Name` column from the `Method` table." + ] + }, + "revisql-train:6831": { + "raw": "1. Join the customer table to the nation table on c_nationkey = n_nationkey, then join nation to region on n_regionkey = r_regionkey to link every customer to a region name.\n2. Map the question's \"region\" to the column r_name and group all joined rows by r_name.\n3. Map \"the most customers\" to counting c_custkey within each region to compute the number of customers per region.\n4. Order the grouped results by that customer count in descending order and keep only the top row (LIMIT 1) to isolate the region with the maximum count.\n5. Return exactly the region name column r_name.", + "steps": [ + "Join the customer table to the nation table on c_nationkey = n_nationkey, then join nation to region on n_regionkey = r_regionkey to link every customer to a region name.", + "Map the question's \"region\" to the column r_name and group all joined rows by r_name.", + "Map \"the most customers\" to counting c_custkey within each region to compute the number of customers per region.", + "Order the grouped results by that customer count in descending order and keep only the top row (LIMIT 1) to isolate the region with the maximum count.", + "Return exactly the region name column r_name." + ] + }, + "revisql-train:6839": { + "raw": "1. Use only the `lineitem` table; no joins are needed since `l_orderkey` and `l_discount` both exist there.\n2. Treat “order key” as `l_orderkey` and “discount applied” as `l_discount != 0`, while “not applied for any discounts” means an order key never appears with a non-zero discount.\n3. Form a subquery selecting distinct `l_orderkey` from `lineitem` where `l_discount != 0` to identify all orders that have at least one discounted line item.\n4. Select distinct `l_orderkey` from the full `lineitem` table restricted to rows whose `l_orderkey` is not in the subquery result.\n5. Count the resulting distinct `l_orderkey` values to return the final number.", + "steps": [ + "Use only the `lineitem` table; no joins are needed since `l_orderkey` and `l_discount` both exist there.", + "Treat “order key” as `l_orderkey` and “discount applied” as `l_discount != 0`, while “not applied for any discounts” means an order key never appears with a non-zero discount.", + "Form a subquery selecting distinct `l_orderkey` from `lineitem` where `l_discount != 0` to identify all orders that have at least one discounted line item.", + "Select distinct `l_orderkey` from the full `lineitem` table restricted to rows whose `l_orderkey` is not in the subquery result.", + "Count the resulting distinct `l_orderkey` values to return the final number." + ] + }, + "revisql-train:6844": { + "raw": "1. Join the customer table to the nation table on c_nationkey = n_nationkey to connect customers with their country names.\n2. Filter the customer rows to only those where c_mktsegment equals 'HOUSEHOLD', mapping the household segment requirement.\n3. Further filter the joined rows to only the nation where n_name equals 'GERMANY', mapping the Germany requirement.\n4. Count the c_name column across the remaining rows and return that single aggregated count.", + "steps": [ + "Join the customer table to the nation table on c_nationkey = n_nationkey to connect customers with their country names.", + "Filter the customer rows to only those where c_mktsegment equals 'HOUSEHOLD', mapping the household segment requirement.", + "Further filter the joined rows to only the nation where n_name equals 'GERMANY', mapping the Germany requirement.", + "Count the c_name column across the remaining rows and return that single aggregated count." + ] + }, + "revisql-train:6845": { + "raw": "1. Join the orders table to the customer table on o_custkey = c_custkey to connect each order with its corresponding customer.\n2. Filter the results to only rows where o_orderpriority equals '1-URGENT', mapping the natural language \"urgent\" to that specific value.\n3. Select the c_phone column from the customer table to get the phone numbers.\n4. Apply DISTINCT to the phone numbers to ensure each customer is listed only once without duplicates.", + "steps": [ + "Join the orders table to the customer table on o_custkey = c_custkey to connect each order with its corresponding customer.", + "Filter the results to only rows where o_orderpriority equals '1-URGENT', mapping the natural language \"urgent\" to that specific value.", + "Select the c_phone column from the customer table to get the phone numbers.", + "Apply DISTINCT to the phone numbers to ensure each customer is listed only once without duplicates." + ] + }, + "revisql-train:6855": { + "raw": "1. Join the region and nation tables on r_regionkey = n_regionkey to link every country to its region.\n2. Use the external knowledge that \"American region\" maps to r_name = 'America'.\n3. Sum a conditional indicator that counts 1 for rows where r_name is 'America' and 0 otherwise to get the American country count.\n4. Count all n_name values to obtain the total number of countries.\n5. Cast the American count to REAL, multiply by 100, and divide by the total country count to compute the percentage.\n6. Return the single calculated percentage value.", + "steps": [ + "Join the region and nation tables on r_regionkey = n_regionkey to link every country to its region.", + "Use the external knowledge that \"American region\" maps to r_name = 'America'.", + "Sum a conditional indicator that counts 1 for rows where r_name is 'America' and 0 otherwise to get the American country count.", + "Count all n_name values to obtain the total number of countries.", + "Cast the American count to REAL, multiply by 100, and divide by the total country count to compute the percentage.", + "Return the single calculated percentage value." + ] + }, + "revisql-train:6866": { + "raw": "1. Use the `supplier` table since the question asks about suppliers.\n2. Map the phrase \"accounts in debt\" to the condition `s_acctbal < 0` based on the external knowledge.\n3. Filter the rows with `WHERE s_acctbal < 0` to keep only suppliers in debt.\n4. Count the qualifying suppliers by applying `COUNT(s_suppkey)`.\n5. Return the single resulting column, which is the count of `s_suppkey`.", + "steps": [ + "Use the `supplier` table since the question asks about suppliers.", + "Map the phrase \"accounts in debt\" to the condition `s_acctbal < 0` based on the external knowledge.", + "Filter the rows with `WHERE s_acctbal < 0` to keep only suppliers in debt.", + "Count the qualifying suppliers by applying `COUNT(s_suppkey)`.", + "Return the single resulting column, which is the count of `s_suppkey`." + ] + }, + "revisql-train:688": { + "raw": "1. Join the Repo table to the Solution table on Repo.Id = Solution.RepoId to link each repository with its solutions.\n2. Filter Repo rows where Stars equals 254, Forks equals 88, and Watchers equals 254, matching the specified likes, followers, and watchers.\n3. Compute the average processed time by summing Solution.ProcessedTime, casting that sum to REAL, and dividing by the count of Solution.ProcessedTime values, applying the external knowledge concept of average processed time to this manual aggregation.\n4. Return a single column containing the resulting decimal average processed time.", + "steps": [ + "Join the Repo table to the Solution table on Repo.Id = Solution.RepoId to link each repository with its solutions.", + "Filter Repo rows where Stars equals 254, Forks equals 88, and Watchers equals 254, matching the specified likes, followers, and watchers.", + "Compute the average processed time by summing Solution.ProcessedTime, casting that sum to REAL, and dividing by the count of Solution.ProcessedTime values, applying the external knowledge concept of average processed time to this manual aggregation.", + "Return a single column containing the resulting decimal average processed time." + ] + }, + "revisql-train:6883": { + "raw": "1. Start from the part table and filter rows where p_name equals 'hot spring dodger dim light' per the external knowledge mapping.\n2. Join partsupp on ps_partkey to connect the part to its supply records, then join supplier on ps_suppkey to reach the supplier entities.\n3. Join nation on s_nationkey and then region on n_regionkey to bring in regional data for each supplier.\n4. Apply the region filter using r_name = 'EUROPE', again mapped from the external knowledge.\n5. Compute COUNT(DISTINCT s.s_suppkey) to return the number of unique suppliers in Europe that provide the specified part.", + "steps": [ + "Start from the part table and filter rows where p_name equals 'hot spring dodger dim light' per the external knowledge mapping.", + "Join partsupp on ps_partkey to connect the part to its supply records, then join supplier on ps_suppkey to reach the supplier entities.", + "Join nation on s_nationkey and then region on n_regionkey to bring in regional data for each supplier.", + "Apply the region filter using r_name = 'EUROPE', again mapped from the external knowledge.", + "Compute COUNT(DISTINCT s.s_suppkey) to return the number of unique suppliers in Europe that provide the specified part." + ] + }, + "revisql-train:6887": { + "raw": "1. Identify that the shipping date is stored in `lineitem.l_shipdate`, order no.1 maps to `lineitem.l_orderkey = 1`, and the part name maps to `part.p_name = 'burnished seashell gainsboro navajo chocolate'`.\n2. Join `lineitem` with `part` on `l_partkey = p_partkey` to link each line item to its part name.\n3. Filter the joined rows to `l_orderkey = 1` to isolate order no.1.\n4. Further filter to `p_name = 'burnished seashell gainsboro navajo chocolate'` to isolate the specific part.\n5. Return the `l_shipdate` column from the matching `lineitem` row as the answer.", + "steps": [ + "Identify that the shipping date is stored in `lineitem.l_shipdate`, order no.1 maps to `lineitem.l_orderkey = 1`, and the part name maps to `part.p_name = 'burnished seashell gainsboro navajo chocolate'`.", + "Join `lineitem` with `part` on `l_partkey = p_partkey` to link each line item to its part name.", + "Filter the joined rows to `l_orderkey = 1` to isolate order no.1.", + "Further filter to `p_name = 'burnished seashell gainsboro navajo chocolate'` to isolate the specific part.", + "Return the `l_shipdate` column from the matching `lineitem` row as the answer." + ] + }, + "revisql-train:6889": { + "raw": "1. Join lineitem with part on l_partkey = p_partkey to connect order line quantities to part names.\n2. Map \"order no.1\" to the filter l_orderkey = 1, and map the two quoted phrases to p_name IN ('salmon white grey tan navy', 'burnished seashell gainsboro navajo chocolate').\n3. Group by l_partkey and compute the amount for each part as SUM(l_quantity).\n4. Order the grouped results by that summed quantity in descending order so the larger amount appears first.\n5. Limit the result to the top 1 row and return only the p_name column.", + "steps": [ + "Join lineitem with part on l_partkey = p_partkey to connect order line quantities to part names.", + "Map \"order no.1\" to the filter l_orderkey = 1, and map the two quoted phrases to p_name IN ('salmon white grey tan navy', 'burnished seashell gainsboro navajo chocolate').", + "Group by l_partkey and compute the amount for each part as SUM(l_quantity).", + "Order the grouped results by that summed quantity in descending order so the larger amount appears first.", + "Limit the result to the top 1 row and return only the p_name column." + ] + }, + "revisql-train:6892": { + "raw": "1. Join partsupp to part on ps_partkey = p_partkey to link supply cost records to part names.\n2. Join partsupp to supplier on ps_suppkey = s_suppkey to resolve the supplier side of each supply record.\n3. Filter the joined rows to only those where p_name equals 'hot spring dodger dim light' using the external part name mapping.\n4. Compute AVG(ps_supplycost) across the filtered rows to obtain the average supply cost.\n5. Return the single aggregated average column as the final result.", + "steps": [ + "Join partsupp to part on ps_partkey = p_partkey to link supply cost records to part names.", + "Join partsupp to supplier on ps_suppkey = s_suppkey to resolve the supplier side of each supply record.", + "Filter the joined rows to only those where p_name equals 'hot spring dodger dim light' using the external part name mapping.", + "Compute AVG(ps_supplycost) across the filtered rows to obtain the average supply cost.", + "Return the single aggregated average column as the final result." + ] + }, + "revisql-train:6894": { + "raw": "1. Join `lineitem` to `partsupp` on the composite key `l_partkey` = `ps_partkey` and `l_suppkey` = `ps_suppkey` to bring together pricing, discount, and quantity with supply cost.\n2. Apply the external knowledge mappings to filter the rows: restrict to `l_orderkey` = 1 for order no.1 and `l_partkey` = 98768 for part no.98768.\n3. Compute profit using the formula `(l_extendedprice * (1 - l_discount)) - (ps_supplycost * l_quantity)` from the joined columns.\n4. Return the resulting value as a single column named `profit`.", + "steps": [ + "Join `lineitem` to `partsupp` on the composite key `l_partkey` = `ps_partkey` and `l_suppkey` = `ps_suppkey` to bring together pricing, discount, and quantity with supply cost.", + "Apply the external knowledge mappings to filter the rows: restrict to `l_orderkey` = 1 for order no.1 and `l_partkey` = 98768 for part no.98768.", + "Compute profit using the formula `(l_extendedprice * (1 - l_discount)) - (ps_supplycost * l_quantity)` from the joined columns.", + "Return the resulting value as a single column named `profit`." + ] + }, + "revisql-train:6896": { + "raw": "1. Use only the customer table since it holds both the market segment and account balance data required, avoiding any joins.\n2. Map the external knowledge so that \"market segment\" targets the c_mktsegment column and \"highest amount of debt\" targets the minimum c_acctbal.\n3. Compute the minimum c_acctbal value across all customers with a scalar subquery to identify the worst debt.\n4. Filter the customer table to the row whose c_acctbal equals that minimum value.\n5. Return exactly the c_mktsegment column for the matched customer.", + "steps": [ + "Use only the customer table since it holds both the market segment and account balance data required, avoiding any joins.", + "Map the external knowledge so that \"market segment\" targets the c_mktsegment column and \"highest amount of debt\" targets the minimum c_acctbal.", + "Compute the minimum c_acctbal value across all customers with a scalar subquery to identify the worst debt.", + "Filter the customer table to the row whose c_acctbal equals that minimum value.", + "Return exactly the c_mktsegment column for the matched customer." + ] + }, + "revisql-train:6903": { + "raw": "1. Join orders to customer on o_custkey equals c_custkey to connect orders with their customers.\n2. Join customer to nation on c_nationkey equals n_nationkey to access the country name for each customer.\n3. Filter for n_name equal to ARGENTINA, using the external knowledge that Argentina refers to the nation name column.\n4. Sum the o_totalprice column from orders, using the external knowledge that total price is the sum of order total prices.\n5. Return only that aggregated sum value.", + "steps": [ + "Join orders to customer on o_custkey equals c_custkey to connect orders with their customers.", + "Join customer to nation on c_nationkey equals n_nationkey to access the country name for each customer.", + "Filter for n_name equal to ARGENTINA, using the external knowledge that Argentina refers to the nation name column.", + "Sum the o_totalprice column from orders, using the external knowledge that total price is the sum of order total prices.", + "Return only that aggregated sum value." + ] + }, + "revisql-train:6906": { + "raw": "1. Map the external knowledge: treat \"medium metallic grey dodger linen\" as the value for the p_name column in the part table, and \"part supply cost\" as the ps_supplycost column in the partsupp table.\n2. Join the part table to the partsupp table on p_partkey = ps_partkey to connect each part with its supply cost records.\n3. Filter the joined rows to only those where p_name equals 'medium metallic grey dodger linen'.\n4. Return the ps_supplycost column from the partsupp table.", + "steps": [ + "Map the external knowledge: treat \"medium metallic grey dodger linen\" as the value for the p_name column in the part table, and \"part supply cost\" as the ps_supplycost column in the partsupp table.", + "Join the part table to the partsupp table on p_partkey = ps_partkey to connect each part with its supply cost records.", + "Filter the joined rows to only those where p_name equals 'medium metallic grey dodger linen'.", + "Return the ps_supplycost column from the partsupp table." + ] + }, + "revisql-train:6910": { + "raw": "1. Map the term \"clerk\" to the `o_clerk` column in `orders` and \"extended price\" to `l_extendedprice` in `lineitem`.\n2. Join `orders` with `lineitem` on `o_orderkey` = `l_orderkey` to associate each line item with its handling order.\n3. Find the single highest `l_extendedprice` value in the `lineitem` table via a subquery.\n4. Restrict the joined rows to only those whose `l_extendedprice` equals that maximum.\n5. Output the distinct `o_clerk` values from the filtered result.", + "steps": [ + "Map the term \"clerk\" to the `o_clerk` column in `orders` and \"extended price\" to `l_extendedprice` in `lineitem`.", + "Join `orders` with `lineitem` on `o_orderkey` = `l_orderkey` to associate each line item with its handling order.", + "Find the single highest `l_extendedprice` value in the `lineitem` table via a subquery.", + "Restrict the joined rows to only those whose `l_extendedprice` equals that maximum.", + "Output the distinct `o_clerk` values from the filtered result." + ] + }, + "revisql-train:6911": { + "raw": "1. Identify that the query requires the `orders` and `lineitem` tables; join them on `orders.o_orderkey` = `lineitem.l_orderkey` to link each order to its individual items.\n2. Apply the customer filter by mapping \"customer 101660\" to the condition `orders.o_custkey = 101660`.\n3. Apply the date filter by mapping \"on 10/5/1995\" to the condition `orders.o_orderdate = '1995-10-05'`.\n4. Map \"total quantity\" to an aggregation of `SUM(lineitem.l_quantity)` across all matching line items.\n5. Return only the single aggregated column representing the total quantity.", + "steps": [ + "Identify that the query requires the `orders` and `lineitem` tables; join them on `orders.o_orderkey` = `lineitem.l_orderkey` to link each order to its individual items.", + "Apply the customer filter by mapping \"customer 101660\" to the condition `orders.o_custkey = 101660`.", + "Apply the date filter by mapping \"on 10/5/1995\" to the condition `orders.o_orderdate = '1995-10-05'`.", + "Map \"total quantity\" to an aggregation of `SUM(lineitem.l_quantity)` across all matching line items.", + "Return only the single aggregated column representing the total quantity." + ] + }, + "revisql-train:6913": { + "raw": "1. Start from the `orders` table and filter to rows where `o_custkey` equals 110942, using the external knowledge that customer 110942 maps to this column.\n2. Join `lineitem` to `orders` on `o_orderkey` matching `l_orderkey` to retrieve every line item associated with that customer's orders.\n3. Join `part` to `lineitem` on `l_partkey` matching `p_partkey` to reach the part name attribute.\n4. Apply `DISTINCT` to the part name values to avoid duplicates, since the same part may have been ordered multiple times.\n5. Return the column `p_name`, which the external knowledge identifies as the name of the part.", + "steps": [ + "Start from the `orders` table and filter to rows where `o_custkey` equals 110942, using the external knowledge that customer 110942 maps to this column.", + "Join `lineitem` to `orders` on `o_orderkey` matching `l_orderkey` to retrieve every line item associated with that customer's orders.", + "Join `part` to `lineitem` on `l_partkey` matching `p_partkey` to reach the part name attribute.", + "Apply `DISTINCT` to the part name values to avoid duplicates, since the same part may have been ordered multiple times.", + "Return the column `p_name`, which the external knowledge identifies as the name of the part." + ] + }, + "revisql-train:6923": { + "raw": "1. Map \"weight in kilograms\" to the `weight_in_kg` column in `weight_info` and \"longest time on ice in the player's first 7 years of NHL career\" to the maximum value of `sum_7yr_TOI` in `PlayerInfo`.\n2. Join `PlayerInfo` with `weight_info` on `PlayerInfo.weight = weight_info.weight_id` to link each player to their weight record.\n3. Use a subquery on `PlayerInfo` to calculate the maximum `sum_7yr_TOI`.\n4. Filter the joined rows to keep only the player whose `sum_7yr_TOI` matches that maximum value.\n5. Return the `weight_in_kg` column from `weight_info`.", + "steps": [ + "Map \"weight in kilograms\" to the `weight_in_kg` column in `weight_info` and \"longest time on ice in the player's first 7 years of NHL career\" to the maximum value of `sum_7yr_TOI` in `PlayerInfo`.", + "Join `PlayerInfo` with `weight_info` on `PlayerInfo.weight = weight_info.weight_id` to link each player to their weight record.", + "Use a subquery on `PlayerInfo` to calculate the maximum `sum_7yr_TOI`.", + "Filter the joined rows to keep only the player whose `sum_7yr_TOI` matches that maximum value.", + "Return the `weight_in_kg` column from `weight_info`." + ] + }, + "revisql-train:6925": { + "raw": "1. Join PlayerInfo with weight_info on PlayerInfo.weight = weight_info.weight_id to link each player to their weight measurement.\n2. Filter PlayerInfo to only rows where shoots = 'R' to isolate right-shooted players.\n3. Filter weight_info to only rows where weight_in_kg > 90 to isolate players weighing over 90 kg.\n4. Count the ELITEID values from PlayerInfo and return that single aggregated count.", + "steps": [ + "Join PlayerInfo with weight_info on PlayerInfo.weight = weight_info.weight_id to link each player to their weight measurement.", + "Filter PlayerInfo to only rows where shoots = 'R' to isolate right-shooted players.", + "Filter weight_info to only rows where weight_in_kg > 90 to isolate players weighing over 90 kg.", + "Count the ELITEID values from PlayerInfo and return that single aggregated count." + ] + }, + "revisql-train:6928": { + "raw": "1. Use PlayerInfo and join it to height_info on PlayerInfo.height equal to height_info.height_id to access the actual centimeter measurements.\n2. Filter the rows to only defense players by matching position_info to 'D', since the external knowledge maps the defense position to that value.\n3. Calculate the average by dividing the sum of height_in_cm by the count of PlayerInfo.ELITEID, casting the summed total as a real number to ensure decimal precision.\n4. Return exactly one column representing the resulting average height in centimeters.", + "steps": [ + "Use PlayerInfo and join it to height_info on PlayerInfo.height equal to height_info.height_id to access the actual centimeter measurements.", + "Filter the rows to only defense players by matching position_info to 'D', since the external knowledge maps the defense position to that value.", + "Calculate the average by dividing the sum of height_in_cm by the count of PlayerInfo.ELITEID, casting the summed total as a real number to ensure decimal precision.", + "Return exactly one column representing the resulting average height in centimeters." + ] + }, + "revisql-train:6931": { + "raw": "1. Join `PlayerInfo` to `SeasonStatus` on the shared `ELITEID` key to combine each player’s name with their season-by-season penalty records.\n2. Filter the joined rows to only those where `PlayerInfo.sum_7yr_GP` is at least 500, matching the requirement for total NHL games in the first 7 years.\n3. Group the remaining records by `PlayerInfo.ELITEID` so that every season for the same player rolls up into one summary.\n4. Within each group, sum the `SeasonStatus.PIM` values—treating any nulls as 0—to compute total rule violations over the player’s entire playing history.\n5. Order the groups by that summed total in descending order, keep only the top result, and return the `PlayerName`.", + "steps": [ + "Join `PlayerInfo` to `SeasonStatus` on the shared `ELITEID` key to combine each player’s name with their season-by-season penalty records.", + "Filter the joined rows to only those where `PlayerInfo.sum_7yr_GP` is at least 500, matching the requirement for total NHL games in the first 7 years.", + "Group the remaining records by `PlayerInfo.ELITEID` so that every season for the same player rolls up into one summary.", + "Within each group, sum the `SeasonStatus.PIM` values—treating any nulls as 0—to compute total rule violations over the player’s entire playing history.", + "Order the groups by that summed total in descending order, keep only the top result, and return the `PlayerName`." + ] + }, + "revisql-train:6945": { + "raw": "1. Map the question's \"players\" to the `PlayerName` column in `PlayerInfo` and \"weigh 120 kg\" to `weight_in_kg = 120` in `weight_info`.\n2. Join `weight_info` with `PlayerInfo` on `weight_info.weight_id = PlayerInfo.weight` to connect weight records to players.\n3. Filter the joined results to only rows where `weight_in_kg` equals 120.\n4. Return the `PlayerName` column from `PlayerInfo` as the final output.", + "steps": [ + "Map the question's \"players\" to the `PlayerName` column in `PlayerInfo` and \"weigh 120 kg\" to `weight_in_kg = 120` in `weight_info`.", + "Join `weight_info` with `PlayerInfo` on `weight_info.weight_id = PlayerInfo.weight` to connect weight records to players.", + "Filter the joined results to only rows where `weight_in_kg` equals 120.", + "Return the `PlayerName` column from `PlayerInfo` as the final output." + ] + }, + "revisql-train:6947": { + "raw": "1. Join PlayerInfo with SeasonStatus on ELITEID to connect player profiles to their season statistics.\n2. Group SeasonStatus by ELITEID and sum the PIM column to compute each player’s total rule violations across all seasons.\n3. Determine the maximum value among those per-player PIM totals to find the highest violation count.\n4. Keep only the player(s) whose total PIM equals that maximum value.\n5. Return the PlayerName and position_info columns from PlayerInfo for the matching player(s).", + "steps": [ + "Join PlayerInfo with SeasonStatus on ELITEID to connect player profiles to their season statistics.", + "Group SeasonStatus by ELITEID and sum the PIM column to compute each player’s total rule violations across all seasons.", + "Determine the maximum value among those per-player PIM totals to find the highest violation count.", + "Keep only the player(s) whose total PIM equals that maximum value.", + "Return the PlayerName and position_info columns from PlayerInfo for the matching player(s)." + ] + }, + "revisql-train:6950": { + "raw": "1. Start with the PlayerInfo table, which contains the player name, draft year, drafting team, and scouting rank.\n2. Filter to rows where the drafting team column overallby equals 'Toronto Maple Leafs' and the draftyear is 2008.\n3. Map \"highest prospects for the draft\" to the smallest value in the CSS_rank column, since a lower rank means a higher prospect.\n4. Order the filtered results by CSS_rank in ascending order to bring the best prospect to the top.\n5. Restrict the output to the first row only to get the single top prospect.\n6. Return the PlayerName column as the answer.", + "steps": [ + "Start with the PlayerInfo table, which contains the player name, draft year, drafting team, and scouting rank.", + "Filter to rows where the drafting team column overallby equals 'Toronto Maple Leafs' and the draftyear is 2008.", + "Map \"highest prospects for the draft\" to the smallest value in the CSS_rank column, since a lower rank means a higher prospect.", + "Order the filtered results by CSS_rank in ascending order to bring the best prospect to the top.", + "Restrict the output to the first row only to get the single top prospect.", + "Return the PlayerName column as the answer." + ] + }, + "revisql-train:6952": { + "raw": "1. Start with the PlayerInfo table, which contains both the drafting team and the 7-year games played data.\n2. Map the external knowledge that \"drafted by the Toronto Maple Leafs\" to the overallby column with the exact value 'Toronto Maple Leafs'.\n3. Map the external knowledge that \"played over 300 games in their first 7 years of the NHL career\" to the sum_7yr_GP column with the condition greater than 300.\n4. Combine both conditions with AND to select only rows that satisfy both criteria simultaneously.\n5. Count the ELITEID values and return that single aggregated column as the final answer.", + "steps": [ + "Start with the PlayerInfo table, which contains both the drafting team and the 7-year games played data.", + "Map the external knowledge that \"drafted by the Toronto Maple Leafs\" to the overallby column with the exact value 'Toronto Maple Leafs'.", + "Map the external knowledge that \"played over 300 games in their first 7 years of the NHL career\" to the sum_7yr_GP column with the condition greater than 300.", + "Combine both conditions with AND to select only rows that satisfy both criteria simultaneously.", + "Count the ELITEID values and return that single aggregated column as the final answer." + ] + }, + "revisql-train:6953": { + "raw": "1. Map the question concepts using external knowledge: Yale University corresponds to TEAM = 'Yale Univ.', 28 penalty minutes corresponds to PIM = 28, the 2005-2006 season corresponds to SEASON = '2005-2006', and how tall corresponds to the column height_in_cm.\n2. Start from the SeasonStatus table and filter for rows where SEASON is '2005-2006', TEAM is 'Yale Univ.', and PIM equals 28.\n3. Join PlayerInfo on ELITEID to connect the filtered season record to the player's profile and access the height identifier.\n4. Join height_info on the height identifier from PlayerInfo matching height_id to retrieve the actual height measurement in centimeters.\n5. Return only the height_in_cm column from height_info as the final answer.", + "steps": [ + "Map the question concepts using external knowledge: Yale University corresponds to TEAM = 'Yale Univ.', 28 penalty minutes corresponds to PIM = 28, the 2005-2006 season corresponds to SEASON = '2005-2006', and how tall corresponds to the column height_in_cm.", + "Start from the SeasonStatus table and filter for rows where SEASON is '2005-2006', TEAM is 'Yale Univ.', and PIM equals 28.", + "Join PlayerInfo on ELITEID to connect the filtered season record to the player's profile and access the height identifier.", + "Join height_info on the height identifier from PlayerInfo matching height_id to retrieve the actual height measurement in centimeters.", + "Return only the height_in_cm column from height_info as the final answer." + ] + }, + "revisql-train:6959": { + "raw": "1. Join PlayerInfo with weight_info on PlayerInfo.weight = weight_info.weight_id to connect each player to their weight measurement in kilograms.\n2. Compute the maximum value of weight_in_kg from that joined set to determine the heaviest weight.\n3. Filter the joined results to keep only the row(s) where weight_in_kg equals that maximum value.\n4. Return the PlayerName column for the remaining record(s).", + "steps": [ + "Join PlayerInfo with weight_info on PlayerInfo.weight = weight_info.weight_id to connect each player to their weight measurement in kilograms.", + "Compute the maximum value of weight_in_kg from that joined set to determine the heaviest weight.", + "Filter the joined results to keep only the row(s) where weight_in_kg equals that maximum value.", + "Return the PlayerName column for the remaining record(s)." + ] + }, + "revisql-train:697": { + "raw": "1. Start from the trains table and filter to rows where the direction is 'east'.\n2. Left join the cars table on trains.id = cars.train_id so trains with zero cars remain in the result set.\n3. Group the joined data by the train id.\n4. Apply a HAVING clause keeping only groups where the count of distinct car ids is less than 4, using the external knowledge that \"less than 4 cars\" means a car count below 4.\n5. Return the train id column.", + "steps": [ + "Start from the trains table and filter to rows where the direction is 'east'.", + "Left join the cars table on trains.id = cars.train_id so trains with zero cars remain in the result set.", + "Group the joined data by the train id.", + "Apply a HAVING clause keeping only groups where the count of distinct car ids is less than 4, using the external knowledge that \"less than 4 cars\" means a car count below 4.", + "Return the train id column." + ] + }, + "revisql-train:6972": { + "raw": "1. Identify that player names are stored in the PlayerName column of PlayerInfo, while team and season information are stored in SeasonStatus.\n2. Join SeasonStatus to PlayerInfo on the ELITEID key to link each season record to its corresponding player.\n3. Filter the SeasonStatus table to SEASON equal to '2000-2001' per the external knowledge mapping.\n4. Filter the SeasonStatus table to TEAM equal to 'Avangard Omsk' per the external knowledge mapping.\n5. Return distinct values of PlayerInfo.PlayerName so each player appears only once in the result.", + "steps": [ + "Identify that player names are stored in the PlayerName column of PlayerInfo, while team and season information are stored in SeasonStatus.", + "Join SeasonStatus to PlayerInfo on the ELITEID key to link each season record to its corresponding player.", + "Filter the SeasonStatus table to SEASON equal to '2000-2001' per the external knowledge mapping.", + "Filter the SeasonStatus table to TEAM equal to 'Avangard Omsk' per the external knowledge mapping.", + "Return distinct values of PlayerInfo.PlayerName so each player appears only once in the result." + ] + }, + "revisql-train:6989": { + "raw": "1. Filter PlayerInfo to rows where nation equals 'Sweden', applying the external knowledge that \"Swedish\" maps to that column value.\n2. Join PlayerInfo with SeasonStatus on the shared ELITEID key so each Swedish player is matched to the team they played for.\n3. Group the joined results by SeasonStatus.TEAM and compute the count of distinct ELITEIDs per team to tally unique Swedish players on each roster.\n4. Determine the highest of those per-team counts to identify the maximum number of Swedish players any single team has.\n5. Restrict the grouped results to only teams whose distinct Swedish-player count equals that maximum, preserving any ties.\n6. Return the TEAM column for the remaining team(s).", + "steps": [ + "Filter PlayerInfo to rows where nation equals 'Sweden', applying the external knowledge that \"Swedish\" maps to that column value.", + "Join PlayerInfo with SeasonStatus on the shared ELITEID key so each Swedish player is matched to the team they played for.", + "Group the joined results by SeasonStatus.TEAM and compute the count of distinct ELITEIDs per team to tally unique Swedish players on each roster.", + "Determine the highest of those per-team counts to identify the maximum number of Swedish players any single team has.", + "Restrict the grouped results to only teams whose distinct Swedish-player count equals that maximum, preserving any ties.", + "Return the TEAM column for the remaining team(s)." + ] + }, + "revisql-train:6992": { + "raw": "1. Join PlayerInfo to SeasonStatus on ELITEID to link each player’s nationality to their team history.\n2. Filter the result to rows where TEAM equals 'Plymouth Whalers'.\n3. Group by the nation column (synonymous with country) and count distinct ELITEIDs to get the number of players from each country.\n4. Identify the maximum player count across all nations.\n5. Return the nation value whose player count matches that maximum.", + "steps": [ + "Join PlayerInfo to SeasonStatus on ELITEID to link each player’s nationality to their team history.", + "Filter the result to rows where TEAM equals 'Plymouth Whalers'.", + "Group by the nation column (synonymous with country) and count distinct ELITEIDs to get the number of players from each country.", + "Identify the maximum player count across all nations.", + "Return the nation value whose player count matches that maximum." + ] + }, + "revisql-train:6997": { + "raw": "1. Join SeasonStatus to PlayerInfo on ELITEID to link each season/game record with the player's nationality.\n2. Filter SEASON to the three consecutive years '1997-1998', '1998-1999', and '1999-2000' and restrict GAMETYPE to playoff games.\n3. Map Swedish players by checking that PlayerInfo.nation equals 'Sweden'.\n4. Compute the percentage as 100.0 multiplied by the count of distinct Swedish ELITEIDs divided by the count of distinct total ELITEIDs in the filtered result set.\n5. Return the final value in a single column named percentage_sweden_playoffs_1997_2000.", + "steps": [ + "Join SeasonStatus to PlayerInfo on ELITEID to link each season/game record with the player's nationality.", + "Filter SEASON to the three consecutive years '1997-1998', '1998-1999', and '1999-2000' and restrict GAMETYPE to playoff games.", + "Map Swedish players by checking that PlayerInfo.nation equals 'Sweden'.", + "Compute the percentage as 100.0 multiplied by the count of distinct Swedish ELITEIDs divided by the count of distinct total ELITEIDs in the filtered result set.", + "Return the final value in a single column named percentage_sweden_playoffs_1997_2000." + ] + }, + "revisql-train:6999": { + "raw": "1. Use the Product table to identify the target product by its ProductNumber value 'CA-1098'.\n2. Join ProductCostHistory to Product on the shared ProductID key to access the associated cost records.\n3. Map the question’s requested \"average standard cost\" to the external knowledge definition: AVG(StandardCost) from ProductCostHistory.\n4. Filter the joined rows to only those where ProductNumber equals 'CA-1098'.\n5. Return the single aggregated column AVG(StandardCost) as the final result.", + "steps": [ + "Use the Product table to identify the target product by its ProductNumber value 'CA-1098'.", + "Join ProductCostHistory to Product on the shared ProductID key to access the associated cost records.", + "Map the question’s requested \"average standard cost\" to the external knowledge definition: AVG(StandardCost) from ProductCostHistory.", + "Filter the joined rows to only those where ProductNumber equals 'CA-1098'.", + "Return the single aggregated column AVG(StandardCost) as the final result." + ] + }, + "revisql-train:70": { + "raw": "1. Map the external knowledge: the movie title \"A Way of Life\" corresponds to `movies.movie_title`, user 39115684 corresponds to `ratings.user_id`, and the rating time corresponds to `ratings.rating_timestamp_utc`.\n2. Join the `ratings` table with the `movies` table on their shared `movie_id` key.\n3. Filter `movies.movie_title` to exactly 'A Way of Life'.\n4. Filter `ratings.user_id` to exactly 39115684.\n5. Return the `rating_timestamp_utc` column from the `ratings` table.", + "steps": [ + "Map the external knowledge: the movie title \"A Way of Life\" corresponds to `movies.movie_title`, user 39115684 corresponds to `ratings.user_id`, and the rating time corresponds to `ratings.rating_timestamp_utc`.", + "Join the `ratings` table with the `movies` table on their shared `movie_id` key.", + "Filter `movies.movie_title` to exactly 'A Way of Life'.", + "Filter `ratings.user_id` to exactly 39115684.", + "Return the `rating_timestamp_utc` column from the `ratings` table." + ] + }, + "revisql-train:7000": { + "raw": "1. Use the Product table to get the product name and the ProductCostHistory table to get the start date and cost history.\n2. Join these two tables on ProductID to link each product with its cost history records.\n3. Filter the results to only rows where EndDate is NULL, since the external knowledge defines that as the current standard cost.\n4. Return the Name column from Product and the StartDate column from ProductCostHistory.", + "steps": [ + "Use the Product table to get the product name and the ProductCostHistory table to get the start date and cost history.", + "Join these two tables on ProductID to link each product with its cost history records.", + "Filter the results to only rows where EndDate is NULL, since the external knowledge defines that as the current standard cost.", + "Return the Name column from Product and the StartDate column from ProductCostHistory." + ] + }, + "revisql-train:7001": { + "raw": "1. Identify the Product table for current standard costs and product names, and the ProductCostHistory table for previous standard cost records.\n2. Inner join Product to ProductCostHistory on the ProductID column to link each product with its historical cost entries.\n3. Filter the joined rows using the external knowledge condition that the current StandardCost minus the historical StandardCost must be at least 80.\n4. Group the results by product Name to avoid duplicate rows when a product has multiple qualifying historical records.\n5. Return only the Name column from the Product table.", + "steps": [ + "Identify the Product table for current standard costs and product names, and the ProductCostHistory table for previous standard cost records.", + "Inner join Product to ProductCostHistory on the ProductID column to link each product with its historical cost entries.", + "Filter the joined rows using the external knowledge condition that the current StandardCost minus the historical StandardCost must be at least 80.", + "Group the results by product Name to avoid duplicate rows when a product has multiple qualifying historical records.", + "Return only the Name column from the Product table." + ] + }, + "revisql-train:7009": { + "raw": "1. Identify the Product table as the sole source; no joins are needed.\n2. Map the external knowledge that \"high quality\" corresponds to the Class column value 'H'.\n3. Filter the Product table to include only rows where Class equals 'H'.\n4. Return the Name column for the product name and the ListPrice column for the selling price.", + "steps": [ + "Identify the Product table as the sole source; no joins are needed.", + "Map the external knowledge that \"high quality\" corresponds to the Class column value 'H'.", + "Filter the Product table to include only rows where Class equals 'H'.", + "Return the Name column for the product name and the ListPrice column for the selling price." + ] + }, + "revisql-train:701": { + "raw": "1. Identify that the `cars` table holds the shape attribute and the `trains` table holds the direction attribute needed to answer the question.\n2. Join `cars` to `trains` on `cars.train_id = trains.id` to associate each car with its train.\n3. Filter the result to rows where `cars.shape` equals `'ellipse'`, mapping the external knowledge to the shape column.\n4. Return only the `direction` column from the `trains` table.", + "steps": [ + "Identify that the `cars` table holds the shape attribute and the `trains` table holds the direction attribute needed to answer the question.", + "Join `cars` to `trains` on `cars.train_id = trains.id` to associate each car with its train.", + "Filter the result to rows where `cars.shape` equals `'ellipse'`, mapping the external knowledge to the shape column.", + "Return only the `direction` column from the `trains` table." + ] + }, + "revisql-train:7010": { + "raw": "1. Start from the Product table.\n2. Filter rows where FinishedGoodsFlag equals 1, applying the external knowledge that saleable products are identified by this flag.\n3. Group the remaining rows by ProductLine.\n4. Count FinishedGoodsFlag within each group to tally how many saleable products each line contains.\n5. Order the grouped results by that count in descending order so the largest group appears first.\n6. Return only the ProductLine column for the single top row.", + "steps": [ + "Start from the Product table.", + "Filter rows where FinishedGoodsFlag equals 1, applying the external knowledge that saleable products are identified by this flag.", + "Group the remaining rows by ProductLine.", + "Count FinishedGoodsFlag within each group to tally how many saleable products each line contains.", + "Order the grouped results by that count in descending order so the largest group appears first.", + "Return only the ProductLine column for the single top row." + ] + }, + "revisql-train:7023": { + "raw": "1. Join the Product and ProductReview tables on ProductID to connect product information with review ratings.\n2. Calculate profit by subtracting StandardCost from ListPrice, applying the external knowledge formula.\n3. Use a subquery on ProductReview to find the maximum Rating value, which represents the highest review rating.\n4. Filter the joined results to keep only rows where the ProductReview Rating equals that maximum value.\n5. Return the product Name and the calculated profit column in the final output.", + "steps": [ + "Join the Product and ProductReview tables on ProductID to connect product information with review ratings.", + "Calculate profit by subtracting StandardCost from ListPrice, applying the external knowledge formula.", + "Use a subquery on ProductReview to find the maximum Rating value, which represents the highest review rating.", + "Filter the joined results to keep only rows where the ProductReview Rating equals that maximum value.", + "Return the product Name and the calculated profit column in the final output." + ] + }, + "revisql-train:7025": { + "raw": "1. Target the CurrencyRate table and treat the combination of FromCurrencyCode and ToCurrencyCode as the currency pair per the external knowledge.\n2. Compute the maximum value of AverageRate across all rows to identify the highest average exchange rate.\n3. Filter CurrencyRate to only those rows where AverageRate equals that maximum value.\n4. Return the FromCurrencyCode and ToCurrencyCode columns for the matching rows.", + "steps": [ + "Target the CurrencyRate table and treat the combination of FromCurrencyCode and ToCurrencyCode as the currency pair per the external knowledge.", + "Compute the maximum value of AverageRate across all rows to identify the highest average exchange rate.", + "Filter CurrencyRate to only those rows where AverageRate equals that maximum value.", + "Return the FromCurrencyCode and ToCurrencyCode columns for the matching rows." + ] + }, + "revisql-train:7027": { + "raw": "1. Query the SalesTerritory table and project only the Name column.\n2. Filter to rows where CountryRegionCode equals 'US', mapping the external knowledge that United States refers to that code.\n3. Further filter to include only territories whose Name is 'Northwest' or 'Southeast'.\n4. Order the results by SalesLastYear in descending order to bring the highest sales figure to the top.\n5. Limit the output to the first row so only the single territory with the highest sales last year is returned.", + "steps": [ + "Query the SalesTerritory table and project only the Name column.", + "Filter to rows where CountryRegionCode equals 'US', mapping the external knowledge that United States refers to that code.", + "Further filter to include only territories whose Name is 'Northwest' or 'Southeast'.", + "Order the results by SalesLastYear in descending order to bring the highest sales figure to the top.", + "Limit the output to the first row so only the single territory with the highest sales last year is returned." + ] + }, + "revisql-train:7036": { + "raw": "1. Use the Employee table to find the job title and hire date, and join it to the Person table on BusinessEntityID to retrieve the corresponding name.\n2. Filter the Employee table to only the row where JobTitle equals 'Vice President of Engineering'.\n3. Map the question's \"when did he join\" to the HireDate column in the Employee table.\n4. Map the requested full name to the FirstName, MiddleName, and LastName columns from the Person table.\n5. Return exactly FirstName, MiddleName, LastName, and HireDate with no aggregation or ordering needed.", + "steps": [ + "Use the Employee table to find the job title and hire date, and join it to the Person table on BusinessEntityID to retrieve the corresponding name.", + "Filter the Employee table to only the row where JobTitle equals 'Vice President of Engineering'.", + "Map the question's \"when did he join\" to the HireDate column in the Employee table.", + "Map the requested full name to the FirstName, MiddleName, and LastName columns from the Person table.", + "Return exactly FirstName, MiddleName, LastName, and HireDate with no aggregation or ordering needed." + ] + }, + "revisql-train:7043": { + "raw": "1. Start from the Product table and its ListPrice and StandardCost columns.\n2. Apply the external knowledge that profit equals ListPrice minus StandardCost.\n3. Aggregate over all rows to find the maximum ListPrice value.\n4. Filter the Product table to only the row where ListPrice equals that maximum.\n5. Return the single calculated profit value for that product.", + "steps": [ + "Start from the Product table and its ListPrice and StandardCost columns.", + "Apply the external knowledge that profit equals ListPrice minus StandardCost.", + "Aggregate over all rows to find the maximum ListPrice value.", + "Filter the Product table to only the row where ListPrice equals that maximum.", + "Return the single calculated profit value for that product." + ] + }, + "revisql-train:7045": { + "raw": "1. Join `BusinessEntityAddress` to `Address` on `AddressID` to link each business entity with its address records.\n2. Apply the external knowledge that \"address that is too long\" means `AddressLine2` is populated, filtering where `AddressLine2` IS NOT NULL and `AddressLine2` <> ''.\n3. Use `COUNT(DISTINCT BusinessEntityID)` to ensure each business entity is counted only once even if it has multiple matching addresses.\n4. Return the single aggregated count column.", + "steps": [ + "Join `BusinessEntityAddress` to `Address` on `AddressID` to link each business entity with its address records.", + "Apply the external knowledge that \"address that is too long\" means `AddressLine2` is populated, filtering where `AddressLine2` IS NOT NULL and `AddressLine2` <> ''.", + "Use `COUNT(DISTINCT BusinessEntityID)` to ensure each business entity is counted only once even if it has multiple matching addresses.", + "Return the single aggregated count column." + ] + }, + "revisql-train:7065": { + "raw": "1. Join the Employee table to the Person table on BusinessEntityID, because marital status is stored in Employee and name style is stored in Person.\n2. Filter Employee rows to MaritalStatus = 'M', applying the external knowledge that \"married\" maps to this value.\n3. Filter Person rows to NameStyle = 0, applying the external knowledge that \"western name style\" maps to this integer value.\n4. Count Employee.BusinessEntityID to return the total number of employees who satisfy both conditions.", + "steps": [ + "Join the Employee table to the Person table on BusinessEntityID, because marital status is stored in Employee and name style is stored in Person.", + "Filter Employee rows to MaritalStatus = 'M', applying the external knowledge that \"married\" maps to this value.", + "Filter Person rows to NameStyle = 0, applying the external knowledge that \"western name style\" maps to this integer value.", + "Count Employee.BusinessEntityID to return the total number of employees who satisfy both conditions." + ] + }, + "revisql-train:7066": { + "raw": "1. Join the Employee table to the Person table on BusinessEntityID.\n2. Filter Employee rows to those with SickLeaveHours greater than 10, applying the external knowledge about sick leave.\n3. Filter Person rows to EmailPromotion values 1 or 2, applying the external knowledge about e-mail promotion preference.\n4. Count the resulting rows to produce the total number of matching employees.\n5. Return only that count column.", + "steps": [ + "Join the Employee table to the Person table on BusinessEntityID.", + "Filter Employee rows to those with SickLeaveHours greater than 10, applying the external knowledge about sick leave.", + "Filter Person rows to EmailPromotion values 1 or 2, applying the external knowledge about e-mail promotion preference.", + "Count the resulting rows to produce the total number of matching employees.", + "Return only that count column." + ] + }, + "revisql-train:7067": { + "raw": "1. Start with the Employee table for employee identifiers and vacation data, and join it to the Person table on BusinessEntityID to bring in email promotion preferences.\n2. Filter the Employee table to keep only rows where VacationHours is strictly greater than 20, mapping the \"more than 20 vacations hours\" requirement.\n3. Filter the Person table to keep only rows where EmailPromotion is 1 or 2, mapping the \"wish to receive e-mail promotions\" requirement from external knowledge.\n4. Return only the BusinessEntityID column from the Employee table as the result set of matching employee ids.", + "steps": [ + "Start with the Employee table for employee identifiers and vacation data, and join it to the Person table on BusinessEntityID to bring in email promotion preferences.", + "Filter the Employee table to keep only rows where VacationHours is strictly greater than 20, mapping the \"more than 20 vacations hours\" requirement.", + "Filter the Person table to keep only rows where EmailPromotion is 1 or 2, mapping the \"wish to receive e-mail promotions\" requirement from external knowledge.", + "Return only the BusinessEntityID column from the Employee table as the result set of matching employee ids." + ] + }, + "revisql-train:7068": { + "raw": "1. Join Employee and Person on BusinessEntityID to link each employee’s birth date with their person record and contact details.\n2. Filter for sales persons by requiring PersonType = 'SP', applying the external knowledge that sales person maps to this value.\n3. Compute the oldest eligible employee by selecting MIN(BirthDate) from Employee while keeping the PersonType = 'SP' filter.\n4. Restrict the joined result to the one row where the employee’s BirthDate equals that minimum value.\n5. Return only the AdditionalContactInfo column from the Person table.", + "steps": [ + "Join Employee and Person on BusinessEntityID to link each employee’s birth date with their person record and contact details.", + "Filter for sales persons by requiring PersonType = 'SP', applying the external knowledge that sales person maps to this value.", + "Compute the oldest eligible employee by selecting MIN(BirthDate) from Employee while keeping the PersonType = 'SP' filter.", + "Restrict the joined result to the one row where the employee’s BirthDate equals that minimum value.", + "Return only the AdditionalContactInfo column from the Person table." + ] + }, + "revisql-train:7075": { + "raw": "1. Filter the Person table to rows where PersonType equals SC, because external knowledge defines store contact as that value.\n2. Join Employee on BusinessEntityID to ensure these store contacts are also employees.\n3. Join PersonCreditCard on BusinessEntityID to retrieve the linked credit card identifiers.\n4. Use DISTINCT on CreditCardID to remove duplicate values.\n5. Return only the CreditCardID column.", + "steps": [ + "Filter the Person table to rows where PersonType equals SC, because external knowledge defines store contact as that value.", + "Join Employee on BusinessEntityID to ensure these store contacts are also employees.", + "Join PersonCreditCard on BusinessEntityID to retrieve the linked credit card identifiers.", + "Use DISTINCT on CreditCardID to remove duplicate values.", + "Return only the CreditCardID column." + ] + }, + "revisql-train:7076": { + "raw": "1. Use the Employee table as the sole source because it holds the Gender and VacationHours attributes needed.\n2. Filter rows to male employees only by requiring Gender equal M, applying the external knowledge mapping for Male.\n3. Compute the average by applying the AVG aggregate to the VacationHours column across the filtered rows.\n4. Return the result as a single column named avg_vacation_hours.", + "steps": [ + "Use the Employee table as the sole source because it holds the Gender and VacationHours attributes needed.", + "Filter rows to male employees only by requiring Gender equal M, applying the external knowledge mapping for Male.", + "Compute the average by applying the AVG aggregate to the VacationHours column across the filtered rows.", + "Return the result as a single column named avg_vacation_hours." + ] + }, + "revisql-train:7086": { + "raw": "1. From the `SalesOrderDetail` table, count the distinct `SalesOrderID` values to establish the total number of orders for the denominator.\n2. Filter `SalesOrderDetail` to rows where `OrderQty` is less than or equal to 3 and `UnitPriceDiscount` equals 0, then count the distinct `SalesOrderID` values in this filtered set for the numerator.\n3. Compute the percentage by dividing the numerator by the denominator, multiplying the result by 100.0, and guarding against division by zero.\n4. Return the final calculated value as a single column named `percentage`.", + "steps": [ + "From the `SalesOrderDetail` table, count the distinct `SalesOrderID` values to establish the total number of orders for the denominator.", + "Filter `SalesOrderDetail` to rows where `OrderQty` is less than or equal to 3 and `UnitPriceDiscount` equals 0, then count the distinct `SalesOrderID` values in this filtered set for the numerator.", + "Compute the percentage by dividing the numerator by the denominator, multiplying the result by 100.0, and guarding against division by zero.", + "Return the final calculated value as a single column named `percentage`." + ] + }, + "revisql-train:7090": { + "raw": "1. Use the CreditCard table and apply the external knowledge mapping by filtering CardType to 'ColonialVoice', ExpMonth to 3, and ExpYear to 2005 to isolate cards that expired in March 2005.\n2. Inner join the PersonCreditCard table to CreditCard on the CreditCardID key to link each qualifying card to its associated business entity.\n3. Return only the BusinessEntityID column from PersonCreditCard as the final result list.", + "steps": [ + "Use the CreditCard table and apply the external knowledge mapping by filtering CardType to 'ColonialVoice', ExpMonth to 3, and ExpYear to 2005 to isolate cards that expired in March 2005.", + "Inner join the PersonCreditCard table to CreditCard on the CreditCardID key to link each qualifying card to its associated business entity.", + "Return only the BusinessEntityID column from PersonCreditCard as the final result list." + ] + }, + "revisql-train:7091": { + "raw": "1. Start from the ProductVendor table to access AverageLeadTime, StandardPrice, and LastReceiptDate, and the Vendor table to access CreditRating.\n2. Inner join ProductVendor to Vendor on BusinessEntityID to link the vendor’s operational metrics to its credit profile.\n3. Filter ProductVendor rows where AverageLeadTime equals 16 and StandardPrice equals 18.9900.\n4. Map the question’s “last receipt date is August 27, 2011” to ProductVendor.LastReceiptDate, matching the date portion to ‘2011-08-27’.\n5. Return only the CreditRating column from the Vendor table.", + "steps": [ + "Start from the ProductVendor table to access AverageLeadTime, StandardPrice, and LastReceiptDate, and the Vendor table to access CreditRating.", + "Inner join ProductVendor to Vendor on BusinessEntityID to link the vendor’s operational metrics to its credit profile.", + "Filter ProductVendor rows where AverageLeadTime equals 16 and StandardPrice equals 18.9900.", + "Map the question’s “last receipt date is August 27, 2011” to ProductVendor.LastReceiptDate, matching the date portion to ‘2011-08-27’.", + "Return only the CreditRating column from the Vendor table." + ] + }, + "revisql-train:7095": { + "raw": "1. Query the Location table to retrieve the LocationID where Name equals 'Subassembly', applying the external knowledge that \"Subassembly category\" maps to Name = 'Subassembly'.\n2. Filter ProductInventory to only rows whose LocationID matches the Subassembly LocationID found in step 1.\n3. Sum the Quantity column across the filtered ProductInventory records.\n4. Return the aggregated sum as a single column named TotalItems.", + "steps": [ + "Query the Location table to retrieve the LocationID where Name equals 'Subassembly', applying the external knowledge that \"Subassembly category\" maps to Name = 'Subassembly'.", + "Filter ProductInventory to only rows whose LocationID matches the Subassembly LocationID found in step 1.", + "Sum the Quantity column across the filtered ProductInventory records.", + "Return the aggregated sum as a single column named TotalItems." + ] + }, + "revisql-train:711": { + "raw": "1. Use the trains table alone; no joins are needed since car details are irrelevant to counting trains by direction.\n2. Filter rows where the direction column contains the value west, applying the external knowledge that west is a direction.\n3. Aggregate by counting the id column to compute the total number of westbound trains.\n4. Return that count of train ids as the only output column.", + "steps": [ + "Use the trains table alone; no joins are needed since car details are irrelevant to counting trains by direction.", + "Filter rows where the direction column contains the value west, applying the external knowledge that west is a direction.", + "Aggregate by counting the id column to compute the total number of westbound trains.", + "Return that count of train ids as the only output column." + ] + }, + "revisql-train:7123": { + "raw": "1. Identify the three relevant tables: Currency (contains the currency name), CountryRegionCurrency (bridge table), and CountryRegion (contains country names).\n2. Join Currency to CountryRegionCurrency on their common CurrencyCode column.\n3. Join CountryRegionCurrency to CountryRegion on their common CountryRegionCode column.\n4. Filter the results by specifying CountryRegion.Name equals 'Brazil'.\n5. Return only the Name column from the Currency table.", + "steps": [ + "Identify the three relevant tables: Currency (contains the currency name), CountryRegionCurrency (bridge table), and CountryRegion (contains country names).", + "Join Currency to CountryRegionCurrency on their common CurrencyCode column.", + "Join CountryRegionCurrency to CountryRegion on their common CountryRegionCode column.", + "Filter the results by specifying CountryRegion.Name equals 'Brazil'.", + "Return only the Name column from the Currency table." + ] + }, + "revisql-train:7127": { + "raw": "1. Start from ProductModelProductDescriptionCulture as the bridge table that connects product models to their localized descriptions and cultures.\n2. Join Culture on cultureid and filter to Culture.Name = 'English' to satisfy the \"saved in English\" requirement.\n3. Join ProductDescription on productdescriptionid to access the description text, then filter with Description LIKE 'Chromoly steel%' to find chromoly steel products.\n4. Join ProductModel on ProductModelID to reach the product model name.\n5. Return the Name column from ProductModel as the final answer.", + "steps": [ + "Start from ProductModelProductDescriptionCulture as the bridge table that connects product models to their localized descriptions and cultures.", + "Join Culture on cultureid and filter to Culture.Name = 'English' to satisfy the \"saved in English\" requirement.", + "Join ProductDescription on productdescriptionid to access the description text, then filter with Description LIKE 'Chromoly steel%' to find chromoly steel products.", + "Join ProductModel on ProductModelID to reach the product model name.", + "Return the Name column from ProductModel as the final answer." + ] + }, + "revisql-train:7135": { + "raw": "1. Map the external knowledge so that \"location\" targets the AddressLine1 column and \"business number 1\" means filtering BusinessEntityID to the value 1.\n2. Use the Address table as the source for the address line and join it to the BusinessEntityAddress table on their shared AddressID key.\n3. Apply the filter BusinessEntityID = 1 on the BusinessEntityAddress side of the join.\n4. Return only the AddressLine1 column as the final result.", + "steps": [ + "Map the external knowledge so that \"location\" targets the AddressLine1 column and \"business number 1\" means filtering BusinessEntityID to the value 1.", + "Use the Address table as the source for the address line and join it to the BusinessEntityAddress table on their shared AddressID key.", + "Apply the filter BusinessEntityID = 1 on the BusinessEntityAddress side of the join.", + "Return only the AddressLine1 column as the final result." + ] + }, + "revisql-train:7137": { + "raw": "1. Join the `Culture` table with `ProductModelProductDescriptionCulture` on `CultureID` to link each culture name to its product-model description rows.\n2. Use the external knowledge that Thai rows are identified by `Culture.Name = 'Thai'`.\n3. Compute the numerator by summing a `CASE` expression that returns 1 when `Name` is `'Thai'` and 0 otherwise.\n4. Compute the denominator by counting all `CultureID` values from the joined result to get the total number of product-model description rows.\n5. Cast the numerator to `REAL`, multiply by 100, and divide by the denominator to calculate the percentage.\n6. Return exactly one column containing the final calculated percentage value.", + "steps": [ + "Join the `Culture` table with `ProductModelProductDescriptionCulture` on `CultureID` to link each culture name to its product-model description rows.", + "Use the external knowledge that Thai rows are identified by `Culture.Name = 'Thai'`.", + "Compute the numerator by summing a `CASE` expression that returns 1 when `Name` is `'Thai'` and 0 otherwise.", + "Compute the denominator by counting all `CultureID` values from the joined result to get the total number of product-model description rows.", + "Cast the numerator to `REAL`, multiply by 100, and divide by the denominator to calculate the percentage.", + "Return exactly one column containing the final calculated percentage value." + ] + }, + "revisql-train:7143": { + "raw": "1. Find the table that stores location data, which contains a primary identifier column and a name column describing each location.\n2. Use the external knowledge that \"Debur and Polish\" is a manufacturing location name to target the name column in that table.\n3. Apply a filter requiring the name column to exactly match the value 'Debur and Polish'.\n4. Return only the location identifier column, LocationID.", + "steps": [ + "Find the table that stores location data, which contains a primary identifier column and a name column describing each location.", + "Use the external knowledge that \"Debur and Polish\" is a manufacturing location name to target the name column in that table.", + "Apply a filter requiring the name column to exactly match the value 'Debur and Polish'.", + "Return only the location identifier column, LocationID." + ] + }, + "revisql-train:7144": { + "raw": "1. Identify the Department table as the source containing department classifications and group names.\n2. Map the external knowledge that \"Sales and Marketing\" is a department group name to the GroupName column.\n3. Filter rows by specifying GroupName equals exactly 'Sales and Marketing'.\n4. Return only the DepartmentID column from the matching records.", + "steps": [ + "Identify the Department table as the source containing department classifications and group names.", + "Map the external knowledge that \"Sales and Marketing\" is a department group name to the GroupName column.", + "Filter rows by specifying GroupName equals exactly 'Sales and Marketing'.", + "Return only the DepartmentID column from the matching records." + ] + }, + "revisql-train:7146": { + "raw": "1. Identify the Shift table as the source that stores shift definitions and times.\n2. Locate the StartTime column within that table, which holds the shift beginning time.\n3. Filter the rows to the single record where ShiftID equals 2.\n4. Return only the StartTime column in the final result.", + "steps": [ + "Identify the Shift table as the source that stores shift definitions and times.", + "Locate the StartTime column within that table, which holds the shift beginning time.", + "Filter the rows to the single record where ShiftID equals 2.", + "Return only the StartTime column in the final result." + ] + }, + "revisql-train:7159": { + "raw": "1. Identify the bridge table that links ProductID to ProductPhotoID and the photo table that stores the ThumbNailPhoto binary data.\n2. Join these two tables on ProductPhotoID to associate product 332 with its thumbnail image.\n3. Filter the results to only the row where ProductID is 332.\n4. Calculate the thumbnail’s byte size by measuring the length of the ThumbNailPhoto column.\n5. Output the calculated value as a single column named PhotoSizeBytes.", + "steps": [ + "Identify the bridge table that links ProductID to ProductPhotoID and the photo table that stores the ThumbNailPhoto binary data.", + "Join these two tables on ProductPhotoID to associate product 332 with its thumbnail image.", + "Filter the results to only the row where ProductID is 332.", + "Calculate the thumbnail’s byte size by measuring the length of the ThumbNailPhoto column.", + "Output the calculated value as a single column named PhotoSizeBytes." + ] + }, + "revisql-train:7169": { + "raw": "1. Identify that the CreditRating attribute resides in the Vendor table, since the question asks for a vendor company’s credit rating.\n2. Recognize that the supplied rowguid value corresponds to the BusinessEntity table, which stores the unique identifier for any business entity.\n3. Join Vendor to BusinessEntity on BusinessEntityID, because Vendor references BusinessEntity through that common key.\n4. Filter the joined rows to only the record where BusinessEntity.rowguid exactly matches '33671A4E-DF2B-4879-807B-E3F930DD5C0C'.\n5. Return solely the CreditRating column from the Vendor table as the final answer.", + "steps": [ + "Identify that the CreditRating attribute resides in the Vendor table, since the question asks for a vendor company’s credit rating.", + "Recognize that the supplied rowguid value corresponds to the BusinessEntity table, which stores the unique identifier for any business entity.", + "Join Vendor to BusinessEntity on BusinessEntityID, because Vendor references BusinessEntity through that common key.", + "Filter the joined rows to only the record where BusinessEntity.rowguid exactly matches '33671A4E-DF2B-4879-807B-E3F930DD5C0C'.", + "Return solely the CreditRating column from the Vendor table as the final answer." + ] + }, + "revisql-train:7171": { + "raw": "1. Identify that the vendor activity status is stored in the `ActiveFlag` column of the `Vendor` table, where the external knowledge maps 1 to inactive and 2 to active.\n2. Join `Vendor` with `BusinessEntityContact` on `BusinessEntityID` to link a vendor to its associated contact person.\n3. Filter the `BusinessEntityContact` records to the specific `PersonID` value 2054.\n4. Return only the `ActiveFlag` column from the `Vendor` table.", + "steps": [ + "Identify that the vendor activity status is stored in the `ActiveFlag` column of the `Vendor` table, where the external knowledge maps 1 to inactive and 2 to active.", + "Join `Vendor` with `BusinessEntityContact` on `BusinessEntityID` to link a vendor to its associated contact person.", + "Filter the `BusinessEntityContact` records to the specific `PersonID` value 2054.", + "Return only the `ActiveFlag` column from the `Vendor` table." + ] + }, + "revisql-train:7174": { + "raw": "1. Identify that the Person table holds name fields (FirstName, MiddleName, LastName) and the Employee table holds the JobTitle.\n2. Join Person to Employee on BusinessEntityID, the shared key linking a person to their employee record.\n3. Filter Person where FirstName is Lynn, MiddleName is N, and LastName is Tsoflias.\n4. Return only the JobTitle column from the Employee table.", + "steps": [ + "Identify that the Person table holds name fields (FirstName, MiddleName, LastName) and the Employee table holds the JobTitle.", + "Join Person to Employee on BusinessEntityID, the shared key linking a person to their employee record.", + "Filter Person where FirstName is Lynn, MiddleName is N, and LastName is Tsoflias.", + "Return only the JobTitle column from the Employee table." + ] + }, + "revisql-train:7182": { + "raw": "1. Use BillOfMaterials as the primary table and join it to UnitMeasure on UnitMeasureCode to bring in the descriptive name for each code.\n2. Filter BillOfMaterials to only rows where UnitMeasureCode is 'EA', 'IN', or 'OZ'.\n3. Group the joined results by UnitMeasure.Name so each unit measure code aggregates in its own group.\n4. Sum BillOfMaterials.PerAssemblyQty—the pre-assembly quantity—within each name group.\n5. Return the aggregated total of PerAssemblyQty alongside the corresponding UnitMeasure.Name for each group.", + "steps": [ + "Use BillOfMaterials as the primary table and join it to UnitMeasure on UnitMeasureCode to bring in the descriptive name for each code.", + "Filter BillOfMaterials to only rows where UnitMeasureCode is 'EA', 'IN', or 'OZ'.", + "Group the joined results by UnitMeasure.Name so each unit measure code aggregates in its own group.", + "Sum BillOfMaterials.PerAssemblyQty—the pre-assembly quantity—within each name group.", + "Return the aggregated total of PerAssemblyQty alongside the corresponding UnitMeasure.Name for each group." + ] + }, + "revisql-train:7183": { + "raw": "1. Start with the Product table to retrieve the complete set of product IDs.\n2. Create a subquery that inner joins Product to WorkOrder on ProductID to collect only the product IDs that have at least one associated work order.\n3. In the main query, use NOT IN against that subquery result to keep only product IDs that are absent from the WorkOrder table, matching the meaning of having no work order ID.\n4. Return only the ProductID column.", + "steps": [ + "Start with the Product table to retrieve the complete set of product IDs.", + "Create a subquery that inner joins Product to WorkOrder on ProductID to collect only the product IDs that have at least one associated work order.", + "In the main query, use NOT IN against that subquery result to keep only product IDs that are absent from the WorkOrder table, matching the meaning of having no work order ID.", + "Return only the ProductID column." + ] + }, + "revisql-train:7192": { + "raw": "1. Join the `Employee` table to the `Person` table on `BusinessEntityID` to link each employee’s hire date with their name.\n2. Apply the external knowledge mapping that sales people correspond to `PersonType = 'SP'` and filter the `Person` table accordingly.\n3. Filter `Employee.HireDate` to include only rows where the date is before January 1, 2012.\n4. Return the columns `FirstName` and `LastName` from the `Person` table.", + "steps": [ + "Join the `Employee` table to the `Person` table on `BusinessEntityID` to link each employee’s hire date with their name.", + "Apply the external knowledge mapping that sales people correspond to `PersonType = 'SP'` and filter the `Person` table accordingly.", + "Filter `Employee.HireDate` to include only rows where the date is before January 1, 2012.", + "Return the columns `FirstName` and `LastName` from the `Person` table." + ] + }, + "revisql-train:7194": { + "raw": "1. Join the Employee and Person tables on BusinessEntityID to combine employment attributes with personal names.\n2. Filter Person.FirstName to 'Alex' using the external knowledge mapping for that name.\n3. Filter Employee.MaritalStatus to 'S' using the external knowledge that single maps to that value.\n4. Filter Employee.OrganizationLevel to 1.\n5. Return the count of Employee.BusinessEntityID as the final result.", + "steps": [ + "Join the Employee and Person tables on BusinessEntityID to combine employment attributes with personal names.", + "Filter Person.FirstName to 'Alex' using the external knowledge mapping for that name.", + "Filter Employee.MaritalStatus to 'S' using the external knowledge that single maps to that value.", + "Filter Employee.OrganizationLevel to 1.", + "Return the count of Employee.BusinessEntityID as the final result." + ] + }, + "revisql-train:7198": { + "raw": "1. Join the SalesPerson table to SalesPersonQuotaHistory on BusinessEntityID to link each salesperson with their quota history records.\n2. Filter for TerritoryID = 1 to restrict results to the specified territory.\n3. Map the \"projected sales quota in 2013\" condition to the QuotaDate column by filtering to rows where the year of QuotaDate equals 2013.\n4. Apply the condition Bonus <> 0 to keep only salespeople who achieved the projected sales quota.\n5. Return distinct BusinessEntityID from the SalesPerson table as the answer column.", + "steps": [ + "Join the SalesPerson table to SalesPersonQuotaHistory on BusinessEntityID to link each salesperson with their quota history records.", + "Filter for TerritoryID = 1 to restrict results to the specified territory.", + "Map the \"projected sales quota in 2013\" condition to the QuotaDate column by filtering to rows where the year of QuotaDate equals 2013.", + "Apply the condition Bonus <> 0 to keep only salespeople who achieved the projected sales quota.", + "Return distinct BusinessEntityID from the SalesPerson table as the answer column." + ] + }, + "revisql-train:720": { + "raw": "1. Map the external knowledge to columns: filter `trains.direction` to `'west'` and `cars.roof` to `'none'`, joining the tables on `trains.id = cars.train_id`.\n2. To capture trains with exactly one open-roof car, use an inner join with those two filters, group by `trains.id`, and keep only groups where the count of matching cars is less than or equal to one.\n3. To capture trains with zero open-roof cars, left join `trains` to `cars` on train ID with the `roof = 'none'` condition placed in the join, filter for west, and keep rows where the car side’s `train_id` is NULL.\n4. Union the train IDs returned from both of the above cases to form the complete set of westbound trains that have no more than one open-roof car.\n5. Count the distinct train IDs in that combined set and return the resulting single numeric value.", + "steps": [ + "Map the external knowledge to columns: filter `trains.direction` to `'west'` and `cars.roof` to `'none'`, joining the tables on `trains.id = cars.train_id`.", + "To capture trains with exactly one open-roof car, use an inner join with those two filters, group by `trains.id`, and keep only groups where the count of matching cars is less than or equal to one.", + "To capture trains with zero open-roof cars, left join `trains` to `cars` on train ID with the `roof = 'none'` condition placed in the join, filter for west, and keep rows where the car side’s `train_id` is NULL.", + "Union the train IDs returned from both of the above cases to form the complete set of westbound trains that have no more than one open-roof car.", + "Count the distinct train IDs in that combined set and return the resulting single numeric value." + ] + }, + "revisql-train:7200": { + "raw": "1. Start with the Employee table and join it to Person on BusinessEntityID to link employee records to their person profile.\n2. Join Person to EmailAddress on BusinessEntityID to access the associated email addresses.\n3. Filter the Employee table by Gender = 'F', applying the external knowledge that female maps to this value.\n4. Filter the Employee table further by MaritalStatus = 'S', applying the external knowledge that single maps to this value.\n5. Return only the EmailAddress column from the EmailAddress table.", + "steps": [ + "Start with the Employee table and join it to Person on BusinessEntityID to link employee records to their person profile.", + "Join Person to EmailAddress on BusinessEntityID to access the associated email addresses.", + "Filter the Employee table by Gender = 'F', applying the external knowledge that female maps to this value.", + "Filter the Employee table further by MaritalStatus = 'S', applying the external knowledge that single maps to this value.", + "Return only the EmailAddress column from the EmailAddress table." + ] + }, + "revisql-train:7204": { + "raw": "1. Join the Employee and Person tables on BusinessEntityID to link each employee’s gender with their email-promotion preference.\n2. Filter the results to employees who wish to receive email promotions by requiring Person.EmailPromotion to be 1 or 2.\n3. Compute the numerator by summing a CASE expression that yields 1 when Employee.Gender equals 'F' and 0 otherwise.\n4. Compute the denominator with COUNT(*) to get the total number of employees remaining after the filter.\n5. Cast the numerator to REAL, multiply by 100.0, divide by the denominator, and return the single column as FemalePercent.", + "steps": [ + "Join the Employee and Person tables on BusinessEntityID to link each employee’s gender with their email-promotion preference.", + "Filter the results to employees who wish to receive email promotions by requiring Person.EmailPromotion to be 1 or 2.", + "Compute the numerator by summing a CASE expression that yields 1 when Employee.Gender equals 'F' and 0 otherwise.", + "Compute the denominator with COUNT(*) to get the total number of employees remaining after the filter.", + "Cast the numerator to REAL, multiply by 100.0, divide by the denominator, and return the single column as FemalePercent." + ] + }, + "revisql-train:7207": { + "raw": "1. Use only the CreditCard table; no joins are required.\n2. Compute the total number of credit card types with COUNT(DISTINCT CardType).\n3. Filter rows where CardType = 'Vista' using the external knowledge mapping, and compute COUNT(*) for the Vista cards.\n4. Return both values in a single row as total_card_types and vista_cards.", + "steps": [ + "Use only the CreditCard table; no joins are required.", + "Compute the total number of credit card types with COUNT(DISTINCT CardType).", + "Filter rows where CardType = 'Vista' using the external knowledge mapping, and compute COUNT(*) for the Vista cards.", + "Return both values in a single row as total_card_types and vista_cards." + ] + }, + "revisql-train:7219": { + "raw": "1. Join PurchaseOrderHeader to ShipMethod on ShipMethodID to access the shipping method name for each purchase order.\n2. Filter the ShipMethod.Name to match CARGO TRANSPORT 5 using a case-insensitive comparison.\n3. Filter the PurchaseOrderHeader.OrderDate to only orders created on 2011-12-14 by comparing the date portion.\n4. Sum the PurchaseOrderHeader.Freight values across the filtered rows to compute total shipment cost.\n5. Return the aggregated result as a single column named TotalShipmentCost.", + "steps": [ + "Join PurchaseOrderHeader to ShipMethod on ShipMethodID to access the shipping method name for each purchase order.", + "Filter the ShipMethod.Name to match CARGO TRANSPORT 5 using a case-insensitive comparison.", + "Filter the PurchaseOrderHeader.OrderDate to only orders created on 2011-12-14 by comparing the date portion.", + "Sum the PurchaseOrderHeader.Freight values across the filtered rows to compute total shipment cost.", + "Return the aggregated result as a single column named TotalShipmentCost." + ] + }, + "revisql-train:7220": { + "raw": "1. Use `SalesOrderHeader` to access sales orders, noting that `SalesPersonID` identifies the salesperson who created each order.\n2. Join the `Person` table on `Person.BusinessEntityID` = `SalesOrderHeader.SalesPersonID`; the external knowledge indicates sales persons are represented in `Person` with `PersonType` = 'SP'.\n3. Filter `Person` to the specific salesperson by requiring `FirstName` = 'David', `MiddleName` = 'R', and `LastName` = 'Campbell'.\n4. Aggregate the joined results with `COUNT(*)` to total the number of matching sales orders.\n5. Return the single count column.", + "steps": [ + "Use `SalesOrderHeader` to access sales orders, noting that `SalesPersonID` identifies the salesperson who created each order.", + "Join the `Person` table on `Person.BusinessEntityID` = `SalesOrderHeader.SalesPersonID`; the external knowledge indicates sales persons are represented in `Person` with `PersonType` = 'SP'.", + "Filter `Person` to the specific salesperson by requiring `FirstName` = 'David', `MiddleName` = 'R', and `LastName` = 'Campbell'.", + "Aggregate the joined results with `COUNT(*)` to total the number of matching sales orders.", + "Return the single count column." + ] + }, + "revisql-train:7224": { + "raw": "1. Use the Employee table to access sick leave hours and the Person table to access first names.\n2. Join Employee to Person on BusinessEntityID, the shared key linking an employee record to a person record.\n3. Filter the Employee table to only rows where SickLeaveHours is greater than 65, applying the given threshold.\n4. Return the FirstName column from the Person table.", + "steps": [ + "Use the Employee table to access sick leave hours and the Person table to access first names.", + "Join Employee to Person on BusinessEntityID, the shared key linking an employee record to a person record.", + "Filter the Employee table to only rows where SickLeaveHours is greater than 65, applying the given threshold.", + "Return the FirstName column from the Person table." + ] + }, + "revisql-train:7228": { + "raw": "1. Identify the SalesPerson table as the source containing year-to-date sales figures for each salesperson.\n2. Apply the external knowledge mappings: treat BusinessEntityID as the business ID and SalesYTD as the sales total year to date.\n3. Order all rows by SalesYTD in descending order to place the highest year-to-date total first.\n4. Keep only the top row to isolate the single person with the maximum SalesYTD.\n5. Return exclusively the BusinessEntityID column as the final answer.", + "steps": [ + "Identify the SalesPerson table as the source containing year-to-date sales figures for each salesperson.", + "Apply the external knowledge mappings: treat BusinessEntityID as the business ID and SalesYTD as the sales total year to date.", + "Order all rows by SalesYTD in descending order to place the highest year-to-date total first.", + "Keep only the top row to isolate the single person with the maximum SalesYTD.", + "Return exclusively the BusinessEntityID column as the final answer." + ] + }, + "revisql-train:7235": { + "raw": "1. Start with the CreditCard table to access card numbers and the PersonCreditCard table to find the associated person.\n2. Join CreditCard to PersonCreditCard on their shared CreditCardID key.\n3. Filter the results to only the row where CardNumber equals 11113366963373.\n4. Return BusinessEntityID from PersonCreditCard, using the external knowledge that \"business id\" maps to this column.", + "steps": [ + "Start with the CreditCard table to access card numbers and the PersonCreditCard table to find the associated person.", + "Join CreditCard to PersonCreditCard on their shared CreditCardID key.", + "Filter the results to only the row where CardNumber equals 11113366963373.", + "Return BusinessEntityID from PersonCreditCard, using the external knowledge that \"business id\" maps to this column." + ] + }, + "revisql-train:7247": { + "raw": "1. Use the Employee table as the sole source; no joins are needed.\n2. Map \"married\" to MaritalStatus = 'M' and \"male\" to Gender = 'M' using the external knowledge.\n3. Filter BirthDate to only employees born before 1960 by extracting the year and comparing it to '1960'.\n4. Combine all three predicates with AND in the WHERE clause.\n5. Return the count of BusinessEntityID as a single aggregated value.", + "steps": [ + "Use the Employee table as the sole source; no joins are needed.", + "Map \"married\" to MaritalStatus = 'M' and \"male\" to Gender = 'M' using the external knowledge.", + "Filter BirthDate to only employees born before 1960 by extracting the year and comparing it to '1960'.", + "Combine all three predicates with AND in the WHERE clause.", + "Return the count of BusinessEntityID as a single aggregated value." + ] + }, + "revisql-train:7259": { + "raw": "1. In a subquery or CTE, find MAX(Rating) in ProductReview where ReviewerName is 'John Smith' to get his highest rating.\n2. Join Product to ProductReview on ProductID to access each product's pricing, name, and review details.\n3. Join the max-rating subquery on Rating to keep only reviews matching that highest score.\n4. Filter the ProductReview rows to ReviewerName = 'John Smith'.\n5. Compute profit as ListPrice minus StandardCost for each remaining product.\n6. Return distinct profit and the product Name.", + "steps": [ + "In a subquery or CTE, find MAX(Rating) in ProductReview where ReviewerName is 'John Smith' to get his highest rating.", + "Join Product to ProductReview on ProductID to access each product's pricing, name, and review details.", + "Join the max-rating subquery on Rating to keep only reviews matching that highest score.", + "Filter the ProductReview rows to ReviewerName = 'John Smith'.", + "Compute profit as ListPrice minus StandardCost for each remaining product.", + "Return distinct profit and the product Name." + ] + }, + "revisql-train:727": { + "raw": "1. Start from the trains table and left join it to the cars table on trains.id = cars.train_id so that trains with zero cars are still included.\n2. Group the joined results by each train's id to aggregate the cars per train.\n3. Apply the external knowledge that \"2 or less cars\" means counting the car ids within each group and keeping only those groups where the count is less than or equal to 2.\n4. Return the direction column from the trains table for the trains that meet this condition.", + "steps": [ + "Start from the trains table and left join it to the cars table on trains.id = cars.train_id so that trains with zero cars are still included.", + "Group the joined results by each train's id to aggregate the cars per train.", + "Apply the external knowledge that \"2 or less cars\" means counting the car ids within each group and keeping only those groups where the count is less than or equal to 2.", + "Return the direction column from the trains table for the trains that meet this condition." + ] + }, + "revisql-train:7273": { + "raw": "1. Group PurchaseOrderDetail by PurchaseOrderID and compute the per-order difference as SUM(OrderQty) minus SUM(ReceivedQty), mapping ordered quantity to OrderQty and actual quantity received to ReceivedQty.\n2. Join the grouped result to PurchaseOrderHeader on PurchaseOrderID to bring in VendorID.\n3. Join Vendor on VendorID equals BusinessEntityID to resolve \"which vendor\" to the Name column.\n4. Order the results by the computed difference in descending order so the largest gap appears first.\n5. Return only the top row, selecting the difference as MaxDifference and the vendor Name.", + "steps": [ + "Group PurchaseOrderDetail by PurchaseOrderID and compute the per-order difference as SUM(OrderQty) minus SUM(ReceivedQty), mapping ordered quantity to OrderQty and actual quantity received to ReceivedQty.", + "Join the grouped result to PurchaseOrderHeader on PurchaseOrderID to bring in VendorID.", + "Join Vendor on VendorID equals BusinessEntityID to resolve \"which vendor\" to the Name column.", + "Order the results by the computed difference in descending order so the largest gap appears first.", + "Return only the top row, selecting the difference as MaxDifference and the vendor Name." + ] + }, + "revisql-train:7282": { + "raw": "1. Identify that \"most reviews\" translates to the maximum count of reviews per product, which means you must aggregate the `ProductReview` table by `ProductID`.\n2. Join `ProductReview` with `Product` on `ProductID` so the product name can be returned.\n3. Group the joined data by `ProductID` and `Name` to calculate how many reviews each product has.\n4. In a subquery, group `ProductReview` by `ProductID`, count the rows for each product, and take the maximum of those counts to find the highest review count.\n5. Use a `HAVING` clause to keep only the product group(s) whose review count equals that maximum value from the subquery.\n6. Return the `Name` column from the `Product` table.", + "steps": [ + "Identify that \"most reviews\" translates to the maximum count of reviews per product, which means you must aggregate the `ProductReview` table by `ProductID`.", + "Join `ProductReview` with `Product` on `ProductID` so the product name can be returned.", + "Group the joined data by `ProductID` and `Name` to calculate how many reviews each product has.", + "In a subquery, group `ProductReview` by `ProductID`, count the rows for each product, and take the maximum of those counts to find the highest review count.", + "Use a `HAVING` clause to keep only the product group(s) whose review count equals that maximum value from the subquery.", + "Return the `Name` column from the `Product` table." + ] + }, + "revisql-train:7289": { + "raw": "1. Identify ProductReview as the table containing reviewer emails and Product as the table holding the class attribute.\n2. Inner join ProductReview to Product on the shared ProductID key to link each review to its product.\n3. Filter the joined rows where Product.Class equals 'H', applying the external knowledge that \"high class\" maps to Class = 'H'.\n4. Apply DISTINCT to the EmailAddress column from ProductReview to ensure each reviewer email is listed only once.\n5. Return only the EmailAddress column in the final result set.", + "steps": [ + "Identify ProductReview as the table containing reviewer emails and Product as the table holding the class attribute.", + "Inner join ProductReview to Product on the shared ProductID key to link each review to its product.", + "Filter the joined rows where Product.Class equals 'H', applying the external knowledge that \"high class\" maps to Class = 'H'.", + "Apply DISTINCT to the EmailAddress column from ProductReview to ensure each reviewer email is listed only once.", + "Return only the EmailAddress column in the final result set." + ] + }, + "revisql-train:7290": { + "raw": "1. Join `Product` to `ProductListPriceHistory` on `ProductID` to connect each product with its price history rows.\n2. Group the results by `Product.ProductID` and `Product.Name` to prepare for an aggregate check per product.\n3. Use a `HAVING` condition to retain only groups where the count of price history records (or `ListPrice` entries) is greater than 2, applying the external knowledge definition of at least 2 price changes.\n4. Return only the `Name` column from `Product`.", + "steps": [ + "Join `Product` to `ProductListPriceHistory` on `ProductID` to connect each product with its price history rows.", + "Group the results by `Product.ProductID` and `Product.Name` to prepare for an aggregate check per product.", + "Use a `HAVING` condition to retain only groups where the count of price history records (or `ListPrice` entries) is greater than 2, applying the external knowledge definition of at least 2 price changes.", + "Return only the `Name` column from `Product`." + ] + }, + "revisql-train:7299": { + "raw": "1. Filter the Product table to rows where ProductLine equals 'M', applying the external knowledge that mountain product line maps to that value.\n2. Join ProductVendor on ProductID to link each mountain product with the vendors that supply it.\n3. Group the joined results by ProductID so that vendor counts are computed per individual product.\n4. Restrict the groups with a HAVING clause requiring the count of distinct BusinessEntityID values to exceed 2, matching the external knowledge for sold by over 2 vendors.\n5. Count the number of ProductIDs that survive the grouping and filter to produce the final answer.", + "steps": [ + "Filter the Product table to rows where ProductLine equals 'M', applying the external knowledge that mountain product line maps to that value.", + "Join ProductVendor on ProductID to link each mountain product with the vendors that supply it.", + "Group the joined results by ProductID so that vendor counts are computed per individual product.", + "Restrict the groups with a HAVING clause requiring the count of distinct BusinessEntityID values to exceed 2, matching the external knowledge for sold by over 2 vendors.", + "Count the number of ProductIDs that survive the grouping and filter to produce the final answer." + ] + }, + "revisql-train:7301": { + "raw": "1. Join ProductReview to Product on ProductID to link each review to its corresponding product.\n2. Filter Product.Name to exactly 'HL Mountain Pedal'.\n3. Use a correlated subquery against ProductReview to compute MIN(Rating) for the same ProductID, applying the external knowledge that \"lowest rating\" maps to the MIN aggregate.\n4. In the outer query, retain only ProductReview rows where Rating equals that subquery's minimum value.\n5. Return distinct EmailAddress values from ProductReview as the final output columns.", + "steps": [ + "Join ProductReview to Product on ProductID to link each review to its corresponding product.", + "Filter Product.Name to exactly 'HL Mountain Pedal'.", + "Use a correlated subquery against ProductReview to compute MIN(Rating) for the same ProductID, applying the external knowledge that \"lowest rating\" maps to the MIN aggregate.", + "In the outer query, retain only ProductReview rows where Rating equals that subquery's minimum value.", + "Return distinct EmailAddress values from ProductReview as the final output columns." + ] + }, + "revisql-train:7303": { + "raw": "1. Use `Product` as the primary table and correlate it with `ProductVendor` via `ProductID` to evaluate stock status.\n2. Filter for purchased-in-house items by requiring `MakeFlag = 0` on `Product`, mapping the external knowledge definition.\n3. Enforce the out-of-stock condition with a `NOT EXISTS` subquery on `ProductVendor` that excludes any product having at least one row where `OnOrderQty > 0`; this captures the external rule that out of stock means `0` or `null` (or no vendor row).\n4. Apply `DISTINCT` to the product `Name` to avoid duplicate entries.\n5. Return only the `Name` column.", + "steps": [ + "Use `Product` as the primary table and correlate it with `ProductVendor` via `ProductID` to evaluate stock status.", + "Filter for purchased-in-house items by requiring `MakeFlag = 0` on `Product`, mapping the external knowledge definition.", + "Enforce the out-of-stock condition with a `NOT EXISTS` subquery on `ProductVendor` that excludes any product having at least one row where `OnOrderQty > 0`; this captures the external rule that out of stock means `0` or `null` (or no vendor row).", + "Apply `DISTINCT` to the product `Name` to avoid duplicate entries.", + "Return only the `Name` column." + ] + }, + "revisql-train:7306": { + "raw": "1. Join ProductReview to Product on ProductID to link review ratings with product details.\n2. Filter to rows where Product.ProductLine equals 'M', applying the external knowledge that mountain product line maps to that value.\n3. Group the results by Product.Name so that each product's reviews are aggregated together.\n4. Calculate the average rating per product as the sum of Rating divided by the count of ProductID, casting the numerator to a real number to preserve decimal precision.\n5. Order the grouped results by this average rating in descending order to bring the highest-rated product to the top.\n6. Return only the Name column of the single top product by limiting the result to one row.", + "steps": [ + "Join ProductReview to Product on ProductID to link review ratings with product details.", + "Filter to rows where Product.ProductLine equals 'M', applying the external knowledge that mountain product line maps to that value.", + "Group the results by Product.Name so that each product's reviews are aggregated together.", + "Calculate the average rating per product as the sum of Rating divided by the count of ProductID, casting the numerator to a real number to preserve decimal precision.", + "Order the grouped results by this average rating in descending order to bring the highest-rated product to the top.", + "Return only the Name column of the single top product by limiting the result to one row." + ] + }, + "revisql-train:731": { + "raw": "1. Join the movie table with the characters table on MovieID to link each character to its film.\n2. Filter the joined rows to only those where the movie title is 'Batman', using the external knowledge that \"movie Batman\" means Title equals 'Batman'.\n3. Calculate the maximum screentime value among all characters in that specific movie, applying the same join and title filter.\n4. Keep only the character row(s) whose screentime equals that maximum value, since \"longest screen time\" maps to the maximum screentime.\n5. Return the Character Name column as the final result.", + "steps": [ + "Join the movie table with the characters table on MovieID to link each character to its film.", + "Filter the joined rows to only those where the movie title is 'Batman', using the external knowledge that \"movie Batman\" means Title equals 'Batman'.", + "Calculate the maximum screentime value among all characters in that specific movie, applying the same join and title filter.", + "Keep only the character row(s) whose screentime equals that maximum value, since \"longest screen time\" maps to the maximum screentime.", + "Return the Character Name column as the final result." + ] + }, + "revisql-train:7313": { + "raw": "1. Filter EmployeeDepartmentHistory to active night-shift rows using ShiftID = 3 and EndDate IS NULL.\n2. Join Employee on BusinessEntityID to access BirthDate, and join Person on BusinessEntityID to access FirstName and LastName.\n3. In a subquery with the same joins and filters, find the minimum BirthDate among all active night-shift employees.\n4. In the outer query, keep only rows where the employee's BirthDate equals that minimum value to isolate the oldest.\n5. Calculate age as the difference between the current year and birth year, minus one if the current month-day is earlier than the birth month-day.\n6. Return FirstName, LastName, and the computed Age, grouping by BusinessEntityID.", + "steps": [ + "Filter EmployeeDepartmentHistory to active night-shift rows using ShiftID = 3 and EndDate IS NULL.", + "Join Employee on BusinessEntityID to access BirthDate, and join Person on BusinessEntityID to access FirstName and LastName.", + "In a subquery with the same joins and filters, find the minimum BirthDate among all active night-shift employees.", + "In the outer query, keep only rows where the employee's BirthDate equals that minimum value to isolate the oldest.", + "Calculate age as the difference between the current year and birth year, minus one if the current month-day is earlier than the birth month-day.", + "Return FirstName, LastName, and the computed Age, grouping by BusinessEntityID." + ] + }, + "revisql-train:7316": { + "raw": "1. Join EmployeeDepartmentHistory to Department on DepartmentID and to EmployeePayHistory on BusinessEntityID to connect employees with department names and hourly rates.\n2. Filter EmployeeDepartmentHistory to the employee’s current department by requiring EndDate IS NULL.\n3. Map the external knowledge that “latest payrate” corresponds to the EmployeePayHistory row for each BusinessEntityID where RateChangeDate equals the maximum RateChangeDate for that employee.\n4. Group the filtered results by DepartmentID and Name from Department.\n5. Compute the average hourly pay rate per department by averaging the Rate values in each group, and return DepartmentID, Name, and that calculated average.", + "steps": [ + "Join EmployeeDepartmentHistory to Department on DepartmentID and to EmployeePayHistory on BusinessEntityID to connect employees with department names and hourly rates.", + "Filter EmployeeDepartmentHistory to the employee’s current department by requiring EndDate IS NULL.", + "Map the external knowledge that “latest payrate” corresponds to the EmployeePayHistory row for each BusinessEntityID where RateChangeDate equals the maximum RateChangeDate for that employee.", + "Group the filtered results by DepartmentID and Name from Department.", + "Compute the average hourly pay rate per department by averaging the Rate values in each group, and return DepartmentID, Name, and that calculated average." + ] + }, + "revisql-train:7318": { + "raw": "1. Join the Vendor table with the ProductVendor table on BusinessEntityID to connect each vendor’s name to their product supply metrics.\n2. Filter the joined rows to only those where ProductID equals 319.\n3. Order the remaining rows by AverageLeadTime in ascending order so the shortest lead time appears first.\n4. Restrict the output to the first row only.\n5. Return the Name column from the Vendor table.", + "steps": [ + "Join the Vendor table with the ProductVendor table on BusinessEntityID to connect each vendor’s name to their product supply metrics.", + "Filter the joined rows to only those where ProductID equals 319.", + "Order the remaining rows by AverageLeadTime in ascending order so the shortest lead time appears first.", + "Restrict the output to the first row only.", + "Return the Name column from the Vendor table." + ] + }, + "revisql-train:7320": { + "raw": "1. Join the Vendor table with the ProductVendor table on BusinessEntityID to link each vendor's name to their product cost records.\n2. Filter ProductVendor to only rows where ProductID is 342.\n3. Compute the profit on net for each vendor as LastReceiptCost minus StandardPrice.\n4. Determine the maximum profit value among all rows returned by that filter.\n5. Return the Name column for the vendor(s) whose calculated profit equals that maximum value.", + "steps": [ + "Join the Vendor table with the ProductVendor table on BusinessEntityID to link each vendor's name to their product cost records.", + "Filter ProductVendor to only rows where ProductID is 342.", + "Compute the profit on net for each vendor as LastReceiptCost minus StandardPrice.", + "Determine the maximum profit value among all rows returned by that filter.", + "Return the Name column for the vendor(s) whose calculated profit equals that maximum value." + ] + }, + "revisql-train:7322": { + "raw": "1. Start from the Employee table to access the HireDate and BusinessEntityID for each employee.\n2. Join EmployeeDepartmentHistory on BusinessEntityID to connect employees to their departmental assignments.\n3. Join Department on DepartmentID to bring in the department name for filtering.\n4. Filter for rows where Department.Name is exactly 'Research and Development'.\n5. Compute the average length of employment by averaging the difference between the current year and the year extracted from HireDate, mapping the external knowledge formula to the available date columns.\n6. Return the single resulting aggregated average value.", + "steps": [ + "Start from the Employee table to access the HireDate and BusinessEntityID for each employee.", + "Join EmployeeDepartmentHistory on BusinessEntityID to connect employees to their departmental assignments.", + "Join Department on DepartmentID to bring in the department name for filtering.", + "Filter for rows where Department.Name is exactly 'Research and Development'.", + "Compute the average length of employment by averaging the difference between the current year and the year extracted from HireDate, mapping the external knowledge formula to the available date columns.", + "Return the single resulting aggregated average value." + ] + }, + "revisql-train:7325": { + "raw": "1. Filter the Employee table to rows where JobTitle equals 'Marketing Manager', applying the external knowledge that this is the correct job title value.\n2. Join the Person table on BusinessEntityID to retrieve each employee's FirstName and LastName.\n3. Left join the EmailAddress table on BusinessEntityID to include the EmailAddress while keeping all managers even if no email record exists.\n4. Return exactly the columns FirstName, LastName, and EmailAddress.", + "steps": [ + "Filter the Employee table to rows where JobTitle equals 'Marketing Manager', applying the external knowledge that this is the correct job title value.", + "Join the Person table on BusinessEntityID to retrieve each employee's FirstName and LastName.", + "Left join the EmailAddress table on BusinessEntityID to include the EmailAddress while keeping all managers even if no email record exists.", + "Return exactly the columns FirstName, LastName, and EmailAddress." + ] + }, + "revisql-train:7327": { + "raw": "1. Locate the store record in the Store table by filtering where the Name column equals 'Area Bike Accessories'.\n2. Join SalesPerson on Store.SalesPersonID matching SalesPerson.BusinessEntityID to identify the salesperson assigned to that store.\n3. Join Person on SalesPerson.BusinessEntityID matching Person.BusinessEntityID to link the salesperson to their person record.\n4. Join SalesTerritory on SalesPerson.TerritoryID matching SalesTerritory.TerritoryID to obtain the territory details.\n5. Return the Name column from SalesTerritory as the territory name.", + "steps": [ + "Locate the store record in the Store table by filtering where the Name column equals 'Area Bike Accessories'.", + "Join SalesPerson on Store.SalesPersonID matching SalesPerson.BusinessEntityID to identify the salesperson assigned to that store.", + "Join Person on SalesPerson.BusinessEntityID matching Person.BusinessEntityID to link the salesperson to their person record.", + "Join SalesTerritory on SalesPerson.TerritoryID matching SalesTerritory.TerritoryID to obtain the territory details.", + "Return the Name column from SalesTerritory as the territory name." + ] + }, + "revisql-train:7328": { + "raw": "1. Filter the `SalesTerritory` table to rows where `Name` equals 'France', applying the external knowledge that France territory maps to this column and value.\n2. Join `SalesPerson` on `TerritoryID` to link the France territory to its assigned sales representatives.\n3. Join `Store` on `SalesPersonID` matching the salesperson's `BusinessEntityID` to retrieve the stores tied to each representative.\n4. Join `Person` on `BusinessEntityID` to obtain the representative's first and last name, per the external knowledge that sales representative name refers to `FirstName` and `LastName`.\n5. Return `Store.Name` as the store name, `Person.FirstName`, and `Person.LastName`.", + "steps": [ + "Filter the `SalesTerritory` table to rows where `Name` equals 'France', applying the external knowledge that France territory maps to this column and value.", + "Join `SalesPerson` on `TerritoryID` to link the France territory to its assigned sales representatives.", + "Join `Store` on `SalesPersonID` matching the salesperson's `BusinessEntityID` to retrieve the stores tied to each representative.", + "Join `Person` on `BusinessEntityID` to obtain the representative's first and last name, per the external knowledge that sales representative name refers to `FirstName` and `LastName`.", + "Return `Store.Name` as the store name, `Person.FirstName`, and `Person.LastName`." + ] + }, + "revisql-train:733": { + "raw": "1. Filter the movie table to rows where Title equals 'Batman', applying the external knowledge that the movie name maps to the title column.\n2. Join the characters table on MovieID to associate the movie with its cast entries.\n3. Join the actor table on ActorID to connect each cast entry to the corresponding actor's details.\n4. Return the Name column from the actor table to list the actors who appeared in the movie.", + "steps": [ + "Filter the movie table to rows where Title equals 'Batman', applying the external knowledge that the movie name maps to the title column.", + "Join the characters table on MovieID to associate the movie with its cast entries.", + "Join the actor table on ActorID to connect each cast entry to the corresponding actor's details.", + "Return the Name column from the actor table to list the actors who appeared in the movie." + ] + }, + "revisql-train:7336": { + "raw": "1. Join the Employee table to EmployeeDepartmentHistory on BusinessEntityID, then join EmployeeDepartmentHistory to Department on DepartmentID to link each employee record to a department name.\n2. Filter EmployeeDepartmentHistory to only rows where EndDate IS NULL, applying the external knowledge that a null EndDate identifies a current employee.\n3. Compute each employee's age by subtracting the year of their BirthDate from the current year.\n4. Group the results by DepartmentID so the subsequent aggregation is calculated separately for each department.\n5. Apply the AVG function to the computed age difference to obtain the average age per department.\n6. Return the Department name column and the aggregated average age column.", + "steps": [ + "Join the Employee table to EmployeeDepartmentHistory on BusinessEntityID, then join EmployeeDepartmentHistory to Department on DepartmentID to link each employee record to a department name.", + "Filter EmployeeDepartmentHistory to only rows where EndDate IS NULL, applying the external knowledge that a null EndDate identifies a current employee.", + "Compute each employee's age by subtracting the year of their BirthDate from the current year.", + "Group the results by DepartmentID so the subsequent aggregation is calculated separately for each department.", + "Apply the AVG function to the computed age difference to obtain the average age per department.", + "Return the Department name column and the aggregated average age column." + ] + }, + "revisql-train:7339": { + "raw": "1. Identify the SalesPerson table as the source containing last year sales figures and salesperson identifiers.\n2. Map the question's phrase \"lowest total sales from last year\" to the MIN(SalesLastYear) aggregate, and \"sale person\" to the BusinessEntityID column, per the external knowledge.\n3. Compute the single minimum value of SalesLastYear across all rows in SalesPerson using a scalar subquery.\n4. Filter the SalesPerson table to return only the row(s) whose SalesLastYear equals that minimum value.\n5. Project and return exactly the BusinessEntityID column to identify the salesperson with the lowest total sales last year.", + "steps": [ + "Identify the SalesPerson table as the source containing last year sales figures and salesperson identifiers.", + "Map the question's phrase \"lowest total sales from last year\" to the MIN(SalesLastYear) aggregate, and \"sale person\" to the BusinessEntityID column, per the external knowledge.", + "Compute the single minimum value of SalesLastYear across all rows in SalesPerson using a scalar subquery.", + "Filter the SalesPerson table to return only the row(s) whose SalesLastYear equals that minimum value.", + "Project and return exactly the BusinessEntityID column to identify the salesperson with the lowest total sales last year." + ] + }, + "revisql-train:7343": { + "raw": "1. Target the `WorkOrderRouting` table, which stores the manufacturing cost data needed for the calculation.\n2. Map the concepts using external knowledge: interpret `ActualCost` as the actual manufacturing cost and `PlannedCost` as the estimated manufacturing cost.\n3. Filter the rows to only those where `ProductID` equals 818.\n4. Aggregate by computing the sum of `ActualCost` and the sum of `PlannedCost` across the filtered rows.\n5. Calculate the difference by subtracting the summed `PlannedCost` from the summed `ActualCost`, and return the result as a single column named `difference`.", + "steps": [ + "Target the `WorkOrderRouting` table, which stores the manufacturing cost data needed for the calculation.", + "Map the concepts using external knowledge: interpret `ActualCost` as the actual manufacturing cost and `PlannedCost` as the estimated manufacturing cost.", + "Filter the rows to only those where `ProductID` equals 818.", + "Aggregate by computing the sum of `ActualCost` and the sum of `PlannedCost` across the filtered rows.", + "Calculate the difference by subtracting the summed `PlannedCost` from the summed `ActualCost`, and return the result as a single column named `difference`." + ] + }, + "revisql-train:7354": { + "raw": "1. Identify that subcategory names reside in the ProductSubcategory table and that the external knowledge maps \"bikes\" to the ProductCategory table.\n2. Join ProductSubcategory to ProductCategory on ProductCategoryID to relate each subcategory to its parent category.\n3. Filter the joined results to rows where ProductCategory.Name equals 'Bikes'.\n4. Return only the Name column from ProductSubcategory to list all bike subcategory names.", + "steps": [ + "Identify that subcategory names reside in the ProductSubcategory table and that the external knowledge maps \"bikes\" to the ProductCategory table.", + "Join ProductSubcategory to ProductCategory on ProductCategoryID to relate each subcategory to its parent category.", + "Filter the joined results to rows where ProductCategory.Name equals 'Bikes'.", + "Return only the Name column from ProductSubcategory to list all bike subcategory names." + ] + }, + "revisql-train:7356": { + "raw": "1. Map the term \"goods\" from the question to product names, which correspond to the `Name` column in the `Product` table.\n2. Identify `SalesOrderDetail` as the table that records individual items sold, containing both `SalesOrderID` and `ProductID`.\n3. Join `Product` to `SalesOrderDetail` on their shared `ProductID` key to link each order line to its product name.\n4. Filter `SalesOrderDetail.SalesOrderID` to exactly `43660` to isolate the requested sales order.\n5. Return only the `Name` column from `Product` to list the goods sold in that order.", + "steps": [ + "Map the term \"goods\" from the question to product names, which correspond to the `Name` column in the `Product` table.", + "Identify `SalesOrderDetail` as the table that records individual items sold, containing both `SalesOrderID` and `ProductID`.", + "Join `Product` to `SalesOrderDetail` on their shared `ProductID` key to link each order line to its product name.", + "Filter `SalesOrderDetail.SalesOrderID` to exactly `43660` to isolate the requested sales order.", + "Return only the `Name` column from `Product` to list the goods sold in that order." + ] + }, + "revisql-train:7357": { + "raw": "1. Join the Product table with the SalesOrderDetail table on the ProductID column to associate each product with its order line quantities.\n2. Group the joined records by the product Name from the Product table so each product forms a single summary row.\n3. Sum the OrderQty values from SalesOrderDetail per product to measure total orders, applying the external knowledge that \"most orders\" means the highest aggregate ordered quantity.\n4. Sort the grouped results by that summed quantity in descending order to rank products from most to least ordered.\n5. Restrict the output to only the first 5 rows to capture the top 5 products.\n6. Return solely the Name column from the Product table in the final result.", + "steps": [ + "Join the Product table with the SalesOrderDetail table on the ProductID column to associate each product with its order line quantities.", + "Group the joined records by the product Name from the Product table so each product forms a single summary row.", + "Sum the OrderQty values from SalesOrderDetail per product to measure total orders, applying the external knowledge that \"most orders\" means the highest aggregate ordered quantity.", + "Sort the grouped results by that summed quantity in descending order to rank products from most to least ordered.", + "Restrict the output to only the first 5 rows to capture the top 5 products.", + "Return solely the Name column from the Product table in the final result." + ] + }, + "revisql-train:7358": { + "raw": "1. Identify the product in the Product table by filtering Name to 'Down Tube', applying the external knowledge that \"down tube\" is a product name.\n2. Join Product to ProductInventory on ProductID to connect the product with its storage location records.\n3. Map the question's term \"shelves\" to the Shelf column in ProductInventory using the provided external knowledge.\n4. Return only the Shelf column from ProductInventory; no aggregation or ordering is required.", + "steps": [ + "Identify the product in the Product table by filtering Name to 'Down Tube', applying the external knowledge that \"down tube\" is a product name.", + "Join Product to ProductInventory on ProductID to connect the product with its storage location records.", + "Map the question's term \"shelves\" to the Shelf column in ProductInventory using the provided external knowledge.", + "Return only the Shelf column from ProductInventory; no aggregation or ordering is required." + ] + }, + "revisql-train:7362": { + "raw": "1. Map the external knowledge phrase \"12th business\" to BusinessEntityID = 12 in the BusinessEntityAddress table.\n2. Identify that the first line address is stored in the AddressLine1 column of the Address table.\n3. Join the Address table with the BusinessEntityAddress table using AddressID as the join key.\n4. Filter the joined results to only rows where BusinessEntityID equals 12.\n5. Return the AddressLine1 column.", + "steps": [ + "Map the external knowledge phrase \"12th business\" to BusinessEntityID = 12 in the BusinessEntityAddress table.", + "Identify that the first line address is stored in the AddressLine1 column of the Address table.", + "Join the Address table with the BusinessEntityAddress table using AddressID as the join key.", + "Filter the joined results to only rows where BusinessEntityID equals 12.", + "Return the AddressLine1 column." + ] + }, + "revisql-train:7369": { + "raw": "1. Query the EmployeePayHistory table, which contains the Rate and PayFrequency columns needed.\n2. Filter to rows where PayFrequency equals 1, corresponding to monthly-paid employees per the external knowledge.\n3. Select distinct Rate values to avoid duplicate hourly salaries in the ranking.\n4. Order the distinct rates in descending order so the highest hourly salaries appear first.\n5. Omit the top result and take the very next value to return the second highest hourly salary.", + "steps": [ + "Query the EmployeePayHistory table, which contains the Rate and PayFrequency columns needed.", + "Filter to rows where PayFrequency equals 1, corresponding to monthly-paid employees per the external knowledge.", + "Select distinct Rate values to avoid duplicate hourly salaries in the ranking.", + "Order the distinct rates in descending order so the highest hourly salaries appear first.", + "Omit the top result and take the very next value to return the second highest hourly salary." + ] + }, + "revisql-train:7374": { + "raw": "1. Start with the Product table; no table joins are needed.\n2. Map the external knowledge that \"in centimeter\" means filtering on SizeUnitMeasureCode = 'CM'.\n3. Aggregate to find the maximum Size value among only the products where SizeUnitMeasureCode = 'CM'.\n4. Filter the Product table to rows where SizeUnitMeasureCode = 'CM' and Size equals that maximum value.\n5. Return exactly the Name and ReorderPoint columns.", + "steps": [ + "Start with the Product table; no table joins are needed.", + "Map the external knowledge that \"in centimeter\" means filtering on SizeUnitMeasureCode = 'CM'.", + "Aggregate to find the maximum Size value among only the products where SizeUnitMeasureCode = 'CM'.", + "Filter the Product table to rows where SizeUnitMeasureCode = 'CM' and Size equals that maximum value.", + "Return exactly the Name and ReorderPoint columns." + ] + }, + "revisql-train:7389": { + "raw": "1. Join PurchaseOrderHeader to Person on EmployeeID = BusinessEntityID to link each purchase order to the corresponding employee name.\n2. Filter rows to PersonType = 'EM' (non-sales employee) and Status = 3 (rejected purchase order) using the external knowledge mappings.\n3. Group the results by FirstName and LastName to aggregate rejected orders per employee.\n4. Count PurchaseOrderID within each group to compute the total number of rejected orders for each employee.\n5. Order the grouped results by that count in descending order so the employee with the highest number of rejected orders appears first.\n6. Return only the top row, selecting FirstName and LastName as the full name.", + "steps": [ + "Join PurchaseOrderHeader to Person on EmployeeID = BusinessEntityID to link each purchase order to the corresponding employee name.", + "Filter rows to PersonType = 'EM' (non-sales employee) and Status = 3 (rejected purchase order) using the external knowledge mappings.", + "Group the results by FirstName and LastName to aggregate rejected orders per employee.", + "Count PurchaseOrderID within each group to compute the total number of rejected orders for each employee.", + "Order the grouped results by that count in descending order so the employee with the highest number of rejected orders appears first.", + "Return only the top row, selecting FirstName and LastName as the full name." + ] + }, + "revisql-train:7399": { + "raw": "1. Target the SpecialOffer table, which stores offer descriptions, types, and discount percentages.\n2. Filter rows to those where the Type column equals 'Seasonal Discount', applying the external knowledge that a seasonal discount is a special offer type.\n3. Compute the highest discount percentage by taking the maximum DiscountPct from that filtered seasonal subset.\n4. Return the Description column from the row or rows where Type is 'Seasonal Discount' and DiscountPct matches that maximum value.", + "steps": [ + "Target the SpecialOffer table, which stores offer descriptions, types, and discount percentages.", + "Filter rows to those where the Type column equals 'Seasonal Discount', applying the external knowledge that a seasonal discount is a special offer type.", + "Compute the highest discount percentage by taking the maximum DiscountPct from that filtered seasonal subset.", + "Return the Description column from the row or rows where Type is 'Seasonal Discount' and DiscountPct matches that maximum value." + ] + }, + "revisql-train:7403": { + "raw": "1. Identify the Product table as the source containing both product names and inventory levels.\n2. Map the question’s phrase “minimum inventory quantity” to the SafetyStockLevel column using the external knowledge.\n3. Filter the Product table to the row where the Name column exactly matches “Chainring Bolts”, since external knowledge specifies this as a product name.\n4. Return only the SafetyStockLevel column for that filtered row.", + "steps": [ + "Identify the Product table as the source containing both product names and inventory levels.", + "Map the question’s phrase “minimum inventory quantity” to the SafetyStockLevel column using the external knowledge.", + "Filter the Product table to the row where the Name column exactly matches “Chainring Bolts”, since external knowledge specifies this as a product name.", + "Return only the SafetyStockLevel column for that filtered row." + ] + }, + "revisql-train:7418": { + "raw": "1. Join EmployeeDepartmentHistory to Department on DepartmentID to link employee tenure records with department names.\n2. Filter Department.Name to the exact value 'Engineering'.\n3. Map the external knowledge year constraints to the StartDate and EndDate columns: keep rows where StartDate is on or before 2009-12-31 and EndDate is either null or on or after 2009-01-01, capturing any tenure that overlaps with calendar year 2009.\n4. Count distinct EmployeeDepartmentHistory.BusinessEntityID to avoid duplicate counts from multiple shift or overlapping history records.\n5. Return that single count value as the answer.", + "steps": [ + "Join EmployeeDepartmentHistory to Department on DepartmentID to link employee tenure records with department names.", + "Filter Department.Name to the exact value 'Engineering'.", + "Map the external knowledge year constraints to the StartDate and EndDate columns: keep rows where StartDate is on or before 2009-12-31 and EndDate is either null or on or after 2009-01-01, capturing any tenure that overlaps with calendar year 2009.", + "Count distinct EmployeeDepartmentHistory.BusinessEntityID to avoid duplicate counts from multiple shift or overlapping history records.", + "Return that single count value as the answer." + ] + }, + "revisql-train:742": { + "raw": "1. Join the movie table to characters on MovieID, then join characters to actor on ActorID to connect each film with its cast members' names.\n2. Map the external knowledge that \"starring Tom Cruise\" means filtering the actor table to rows where Name equals 'Tom Cruise'.\n3. Group the joined results by MovieID so each movie contributes only one rating toward the average.\n4. Compute the average of the Rating column from the movie table across the filtered, grouped results.\n5. Return a single column containing that average rating value.", + "steps": [ + "Join the movie table to characters on MovieID, then join characters to actor on ActorID to connect each film with its cast members' names.", + "Map the external knowledge that \"starring Tom Cruise\" means filtering the actor table to rows where Name equals 'Tom Cruise'.", + "Group the joined results by MovieID so each movie contributes only one rating toward the average.", + "Compute the average of the Rating column from the movie table across the filtered, grouped results.", + "Return a single column containing that average rating value." + ] + }, + "revisql-train:7422": { + "raw": "1. Join EmployeeDepartmentHistory to Department on DepartmentID and filter Department.Name to 'Engineering'.\n2. Join EmployeeDepartmentHistory to PersonCreditCard on BusinessEntityID, then join to CreditCard on CreditCardID to reach the expiration year.\n3. Filter CreditCard.ExpYear to 2007 to capture credit cards expiring in that year.\n4. Restrict to employees active in 2007 by checking StartDate <= '2007-12-31' and (EndDate IS NULL OR EndDate >= '2007-01-01').\n5. Return the count of distinct EmployeeDepartmentHistory.BusinessEntityID.", + "steps": [ + "Join EmployeeDepartmentHistory to Department on DepartmentID and filter Department.Name to 'Engineering'.", + "Join EmployeeDepartmentHistory to PersonCreditCard on BusinessEntityID, then join to CreditCard on CreditCardID to reach the expiration year.", + "Filter CreditCard.ExpYear to 2007 to capture credit cards expiring in that year.", + "Restrict to employees active in 2007 by checking StartDate <= '2007-12-31' and (EndDate IS NULL OR EndDate >= '2007-01-01').", + "Return the count of distinct EmployeeDepartmentHistory.BusinessEntityID." + ] + }, + "revisql-train:743": { + "raw": "1. Join the movie, characters, and actor tables on MovieID and ActorID to connect each character's screen time to the film and performer.\n2. Keep only rows where the movie Title is Batman and characters.screentime is not null.\n3. Convert the text screentime values into total seconds to enable arithmetic.\n4. Take the maximum total seconds as the most important character and the minimum total seconds as the least important character per the external knowledge.\n5. Calculate the percentage difference with (max seconds minus min seconds) divided by min seconds, multiplied by 100.\n6. Return only that final percentage.", + "steps": [ + "Join the movie, characters, and actor tables on MovieID and ActorID to connect each character's screen time to the film and performer.", + "Keep only rows where the movie Title is Batman and characters.screentime is not null.", + "Convert the text screentime values into total seconds to enable arithmetic.", + "Take the maximum total seconds as the most important character and the minimum total seconds as the least important character per the external knowledge.", + "Calculate the percentage difference with (max seconds minus min seconds) divided by min seconds, multiplied by 100.", + "Return only that final percentage." + ] + }, + "revisql-train:7430": { + "raw": "1. Start from the `Product` table and join it to `ProductSubcategory` on `ProductSubcategoryID`, then join `ProductSubcategory` to `ProductCategory` on `ProductCategoryID` to access the category name.\n2. Filter `ProductCategory` so that `Name` equals 'Components'.\n3. Apply the external knowledge by filtering `Product` so that `MakeFlag` = 1 (manufactured in-house) and `FinishedGoodsFlag` = 1 (salable).\n4. Return only the `Name` column from `Product`.", + "steps": [ + "Start from the `Product` table and join it to `ProductSubcategory` on `ProductSubcategoryID`, then join `ProductSubcategory` to `ProductCategory` on `ProductCategoryID` to access the category name.", + "Filter `ProductCategory` so that `Name` equals 'Components'.", + "Apply the external knowledge by filtering `Product` so that `MakeFlag` = 1 (manufactured in-house) and `FinishedGoodsFlag` = 1 (salable).", + "Return only the `Name` column from `Product`." + ] + }, + "revisql-train:7434": { + "raw": "1. Join Product to ProductSubcategory on ProductSubcategoryID, then join ProductSubcategory to ProductCategory on ProductCategoryID to navigate from products to their category name.\n2. Filter to only rows where ProductCategory.Name equals 'Clothing'.\n3. Map the external knowledge formula to columns: calculate total profit as the sum of Product.ListPrice minus Product.StandardCost.\n4. Use the count of Product.ProductID as the denominator to average the total profit across all products.\n5. Return a single column containing the division of the summed profit by the product count.", + "steps": [ + "Join Product to ProductSubcategory on ProductSubcategoryID, then join ProductSubcategory to ProductCategory on ProductCategoryID to navigate from products to their category name.", + "Filter to only rows where ProductCategory.Name equals 'Clothing'.", + "Map the external knowledge formula to columns: calculate total profit as the sum of Product.ListPrice minus Product.StandardCost.", + "Use the count of Product.ProductID as the denominator to average the total profit across all products.", + "Return a single column containing the division of the summed profit by the product count." + ] + }, + "revisql-train:7435": { + "raw": "1. Use ProductCostHistory and Product, joining them on ProductID to link each cost record to its product name.\n2. Map the external knowledge: treat \"cost\" as StandardCost and \"which product\" as the Name column in Product.\n3. Filter for records covering 2013 by checking StartDate is on or before 2013-12-31 and either EndDate is null or on or after 2013-01-01.\n4. Compute the minimum StandardCost within that 2013-filtered set using a subquery that repeats the same join and date conditions.\n5. In the outer query, keep only rows where StandardCost equals that minimum value.\n6. Return exactly the Name column from Product.", + "steps": [ + "Use ProductCostHistory and Product, joining them on ProductID to link each cost record to its product name.", + "Map the external knowledge: treat \"cost\" as StandardCost and \"which product\" as the Name column in Product.", + "Filter for records covering 2013 by checking StartDate is on or before 2013-12-31 and either EndDate is null or on or after 2013-01-01.", + "Compute the minimum StandardCost within that 2013-filtered set using a subquery that repeats the same join and date conditions.", + "In the outer query, keep only rows where StandardCost equals that minimum value.", + "Return exactly the Name column from Product." + ] + }, + "revisql-train:7444": { + "raw": "1. Identify ProductInventory as the table holding storage facts (LocationID, Shelf, Bin) and Product as the table holding product names.\n2. Join ProductInventory to Product on ProductID to link each storage record to its corresponding product.\n3. Apply the external knowledge that \"compartment\" maps to the Shelf column, filtering Shelf to 'L'.\n4. Filter LocationID to 1 for \"location 1\" and Bin to 6 for \"container 6\".\n5. Return only the Name column from the Product table.", + "steps": [ + "Identify ProductInventory as the table holding storage facts (LocationID, Shelf, Bin) and Product as the table holding product names.", + "Join ProductInventory to Product on ProductID to link each storage record to its corresponding product.", + "Apply the external knowledge that \"compartment\" maps to the Shelf column, filtering Shelf to 'L'.", + "Filter LocationID to 1 for \"location 1\" and Bin to 6 for \"container 6\".", + "Return only the Name column from the Product table." + ] + }, + "revisql-train:7451": { + "raw": "1. Use the Location and ProductInventory tables, joining them on their shared LocationID key.\n2. Filter ProductInventory to only rows where ProductID equals 476.\n3. Filter Location to only rows where Name equals 'Metal Storage', applying the external knowledge that Metal Storage is a location name.\n4. Return the Quantity column from ProductInventory as the result.", + "steps": [ + "Use the Location and ProductInventory tables, joining them on their shared LocationID key.", + "Filter ProductInventory to only rows where ProductID equals 476.", + "Filter Location to only rows where Name equals 'Metal Storage', applying the external knowledge that Metal Storage is a location name.", + "Return the Quantity column from ProductInventory as the result." + ] + }, + "revisql-train:7455": { + "raw": "1. Use the WorkOrder table and filter to the row where WorkOrderID equals 425.\n2. Map the external knowledge about work order duration to the StartDate and EndDate columns in that table.\n3. Compute the elapsed days by converting both StartDate and EndDate to Julian days and subtracting the start value from the end value.\n4. Return the result as a single column named days_to_finish.", + "steps": [ + "Use the WorkOrder table and filter to the row where WorkOrderID equals 425.", + "Map the external knowledge about work order duration to the StartDate and EndDate columns in that table.", + "Compute the elapsed days by converting both StartDate and EndDate to Julian days and subtracting the start value from the end value.", + "Return the result as a single column named days_to_finish." + ] + }, + "revisql-train:7458": { + "raw": "1. Select the Employee table as the only required source; no joins are needed.\n2. Map the external knowledge that \"Human Resources Manager\" is a job title to the JobTitle column.\n3. Filter rows by setting the condition JobTitle equal to 'Human Resources Manager'.\n4. Use no aggregation or ordering.\n5. Return the OrganizationLevel column.", + "steps": [ + "Select the Employee table as the only required source; no joins are needed.", + "Map the external knowledge that \"Human Resources Manager\" is a job title to the JobTitle column.", + "Filter rows by setting the condition JobTitle equal to 'Human Resources Manager'.", + "Use no aggregation or ordering.", + "Return the OrganizationLevel column." + ] + }, + "revisql-train:7460": { + "raw": "1. Use the Product table as the sole source because the request is for product-specific attributes.\n2. Map the question’s term \"cost\" to the StandardCost column per the external knowledge.\n3. Select the ProductNumber column to satisfy the \"product number\" requirement.\n4. Filter the rows to only the product where ProductID equals 888.\n5. Return exactly StandardCost and ProductNumber without any joins, aggregation, or ordering.", + "steps": [ + "Use the Product table as the sole source because the request is for product-specific attributes.", + "Map the question’s term \"cost\" to the StandardCost column per the external knowledge.", + "Select the ProductNumber column to satisfy the \"product number\" requirement.", + "Filter the rows to only the product where ProductID equals 888.", + "Return exactly StandardCost and ProductNumber without any joins, aggregation, or ordering." + ] + }, + "revisql-train:7462": { + "raw": "1. Identify that product names are stored in the Product table and that location storage details are kept in the ProductInventory table.\n2. Inner join ProductInventory to Product on the ProductID key so each product links to its inventory rows.\n3. Filter the Product table to rows where the Name matches 'Lock Ring', using the external knowledge that Lock Ring is a product name.\n4. Map the requested \"compartments\" to the Shelf column and \"containers\" to the Bin column in ProductInventory based on the external knowledge.\n5. Return LocationID, Shelf, and Bin from the ProductInventory side to list the location ids, compartments, and containers.", + "steps": [ + "Identify that product names are stored in the Product table and that location storage details are kept in the ProductInventory table.", + "Inner join ProductInventory to Product on the ProductID key so each product links to its inventory rows.", + "Filter the Product table to rows where the Name matches 'Lock Ring', using the external knowledge that Lock Ring is a product name.", + "Map the requested \"compartments\" to the Shelf column and \"containers\" to the Bin column in ProductInventory based on the external knowledge.", + "Return LocationID, Shelf, and Bin from the ProductInventory side to list the location ids, compartments, and containers." + ] + }, + "revisql-train:7464": { + "raw": "1. Identify the relevant tables as ScrapReason and WorkOrder.\n2. Join WorkOrder to ScrapReason using ScrapReasonID as the join key.\n3. Map the external knowledge phrase \"handling damage\" to the Name column in ScrapReason and filter for rows where Name equals 'Handling damage'.\n4. Return the WorkOrderID column from the WorkOrder table.", + "steps": [ + "Identify the relevant tables as ScrapReason and WorkOrder.", + "Join WorkOrder to ScrapReason using ScrapReasonID as the join key.", + "Map the external knowledge phrase \"handling damage\" to the Name column in ScrapReason and filter for rows where Name equals 'Handling damage'.", + "Return the WorkOrderID column from the WorkOrder table." + ] + }, + "revisql-train:747": { + "raw": "1. Join `movie` to `characters` on `MovieID`, then join `characters` to `actor` on `ActorID`.\n2. Filter to rows where `movie.Title` = 'Batman' and `characters.screentime` is not null.\n3. Parse the `screentime` text into hours, minutes, and seconds, then convert each character’s time into a total-seconds value.\n4. Compute the maximum total-seconds value across the filtered characters to find the longest screentime.\n5. Keep only the rows whose total-seconds value equals that maximum.\n6. Return the `Name` column from the `actor` table.", + "steps": [ + "Join `movie` to `characters` on `MovieID`, then join `characters` to `actor` on `ActorID`.", + "Filter to rows where `movie.Title` = 'Batman' and `characters.screentime` is not null.", + "Parse the `screentime` text into hours, minutes, and seconds, then convert each character’s time into a total-seconds value.", + "Compute the maximum total-seconds value across the filtered characters to find the longest screentime.", + "Keep only the rows whose total-seconds value equals that maximum.", + "Return the `Name` column from the `actor` table." + ] + }, + "revisql-train:7477": { + "raw": "1. Use only the IMG_REL table, since it already contains the image ID and both object sample IDs for every relationship.\n2. Filter to self-relations by requiring OBJ1_SAMPLE_ID to equal OBJ2_SAMPLE_ID, applying the external definition directly.\n3. Map the question's \"image no.5\" to the column IMG_ID with the value 5.\n4. Aggregate by summing a conditional expression that evaluates to 1 when IMG_ID is 5 and 0 otherwise, so only self-relations from that specific image are counted.\n5. Return exactly one column containing that final aggregated total.", + "steps": [ + "Use only the IMG_REL table, since it already contains the image ID and both object sample IDs for every relationship.", + "Filter to self-relations by requiring OBJ1_SAMPLE_ID to equal OBJ2_SAMPLE_ID, applying the external definition directly.", + "Map the question's \"image no.5\" to the column IMG_ID with the value 5.", + "Aggregate by summing a conditional expression that evaluates to 1 when IMG_ID is 5 and 0 otherwise, so only self-relations from that specific image are counted.", + "Return exactly one column containing that final aggregated total." + ] + }, + "revisql-train:748": { + "raw": "1. Clean the actor.NetWorth text values by removing '$' and ',' characters, then cast the result to REAL to enable numeric comparison.\n2. Compute the maximum of these cleaned NetWorth values across the entire actor table to identify the highest networth.\n3. Inner join the characters table to the actor table on ActorID to link each actor with their movie roles.\n4. Filter the joined rows to keep only those actors whose cleaned NetWorth equals the maximum value found in step 2.\n5. Return the count of the remaining rows, which gives the total number of movies the highest networth actor has acted in.", + "steps": [ + "Clean the actor.NetWorth text values by removing '$' and ',' characters, then cast the result to REAL to enable numeric comparison.", + "Compute the maximum of these cleaned NetWorth values across the entire actor table to identify the highest networth.", + "Inner join the characters table to the actor table on ActorID to link each actor with their movie roles.", + "Filter the joined rows to keep only those actors whose cleaned NetWorth equals the maximum value found in step 2.", + "Return the count of the remaining rows, which gives the total number of movies the highest networth actor has acted in." + ] + }, + "revisql-train:7480": { + "raw": "1. Join OBJ_CLASSES to IMG_OBJ on OBJ_CLASS_ID to link the textual object class labels to image object instances.\n2. Filter the joined rows to only those where OBJ_CLASS equals man, mapping the external knowledge class name to that column value.\n3. Group the filtered results by IMG_ID so each image appears once, satisfying the at least one object sample condition.\n4. Count the grouped IMG_ID values and return that single aggregate count as the answer.", + "steps": [ + "Join OBJ_CLASSES to IMG_OBJ on OBJ_CLASS_ID to link the textual object class labels to image object instances.", + "Filter the joined rows to only those where OBJ_CLASS equals man, mapping the external knowledge class name to that column value.", + "Group the filtered results by IMG_ID so each image appears once, satisfying the at least one object sample condition.", + "Count the grouped IMG_ID values and return that single aggregate count as the answer." + ] + }, + "revisql-train:7483": { + "raw": "1. Join PRED_CLASSES with IMG_REL on PRED_CLASS_ID to match relation captions to image relationship records.\n2. Filter the result to IMG_ID = 1, since image no.1 maps to that value.\n3. Exclude self-relations by requiring OBJ1_SAMPLE_ID to differ from OBJ2_SAMPLE_ID, ensuring only distinct object sample pairs are counted.\n4. Apply the external knowledge that the relation \"parked on\" corresponds to PRED_CLASS = 'parked on'.\n5. Return a single aggregate column containing the count of rows that satisfy the 'parked on' condition, giving the total number of qualifying pairs.", + "steps": [ + "Join PRED_CLASSES with IMG_REL on PRED_CLASS_ID to match relation captions to image relationship records.", + "Filter the result to IMG_ID = 1, since image no.1 maps to that value.", + "Exclude self-relations by requiring OBJ1_SAMPLE_ID to differ from OBJ2_SAMPLE_ID, ensuring only distinct object sample pairs are counted.", + "Apply the external knowledge that the relation \"parked on\" corresponds to PRED_CLASS = 'parked on'.", + "Return a single aggregate column containing the count of rows that satisfy the 'parked on' condition, giving the total number of qualifying pairs." + ] + }, + "revisql-train:7488": { + "raw": "1. Note that bounding boxes correspond to columns X, Y, W, H in IMG_OBJ, image no.1 means IMG_ID = 1, and relation class \"by\" means PRED_CLASS = 'by'.\n2. Start from PRED_CLASSES, filter to PRED_CLASS = 'by', and join to IMG_REL on PRED_CLASS_ID to find all relationships with that class.\n3. Join IMG_OBJ to IMG_REL on matching IMG_ID and with OBJ_SAMPLE_ID equal to either OBJ1_SAMPLE_ID or OBJ2_SAMPLE_ID to capture both objects in each relation.\n4. Restrict the result to IMG_ID = 1 to limit the search to image no.1.\n5. Select distinct X, Y, W, H from IMG_OBJ as the final output columns.", + "steps": [ + "Note that bounding boxes correspond to columns X, Y, W, H in IMG_OBJ, image no.1 means IMG_ID = 1, and relation class \"by\" means PRED_CLASS = 'by'.", + "Start from PRED_CLASSES, filter to PRED_CLASS = 'by', and join to IMG_REL on PRED_CLASS_ID to find all relationships with that class.", + "Join IMG_OBJ to IMG_REL on matching IMG_ID and with OBJ_SAMPLE_ID equal to either OBJ1_SAMPLE_ID or OBJ2_SAMPLE_ID to capture both objects in each relation.", + "Restrict the result to IMG_ID = 1 to limit the search to image no.1.", + "Select distinct X, Y, W, H from IMG_OBJ as the final output columns." + ] + }, + "revisql-train:7492": { + "raw": "1. Use the external knowledge to map the phrase \"object classes\" to the OBJ_CLASSES table and its OBJ_CLASS column.\n2. Since the question asks for a total quantity, perform an aggregate count on the OBJ_CLASSES table without any joins.\n3. Count the primary key column OBJ_CLASS_ID to ensure every distinct object class is tallied exactly once.\n4. No filters are required because the count should cover the entire table; return only the resulting count value.", + "steps": [ + "Use the external knowledge to map the phrase \"object classes\" to the OBJ_CLASSES table and its OBJ_CLASS column.", + "Since the question asks for a total quantity, perform an aggregate count on the OBJ_CLASSES table without any joins.", + "Count the primary key column OBJ_CLASS_ID to ensure every distinct object class is tallied exactly once.", + "No filters are required because the count should cover the entire table; return only the resulting count value." + ] + }, + "revisql-train:7497": { + "raw": "1. Identify that IMG_REL holds the relationship record between the two object samples, and PRED_CLASSES holds the human-readable relationship name via PRED_CLASS.\n2. Join IMG_REL to PRED_CLASSES on PRED_CLASS_ID to translate the relationship identifier into its textual label.\n3. Apply equality filters corresponding to the external knowledge mapping: set IMG_ID to 2345511, OBJ1_SAMPLE_ID to 12, and OBJ2_SAMPLE_ID to 8.\n4. Return only the PRED_CLASS column from PRED_CLASSES as the final answer.", + "steps": [ + "Identify that IMG_REL holds the relationship record between the two object samples, and PRED_CLASSES holds the human-readable relationship name via PRED_CLASS.", + "Join IMG_REL to PRED_CLASSES on PRED_CLASS_ID to translate the relationship identifier into its textual label.", + "Apply equality filters corresponding to the external knowledge mapping: set IMG_ID to 2345511, OBJ1_SAMPLE_ID to 12, and OBJ2_SAMPLE_ID to 8.", + "Return only the PRED_CLASS column from PRED_CLASSES as the final answer." + ] + }, + "revisql-train:7508": { + "raw": "1. Query the IMG_REL table, which records every relationship between objects inside an image.\n2. Filter to rows where OBJ1_SAMPLE_ID equals OBJ2_SAMPLE_ID, applying the external knowledge that this equality defines a self-relation.\n3. Select the IMG_ID column from the remaining rows, since the question asks for the ids of the images.\n4. Use DISTINCT on IMG_ID so each image appears only once, even if it has multiple self-relations.", + "steps": [ + "Query the IMG_REL table, which records every relationship between objects inside an image.", + "Filter to rows where OBJ1_SAMPLE_ID equals OBJ2_SAMPLE_ID, applying the external knowledge that this equality defines a self-relation.", + "Select the IMG_ID column from the remaining rows, since the question asks for the ids of the images.", + "Use DISTINCT on IMG_ID so each image appears only once, even if it has multiple self-relations." + ] + }, + "revisql-train:7523": { + "raw": "1. Start from IMG_REL and inner join PRED_CLASSES on PRED_CLASS_ID to access the relationship caption text.\n2. Filter for objects with multiple relations by requiring OBJ1_SAMPLE_ID != OBJ2_SAMPLE_ID.\n3. Filter for the caption \"on\" by requiring PRED_CLASS = 'on'.\n4. Return COUNT(DISTINCT IMG_ID) to get the number of unique images satisfying both conditions.", + "steps": [ + "Start from IMG_REL and inner join PRED_CLASSES on PRED_CLASS_ID to access the relationship caption text.", + "Filter for objects with multiple relations by requiring OBJ1_SAMPLE_ID != OBJ2_SAMPLE_ID.", + "Filter for the caption \"on\" by requiring PRED_CLASS = 'on'.", + "Return COUNT(DISTINCT IMG_ID) to get the number of unique images satisfying both conditions." + ] + }, + "revisql-train:7527": { + "raw": "1. Start with IMG_OBJ, which holds the bounding box coordinates X, Y, W, and H for every object instance.\n2. Join OBJ_CLASSES to IMG_OBJ on OBJ_CLASS_ID to access the textual object class names.\n3. Filter rows to IMG_ID = 285930 to isolate image no. 285930.\n4. Further filter rows to OBJ_CLASS = 'onion' to keep only onion objects.\n5. Return the columns X, Y, W, and H from IMG_OBJ as the defined bounding box.", + "steps": [ + "Start with IMG_OBJ, which holds the bounding box coordinates X, Y, W, and H for every object instance.", + "Join OBJ_CLASSES to IMG_OBJ on OBJ_CLASS_ID to access the textual object class names.", + "Filter rows to IMG_ID = 285930 to isolate image no. 285930.", + "Further filter rows to OBJ_CLASS = 'onion' to keep only onion objects.", + "Return the columns X, Y, W, and H from IMG_OBJ as the defined bounding box." + ] + }, + "revisql-train:7528": { + "raw": "1. Query the IMG_OBJ table to access image IDs, bounding box coordinates, and object class IDs for the target image and region.\n2. Join OBJ_CLASSES on OBJ_CLASS_ID to retrieve the corresponding human-readable OBJ_CLASS values.\n3. Filter rows to IMG_ID = 72, mapping the question’s “image no. 72” to that column.\n4. Filter the bounding box to X = 341, Y = 27, W = 42, and H = 51, mapping the given tuple to those four columns.\n5. Select DISTINCT OBJ_CLASS so the result returns only the unique object names identified.", + "steps": [ + "Query the IMG_OBJ table to access image IDs, bounding box coordinates, and object class IDs for the target image and region.", + "Join OBJ_CLASSES on OBJ_CLASS_ID to retrieve the corresponding human-readable OBJ_CLASS values.", + "Filter rows to IMG_ID = 72, mapping the question’s “image no. 72” to that column.", + "Filter the bounding box to X = 341, Y = 27, W = 42, and H = 51, mapping the given tuple to those four columns.", + "Select DISTINCT OBJ_CLASS so the result returns only the unique object names identified." + ] + }, + "revisql-train:753": { + "raw": "1. Filter the characters table to rows where `Character Name` equals 'Lurch', applying the external knowledge that \"Lurch\" maps to that column value.\n2. Join the characters table to the actor table on the `ActorID` key to link the character to the corresponding actor's record.\n3. Use the external knowledge that \"tall\" refers to the `Height (Inches)` column in the actor table.\n4. Return the `Height (Inches)` value from the actor side for the matching row.", + "steps": [ + "Filter the characters table to rows where `Character Name` equals 'Lurch', applying the external knowledge that \"Lurch\" maps to that column value.", + "Join the characters table to the actor table on the `ActorID` key to link the character to the corresponding actor's record.", + "Use the external knowledge that \"tall\" refers to the `Height (Inches)` column in the actor table.", + "Return the `Height (Inches)` value from the actor side for the matching row." + ] + }, + "revisql-train:7530": { + "raw": "1. Filter IMG_OBJ to rows where IMG_ID equals 27, then join OBJ_CLASSES on OBJ_CLASS_ID to keep only object samples whose OBJ_CLASS is 'wall'.\n2. Join IMG_OBJ_ATT on both IMG_ID and OBJ_SAMPLE_ID to collect every attribute record linked to those wall object samples.\n3. Join ATT_CLASSES on ATT_CLASS_ID to translate the attribute identifiers into their ATT_CLASS names.\n4. Group by ATT_CLASS and return that column to list each distinct attribute describing the wall.", + "steps": [ + "Filter IMG_OBJ to rows where IMG_ID equals 27, then join OBJ_CLASSES on OBJ_CLASS_ID to keep only object samples whose OBJ_CLASS is 'wall'.", + "Join IMG_OBJ_ATT on both IMG_ID and OBJ_SAMPLE_ID to collect every attribute record linked to those wall object samples.", + "Join ATT_CLASSES on ATT_CLASS_ID to translate the attribute identifiers into their ATT_CLASS names.", + "Group by ATT_CLASS and return that column to list each distinct attribute describing the wall." + ] + }, + "revisql-train:7534": { + "raw": "1. Filter IMG_OBJ to IMG_ID = 1, mapping \"image no. 1\" to this column.\n2. Join OBJ_CLASSES on OBJ_CLASS_ID and filter OBJ_CLASS = 'van' using the external knowledge mapping.\n3. Join IMG_OBJ_ATT on both IMG_ID and OBJ_SAMPLE_ID to connect the specific van object instance to its attribute records.\n4. Join ATT_CLASSES on ATT_CLASS_ID to translate attribute IDs into colour names, since \"colour\" refers to ATT_CLASS.\n5. Return distinct values of the ATT_CLASS column as the final result.", + "steps": [ + "Filter IMG_OBJ to IMG_ID = 1, mapping \"image no. 1\" to this column.", + "Join OBJ_CLASSES on OBJ_CLASS_ID and filter OBJ_CLASS = 'van' using the external knowledge mapping.", + "Join IMG_OBJ_ATT on both IMG_ID and OBJ_SAMPLE_ID to connect the specific van object instance to its attribute records.", + "Join ATT_CLASSES on ATT_CLASS_ID to translate attribute IDs into colour names, since \"colour\" refers to ATT_CLASS.", + "Return distinct values of the ATT_CLASS column as the final result." + ] + }, + "revisql-train:7536": { + "raw": "1. Join IMG_REL to PRED_CLASSES on PRED_CLASS_ID to connect each relationship record to its human-readable class name.\n2. Filter IMG_REL to IMG_ID = 1, mapping the question's \"image no. 1\" to the image ID column.\n3. Filter for the two object samples by requiring either (OBJ1_SAMPLE_ID = 25 and OBJ2_SAMPLE_ID = 2) or (OBJ1_SAMPLE_ID = 2 and OBJ2_SAMPLE_ID = 25), mapping the sample numbers to the respective object columns.\n4. Apply DISTINCT to the results because the schema permits multiple relationship types between the same object pair.\n5. Return only the PRED_CLASS column from PRED_CLASSES as the relationship description.", + "steps": [ + "Join IMG_REL to PRED_CLASSES on PRED_CLASS_ID to connect each relationship record to its human-readable class name.", + "Filter IMG_REL to IMG_ID = 1, mapping the question's \"image no. 1\" to the image ID column.", + "Filter for the two object samples by requiring either (OBJ1_SAMPLE_ID = 25 and OBJ2_SAMPLE_ID = 2) or (OBJ1_SAMPLE_ID = 2 and OBJ2_SAMPLE_ID = 25), mapping the sample numbers to the respective object columns.", + "Apply DISTINCT to the results because the schema permits multiple relationship types between the same object pair.", + "Return only the PRED_CLASS column from PRED_CLASSES as the relationship description." + ] + }, + "revisql-train:7545": { + "raw": "1. Identify PRED_CLASSES as the table holding prediction class information.\n2. Map the requested \"caption\" to the PRED_CLASS column using the external knowledge.\n3. Map \"prediction class id 12\" to a filter on PRED_CLASS_ID equal to 12.\n4. Return only the PRED_CLASS column for the row where PRED_CLASS_ID is 12.", + "steps": [ + "Identify PRED_CLASSES as the table holding prediction class information.", + "Map the requested \"caption\" to the PRED_CLASS column using the external knowledge.", + "Map \"prediction class id 12\" to a filter on PRED_CLASS_ID equal to 12.", + "Return only the PRED_CLASS column for the row where PRED_CLASS_ID is 12." + ] + }, + "revisql-train:7547": { + "raw": "1. Join IMG_OBJ with OBJ_CLASSES on OBJ_CLASS_ID so every object sample is paired with its class label.\n2. Filter to rows where IMG_ID equals 908, since image no.908 maps to IMG_ID 908.\n3. Count only the rows where OBJ_CLASS is 'tip', applying the external knowledge that the class \"tip\" corresponds to OBJ_CLASS = 'tip'.\n4. Return that single count value as the answer.", + "steps": [ + "Join IMG_OBJ with OBJ_CLASSES on OBJ_CLASS_ID so every object sample is paired with its class label.", + "Filter to rows where IMG_ID equals 908, since image no.908 maps to IMG_ID 908.", + "Count only the rows where OBJ_CLASS is 'tip', applying the external knowledge that the class \"tip\" corresponds to OBJ_CLASS = 'tip'.", + "Return that single count value as the answer." + ] + }, + "revisql-train:7551": { + "raw": "1. Use the OBJ_CLASSES table, which stores the mapping between object class ids and their category names.\n2. Apply the external knowledge that \"onion category\" corresponds to the value 'onion' in the OBJ_CLASS column.\n3. Filter the rows where OBJ_CLASS equals 'onion'.\n4. Return only the OBJ_CLASS_ID column from the matching rows.", + "steps": [ + "Use the OBJ_CLASSES table, which stores the mapping between object class ids and their category names.", + "Apply the external knowledge that \"onion category\" corresponds to the value 'onion' in the OBJ_CLASS column.", + "Filter the rows where OBJ_CLASS equals 'onion'.", + "Return only the OBJ_CLASS_ID column from the matching rows." + ] + }, + "revisql-train:7557": { + "raw": "1. Join IMG_OBJ to OBJ_CLASSES on OBJ_CLASS_ID to bring in the textual object class for each sample.\n2. Filter to IMG_ID = 660, since external knowledge maps image no.660 to that IMAGE ID value.\n3. Filter to OBJ_CLASS = 'animal', since external knowledge defines animal object samples by that OBJECT CLASS value.\n4. Count the matching rows to compute the total number of animal object samples in the image.\n5. Return exactly one column: the count.", + "steps": [ + "Join IMG_OBJ to OBJ_CLASSES on OBJ_CLASS_ID to bring in the textual object class for each sample.", + "Filter to IMG_ID = 660, since external knowledge maps image no.660 to that IMAGE ID value.", + "Filter to OBJ_CLASS = 'animal', since external knowledge defines animal object samples by that OBJECT CLASS value.", + "Count the matching rows to compute the total number of animal object samples in the image.", + "Return exactly one column: the count." + ] + }, + "revisql-train:7568": { + "raw": "1. Start from IMG_OBJ and filter to rows where IMG_ID equals 10, applying the external knowledge that image 10 maps to IMG_ID 10.\n2. Join OBJ_CLASSES to IMG_OBJ on matching OBJ_CLASS_ID to retrieve the textual class names.\n3. Apply DISTINCT to the OBJ_CLASS column from OBJ_CLASSES, since one image can contain multiple objects belonging to the same class.\n4. Return the column OBJ_CLASS.", + "steps": [ + "Start from IMG_OBJ and filter to rows where IMG_ID equals 10, applying the external knowledge that image 10 maps to IMG_ID 10.", + "Join OBJ_CLASSES to IMG_OBJ on matching OBJ_CLASS_ID to retrieve the textual class names.", + "Apply DISTINCT to the OBJ_CLASS column from OBJ_CLASSES, since one image can contain multiple objects belonging to the same class.", + "Return the column OBJ_CLASS." + ] + }, + "revisql-train:7574": { + "raw": "1. Identify that the requested width and height are stored as W and H in IMG_OBJ, while the textual object class resides in OBJ_CLASSES.OBJ_CLASS.\n2. Use the external knowledge to map 'van' to OBJ_CLASS = 'van' and image 1 to IMG_ID = 1.\n3. Join IMG_OBJ with OBJ_CLASSES on OBJ_CLASS_ID to link each object instance to its class name.\n4. Filter the joined rows to keep only those where IMG_ID equals 1 and OBJ_CLASS equals 'van'.\n5. Return exactly the W and H columns from IMG_OBJ.", + "steps": [ + "Identify that the requested width and height are stored as W and H in IMG_OBJ, while the textual object class resides in OBJ_CLASSES.OBJ_CLASS.", + "Use the external knowledge to map 'van' to OBJ_CLASS = 'van' and image 1 to IMG_ID = 1.", + "Join IMG_OBJ with OBJ_CLASSES on OBJ_CLASS_ID to link each object instance to its class name.", + "Filter the joined rows to keep only those where IMG_ID equals 1 and OBJ_CLASS equals 'van'.", + "Return exactly the W and H columns from IMG_OBJ." + ] + }, + "revisql-train:7579": { + "raw": "1. Start with the IMG_OBJ table, which stores the mapping between images (IMG_ID) and their object samples (OBJ_SAMPLE_ID).\n2. Group all rows by IMG_ID so that each group represents a single image and its associated set of object samples.\n3. Filter the groups using the condition that the count of OBJ_SAMPLE_ID is strictly less than 15, applying the external knowledge that defines \"less than 15 object samples.\"\n4. Select the IMG_ID values from the filtered groups to isolate the qualifying images.\n5. Count the total number of those qualifying image IDs and return the result as a single aggregate count column.", + "steps": [ + "Start with the IMG_OBJ table, which stores the mapping between images (IMG_ID) and their object samples (OBJ_SAMPLE_ID).", + "Group all rows by IMG_ID so that each group represents a single image and its associated set of object samples.", + "Filter the groups using the condition that the count of OBJ_SAMPLE_ID is strictly less than 15, applying the external knowledge that defines \"less than 15 object samples.\"", + "Select the IMG_ID values from the filtered groups to isolate the qualifying images.", + "Count the total number of those qualifying image IDs and return the result as a single aggregate count column." + ] + }, + "revisql-train:7587": { + "raw": "1. Start with ATT_CLASSES to locate the attribute class \"horse\" and IMG_OBJ_ATT to find which images carry that attribute.\n2. Join ATT_CLASSES to IMG_OBJ_ATT using ATT_CLASS_ID as the common key.\n3. Apply a filter requiring ATT_CLASS to be exactly 'horse'.\n4. Return the distinct IMG_ID values from IMG_OBJ_ATT so each qualifying image is listed only once.", + "steps": [ + "Start with ATT_CLASSES to locate the attribute class \"horse\" and IMG_OBJ_ATT to find which images carry that attribute.", + "Join ATT_CLASSES to IMG_OBJ_ATT using ATT_CLASS_ID as the common key.", + "Apply a filter requiring ATT_CLASS to be exactly 'horse'.", + "Return the distinct IMG_ID values from IMG_OBJ_ATT so each qualifying image is listed only once." + ] + }, + "revisql-train:76": { + "raw": "1. Join the ratings table to the movies table on movie_id to link each critic record to its corresponding film title.\n2. Filter ratings to the specific user by setting user_id equal to 58149469.\n3. Apply the critic engagement conditions by setting critic_likes equal to 1 and critic_comments equal to 2.\n4. Return only the movie_title column from the movies table.", + "steps": [ + "Join the ratings table to the movies table on movie_id to link each critic record to its corresponding film title.", + "Filter ratings to the specific user by setting user_id equal to 58149469.", + "Apply the critic engagement conditions by setting critic_likes equal to 1 and critic_comments equal to 2.", + "Return only the movie_title column from the movies table." + ] + }, + "revisql-train:7605": { + "raw": "1. Use the external knowledge to map the request to the PRED_CLASS column, scoped to rows where IMG_ID equals 68.\n2. From IMG_REL, identify all PRED_CLASS_ID values associated with IMG_ID 68.\n3. Inner join IMG_REL with PRED_CLASSES on the PRED_CLASS_ID key to obtain the textual class names.\n4. Filter the joined results to keep only records where IMG_REL.IMG_ID is 68.\n5. Return the PRED_CLASS column from PRED_CLASSES.", + "steps": [ + "Use the external knowledge to map the request to the PRED_CLASS column, scoped to rows where IMG_ID equals 68.", + "From IMG_REL, identify all PRED_CLASS_ID values associated with IMG_ID 68.", + "Inner join IMG_REL with PRED_CLASSES on the PRED_CLASS_ID key to obtain the textual class names.", + "Filter the joined results to keep only records where IMG_REL.IMG_ID is 68.", + "Return the PRED_CLASS column from PRED_CLASSES." + ] + }, + "revisql-train:7627": { + "raw": "1. Compute the number of distinct seasons for each goalie by grouping the goalies table on `playerID` and counting distinct `year` values.\n2. Find the maximum season count across all goalies, then keep only those `playerID`s whose season count equals that maximum.\n3. For those remaining goalies, aggregate total minutes by summing `Min` (as a real number) and divide by the count of distinct `year`s to get the average playing time per season, grouping by `playerID`.\n4. Join the aggregated set to the `Master` table on `playerID` to retrieve the corresponding `firstName` and `lastName` columns.\n5. Return `firstName`, `lastName`, and the calculated average minutes per season.", + "steps": [ + "Compute the number of distinct seasons for each goalie by grouping the goalies table on `playerID` and counting distinct `year` values.", + "Find the maximum season count across all goalies, then keep only those `playerID`s whose season count equals that maximum.", + "For those remaining goalies, aggregate total minutes by summing `Min` (as a real number) and divide by the count of distinct `year`s to get the average playing time per season, grouping by `playerID`.", + "Join the aggregated set to the `Master` table on `playerID` to retrieve the corresponding `firstName` and `lastName` columns.", + "Return `firstName`, `lastName`, and the calculated average minutes per season." + ] + }, + "revisql-train:763": { + "raw": "1. Join the movie table to characters on MovieID, then join characters to actor on ActorID to connect films with their cast members.\n2. Map the external knowledge that romantic movies refers to the movie.Genre column and filter to the value 'Romance'.\n3. Map the external knowledge that starred by John Travolta refers to the actor.Name column and filter to the value 'John Travolta'.\n4. Aggregate the filtered rows with COUNT(*) to compute the total number of matching movies.\n5. Return only that count column.", + "steps": [ + "Join the movie table to characters on MovieID, then join characters to actor on ActorID to connect films with their cast members.", + "Map the external knowledge that romantic movies refers to the movie.Genre column and filter to the value 'Romance'.", + "Map the external knowledge that starred by John Travolta refers to the actor.Name column and filter to the value 'John Travolta'.", + "Aggregate the filtered rows with COUNT(*) to compute the total number of matching movies.", + "Return only that count column." + ] + }, + "revisql-train:7644": { + "raw": "1. Filter the Master table to the row where playerID equals aebisda01 to retrieve the player's firstName.\n2. Join the Goalies table on playerID to access every season's games played (GP) and minutes (Min) recorded for that goaltender.\n3. Group by Master.playerID and Master.firstName so the aggregates collapse to a single row while keeping the player's name attached.\n4. Apply the external knowledge mapping: average time in minutes is total minutes divided by total games played, so compute SUM of Min divided by SUM of GP, casting both sums to real numbers to preserve decimal precision, and alias the result as avg_minutes.\n5. Return firstName and the computed avg_minutes.", + "steps": [ + "Filter the Master table to the row where playerID equals aebisda01 to retrieve the player's firstName.", + "Join the Goalies table on playerID to access every season's games played (GP) and minutes (Min) recorded for that goaltender.", + "Group by Master.playerID and Master.firstName so the aggregates collapse to a single row while keeping the player's name attached.", + "Apply the external knowledge mapping: average time in minutes is total minutes divided by total games played, so compute SUM of Min divided by SUM of GP, casting both sums to real numbers to preserve decimal precision, and alias the result as avg_minutes.", + "Return firstName and the computed avg_minutes." + ] + }, + "revisql-train:7647": { + "raw": "1. Start from the AwardsPlayers table, which records players who received awards.\n2. Restrict the rows to those where the year column equals 1983.\n3. Apply the external knowledge that the goalie position is encoded as pos = 'G' to filter for goalies.\n4. Count distinct playerID values so each player is counted only once, even if they won multiple awards.\n5. Return that single count as the answer.", + "steps": [ + "Start from the AwardsPlayers table, which records players who received awards.", + "Restrict the rows to those where the year column equals 1983.", + "Apply the external knowledge that the goalie position is encoded as pos = 'G' to filter for goalies.", + "Count distinct playerID values so each player is counted only once, even if they won multiple awards.", + "Return that single count as the answer." + ] + }, + "revisql-train:765": { + "raw": "1. Join movie to characters on MovieID, then join actor on ActorID to connect each movie's genre with its cast members' net worths.\n2. Filter for PG-rated movies by requiring MPAA Rating equals 'PG'.\n3. Convert actor.NetWorth to a real number by stripping '$' and ',' characters before casting, since it is stored as formatted text.\n4. Use a subquery over the same PG-rated joined set to calculate the maximum cleaned net worth value.\n5. In the outer query, restrict results to actors whose cleaned net worth matches that subquery maximum.\n6. Return the Genre column from the movie table.", + "steps": [ + "Join movie to characters on MovieID, then join actor on ActorID to connect each movie's genre with its cast members' net worths.", + "Filter for PG-rated movies by requiring MPAA Rating equals 'PG'.", + "Convert actor.NetWorth to a real number by stripping '$' and ',' characters before casting, since it is stored as formatted text.", + "Use a subquery over the same PG-rated joined set to calculate the maximum cleaned net worth value.", + "In the outer query, restrict results to actors whose cleaned net worth matches that subquery maximum.", + "Return the Genre column from the movie table." + ] + }, + "revisql-train:7656": { + "raw": "1. Start from the `Master` table and target its `nameNick` column, because the external knowledge maps \"nicknames\" to that field.\n2. Join the `HOF` table to `Master` using the shared `hofID` key to connect each player with their Hall of Fame induction record.\n3. Restrict the `HOF` rows to those where `year` is 2007 and `category` is `'Player'`, isolating only players inducted that year.\n4. Keep only rows where `Master.nameNick` is not null, ensuring every result actually contains a nickname.\n5. Return distinct values of `nameNick` so the final answer lists each qualifying nickname exactly once.", + "steps": [ + "Start from the `Master` table and target its `nameNick` column, because the external knowledge maps \"nicknames\" to that field.", + "Join the `HOF` table to `Master` using the shared `hofID` key to connect each player with their Hall of Fame induction record.", + "Restrict the `HOF` rows to those where `year` is 2007 and `category` is `'Player'`, isolating only players inducted that year.", + "Keep only rows where `Master.nameNick` is not null, ensuring every result actually contains a nickname.", + "Return distinct values of `nameNick` so the final answer lists each qualifying nickname exactly once." + ] + }, + "revisql-train:7667": { + "raw": "1. Start from the Master table, which holds the playerID and coachID columns needed to identify individuals with both playing and coaching careers.\n2. Inner join the HOF table to Master on the hofID key to restrict the result to Hall of Fame inductees.\n3. Apply a filter where playerID is not null and coachID is not null, mapping the external knowledge definition of players who became coaches.\n4. Count the playerID column from Master to produce the final number of such Hall of Fame members.", + "steps": [ + "Start from the Master table, which holds the playerID and coachID columns needed to identify individuals with both playing and coaching careers.", + "Inner join the HOF table to Master on the hofID key to restrict the result to Hall of Fame inductees.", + "Apply a filter where playerID is not null and coachID is not null, mapping the external knowledge definition of players who became coaches.", + "Count the playerID column from Master to produce the final number of such Hall of Fame members." + ] + }, + "revisql-train:7671": { + "raw": "1. Use the Master table to access player biographical data and the AwardsPlayers table to identify which players have received awards.\n2. Join Master to AwardsPlayers using the playerID column to link each player to their award records.\n3. Filter the Master table by deathState = 'MA', applying the external knowledge that Massachusetts maps to the state code 'MA'.\n4. Count distinct playerID values from the joined results so each player who died in Massachusetts is counted only once regardless of multiple awards.\n5. Return a single column containing that count of distinct playerIDs as the final answer.", + "steps": [ + "Use the Master table to access player biographical data and the AwardsPlayers table to identify which players have received awards.", + "Join Master to AwardsPlayers using the playerID column to link each player to their award records.", + "Filter the Master table by deathState = 'MA', applying the external knowledge that Massachusetts maps to the state code 'MA'.", + "Count distinct playerID values from the joined results so each player who died in Massachusetts is counted only once regardless of multiple awards.", + "Return a single column containing that count of distinct playerIDs as the final answer." + ] + }, + "revisql-train:7697": { + "raw": "1. In the Goalies table, filter to year 2010 and group by tmID, summing PostENG values while casting non-null entries to integers and treating nulls as zero to compute each team’s total postseason empty net goals.\n2. Calculate the maximum value across those team totals to establish the threshold for “most” postseason empty net goals.\n3. Retain only the grouped team rows whose summed total equals that maximum value.\n4. Join those rows to the Teams table on matching tmID and year 2010 to retrieve the corresponding full team names.\n5. Return the name column from Teams.", + "steps": [ + "In the Goalies table, filter to year 2010 and group by tmID, summing PostENG values while casting non-null entries to integers and treating nulls as zero to compute each team’s total postseason empty net goals.", + "Calculate the maximum value across those team totals to establish the threshold for “most” postseason empty net goals.", + "Retain only the grouped team rows whose summed total equals that maximum value.", + "Join those rows to the Teams table on matching tmID and year 2010 to retrieve the corresponding full team names.", + "Return the name column from Teams." + ] + }, + "revisql-train:7698": { + "raw": "1. Query the `Goalies` table for `year` = 1995, group by `tmID`, and compute each team’s total postseason shutouts by summing `PostSHO` while treating null entries as 0.\n2. Determine the maximum value among those summed postseason shutouts, and keep only the `tmID`(s) whose total equals that maximum.\n3. In the `Teams` table, filter for rows where `year` = 1995 and `tmID` matches the team(s) identified in the previous step.\n4. Return the `Pts` column from those rows, since “points” maps to `Pts`.", + "steps": [ + "Query the `Goalies` table for `year` = 1995, group by `tmID`, and compute each team’s total postseason shutouts by summing `PostSHO` while treating null entries as 0.", + "Determine the maximum value among those summed postseason shutouts, and keep only the `tmID`(s) whose total equals that maximum.", + "In the `Teams` table, filter for rows where `year` = 1995 and `tmID` matches the team(s) identified in the previous step.", + "Return the `Pts` column from those rows, since “points” maps to `Pts`." + ] + }, + "revisql-train:771": { + "raw": "1. Join the movie table to characters on MovieID, then join characters to actor on ActorID to link gross/genre data with character and actor names.\n2. Filter the movie table to rows where Gross equals 136766062.\n3. Map the external knowledge \"drama movie\" to the movie.Genre column and filter to 'Drama'.\n4. Map the external knowledge \"as Don Altobello\" to the characters.Character Name column and filter to 'Don Altobello'.\n5. Return only the Name column from the actor table.", + "steps": [ + "Join the movie table to characters on MovieID, then join characters to actor on ActorID to link gross/genre data with character and actor names.", + "Filter the movie table to rows where Gross equals 136766062.", + "Map the external knowledge \"drama movie\" to the movie.Genre column and filter to 'Drama'.", + "Map the external knowledge \"as Don Altobello\" to the characters.Character Name column and filter to 'Don Altobello'.", + "Return only the Name column from the actor table." + ] + }, + "revisql-train:7710": { + "raw": "1. Query the Goalies table and filter for rows where the year is 1996.\n2. Group the filtered results by playerID and calculate the total shutouts by summing the SHO column, ensuring numeric values.\n3. Sort the grouped results by total shutouts in descending order and limit the set to the single goaltender with the highest sum.\n4. Join this result with the Master table on playerID to link the goaltender to their profile.\n5. Return only the shootCatch column from Master, which indicates the catching hand.", + "steps": [ + "Query the Goalies table and filter for rows where the year is 1996.", + "Group the filtered results by playerID and calculate the total shutouts by summing the SHO column, ensuring numeric values.", + "Sort the grouped results by total shutouts in descending order and limit the set to the single goaltender with the highest sum.", + "Join this result with the Master table on playerID to link the goaltender to their profile.", + "Return only the shootCatch column from Master, which indicates the catching hand." + ] + }, + "revisql-train:7713": { + "raw": "1. In the `Scoring` table, filter to rows where `year` is greater than 2000 and group by `playerID`, summing the `PPG` column to compute each player's total power play goals in the 21st century.\n2. Compute the maximum value across those summed totals to identify the highest power play goal count achieved.\n3. Keep only the player ID(s) whose summed total equals that maximum value.\n4. Join those retained player IDs to the `Master` table using `playerID` to retrieve the corresponding `weight` column.\n5. Return distinct values of `weight` as the final result set.", + "steps": [ + "In the `Scoring` table, filter to rows where `year` is greater than 2000 and group by `playerID`, summing the `PPG` column to compute each player's total power play goals in the 21st century.", + "Compute the maximum value across those summed totals to identify the highest power play goal count achieved.", + "Keep only the player ID(s) whose summed total equals that maximum value.", + "Join those retained player IDs to the `Master` table using `playerID` to retrieve the corresponding `weight` column.", + "Return distinct values of `weight` as the final result set." + ] + }, + "revisql-train:7717": { + "raw": "1. Join Teams to Coaches on tmID and year, then to Master on coachID, restricting to rows where the year is 2003 to associate teams with their coaches and names.\n2. Group the results by the coach's firstName and lastName from Master, summing Teams.BenchMinor to compute each coach's total bench minors.\n3. In a subquery using the same three-table joins, year filter, and grouping, order by the summed BenchMinor descending and limit to one to find the maximum total.\n4. In the outer query, add a HAVING clause that keeps only coach groups whose summed BenchMinor equals that subquery maximum.\n5. Select distinct firstName and lastName as the final result columns.", + "steps": [ + "Join Teams to Coaches on tmID and year, then to Master on coachID, restricting to rows where the year is 2003 to associate teams with their coaches and names.", + "Group the results by the coach's firstName and lastName from Master, summing Teams.BenchMinor to compute each coach's total bench minors.", + "In a subquery using the same three-table joins, year filter, and grouping, order by the summed BenchMinor descending and limit to one to find the maximum total.", + "In the outer query, add a HAVING clause that keeps only coach groups whose summed BenchMinor equals that subquery maximum.", + "Select distinct firstName and lastName as the final result columns." + ] + }, + "revisql-train:7724": { + "raw": "1. Aggregate the Teams table by tmID to sum each team’s total losses across all seasons.\n2. Use a subquery grouped by tmID to find the highest total loss value by ordering summed losses descending and limiting to one result.\n3. In the outer query, apply a HAVING clause to keep only teams whose total summed losses equal that maximum value.\n4. Calculate power play percentage by casting summed PPG to REAL, multiplying by 100, and dividing by summed PPC.\n5. Return exactly the computed power play percentage column.", + "steps": [ + "Aggregate the Teams table by tmID to sum each team’s total losses across all seasons.", + "Use a subquery grouped by tmID to find the highest total loss value by ordering summed losses descending and limiting to one result.", + "In the outer query, apply a HAVING clause to keep only teams whose total summed losses equal that maximum value.", + "Calculate power play percentage by casting summed PPG to REAL, multiplying by 100, and dividing by summed PPC.", + "Return exactly the computed power play percentage column." + ] + }, + "revisql-train:7738": { + "raw": "1. Start from the SeriesPost table and apply the external knowledge that exhibition games are recorded with note = 'EX', also filtering for year = 1912.\n2. Use the external knowledge that the losing team is stored in the tmIDLoser column to identify which team lost each such game.\n3. Inner join the Teams table on matching year and tmIDLoser = tmID to retrieve the full team record for the losing side.\n4. Return only the name column from Teams as the result.", + "steps": [ + "Start from the SeriesPost table and apply the external knowledge that exhibition games are recorded with note = 'EX', also filtering for year = 1912.", + "Use the external knowledge that the losing team is stored in the tmIDLoser column to identify which team lost each such game.", + "Inner join the Teams table on matching year and tmIDLoser = tmID to retrieve the full team record for the losing side.", + "Return only the name column from Teams as the result." + ] + }, + "revisql-train:774": { + "raw": "1. Join the `movie` table to `characters` on `MovieID`, then join `actor` on `ActorID` to connect every actor with the movies they appear in.\n2. Keep only rows where `movie.Genre` is equal to 'Drama'.\n3. Because `actor.NetWorth` is stored as text with dollar signs and commas, strip those characters and cast the value to a real number so it can be compared to 400000000.\n4. Compute two distinct counts of `ActorID`: one for actors whose cleaned net worth exceeds 400000000, and one for all actors in the drama set; divide the wealthy count by the total count.\n5. Multiply that ratio by 100.0 and return the result as a single column named `percentage`.", + "steps": [ + "Join the `movie` table to `characters` on `MovieID`, then join `actor` on `ActorID` to connect every actor with the movies they appear in.", + "Keep only rows where `movie.Genre` is equal to 'Drama'.", + "Because `actor.NetWorth` is stored as text with dollar signs and commas, strip those characters and cast the value to a real number so it can be compared to 400000000.", + "Compute two distinct counts of `ActorID`: one for actors whose cleaned net worth exceeds 400000000, and one for all actors in the drama set; divide the wealthy count by the total count.", + "Multiply that ratio by 100.0 and return the result as a single column named `percentage`." + ] + }, + "revisql-train:7747": { + "raw": "1. Filter the scoring table to records where short-handed assists (`SHA`) are at least 7, casting the value to integer per the external knowledge mapping.\n2. Join these scoring records with the `Teams` table on matching `year` and `tmID` to bring in each team’s final standing (`rank`), full `name`, and season `year`.\n3. In a subquery, repeat the same join and `SHA >= 7` filter against scoring and `Teams` to compute the maximum assists (`A`) across the qualified player-team records.\n4. Restrict the main joined results to only those rows where the player’s assists (`A`, cast to integer) equal the subquery’s maximum value.\n5. Return the columns `rank` (final standing), `year`, and `name` (team name).", + "steps": [ + "Filter the scoring table to records where short-handed assists (`SHA`) are at least 7, casting the value to integer per the external knowledge mapping.", + "Join these scoring records with the `Teams` table on matching `year` and `tmID` to bring in each team’s final standing (`rank`), full `name`, and season `year`.", + "In a subquery, repeat the same join and `SHA >= 7` filter against scoring and `Teams` to compute the maximum assists (`A`) across the qualified player-team records.", + "Restrict the main joined results to only those rows where the player’s assists (`A`, cast to integer) equal the subquery’s maximum value.", + "Return the columns `rank` (final standing), `year`, and `name` (team name)." + ] + }, + "revisql-train:7754": { + "raw": "1. Use the Teams table, which contains the year, wins, losses, points, and team ID columns needed.\n2. Filter to rows where the year column equals 2006.\n3. Map \"more wins than loses\" to the W and L columns by keeping only rows where W is greater than L.\n4. Map \"over 100 points\" to the Pts column by keeping only rows where Pts is greater than 100.\n5. Count the tmID values to get the number of qualifying teams and return only that count.", + "steps": [ + "Use the Teams table, which contains the year, wins, losses, points, and team ID columns needed.", + "Filter to rows where the year column equals 2006.", + "Map \"more wins than loses\" to the W and L columns by keeping only rows where W is greater than L.", + "Map \"over 100 points\" to the Pts column by keeping only rows where Pts is greater than 100.", + "Count the tmID values to get the number of qualifying teams and return only that count." + ] + }, + "revisql-train:7756": { + "raw": "1. Query the Teams table and filter to rows where the year is 2006.\n2. Group the filtered records by tmID and name so each team is represented by a single row.\n3. Sum the PIM values within each group to compute total penalty minutes per team.\n4. Order the grouped results by that summed PIM in descending order.\n5. Limit the output to the first 3 rows and return only the name column.", + "steps": [ + "Query the Teams table and filter to rows where the year is 2006.", + "Group the filtered records by tmID and name so each team is represented by a single row.", + "Sum the PIM values within each group to compute total penalty minutes per team.", + "Order the grouped results by that summed PIM in descending order.", + "Limit the output to the first 3 rows and return only the name column." + ] + }, + "revisql-train:7759": { + "raw": "1. Query the SeriesPost table for records where year is 1922 and round is 'SCF' (Stanley Cup finals), extracting both the winning and losing team IDs and combining them into a single list of tmIDs.\n2. Join that combined list with the Teams table on year = 1922 and matching tmID to resolve each team ID to its full name.\n3. Apply DISTINCT to the resulting team names to remove any duplicates.\n4. Return only the Teams.name column.", + "steps": [ + "Query the SeriesPost table for records where year is 1922 and round is 'SCF' (Stanley Cup finals), extracting both the winning and losing team IDs and combining them into a single list of tmIDs.", + "Join that combined list with the Teams table on year = 1922 and matching tmID to resolve each team ID to its full name.", + "Apply DISTINCT to the resulting team names to remove any duplicates.", + "Return only the Teams.name column." + ] + }, + "revisql-train:7762": { + "raw": "1. Filter the SeriesPost table to rows where `round='SCF'` to isolate only Stanley Cup finals series.\n2. Build a combined set of team appearances by selecting `tmIDWinner` paired with its `W` value and `tmIDLoser` paired with its `L` value, stacking both with UNION ALL so every team gets credit for the games it won in each finals series.\n3. Group by `tmID` and sum the win values to compute the total games each team won across all Stanley Cup finals.\n4. Calculate the maximum value among those summed win totals to identify the highest number of finals wins.\n5. Join the aggregated win totals to the Teams table on `tmID` to map each team to its full `name`.\n6. Return the distinct `name` of the team(s) whose total win count equals that maximum.", + "steps": [ + "Filter the SeriesPost table to rows where `round='SCF'` to isolate only Stanley Cup finals series.", + "Build a combined set of team appearances by selecting `tmIDWinner` paired with its `W` value and `tmIDLoser` paired with its `L` value, stacking both with UNION ALL so every team gets credit for the games it won in each finals series.", + "Group by `tmID` and sum the win values to compute the total games each team won across all Stanley Cup finals.", + "Calculate the maximum value among those summed win totals to identify the highest number of finals wins.", + "Join the aggregated win totals to the Teams table on `tmID` to map each team to its full `name`.", + "Return the distinct `name` of the team(s) whose total win count equals that maximum." + ] + }, + "revisql-train:7764": { + "raw": "1. Start with the Teams table, which contains the full team names, season years, and tie counts.\n2. Filter rows to the single season where the year column equals 1909.\n3. Apply the external knowledge that a team \"had a tie\" means its T column is greater than 0.\n4. Return distinct values from the name column so each qualifying team appears only once.", + "steps": [ + "Start with the Teams table, which contains the full team names, season years, and tie counts.", + "Filter rows to the single season where the year column equals 1909.", + "Apply the external knowledge that a team \"had a tie\" means its T column is greater than 0.", + "Return distinct values from the name column so each qualifying team appears only once." + ] + }, + "revisql-train:7779": { + "raw": "1. Join the Coaches table to Teams on both tmID and year to link each coaching stint to its corresponding team identity.\n2. Filter the joined set to retain only rows where the Teams.name column equals 'Montreal Canadiens'.\n3. Join the Coaches table to the Master table on coachID to access the coach's firstName.\n4. Apply the external knowledge that \"the first one\" corresponds to the minimum year by ordering the results by Coaches.year in ascending order.\n5. Restrict the output to the single earliest record and return only the firstName column from Master.", + "steps": [ + "Join the Coaches table to Teams on both tmID and year to link each coaching stint to its corresponding team identity.", + "Filter the joined set to retain only rows where the Teams.name column equals 'Montreal Canadiens'.", + "Join the Coaches table to the Master table on coachID to access the coach's firstName.", + "Apply the external knowledge that \"the first one\" corresponds to the minimum year by ordering the results by Coaches.year in ascending order.", + "Restrict the output to the single earliest record and return only the firstName column from Master." + ] + }, + "revisql-train:7780": { + "raw": "1. Query the `Teams` table, which stores each team’s season totals for games (`G`) and wins (`W`).\n2. Filter to the single row where `name` equals 'Buffalo Sabres' and `year` equals 2000.\n3. Compute the winning rate by dividing the wins column `W` by the games column `G`.\n4. Cast `W` as REAL before dividing to ensure the result is a decimal rather than an integer.\n5. Return the calculated value with the alias `winning_rate`.", + "steps": [ + "Query the `Teams` table, which stores each team’s season totals for games (`G`) and wins (`W`).", + "Filter to the single row where `name` equals 'Buffalo Sabres' and `year` equals 2000.", + "Compute the winning rate by dividing the wins column `W` by the games column `G`.", + "Cast `W` as REAL before dividing to ensure the result is a decimal rather than an integer.", + "Return the calculated value with the alias `winning_rate`." + ] + }, + "revisql-train:7791": { + "raw": "1. Start from the Goalies table and isolate the record for year 1973 where tmID is 'QUN' and GP equals 32.\n2. Join the Master table on playerID to access the goaltender’s profile information.\n3. Map the external knowledge terms: dominant hand corresponds to the shootCatch column in Master, and full name corresponds to the firstName and lastName columns in Master.\n4. Select shootCatch, firstName, and lastName as the final output columns.", + "steps": [ + "Start from the Goalies table and isolate the record for year 1973 where tmID is 'QUN' and GP equals 32.", + "Join the Master table on playerID to access the goaltender’s profile information.", + "Map the external knowledge terms: dominant hand corresponds to the shootCatch column in Master, and full name corresponds to the firstName and lastName columns in Master.", + "Select shootCatch, firstName, and lastName as the final output columns." + ] + }, + "revisql-train:7793": { + "raw": "1. Join the `Goalies` table with `Master` on `playerID` to link the goalkeeper’s season record to their personal profile.\n2. Filter `Goalies` to `year = 1972` and `tmID = 'BOS'`, applying the external knowledge that “BOS” refers to that team code and the year is 1972.\n3. Filter `Master` to rows where `coachID IS NOT NULL` and `hofID IS NULL`, matching the conditions “became a coach” and “is not a Hall of Famer.”\n4. Return only the columns `firstName` and `lastName` from `Master` as the requested identity fields.", + "steps": [ + "Join the `Goalies` table with `Master` on `playerID` to link the goalkeeper’s season record to their personal profile.", + "Filter `Goalies` to `year = 1972` and `tmID = 'BOS'`, applying the external knowledge that “BOS” refers to that team code and the year is 1972.", + "Filter `Master` to rows where `coachID IS NOT NULL` and `hofID IS NULL`, matching the conditions “became a coach” and “is not a Hall of Famer.”", + "Return only the columns `firstName` and `lastName` from `Master` as the requested identity fields." + ] + }, + "revisql-train:78": { + "raw": "1. Join the ratings table with movies on movie_id to connect each rating record to its movie title.\n2. Filter where movie_title equals 'A Way of Life'.\n3. Filter where rating_timestamp_utc is on or after '2012-01-01' to capture only ratings made after the year 2011.\n4. Compute COUNT(DISTINCT rating_id) on the ratings table to total unique ratings.\n5. Return the single aggregated count column.", + "steps": [ + "Join the ratings table with movies on movie_id to connect each rating record to its movie title.", + "Filter where movie_title equals 'A Way of Life'.", + "Filter where rating_timestamp_utc is on or after '2012-01-01' to capture only ratings made after the year 2011.", + "Compute COUNT(DISTINCT rating_id) on the ratings table to total unique ratings.", + "Return the single aggregated count column." + ] + }, + "revisql-train:7804": { + "raw": "1. Identify the Master table as the source for player biographical information such as origin and full name.\n2. Apply the external knowledge that \"origin from Finland\" maps to the birthCountry column with the filter value 'Finland'.\n3. Apply the external knowledge that \"full name\" maps to the firstName and lastName columns.\n4. Use DISTINCT on the selected name columns to ensure each unique player is returned only once.\n5. Return exactly the firstName and lastName columns in the result.", + "steps": [ + "Identify the Master table as the source for player biographical information such as origin and full name.", + "Apply the external knowledge that \"origin from Finland\" maps to the birthCountry column with the filter value 'Finland'.", + "Apply the external knowledge that \"full name\" maps to the firstName and lastName columns.", + "Use DISTINCT on the selected name columns to ensure each unique player is returned only once.", + "Return exactly the firstName and lastName columns in the result." + ] + }, + "revisql-train:7808": { + "raw": "1. Join Master and Scoring on playerID to access the birthyear and each season's goals column G.\n2. Filter the joined rows to only those where playerID equals 'aaltoan01'.\n3. Apply the external knowledge: total goals maps to a SUM of the G column, and age maps to the current year minus Master.birthyear.\n4. Group the results by Master.birthyear so the goal sum and age calculation are consistent.\n5. Return exactly two columns: the summed total goals and the computed age (current year minus birthyear).", + "steps": [ + "Join Master and Scoring on playerID to access the birthyear and each season's goals column G.", + "Filter the joined rows to only those where playerID equals 'aaltoan01'.", + "Apply the external knowledge: total goals maps to a SUM of the G column, and age maps to the current year minus Master.birthyear.", + "Group the results by Master.birthyear so the goal sum and age calculation are consistent.", + "Return exactly two columns: the summed total goals and the computed age (current year minus birthyear)." + ] + }, + "revisql-train:7811": { + "raw": "1. Join the `Scoring` table with the `Master` table on the `playerID` key to connect games-played data with player biographical information.\n2. Filter the joined rows by `Master.birthCountry = 'USA'` to keep only players from the USA, applying the external knowledge mapping for \"from USA\".\n3. Recognize that \"game played\" maps to the `GP` column in the `Scoring` table per the external knowledge.\n4. Aggregate the filtered rows by computing the sum of `GP` to obtain the total number of games played.\n5. Return the final result as a single column named `total_games`.", + "steps": [ + "Join the `Scoring` table with the `Master` table on the `playerID` key to connect games-played data with player biographical information.", + "Filter the joined rows by `Master.birthCountry = 'USA'` to keep only players from the USA, applying the external knowledge mapping for \"from USA\".", + "Recognize that \"game played\" maps to the `GP` column in the `Scoring` table per the external knowledge.", + "Aggregate the filtered rows by computing the sum of `GP` to obtain the total number of games played.", + "Return the final result as a single column named `total_games`." + ] + }, + "revisql-train:782": { + "raw": "1. Join the twitter table to the location table on the LocationID key so that country data is available for each tweet.\n2. Filter the joined rows where the location table's Country column equals 'Argentina', applying the external knowledge.\n3. Count the TweetID values from the twitter table to compute the total number of tweets.\n4. Return the resulting count as the single output value.", + "steps": [ + "Join the twitter table to the location table on the LocationID key so that country data is available for each tweet.", + "Filter the joined rows where the location table's Country column equals 'Argentina', applying the external knowledge.", + "Count the TweetID values from the twitter table to compute the total number of tweets.", + "Return the resulting count as the single output value." + ] + }, + "revisql-train:7823": { + "raw": "1. Start with the CountryLanguage table, which records every language spoken in a country.\n2. Apply the external knowledge to isolate rows where the Language column equals 'Portuguese'.\n3. Recognize that the primary key (CountryCode, Language) guarantees each country appears only once for Portuguese, so every matching row corresponds to one distinct country.\n4. Aggregate by summing a value of 1 for each matching row and 0 for all others to compute the total number of countries.\n5. Return exactly one column: the resulting summed total.", + "steps": [ + "Start with the CountryLanguage table, which records every language spoken in a country.", + "Apply the external knowledge to isolate rows where the Language column equals 'Portuguese'.", + "Recognize that the primary key (CountryCode, Language) guarantees each country appears only once for Portuguese, so every matching row corresponds to one distinct country.", + "Aggregate by summing a value of 1 for each matching row and 0 for all others to compute the total number of countries.", + "Return exactly one column: the resulting summed total." + ] + }, + "revisql-train:7828": { + "raw": "1. Compute the maximum LifeExpectancy from the Country table to identify the target country.\n2. Filter Country to the row where LifeExpectancy equals that maximum value.\n3. Join Country to City on Country.Capital = City.ID to retrieve the capital city's name.\n4. Join Country to CountryLanguage on Country.Code = CountryLanguage.CountryCode, keeping only rows where IsOfficial = 'T' to isolate the official language.\n5. Return Country.Name as the country name, City.Name as the capital city, and CountryLanguage.Language as the official language.", + "steps": [ + "Compute the maximum LifeExpectancy from the Country table to identify the target country.", + "Filter Country to the row where LifeExpectancy equals that maximum value.", + "Join Country to City on Country.Capital = City.ID to retrieve the capital city's name.", + "Join Country to CountryLanguage on Country.Code = CountryLanguage.CountryCode, keeping only rows where IsOfficial = 'T' to isolate the official language.", + "Return Country.Name as the country name, City.Name as the capital city, and CountryLanguage.Language as the official language." + ] + }, + "revisql-train:783": { + "raw": "1. Join the twitter table with the location table on LocationID to link each tweet to its city and country.\n2. Filter for rows where location.Country equals 'Argentina'.\n3. Group the filtered results by location.City and count twitter.TweetID per city to measure tweet volume.\n4. In a subquery, repeat the same join and filter, group by city, order the tweet counts descending, and limit to one row to obtain the maximum tweet count.\n5. Keep only the city group from the outer query whose tweet count equals that maximum value.\n6. Return the City column.", + "steps": [ + "Join the twitter table with the location table on LocationID to link each tweet to its city and country.", + "Filter for rows where location.Country equals 'Argentina'.", + "Group the filtered results by location.City and count twitter.TweetID per city to measure tweet volume.", + "In a subquery, repeat the same join and filter, group by city, order the tweet counts descending, and limit to one row to obtain the maximum tweet count.", + "Keep only the city group from the outer query whose tweet count equals that maximum value.", + "Return the City column." + ] + }, + "revisql-train:7838": { + "raw": "1. Use only the Country table; no joins are needed because both Continent and SurfaceArea are stored there.\n2. Map “smallest surface area” to the SurfaceArea column and sort all rows by it in ascending order.\n3. Limit the sorted result to the first row to isolate the country with the minimum surface area.\n4. Return exactly the Continent column.", + "steps": [ + "Use only the Country table; no joins are needed because both Continent and SurfaceArea are stored there.", + "Map “smallest surface area” to the SurfaceArea column and sort all rows by it in ascending order.", + "Limit the sorted result to the first row to isolate the country with the minimum surface area.", + "Return exactly the Continent column." + ] + }, + "revisql-train:784": { + "raw": "1. Start from the twitter table and restrict to reshared tweets by filtering IsReshare to 'TRUE'.\n2. Join the location table on LocationID to attach geographic data to each tweet record.\n3. Further filter the results to only rows where the location City equals 'Buenos Aires'.\n4. Count the TweetID values and return that single aggregated count.", + "steps": [ + "Start from the twitter table and restrict to reshared tweets by filtering IsReshare to 'TRUE'.", + "Join the location table on LocationID to attach geographic data to each tweet record.", + "Further filter the results to only rows where the location City equals 'Buenos Aires'.", + "Count the TweetID values and return that single aggregated count." + ] + }, + "revisql-train:7845": { + "raw": "1. Locate Belgium in the Country table by filtering the Name column to the value 'Belgium'.\n2. Join the Country table with the CountryLanguage table on Country.Code = CountryLanguage.CountryCode to associate the country with its spoken languages.\n3. Map the concept of \"official languages\" from the external knowledge to the CountryLanguage.IsOfficial column with the value 'T'.\n4. Apply a filter on the joined results for rows where IsOfficial equals 'T'.\n5. Return only the Language column from the CountryLanguage table as the final output.", + "steps": [ + "Locate Belgium in the Country table by filtering the Name column to the value 'Belgium'.", + "Join the Country table with the CountryLanguage table on Country.Code = CountryLanguage.CountryCode to associate the country with its spoken languages.", + "Map the concept of \"official languages\" from the external knowledge to the CountryLanguage.IsOfficial column with the value 'T'.", + "Apply a filter on the joined results for rows where IsOfficial equals 'T'.", + "Return only the Language column from the CountryLanguage table as the final output." + ] + }, + "revisql-train:7846": { + "raw": "1. Identify that the query requires data from both the Country and City tables, linked by the country code relationship.\n2. Join Country to City on Country.Code = City.CountryCode to connect each city to its corresponding country.\n3. Filter the joined results by restricting Country.LocalName to the exact value 'Hajastan'.\n4. Return the columns City.Name and City.District as the final output.", + "steps": [ + "Identify that the query requires data from both the Country and City tables, linked by the country code relationship.", + "Join Country to City on Country.Code = City.CountryCode to connect each city to its corresponding country.", + "Filter the joined results by restricting Country.LocalName to the exact value 'Hajastan'.", + "Return the columns City.Name and City.District as the final output." + ] + }, + "revisql-train:7848": { + "raw": "1. Determine that the required data is the Language values stored in the CountryLanguage table.\n2. Use the external knowledge that Belize is a country name to filter the Country table to the row where Name equals 'Belize'.\n3. Join CountryLanguage to Country on the country code, matching Country.Code to CountryLanguage.CountryCode.\n4. Return the Language column from CountryLanguage.", + "steps": [ + "Determine that the required data is the Language values stored in the CountryLanguage table.", + "Use the external knowledge that Belize is a country name to filter the Country table to the row where Name equals 'Belize'.", + "Join CountryLanguage to Country on the country code, matching Country.Code to CountryLanguage.CountryCode.", + "Return the Language column from CountryLanguage." + ] + }, + "revisql-train:7855": { + "raw": "1. Query the Country table alone; no joins are needed because Name, Continent, and GNP all reside in this single table.\n2. Filter rows where Continent equals 'Asia', applying the external knowledge that Asia maps to the Continent column.\n3. Sort the filtered results by GNP in descending order to bring the largest gross national product to the top, corresponding to the MAX(GNP) requirement.\n4. Restrict the output to the first row only.\n5. Return exactly the Name column.", + "steps": [ + "Query the Country table alone; no joins are needed because Name, Continent, and GNP all reside in this single table.", + "Filter rows where Continent equals 'Asia', applying the external knowledge that Asia maps to the Continent column.", + "Sort the filtered results by GNP in descending order to bring the largest gross national product to the top, corresponding to the MAX(GNP) requirement.", + "Restrict the output to the first row only.", + "Return exactly the Name column." + ] + }, + "revisql-train:7867": { + "raw": "1. Interpret \"highest life expectancy\" as the maximum value of the `LifeExpectancy` column in the `Country` table, obtained via a scalar subquery using `MAX(LifeExpectancy)`.\n2. Join the `City` table with the `Country` table on `City.CountryCode = Country.Code` to associate each city with its country's life expectancy data.\n3. Filter the joined results to only keep rows where `Country.LifeExpectancy` equals the maximum value returned by the subquery.\n4. Return the `Name` column from the `City` table for the filtered cities.", + "steps": [ + "Interpret \"highest life expectancy\" as the maximum value of the `LifeExpectancy` column in the `Country` table, obtained via a scalar subquery using `MAX(LifeExpectancy)`.", + "Join the `City` table with the `Country` table on `City.CountryCode = Country.Code` to associate each city with its country's life expectancy data.", + "Filter the joined results to only keep rows where `Country.LifeExpectancy` equals the maximum value returned by the subquery.", + "Return the `Name` column from the `City` table for the filtered cities." + ] + }, + "revisql-train:7870": { + "raw": "1. Join the Country table to CountryLanguage on Country.Code = CountryLanguage.CountryCode.\n2. Filter the joined set to rows where Country.Continent equals 'Asia'.\n3. Apply the external knowledge mapping by restricting CountryLanguage.Language to 'English' and CountryLanguage.IsOfficial to 'F'.\n4. Group the results by Country.Name so each qualifying country appears once.\n5. Return Country.Name as the output column.", + "steps": [ + "Join the Country table to CountryLanguage on Country.Code = CountryLanguage.CountryCode.", + "Filter the joined set to rows where Country.Continent equals 'Asia'.", + "Apply the external knowledge mapping by restricting CountryLanguage.Language to 'English' and CountryLanguage.IsOfficial to 'F'.", + "Group the results by Country.Name so each qualifying country appears once.", + "Return Country.Name as the output column." + ] + }, + "revisql-train:7872": { + "raw": "1. Filter the CountryLanguage table to rows where Language equals 'Chinese' and collect the CountryCode values to identify all countries that use Chinese.\n2. From the Country table, sum the SurfaceArea column only for countries whose Code matches the CountryCode values found in step 1.\n3. Independently compute the total sum of SurfaceArea across every row in the Country table to use as the denominator.\n4. Divide the Chinese-speaking countries' SurfaceArea sum by the global SurfaceArea sum, multiply the result by 100.0, and return this single calculated percentage value.", + "steps": [ + "Filter the CountryLanguage table to rows where Language equals 'Chinese' and collect the CountryCode values to identify all countries that use Chinese.", + "From the Country table, sum the SurfaceArea column only for countries whose Code matches the CountryCode values found in step 1.", + "Independently compute the total sum of SurfaceArea across every row in the Country table to use as the denominator.", + "Divide the Chinese-speaking countries' SurfaceArea sum by the global SurfaceArea sum, multiply the result by 100.0, and return this single calculated percentage value." + ] + }, + "revisql-train:7873": { + "raw": "1. Start with the Country table, as it contains both the country identifiers and their surface areas.\n2. Map the question phrase \"which country\" to the Name column, per the external knowledge that this refers to the country name.\n3. To find the smallest surface area, order all rows by the SurfaceArea column in ascending order.\n4. Restrict the result to only the first row from that ordered set to isolate the single country with the minimum surface area.\n5. The final result must return exactly the Name column.", + "steps": [ + "Start with the Country table, as it contains both the country identifiers and their surface areas.", + "Map the question phrase \"which country\" to the Name column, per the external knowledge that this refers to the country name.", + "To find the smallest surface area, order all rows by the SurfaceArea column in ascending order.", + "Restrict the result to only the first row from that ordered set to isolate the single country with the minimum surface area.", + "The final result must return exactly the Name column." + ] + }, + "revisql-train:7877": { + "raw": "1. Use the Country table and filter for rows where IndepYear is greater than 1990, mapping the condition \"declared independence after 1990\" to this column.\n2. Join the CountryLanguage table on Country.Code = CountryLanguage.CountryCode to associate each qualifying country with its recorded languages.\n3. Apply the filter IsOfficial = 'T' on the CountryLanguage rows, mapping \"official language\" to this column and value.\n4. Return the Name column from Country and the Language column from CountryLanguage as the result.", + "steps": [ + "Use the Country table and filter for rows where IndepYear is greater than 1990, mapping the condition \"declared independence after 1990\" to this column.", + "Join the CountryLanguage table on Country.Code = CountryLanguage.CountryCode to associate each qualifying country with its recorded languages.", + "Apply the filter IsOfficial = 'T' on the CountryLanguage rows, mapping \"official language\" to this column and value.", + "Return the Name column from Country and the Language column from CountryLanguage as the result." + ] + }, + "revisql-train:7881": { + "raw": "1. Join the `City` table to the `Country` table on `City.CountryCode = Country.Code` to link each city to its country's life expectancy data.\n2. Use a subquery against the `City` table to find the maximum `Population`, since \"most crowded city\" maps to `MAX(Population)`.\n3. Filter the joined rows to only those cities whose `Population` equals that maximum value.\n4. Return the `LifeExpectancy` column from the `Country` table.", + "steps": [ + "Join the `City` table to the `Country` table on `City.CountryCode = Country.Code` to link each city to its country's life expectancy data.", + "Use a subquery against the `City` table to find the maximum `Population`, since \"most crowded city\" maps to `MAX(Population)`.", + "Filter the joined rows to only those cities whose `Population` equals that maximum value.", + "Return the `LifeExpectancy` column from the `Country` table." + ] + }, + "revisql-train:7883": { + "raw": "1. From the City table, identify the five most crowded cities by ordering Population descending and limiting the result to five.\n2. Extract the distinct CountryCode values from those five cities to establish the set of candidate countries.\n3. Join the candidate countries with the Country table on Code to retrieve country names, and with the CountryLanguage table on CountryCode to gather all languages spoken in each.\n4. Group by country and count the distinct Language entries per country to compute the total number of languages used.\n5. Determine the maximum value among those per-country language counts.\n6. Return the Name of the country whose language count equals that maximum.", + "steps": [ + "From the City table, identify the five most crowded cities by ordering Population descending and limiting the result to five.", + "Extract the distinct CountryCode values from those five cities to establish the set of candidate countries.", + "Join the candidate countries with the Country table on Code to retrieve country names, and with the CountryLanguage table on CountryCode to gather all languages spoken in each.", + "Group by country and count the distinct Language entries per country to compute the total number of languages used.", + "Determine the maximum value among those per-country language counts.", + "Return the Name of the country whose language count equals that maximum." + ] + }, + "revisql-train:7884": { + "raw": "1. Join City as T1 with Country as T2 on T1.CountryCode = T2.Code to link each city to its country.\n2. Apply the external knowledge that most crowded city corresponds to MAX(Population) by ordering the results by T1.Population descending.\n3. Add a secondary sort on T2.SurfaceArea descending to break ties when multiple countries share the same highest city population.\n4. Restrict the output to the single top record using a limit of 1.\n5. Return only the T2.Name column as the final answer.", + "steps": [ + "Join City as T1 with Country as T2 on T1.CountryCode = T2.Code to link each city to its country.", + "Apply the external knowledge that most crowded city corresponds to MAX(Population) by ordering the results by T1.Population descending.", + "Add a secondary sort on T2.SurfaceArea descending to break ties when multiple countries share the same highest city population.", + "Restrict the output to the single top record using a limit of 1.", + "Return only the T2.Name column as the final answer." + ] + }, + "revisql-train:7886": { + "raw": "1. Use the City table to retrieve city names and the Country table to access each country's local name.\n2. Join City to Country on City.CountryCode = Country.Code to associate cities with their respective countries.\n3. Filter the joined results to keep only rows where Country.LocalName is exactly '´Uman'.\n4. Return the Name column from the City table as the final result.", + "steps": [ + "Use the City table to retrieve city names and the Country table to access each country's local name.", + "Join City to Country on City.CountryCode = Country.Code to associate cities with their respective countries.", + "Filter the joined results to keep only rows where Country.LocalName is exactly '´Uman'.", + "Return the Name column from the City table as the final result." + ] + }, + "revisql-train:7888": { + "raw": "1. Filter the City table to the row where Name is Shanghai, using the external knowledge that Shanghai is a city name.\n2. Join the Country table to that City row on Country.Code = City.CountryCode to access the corresponding GNP and GNPOld values.\n3. Retrieve the GNP and GNPOld columns from the Country side of the join.\n4. Calculate the growth rate by subtracting GNPOld from GNP, casting the difference to REAL, then multiplying by 100 and dividing by GNPOld to match the provided formula.\n5. Return only that single computed GNP growth rate value.", + "steps": [ + "Filter the City table to the row where Name is Shanghai, using the external knowledge that Shanghai is a city name.", + "Join the Country table to that City row on Country.Code = City.CountryCode to access the corresponding GNP and GNPOld values.", + "Retrieve the GNP and GNPOld columns from the Country side of the join.", + "Calculate the growth rate by subtracting GNPOld from GNP, casting the difference to REAL, then multiplying by 100 and dividing by GNPOld to match the provided formula.", + "Return only that single computed GNP growth rate value." + ] + }, + "revisql-train:789": { + "raw": "1. Join the twitter table with the user table on the UserID column to link each tweet to its poster's gender.\n2. Filter the twitter rows to only those with Likes greater than 1000, applying the external knowledge that \"over 1000 likes\" maps to Likes > 1000.\n3. Filter the joined results to only users whose Gender equals 'Male', applying the external knowledge that 'Male' maps to the Gender column.\n4. Count distinct twitter.UserID values to ensure each qualifying male user is counted exactly once regardless of how many tweets they posted.\n5. Return that single count of distinct UserIDs as the final answer.", + "steps": [ + "Join the twitter table with the user table on the UserID column to link each tweet to its poster's gender.", + "Filter the twitter rows to only those with Likes greater than 1000, applying the external knowledge that \"over 1000 likes\" maps to Likes > 1000.", + "Filter the joined results to only users whose Gender equals 'Male', applying the external knowledge that 'Male' maps to the Gender column.", + "Count distinct twitter.UserID values to ensure each qualifying male user is counted exactly once regardless of how many tweets they posted.", + "Return that single count of distinct UserIDs as the final answer." + ] + }, + "revisql-train:7903": { + "raw": "1. Start from the City table and filter to rows where the District column equals 'Namibe'.\n2. Join the filtered City records with the Country table on City.CountryCode = Country.Code.\n3. From the Country side of the join, select the SurfaceArea and GNP columns.\n4. Return those two columns as the final result.", + "steps": [ + "Start from the City table and filter to rows where the District column equals 'Namibe'.", + "Join the filtered City records with the Country table on City.CountryCode = Country.Code.", + "From the Country side of the join, select the SurfaceArea and GNP columns.", + "Return those two columns as the final result." + ] + }, + "revisql-train:7906": { + "raw": "1. Identify that you need data from both the CountryLanguage and Country tables, and join them on CountryLanguage.CountryCode = Country.Code.\n2. Map \"Dutch as their language\" to the CountryLanguage.Language column, filtering for the exact value 'Dutch'.\n3. Map \"GNP lower than 1000\" to the Country.GNP column, filtering for values strictly less than 1000.\n4. Return the Name column from the Country table as the final output listing the qualifying country names.", + "steps": [ + "Identify that you need data from both the CountryLanguage and Country tables, and join them on CountryLanguage.CountryCode = Country.Code.", + "Map \"Dutch as their language\" to the CountryLanguage.Language column, filtering for the exact value 'Dutch'.", + "Map \"GNP lower than 1000\" to the Country.GNP column, filtering for values strictly less than 1000.", + "Return the Name column from the Country table as the final output listing the qualifying country names." + ] + }, + "revisql-train:7911": { + "raw": "1. Join the City table to the Country table on City.CountryCode matching Country.Code.\n2. Apply a WHERE filter restricting Country.SurfaceArea to exactly 652090.\n3. Group the results by Country.Name to prepare per-country aggregation.\n4. Count the City.Name values within each group to compute the number of cities.\n5. Return only that count of city names.", + "steps": [ + "Join the City table to the Country table on City.CountryCode matching Country.Code.", + "Apply a WHERE filter restricting Country.SurfaceArea to exactly 652090.", + "Group the results by Country.Name to prepare per-country aggregation.", + "Count the City.Name values within each group to compute the number of cities.", + "Return only that count of city names." + ] + }, + "revisql-train:7914": { + "raw": "1. Identify that you need the Country table to find the nation ruled by Pierre Buyoya and the CountryLanguage table to retrieve its languages.\n2. Join CountryLanguage to Country on CountryCode equal to Code to associate each language record with the correct country.\n3. Use the external knowledge mapping to filter the Country table where HeadOfState equals 'Pierre Buyoya'.\n4. Return only the Language column from the CountryLanguage side of the join.", + "steps": [ + "Identify that you need the Country table to find the nation ruled by Pierre Buyoya and the CountryLanguage table to retrieve its languages.", + "Join CountryLanguage to Country on CountryCode equal to Code to associate each language record with the correct country.", + "Use the external knowledge mapping to filter the Country table where HeadOfState equals 'Pierre Buyoya'.", + "Return only the Language column from the CountryLanguage side of the join." + ] + }, + "revisql-train:7922": { + "raw": "1. Identify that podcast categories live in the `categories` table while podcast titles live in the `podcasts` table, so both tables must be used.\n2. Join `categories` to `podcasts` on the shared `podcast_id` key to associate each category with its podcast title.\n3. Filter the result to only the podcast whose `title` matches the exact string 'I Heart My Life Show' from the external knowledge.\n4. Return the `category` column from the `categories` side of the join to list every category assigned to that podcast.", + "steps": [ + "Identify that podcast categories live in the `categories` table while podcast titles live in the `podcasts` table, so both tables must be used.", + "Join `categories` to `podcasts` on the shared `podcast_id` key to associate each category with its podcast title.", + "Filter the result to only the podcast whose `title` matches the exact string 'I Heart My Life Show' from the external knowledge.", + "Return the `category` column from the `categories` side of the join to list every category assigned to that podcast." + ] + }, + "revisql-train:7931": { + "raw": "1. Map the requested author identifier '76A4C24B6038145' to the `author_id` column in the `reviews` table, and map \"review content\" to the `content` column there; note that `rating` also comes from `reviews`.\n2. Filter the `reviews` table to keep only rows where `author_id` equals '76A4C24B6038145'.\n3. Join the `podcasts` table to the filtered `reviews` on the shared `podcast_id` key to connect each review with its podcast title.\n4. Return the `title` column from `podcasts`, and the `rating` and `content` columns from `reviews`.", + "steps": [ + "Map the requested author identifier '76A4C24B6038145' to the `author_id` column in the `reviews` table, and map \"review content\" to the `content` column there; note that `rating` also comes from `reviews`.", + "Filter the `reviews` table to keep only rows where `author_id` equals '76A4C24B6038145'.", + "Join the `podcasts` table to the filtered `reviews` on the shared `podcast_id` key to connect each review with its podcast title.", + "Return the `title` column from `podcasts`, and the `rating` and `content` columns from `reviews`." + ] + }, + "revisql-train:7932": { + "raw": "1. Join the podcasts table with the reviews table using podcast_id as the join key.\n2. Map the external knowledge that worst rating corresponds to the minimum value of the rating column in the reviews table.\n3. Compute the worst rating by finding the minimum rating across all rows in the reviews table.\n4. Filter the joined results to keep only rows where the review rating equals that computed minimum.\n5. Return the podcast title from podcasts, plus the review title and review content from reviews.", + "steps": [ + "Join the podcasts table with the reviews table using podcast_id as the join key.", + "Map the external knowledge that worst rating corresponds to the minimum value of the rating column in the reviews table.", + "Compute the worst rating by finding the minimum rating across all rows in the reviews table.", + "Filter the joined results to keep only rows where the review rating equals that computed minimum.", + "Return the podcast title from podcasts, plus the review title and review content from reviews." + ] + }, + "revisql-train:7935": { + "raw": "1. Identify that the required information sits in the `categories` table (for the category name) and the `podcasts` table (for the title filter).\n2. Join `categories` to `podcasts` using the shared `podcast_id` key to match each category with its podcast title.\n3. Apply the external knowledge by filtering the `podcasts.title` column to the exact value 'SciFi Tech Talk'.\n4. Return only the `category` column from the `categories` table as the final output.", + "steps": [ + "Identify that the required information sits in the `categories` table (for the category name) and the `podcasts` table (for the title filter).", + "Join `categories` to `podcasts` using the shared `podcast_id` key to match each category with its podcast title.", + "Apply the external knowledge by filtering the `podcasts.title` column to the exact value 'SciFi Tech Talk'.", + "Return only the `category` column from the `categories` table as the final output." + ] + }, + "revisql-train:7947": { + "raw": "1. Use only the `runs` table, since it contains both the `run_at` timestamp and the `reviews_added` count; no joins are needed.\n2. Map the external concept of “each year” to the `run_at` column by extracting the first four characters to obtain the calendar year.\n3. Group the rows by that extracted year and compute the sum of `reviews_added` for each year.\n4. Calculate each year’s percentage by dividing its summed `reviews_added` by the grand total of `reviews_added` across the entire `runs` table using a scalar subquery, then multiply by 100.0.\n5. Return the extracted year and the resulting percentage as the two output columns.", + "steps": [ + "Use only the `runs` table, since it contains both the `run_at` timestamp and the `reviews_added` count; no joins are needed.", + "Map the external concept of “each year” to the `run_at` column by extracting the first four characters to obtain the calendar year.", + "Group the rows by that extracted year and compute the sum of `reviews_added` for each year.", + "Calculate each year’s percentage by dividing its summed `reviews_added` by the grand total of `reviews_added` across the entire `runs` table using a scalar subquery, then multiply by 100.0.", + "Return the extracted year and the resulting percentage as the two output columns." + ] + }, + "revisql-train:7948": { + "raw": "1. Identify that podcast titles reside in the `podcasts` table while category labels reside in the `categories` table, requiring a join between them.\n2. Join `categories` to `podcasts` on the shared `podcast_id` column to link each category entry to its corresponding podcast.\n3. Filter the joined rows to only those where the `categories.category` column equals `'fiction'`, mapping the external knowledge that \"in the fiction category\" means `category = 'fiction'`.\n4. Return only the `title` column from the `podcasts` table to list the titles of all podcasts in that category.", + "steps": [ + "Identify that podcast titles reside in the `podcasts` table while category labels reside in the `categories` table, requiring a join between them.", + "Join `categories` to `podcasts` on the shared `podcast_id` column to link each category entry to its corresponding podcast.", + "Filter the joined rows to only those where the `categories.category` column equals `'fiction'`, mapping the external knowledge that \"in the fiction category\" means `category = 'fiction'`.", + "Return only the `title` column from the `podcasts` table to list the titles of all podcasts in that category." + ] + }, + "revisql-train:7949": { + "raw": "1. Identify that you need the `category` column from the `categories` table and the podcast identifier from the `podcasts` table.\n2. Join `categories` to `podcasts` using the shared `podcast_id` key to connect each category with its corresponding podcast title.\n3. Apply the external knowledge that \"entitled\" refers to the `title` column in the `podcasts` table.\n4. Filter the joined rows to only those where `title` is exactly 'Sitcomadon'.\n5. Return the `category` column from `categories`, using `DISTINCT` to avoid duplicate category values in the result.", + "steps": [ + "Identify that you need the `category` column from the `categories` table and the podcast identifier from the `podcasts` table.", + "Join `categories` to `podcasts` using the shared `podcast_id` key to connect each category with its corresponding podcast title.", + "Apply the external knowledge that \"entitled\" refers to the `title` column in the `podcasts` table.", + "Filter the joined rows to only those where `title` is exactly 'Sitcomadon'.", + "Return the `category` column from `categories`, using `DISTINCT` to avoid duplicate category values in the result." + ] + }, + "revisql-train:7957": { + "raw": "1. Identify that you need the `podcasts` table for titles and the `categories` table for the art category filter.\n2. Join the two tables on the shared `podcast_id` key.\n3. Map the external knowledge that \"art category\" corresponds to the value `arts` in the `category` column.\n4. Filter the joined rows to only those where `categories.category` equals `arts`.\n5. Return the `title` column from the `podcasts` table.", + "steps": [ + "Identify that you need the `podcasts` table for titles and the `categories` table for the art category filter.", + "Join the two tables on the shared `podcast_id` key.", + "Map the external knowledge that \"art category\" corresponds to the value `arts` in the `category` column.", + "Filter the joined rows to only those where `categories.category` equals `arts`.", + "Return the `title` column from the `podcasts` table." + ] + }, + "revisql-train:7960": { + "raw": "1. Start from the `podcasts` table and join `categories` on `podcast_id` to access category values, then join `reviews` on `podcast_id` to access review ratings.\n2. Filter the joined rows to keep only those where `categories.category` equals 'music', applying the external knowledge that music category means `category = 'music'`.\n3. Further filter to keep only rows where `reviews.rating` is greater than 3, applying the external knowledge that rating greater than 3 means `rating > 3`.\n4. Deduplicate the remaining rows to avoid repeating podcast names caused by multiple reviews or matching categories.\n5. Return only the `title` column from `podcasts`, since the external knowledge maps the requested podcast name to the `title` column.", + "steps": [ + "Start from the `podcasts` table and join `categories` on `podcast_id` to access category values, then join `reviews` on `podcast_id` to access review ratings.", + "Filter the joined rows to keep only those where `categories.category` equals 'music', applying the external knowledge that music category means `category = 'music'`.", + "Further filter to keep only rows where `reviews.rating` is greater than 3, applying the external knowledge that rating greater than 3 means `rating > 3`.", + "Deduplicate the remaining rows to avoid repeating podcast names caused by multiple reviews or matching categories.", + "Return only the `title` column from `podcasts`, since the external knowledge maps the requested podcast name to the `title` column." + ] + }, + "revisql-train:7965": { + "raw": "1. Map the term \"review\" to the `content` column in the `reviews` table using the external knowledge.\n2. Calculate the maximum review length by finding `MAX(LENGTH(content))` from the `reviews` table.\n3. Filter the `reviews` table to keep only rows where `LENGTH(content)` equals that maximum value.\n4. Return only the `content` column for the matching rows.", + "steps": [ + "Map the term \"review\" to the `content` column in the `reviews` table using the external knowledge.", + "Calculate the maximum review length by finding `MAX(LENGTH(content))` from the `reviews` table.", + "Filter the `reviews` table to keep only rows where `LENGTH(content)` equals that maximum value.", + "Return only the `content` column for the matching rows." + ] + }, + "revisql-train:7984": { + "raw": "1. Use the podcasts table to retrieve podcast titles and the reviews table to locate the target author's reviews.\n2. Join podcasts and reviews on the podcast_id column, which is the common key linking a review to its podcast.\n3. Filter the reviews table to only rows where author_id equals 'F7E5A318989779D', applying the provided external knowledge.\n4. Return only the title column from the podcasts table as the final output.", + "steps": [ + "Use the podcasts table to retrieve podcast titles and the reviews table to locate the target author's reviews.", + "Join podcasts and reviews on the podcast_id column, which is the common key linking a review to its podcast.", + "Filter the reviews table to only rows where author_id equals 'F7E5A318989779D', applying the provided external knowledge.", + "Return only the title column from the podcasts table as the final output." + ] + }, + "revisql-train:799": { + "raw": "1. Use the `location` table, which holds state names and their corresponding location identifiers.\n2. Filter rows where the `State` column equals the exact text 'West Sussex'.\n3. Retrieve the `LocationID` values from the matching rows.\n4. Return only distinct `LocationID` values to avoid duplicates in the result.", + "steps": [ + "Use the `location` table, which holds state names and their corresponding location identifiers.", + "Filter rows where the `State` column equals the exact text 'West Sussex'.", + "Retrieve the `LocationID` values from the matching rows.", + "Return only distinct `LocationID` values to avoid duplicates in the result." + ] + }, + "revisql-train:7995": { + "raw": "1. Identify the ranking_criteria id where criteria_name equals 'Publications Rank', mapping the question's publications rank to that column.\n2. Join ranking_criteria to university_ranking_year on ranking_criteria_id, then join university on university_id to connect criteria, scores, and university names.\n3. Filter university_ranking_year to year = 2014, applying the external knowledge that \"In 2014\" maps to the year column.\n4. Add a subquery on university_ranking_year that selects MAX(score) for the same criteria id and year 2014, mapping \"leader\" to the maximum score.\n5. In the main query, keep only rows where the score matches the subquery result.\n6. Return only the university_name column from the university table.", + "steps": [ + "Identify the ranking_criteria id where criteria_name equals 'Publications Rank', mapping the question's publications rank to that column.", + "Join ranking_criteria to university_ranking_year on ranking_criteria_id, then join university on university_id to connect criteria, scores, and university names.", + "Filter university_ranking_year to year = 2014, applying the external knowledge that \"In 2014\" maps to the year column.", + "Add a subquery on university_ranking_year that selects MAX(score) for the same criteria id and year 2014, mapping \"leader\" to the maximum score.", + "In the main query, keep only rows where the score matches the subquery result.", + "Return only the university_name column from the university table." + ] + }, + "revisql-train:80": { + "raw": "1. Filter the `lists` table on `list_title` = '250 Favourite Films', using the external knowledge that this string is a list title, to identify the target `user_id`.\n2. Join the `ratings` table to that result on `user_id` to gather every `movie_id` rated by the list's creator.\n3. Join the `movies` table to `ratings` on `movie_id` to resolve each rated ID into its corresponding film name.\n4. Return only the `movie_title` column from the `movies` table.", + "steps": [ + "Filter the `lists` table on `list_title` = '250 Favourite Films', using the external knowledge that this string is a list title, to identify the target `user_id`.", + "Join the `ratings` table to that result on `user_id` to gather every `movie_id` rated by the list's creator.", + "Join the `movies` table to `ratings` on `movie_id` to resolve each rated ID into its corresponding film name.", + "Return only the `movie_title` column from the `movies` table." + ] + }, + "revisql-train:801": { + "raw": "1. Identify that the tweet's reach value is stored in the `twitter` table and the country information is stored in the `location` table.\n2. Join `twitter` to `location` on their common `LocationID` key to connect the tweet to its geographic origin.\n3. Filter the `twitter` rows by setting `Reach` equal to 547851, using the given reach number as the exact column value.\n4. Return only the `Country` column from the `location` table as the final answer.", + "steps": [ + "Identify that the tweet's reach value is stored in the `twitter` table and the country information is stored in the `location` table.", + "Join `twitter` to `location` on their common `LocationID` key to connect the tweet to its geographic origin.", + "Filter the `twitter` rows by setting `Reach` equal to 547851, using the given reach number as the exact column value.", + "Return only the `Country` column from the `location` table as the final answer." + ] + }, + "revisql-train:802": { + "raw": "1. Join the twitter table with the location table on the LocationID key so that state information can be used alongside tweet data.\n2. Use the external knowledge to filter for positive tweets by requiring the twitter.Sentiment column to be greater than 0.\n3. Use the external knowledge to filter for 'Ha Noi' by requiring the location.State column to equal 'Ha Noi'.\n4. Aggregate the results by counting the twitter.TweetID values to compute the total number of matching tweets.\n5. Return only that single count column.", + "steps": [ + "Join the twitter table with the location table on the LocationID key so that state information can be used alongside tweet data.", + "Use the external knowledge to filter for positive tweets by requiring the twitter.Sentiment column to be greater than 0.", + "Use the external knowledge to filter for 'Ha Noi' by requiring the location.State column to equal 'Ha Noi'.", + "Aggregate the results by counting the twitter.TweetID values to compute the total number of matching tweets.", + "Return only that single count column." + ] + }, + "revisql-train:8021": { + "raw": "1. Start from `university_year` and join it to `university` on `university_id` = `id`, then join `country` on `country_id` = `id` to connect student counts to country names.\n2. Filter the rows where `year` equals 2014 to match the \"in 2014\" condition.\n3. Map \"most populated university\" to ordering by `num_students` in descending order, and \"in which country\" to the `country_name` column.\n4. Limit the ordered results to the first row only to isolate the single most populated university.\n5. Return the `country_name` column as the final answer.", + "steps": [ + "Start from `university_year` and join it to `university` on `university_id` = `id`, then join `country` on `country_id` = `id` to connect student counts to country names.", + "Filter the rows where `year` equals 2014 to match the \"in 2014\" condition.", + "Map \"most populated university\" to ordering by `num_students` in descending order, and \"in which country\" to the `country_name` column.", + "Limit the ordered results to the first row only to isolate the single most populated university.", + "Return the `country_name` column as the final answer." + ] + }, + "revisql-train:8029": { + "raw": "1. Identify that the required metric `student_staff_ratio` is stored in the `university_year` table and no joins are needed.\n2. Map the external knowledge phrase \"greatest student staff ratio of all time\" to applying the MAX aggregate on the `student_staff_ratio` column across all rows.\n3. Do not apply any filters or grouping, because the scope covers every university and every year in the dataset.\n4. Return only the single computed maximum value of `student_staff_ratio`.", + "steps": [ + "Identify that the required metric `student_staff_ratio` is stored in the `university_year` table and no joins are needed.", + "Map the external knowledge phrase \"greatest student staff ratio of all time\" to applying the MAX aggregate on the `student_staff_ratio` column across all rows.", + "Do not apply any filters or grouping, because the scope covers every university and every year in the dataset.", + "Return only the single computed maximum value of `student_staff_ratio`." + ] + }, + "revisql-train:8033": { + "raw": "1. Join `university_ranking_year` to `ranking_criteria` on `ranking_criteria_id` and to `university` on `university_id` to access `criteria_name` and `university_name`.\n2. Filter the results to rows where `year` equals 2012 and `criteria_name` equals 'Total Times', applying the external knowledge mappings for the year and criteria.\n3. Find the maximum `score` from this filtered subset to determine the highest total times.\n4. Return the `university_name` whose `score` matches that maximum.", + "steps": [ + "Join `university_ranking_year` to `ranking_criteria` on `ranking_criteria_id` and to `university` on `university_id` to access `criteria_name` and `university_name`.", + "Filter the results to rows where `year` equals 2012 and `criteria_name` equals 'Total Times', applying the external knowledge mappings for the year and criteria.", + "Find the maximum `score` from this filtered subset to determine the highest total times.", + "Return the `university_name` whose `score` matches that maximum." + ] + }, + "revisql-train:8035": { + "raw": "1. Join the university, university_ranking_year, and ranking_criteria tables on university.id = university_ranking_year.university_id and ranking_criteria.id = university_ranking_year.ranking_criteria_id.\n2. Filter the joined rows to only those where ranking_criteria.criteria_name is 'Teaching'.\n3. Use a subquery with the same joins and filter to compute the maximum value of university_ranking_year.score for the Teaching criteria.\n4. In the outer query, keep only rows whose university_ranking_year.score equals that maximum score.\n5. Return the column university.university_name.", + "steps": [ + "Join the university, university_ranking_year, and ranking_criteria tables on university.id = university_ranking_year.university_id and ranking_criteria.id = university_ranking_year.ranking_criteria_id.", + "Filter the joined rows to only those where ranking_criteria.criteria_name is 'Teaching'.", + "Use a subquery with the same joins and filter to compute the maximum value of university_ranking_year.score for the Teaching criteria.", + "In the outer query, keep only rows whose university_ranking_year.score equals that maximum score.", + "Return the column university.university_name." + ] + }, + "revisql-train:8036": { + "raw": "1. Map the external knowledge: \"Harvard University\" corresponds to `university.university_name`, \"2011\" to `university_year.year`, and \"percentage of international students\" to `university_year.pct_international_students`.\n2. Use the `university_year` table and join it with `university` on `university_year.university_id = university.id`.\n3. Apply the filter `year = 2011` to `university_year`.\n4. Apply the filter `university_name = 'Harvard University'` to `university`.\n5. No aggregation or ordering is required.\n6. Return only the `pct_international_students` column.", + "steps": [ + "Map the external knowledge: \"Harvard University\" corresponds to `university.university_name`, \"2011\" to `university_year.year`, and \"percentage of international students\" to `university_year.pct_international_students`.", + "Use the `university_year` table and join it with `university` on `university_year.university_id = university.id`.", + "Apply the filter `year = 2011` to `university_year`.", + "Apply the filter `university_name = 'Harvard University'` to `university`.", + "No aggregation or ordering is required.", + "Return only the `pct_international_students` column." + ] + }, + "revisql-train:8063": { + "raw": "1. Join ranking_criteria with university_ranking_year on ranking_criteria_id, then join university on university_id to access criteria names, scores, years, and university names.\n2. Filter the joined set to rows where criteria_name is 'International', year is 2016, and keep all universities in that group for the denominator.\n3. Compute the percentage by counting rows where score is greater than 80, dividing by the total count of universities in the filtered set, and multiplying by 100.\n4. In a scalar subquery against the same joined tables, restrict to International, 2016, and score greater than 80, order by score descending, and limit to 1 to retrieve the university_name with the highest score.\n5. Return exactly two columns: the calculated percentage and the university_name from the subquery.", + "steps": [ + "Join ranking_criteria with university_ranking_year on ranking_criteria_id, then join university on university_id to access criteria names, scores, years, and university names.", + "Filter the joined set to rows where criteria_name is 'International', year is 2016, and keep all universities in that group for the denominator.", + "Compute the percentage by counting rows where score is greater than 80, dividing by the total count of universities in the filtered set, and multiplying by 100.", + "In a scalar subquery against the same joined tables, restrict to International, 2016, and score greater than 80, order by score descending, and limit to 1 to retrieve the university_name with the highest score.", + "Return exactly two columns: the calculated percentage and the university_name from the subquery." + ] + }, + "revisql-train:8064": { + "raw": "1. Map the external knowledge: treat \"Harvard University\" as university_name = 'Harvard University', \"2005\" as year = 2005, and \"ranking criteria\" as the criteria_name column in ranking_criteria.\n2. Start from university_ranking_year and join it to university on university_id to associate scores with the correct institution.\n3. Join university_ranking_year to ranking_criteria on ranking_criteria_id to bring in the human-readable criteria names.\n4. Filter the joined rows where university_name equals 'Harvard University' and year equals 2005.\n5. Return only the criteria_name and score columns.", + "steps": [ + "Map the external knowledge: treat \"Harvard University\" as university_name = 'Harvard University', \"2005\" as year = 2005, and \"ranking criteria\" as the criteria_name column in ranking_criteria.", + "Start from university_ranking_year and join it to university on university_id to associate scores with the correct institution.", + "Join university_ranking_year to ranking_criteria on ranking_criteria_id to bring in the human-readable criteria names.", + "Filter the joined rows where university_name equals 'Harvard University' and year equals 2005.", + "Return only the criteria_name and score columns." + ] + }, + "revisql-train:8066": { + "raw": "1. Join the `university` table to `university_year` on `university_id` and to `country` on `country_id` to link enrollment statistics with university and country names.\n2. Filter `university_year` to only rows where `year` equals 2015.\n3. Compute the international student count for each university as `num_students` multiplied by `pct_international_students` divided by 100.\n4. Order the results by this calculated international student count in descending order to bring the highest to the top.\n5. Limit the result set to the first row only.\n6. Return the `university_name` and `country_name` columns.", + "steps": [ + "Join the `university` table to `university_year` on `university_id` and to `country` on `country_id` to link enrollment statistics with university and country names.", + "Filter `university_year` to only rows where `year` equals 2015.", + "Compute the international student count for each university as `num_students` multiplied by `pct_international_students` divided by 100.", + "Order the results by this calculated international student count in descending order to bring the highest to the top.", + "Limit the result set to the first row only.", + "Return the `university_name` and `country_name` columns." + ] + }, + "revisql-train:8068": { + "raw": "1. Identify that the university_year table contains both the yearly student counts (num_students) and the university identifiers needed.\n2. Filter rows where the year column equals 2011 to restrict the scope to that year.\n3. Map the phrase \"with the most students\" to ordering the filtered rows by num_students in descending order.\n4. Limit the ordered set to the first row to isolate the single university with the highest enrollment.\n5. Return only the university_id column from that top row as the final answer.", + "steps": [ + "Identify that the university_year table contains both the yearly student counts (num_students) and the university identifiers needed.", + "Filter rows where the year column equals 2011 to restrict the scope to that year.", + "Map the phrase \"with the most students\" to ordering the filtered rows by num_students in descending order.", + "Limit the ordered set to the first row to isolate the single university with the highest enrollment.", + "Return only the university_id column from that top row as the final answer." + ] + }, + "revisql-train:8069": { + "raw": "1. Use the `university_year` table, which contains the yearly student staff ratio and university identifier.\n2. Filter rows to the year 2011 based on the phrase \"in 2011\".\n3. Apply the condition `student_staff_ratio > 15` to match \"student staff ratio of over 15\".\n4. Return only the `university_id` column, as this maps to the requested university IDs.", + "steps": [ + "Use the `university_year` table, which contains the yearly student staff ratio and university identifier.", + "Filter rows to the year 2011 based on the phrase \"in 2011\".", + "Apply the condition `student_staff_ratio > 15` to match \"student staff ratio of over 15\".", + "Return only the `university_id` column, as this maps to the requested university IDs." + ] + }, + "revisql-train:8073": { + "raw": "1. Target the `num_students` column in the `university_year` table to obtain the student count.\n2. Join `university_year` with the `university` table on `university_id` = `id` to make the university name accessible for filtering.\n3. Filter the `university` table to only rows where `university_name` is 'Harvard University' per the external entity mapping.\n4. Filter the `university_year` table to only rows where `year` is 2011 per the external temporal mapping.\n5. Return the resulting `num_students` value.", + "steps": [ + "Target the `num_students` column in the `university_year` table to obtain the student count.", + "Join `university_year` with the `university` table on `university_id` = `id` to make the university name accessible for filtering.", + "Filter the `university` table to only rows where `university_name` is 'Harvard University' per the external entity mapping.", + "Filter the `university_year` table to only rows where `year` is 2011 per the external temporal mapping.", + "Return the resulting `num_students` value." + ] + }, + "revisql-train:8079": { + "raw": "1. Start from the university_ranking_year table, which contains the score and year data needed for the query.\n2. Join ranking_criteria on ranking_criteria_id to identify records where criteria_name is 'Teaching'.\n3. Join university on university_id to bring in the university_name for each qualifying record.\n4. Filter the results to year = 2011 and score > 90, applying the external knowledge mappings.\n5. Return only the university_name column.", + "steps": [ + "Start from the university_ranking_year table, which contains the score and year data needed for the query.", + "Join ranking_criteria on ranking_criteria_id to identify records where criteria_name is 'Teaching'.", + "Join university on university_id to bring in the university_name for each qualifying record.", + "Filter the results to year = 2011 and score > 90, applying the external knowledge mappings.", + "Return only the university_name column." + ] + }, + "revisql-train:8081": { + "raw": "1. Start from the ranking_criteria table and target its criteria_name column for the output.\n2. Inner join university_ranking_year on ranking_criteria.id = ranking_criteria_id to link criteria to yearly university records.\n3. Inner join university on university_ranking_year.university_id = university.id to access university names.\n4. Filter where university.university_name equals 'Harvard University'.\n5. Filter where university_ranking_year.year equals 2011.\n6. Return only the criteria_name column.", + "steps": [ + "Start from the ranking_criteria table and target its criteria_name column for the output.", + "Inner join university_ranking_year on ranking_criteria.id = ranking_criteria_id to link criteria to yearly university records.", + "Inner join university on university_ranking_year.university_id = university.id to access university names.", + "Filter where university.university_name equals 'Harvard University'.", + "Filter where university_ranking_year.year equals 2011.", + "Return only the criteria_name column." + ] + }, + "revisql-train:8087": { + "raw": "1. Identify the table that stores ranking system identifiers and names: `ranking_system`.\n2. Recognize that the required output is the `id` column and the searchable name is in the `system_name` column.\n3. Apply the external knowledge to map the question's phrase \"Center for World University Rankings\" to the value of `system_name`.\n4. Filter `ranking_system` to the single row where `system_name` matches that exact phrase.\n5. Return only the `id` column from the resulting row.", + "steps": [ + "Identify the table that stores ranking system identifiers and names: `ranking_system`.", + "Recognize that the required output is the `id` column and the searchable name is in the `system_name` column.", + "Apply the external knowledge to map the question's phrase \"Center for World University Rankings\" to the value of `system_name`.", + "Filter `ranking_system` to the single row where `system_name` matches that exact phrase.", + "Return only the `id` column from the resulting row." + ] + }, + "revisql-train:8097": { + "raw": "1. Identify `university_ranking_year` as the table holding the score and year.\n2. Join `university_ranking_year` to `university` on `university_id` to filter by `university_name = 'Chosun University'`.\n3. Join `university_ranking_year` to `ranking_criteria` on `ranking_criteria_id` to filter by `criteria_name = 'Influence Rank'`.\n4. Apply the year filter `year = 2015` on `university_ranking_year`.\n5. Return only the `score` column from `university_ranking_year`.", + "steps": [ + "Identify `university_ranking_year` as the table holding the score and year.", + "Join `university_ranking_year` to `university` on `university_id` to filter by `university_name = 'Chosun University'`.", + "Join `university_ranking_year` to `ranking_criteria` on `ranking_criteria_id` to filter by `criteria_name = 'Influence Rank'`.", + "Apply the year filter `year = 2015` on `university_ranking_year`.", + "Return only the `score` column from `university_ranking_year`." + ] + }, + "revisql-train:81": { + "raw": "1. Join the ratings table to the movies table on the movie_id key to link each rating to its corresponding film.\n2. Filter the result to keep only rows where the movie_title column equals 'A Way of Life', mapping the external knowledge that this string is the movie's title.\n3. Aggregate the filtered rows by computing the average of the rating_score column from the ratings table.\n4. Return a single column containing the average rating score.", + "steps": [ + "Join the ratings table to the movies table on the movie_id key to link each rating to its corresponding film.", + "Filter the result to keep only rows where the movie_title column equals 'A Way of Life', mapping the external knowledge that this string is the movie's title.", + "Aggregate the filtered rows by computing the average of the rating_score column from the ratings table.", + "Return a single column containing the average rating score." + ] + }, + "revisql-train:8104": { + "raw": "1. Start with the `university_year` table for enrollment figures and join it to the `university` table on `university_id` to access the institution’s name.\n2. Filter the joined rows to only those where the `year` column equals 2015, mapping the phrase “in 2015” to that filter.\n3. Order the remaining rows by `num_students` in ascending order so the smallest enrollment appears first, mapping “lowest number of students” to that ordering.\n4. Restrict the result set to the single first row.\n5. Return only the `university_name` column from the `university` table.", + "steps": [ + "Start with the `university_year` table for enrollment figures and join it to the `university` table on `university_id` to access the institution’s name.", + "Filter the joined rows to only those where the `year` column equals 2015, mapping the phrase “in 2015” to that filter.", + "Order the remaining rows by `num_students` in ascending order so the smallest enrollment appears first, mapping “lowest number of students” to that ordering.", + "Restrict the result set to the single first row.", + "Return only the `university_name` column from the `university` table." + ] + }, + "revisql-train:8108": { + "raw": "1. Identify that `university_ranking_year` already stores every criterion score together with its university, year, and criteria identifiers, so no table joins are necessary.\n2. Filter the rows to `university_id` equal to 68 to isolate the requested university.\n3. Map the phrase \"in 2015\" to the `year` column using the external knowledge and filter `year` equal to 2015.\n4. Return only the columns `ranking_criteria_id` and `score`, since the goal is to list each criterion’s score for that university and year.", + "steps": [ + "Identify that `university_ranking_year` already stores every criterion score together with its university, year, and criteria identifiers, so no table joins are necessary.", + "Filter the rows to `university_id` equal to 68 to isolate the requested university.", + "Map the phrase \"in 2015\" to the `year` column using the external knowledge and filter `year` equal to 2015.", + "Return only the columns `ranking_criteria_id` and `score`, since the goal is to list each criterion’s score for that university and year." + ] + }, + "revisql-train:8119": { + "raw": "1. Start from the ranking_criteria table and join it to ranking_system on ranking_system.id = ranking_criteria.ranking_system_id to link each criterion to its system name.\n2. Filter the joined rows to only those where ranking_system.system_name equals 'Shanghai Ranking', using the external knowledge that this string identifies the Shanghai Ranking system.\n3. Apply COUNT(*) to the filtered rows to compute the total number of ranking criteria belonging to that system.\n4. Return a single column containing that aggregated count.", + "steps": [ + "Start from the ranking_criteria table and join it to ranking_system on ranking_system.id = ranking_criteria.ranking_system_id to link each criterion to its system name.", + "Filter the joined rows to only those where ranking_system.system_name equals 'Shanghai Ranking', using the external knowledge that this string identifies the Shanghai Ranking system.", + "Apply COUNT(*) to the filtered rows to compute the total number of ranking criteria belonging to that system.", + "Return a single column containing that aggregated count." + ] + }, + "revisql-train:8122": { + "raw": "1. Join the university_ranking_year table with the university table on university_id to link each score to its corresponding university name.\n2. Filter the results to only rows where the score column is less than 50, applying the external knowledge that \"scored below 50\" means score < 50.\n3. Use DISTINCT on the university_name column to ensure each university appears only once, satisfying the \"at least one\" condition without explicit aggregation.\n4. Return the university_name column as the final output.", + "steps": [ + "Join the university_ranking_year table with the university table on university_id to link each score to its corresponding university name.", + "Filter the results to only rows where the score column is less than 50, applying the external knowledge that \"scored below 50\" means score < 50.", + "Use DISTINCT on the university_name column to ensure each university appears only once, satisfying the \"at least one\" condition without explicit aggregation.", + "Return the university_name column as the final output." + ] + }, + "revisql-train:8123": { + "raw": "1. Join the university table to the country table on university.country_id = country.id to access each university's location.\n2. Filter the joined rows where country.country_name equals 'Japan', applying the external knowledge that \"located in Japan\" maps to this column value.\n3. Apply COUNT(*) to compute the total number of universities satisfying the filter.\n4. Return the resulting count as the answer.", + "steps": [ + "Join the university table to the country table on university.country_id = country.id to access each university's location.", + "Filter the joined rows where country.country_name equals 'Japan', applying the external knowledge that \"located in Japan\" maps to this column value.", + "Apply COUNT(*) to compute the total number of universities satisfying the filter.", + "Return the resulting count as the answer." + ] + }, + "revisql-train:8124": { + "raw": "1. Join `university_year` with `university` on `university_id` to link yearly student data to university names.\n2. Derive the male student count for each record using `num_students * (1 - pct_female_students / 100)` from `university_year`.\n3. Order the results by this derived count in descending order and limit to the first row to isolate the single highest year.\n4. Return `university_name` from the `university` table.", + "steps": [ + "Join `university_year` with `university` on `university_id` to link yearly student data to university names.", + "Derive the male student count for each record using `num_students * (1 - pct_female_students / 100)` from `university_year`.", + "Order the results by this derived count in descending order and limit to the first row to isolate the single highest year.", + "Return `university_name` from the `university` table." + ] + }, + "revisql-train:8133": { + "raw": "1. Join ranking_criteria to university_ranking_year on ranking_criteria.id = university_ranking_year.ranking_criteria_id.\n2. Filter ranking_criteria.criteria_name to 'Teaching' using the external knowledge that \"in teaching\" maps to that criteria name.\n3. Filter university_ranking_year.score to 40 using the external knowledge that \"scored 40\" maps to that score value.\n4. Count distinct university_id from university_ranking_year to ensure each university is counted only once.\n5. Return that count of distinct university_id as the final answer.", + "steps": [ + "Join ranking_criteria to university_ranking_year on ranking_criteria.id = university_ranking_year.ranking_criteria_id.", + "Filter ranking_criteria.criteria_name to 'Teaching' using the external knowledge that \"in teaching\" maps to that criteria name.", + "Filter university_ranking_year.score to 40 using the external knowledge that \"scored 40\" maps to that score value.", + "Count distinct university_id from university_ranking_year to ensure each university is counted only once.", + "Return that count of distinct university_id as the final answer." + ] + }, + "revisql-train:8138": { + "raw": "1. Query only the sales_in_weather table; no joins are needed because the question asks purely for sales totals.\n2. Filter store_nbr to 1 and item_nbr to 9, mapping store no.1 and item no.9 directly to those columns.\n3. Restrict rows to January 2012 by applying SUBSTR to the date column for year '2012' and month '01'.\n4. Aggregate by summing the units column to compute the total quantity sold.\n5. Return exactly that single aggregated sum of units.", + "steps": [ + "Query only the sales_in_weather table; no joins are needed because the question asks purely for sales totals.", + "Filter store_nbr to 1 and item_nbr to 9, mapping store no.1 and item no.9 directly to those columns.", + "Restrict rows to January 2012 by applying SUBSTR to the date column for year '2012' and month '01'.", + "Aggregate by summing the units column to compute the total quantity sold.", + "Return exactly that single aggregated sum of units." + ] + }, + "revisql-train:8140": { + "raw": "1. Use the `weather` table because the question asks for temperature data at a specific weather station.\n2. Apply the filter `station_nbr = 1`, mapping from \"station no.1\" in the external knowledge.\n3. Apply the filter `date = '2012-01-01'`, mapping from \"on 2012/1/1\" in the external knowledge.\n4. Compute the temperature range by subtracting `tmin` from `tmax`, as defined by the external knowledge and schema comments.\n5. Return that single computed result aliased as `temrange`.", + "steps": [ + "Use the `weather` table because the question asks for temperature data at a specific weather station.", + "Apply the filter `station_nbr = 1`, mapping from \"station no.1\" in the external knowledge.", + "Apply the filter `date = '2012-01-01'`, mapping from \"on 2012/1/1\" in the external knowledge.", + "Compute the temperature range by subtracting `tmin` from `tmax`, as defined by the external knowledge and schema comments.", + "Return that single computed result aliased as `temrange`." + ] + }, + "revisql-train:8158": { + "raw": "1. Determine that the sales_in_weather table alone holds the quantity sold, keyed by date, store, and item, so no joins to weather or relation are needed.\n2. Use the external knowledge to map the question's entities to column values: store no.11 becomes store_nbr = 11, no.9 item becomes item_nbr = 9, and 2012/12/7 becomes date = '2012-12-07'.\n3. Recognize that because the primary key is (store_nbr, date, item_nbr), there is exactly one row for this combination, so \"how many were sold\" corresponds to selecting the units column directly rather than aggregating.\n4. Apply equality filters on date, store_nbr, and item_nbr to isolate that single row.\n5. Return only the units column as the result.", + "steps": [ + "Determine that the sales_in_weather table alone holds the quantity sold, keyed by date, store, and item, so no joins to weather or relation are needed.", + "Use the external knowledge to map the question's entities to column values: store no.11 becomes store_nbr = 11, no.9 item becomes item_nbr = 9, and 2012/12/7 becomes date = '2012-12-07'.", + "Recognize that because the primary key is (store_nbr, date, item_nbr), there is exactly one row for this combination, so \"how many were sold\" corresponds to selecting the units column directly rather than aggregating.", + "Apply equality filters on date, store_nbr, and item_nbr to isolate that single row.", + "Return only the units column as the result." + ] + }, + "revisql-train:8172": { + "raw": "1. Identify that \"sea level status\" maps to the `sealevel` column in the `weather` table.\n2. Use the `relation` table to find which `station_nbr` is linked to `store_nbr` 19, since the question asks for the weather station serving that store.\n3. Join `weather` with `relation` on `station_nbr` to connect the store to its corresponding daily weather record.\n4. Filter the results to `date` = '2013-02-24' and `store_nbr` = 19.\n5. Return only the `sealevel` column from the weather side of the join.", + "steps": [ + "Identify that \"sea level status\" maps to the `sealevel` column in the `weather` table.", + "Use the `relation` table to find which `station_nbr` is linked to `store_nbr` 19, since the question asks for the weather station serving that store.", + "Join `weather` with `relation` on `station_nbr` to connect the store to its corresponding daily weather record.", + "Filter the results to `date` = '2013-02-24' and `store_nbr` = 19.", + "Return only the `sealevel` column from the weather side of the join." + ] + }, + "revisql-train:8178": { + "raw": "1. Use the `relation` table, which links each `store_nbr` to its corresponding `station_nbr`.\n2. Filter rows where `station_nbr` equals 12, applying the external knowledge that \"weather station 12\" refers to the value 12 in that column.\n3. Count the `store_nbr` values in the filtered rows, since \"number of stores\" requires counting store identifiers.\n4. Return the single aggregated result of the count of `store_nbr`.", + "steps": [ + "Use the `relation` table, which links each `store_nbr` to its corresponding `station_nbr`.", + "Filter rows where `station_nbr` equals 12, applying the external knowledge that \"weather station 12\" refers to the value 12 in that column.", + "Count the `store_nbr` values in the filtered rows, since \"number of stores\" requires counting store identifiers.", + "Return the single aggregated result of the count of `store_nbr`." + ] + }, + "revisql-train:8184": { + "raw": "1. Map the phrase \"most windy station\" to the single highest value in the `avgspeed` column of the `weather` table.\n2. Retrieve that station’s `station_nbr` by ordering `weather` by `avgspeed` in descending order and limiting the result to one row.\n3. Filter the `relation` table to only rows whose `station_nbr` equals the windy station identified above.\n4. Count the `store_nbr` values in the filtered `relation` results to return the number of stores.", + "steps": [ + "Map the phrase \"most windy station\" to the single highest value in the `avgspeed` column of the `weather` table.", + "Retrieve that station’s `station_nbr` by ordering `weather` by `avgspeed` in descending order and limiting the result to one row.", + "Filter the `relation` table to only rows whose `station_nbr` equals the windy station identified above.", + "Count the `store_nbr` values in the filtered `relation` results to return the number of stores." + ] + }, + "revisql-train:8186": { + "raw": "1. Join sales_in_weather to relation on store_nbr, then join weather on both station_nbr and date to align each sale with its store’s daily weather record.\n2. Filter to station_nbr = 9, restrict dates to June 2013, and require codesum to contain 'RA' to capture rainy days.\n3. Group by item_nbr and sum the units column to compute total purchases per product.\n4. Order the grouped results by the summed units in descending order and limit to the single top row.\n5. Return the item_nbr column as the answer.", + "steps": [ + "Join sales_in_weather to relation on store_nbr, then join weather on both station_nbr and date to align each sale with its store’s daily weather record.", + "Filter to station_nbr = 9, restrict dates to June 2013, and require codesum to contain 'RA' to capture rainy days.", + "Group by item_nbr and sum the units column to compute total purchases per product.", + "Order the grouped results by the summed units in descending order and limit to the single top row.", + "Return the item_nbr column as the answer." + ] + }, + "revisql-train:8187": { + "raw": "1. Filter the sales_in_weather table to rows where item_nbr equals 5, mapping the question's \"item number 5\" to that column.\n2. Group the filtered rows by store_nbr and compute SUM(units) to obtain the total quantity sold for each store.\n3. Determine the maximum value among those per-store totals, interpreting \"highest quantity\" as the largest summed amount.\n4. Return the store_nbr whose total summed units matches that maximum value.", + "steps": [ + "Filter the sales_in_weather table to rows where item_nbr equals 5, mapping the question's \"item number 5\" to that column.", + "Group the filtered rows by store_nbr and compute SUM(units) to obtain the total quantity sold for each store.", + "Determine the maximum value among those per-store totals, interpreting \"highest quantity\" as the largest summed amount.", + "Return the store_nbr whose total summed units matches that maximum value." + ] + }, + "revisql-train:8206": { + "raw": "1. Join the `relation` table to `sales_in_weather` on `store_nbr` to associate each store’s weather station with its daily item sales.\n2. Filter for `store_nbr = 17` to isolate the requested store, per the external knowledge that “store 17” maps to that value.\n3. Filter for `units > 0` to keep only items that were actually sold, applying the external knowledge that “sold by” means positive units.\n4. Use `DISTINCT` on the paired `station_nbr` and `item_nbr` because the sales table contains multiple rows per item across different dates.\n5. Return the columns `station_nbr` and `item_nbr`.", + "steps": [ + "Join the `relation` table to `sales_in_weather` on `store_nbr` to associate each store’s weather station with its daily item sales.", + "Filter for `store_nbr = 17` to isolate the requested store, per the external knowledge that “store 17” maps to that value.", + "Filter for `units > 0` to keep only items that were actually sold, applying the external knowledge that “sold by” means positive units.", + "Use `DISTINCT` on the paired `station_nbr` and `item_nbr` because the sales table contains multiple rows per item across different dates.", + "Return the columns `station_nbr` and `item_nbr`." + ] + }, + "revisql-train:8208": { + "raw": "1. Map the question's terms to columns using the schema: \"store number\" is `store_nbr`, \"sea level\" is `sealevel`, and \"average speed\" is `avgspeed`.\n2. Join the `weather` table with the `relation` table on `station_nbr` to connect each store to its assigned weather station's daily readings.\n3. Filter the joined rows to only those where `store_nbr` is 3 or 4.\n4. Further filter to the specific date by matching `weather.date` against 19 September 2012.\n5. Return exactly three columns: `store_nbr`, `sealevel`, and `avgspeed`.", + "steps": [ + "Map the question's terms to columns using the schema: \"store number\" is `store_nbr`, \"sea level\" is `sealevel`, and \"average speed\" is `avgspeed`.", + "Join the `weather` table with the `relation` table on `station_nbr` to connect each store to its assigned weather station's daily readings.", + "Filter the joined rows to only those where `store_nbr` is 3 or 4.", + "Further filter to the specific date by matching `weather.date` against 19 September 2012.", + "Return exactly three columns: `store_nbr`, `sealevel`, and `avgspeed`." + ] + }, + "revisql-train:8212": { + "raw": "1. Join `relation` to `weather` on `station_nbr` to connect each store with its corresponding weather station data.\n2. Filter the joined rows to the date `2012-09-16`, mapping \"16 September 2012\" to the `date` column.\n3. Use conditional aggregation to isolate the `tavg` value for `store_nbr` = 18 (store number 18) and the `tavg` value for `store_nbr` = 19 (store number 19).\n4. Subtract the aggregated average temperature for store 19 from that for store 18 to compute the difference.\n5. Return the single resulting calculated average temperature difference.", + "steps": [ + "Join `relation` to `weather` on `station_nbr` to connect each store with its corresponding weather station data.", + "Filter the joined rows to the date `2012-09-16`, mapping \"16 September 2012\" to the `date` column.", + "Use conditional aggregation to isolate the `tavg` value for `store_nbr` = 18 (store number 18) and the `tavg` value for `store_nbr` = 19 (store number 19).", + "Subtract the aggregated average temperature for store 19 from that for store 18 to compute the difference.", + "Return the single resulting calculated average temperature difference." + ] + }, + "revisql-train:8213": { + "raw": "1. Start with `sales_in_weather` to access daily units sold, applying the filter `item_nbr = 1` to restrict to item 1.\n2. Join `relation` on `store_nbr` to map each store to its corresponding weather `station_nbr`.\n3. Join `weather` on both `station_nbr` and `date` so that daily weather aligns with daily sales at the correct station.\n4. Apply the filter `tavg = 83` in the `weather` table to capture only days when the average temperature is 83.\n5. Aggregate by summing the `units` column to get the total quantity sold across all matching store-date combinations.\n6. Return the single aggregated sum of `units` as the final result.", + "steps": [ + "Start with `sales_in_weather` to access daily units sold, applying the filter `item_nbr = 1` to restrict to item 1.", + "Join `relation` on `store_nbr` to map each store to its corresponding weather `station_nbr`.", + "Join `weather` on both `station_nbr` and `date` so that daily weather aligns with daily sales at the correct station.", + "Apply the filter `tavg = 83` in the `weather` table to capture only days when the average temperature is 83.", + "Aggregate by summing the `units` column to get the total quantity sold across all matching store-date combinations.", + "Return the single aggregated sum of `units` as the final result." + ] + }, + "revisql-train:8218": { + "raw": "1. Identify that ethnicGroup stores ethnicity percentages by country code, and the country table provides the full country name mapped by code.\n2. Join ethnicGroup to country on the country code: ethnicGroup.Country = country.Code.\n3. Filter for rows where ethnicGroup.Name equals 'African' and ethnicGroup.Percentage is greater than 90, using the external knowledge that Percentage represents a population percent value.\n4. Return exactly the Name column from the country table as the full country name.", + "steps": [ + "Identify that ethnicGroup stores ethnicity percentages by country code, and the country table provides the full country name mapped by code.", + "Join ethnicGroup to country on the country code: ethnicGroup.Country = country.Code.", + "Filter for rows where ethnicGroup.Name equals 'African' and ethnicGroup.Percentage is greater than 90, using the external knowledge that Percentage represents a population percent value.", + "Return exactly the Name column from the country table as the full country name." + ] + }, + "revisql-train:8222": { + "raw": "1. Identify the `country` table as the source for the country's `Name` and `Population`, and the `population` table for the `Population_Growth` and `Infant_Mortality` metrics.\n2. Join `country` to `population` on the country code key (`country.Code = population.Country`).\n3. Filter for rows where `Population_Growth` is greater than 2 to satisfy the \"greater than 2%\" condition.\n4. Filter for rows where `Infant_Mortality` is less than 50, because the schema stores this metric per thousand and the question's threshold of 5% corresponds to 50 per thousand.\n5. Return only the columns `Name` and `Population` from the `country` table.", + "steps": [ + "Identify the `country` table as the source for the country's `Name` and `Population`, and the `population` table for the `Population_Growth` and `Infant_Mortality` metrics.", + "Join `country` to `population` on the country code key (`country.Code = population.Country`).", + "Filter for rows where `Population_Growth` is greater than 2 to satisfy the \"greater than 2%\" condition.", + "Filter for rows where `Infant_Mortality` is less than 50, because the schema stores this metric per thousand and the question's threshold of 5% corresponds to 50 per thousand.", + "Return only the columns `Name` and `Population` from the `country` table." + ] + }, + "revisql-train:823": { + "raw": "1. Join the `twitter` table with the `user` table on `UserID` to associate each tweet with the poster's gender.\n2. Filter the joined rows to only those where `Lang` equals 'en', using the external knowledge that \"en\" maps to the `Lang` column.\n3. Group the results by `Gender` and count the `text` column to calculate the number of English tweets posted by each gender.\n4. Identify the maximum tweet count value across all gender groups.\n5. Return only the `Gender` value whose tweet count matches that maximum.", + "steps": [ + "Join the `twitter` table with the `user` table on `UserID` to associate each tweet with the poster's gender.", + "Filter the joined rows to only those where `Lang` equals 'en', using the external knowledge that \"en\" maps to the `Lang` column.", + "Group the results by `Gender` and count the `text` column to calculate the number of English tweets posted by each gender.", + "Identify the maximum tweet count value across all gender groups.", + "Return only the `Gender` value whose tweet count matches that maximum." + ] + }, + "revisql-train:8232": { + "raw": "1. Join the `country` table with the `population` table on `country.Code = population.Country` to access both the total population figure and the demographic rates for each country.\n2. Apply a filter to keep only rows where `population.Infant_Mortality` is not null so the lowest value can be determined reliably.\n3. Sort the filtered results by `population.Infant_Mortality` in ascending order to bring the country with the lowest infant mortality to the top.\n4. Restrict the output to the first row only.\n5. Return the single calculated value defined by the external knowledge formula: `population.Population_Growth * country.Population / 100`.", + "steps": [ + "Join the `country` table with the `population` table on `country.Code = population.Country` to access both the total population figure and the demographic rates for each country.", + "Apply a filter to keep only rows where `population.Infant_Mortality` is not null so the lowest value can be determined reliably.", + "Sort the filtered results by `population.Infant_Mortality` in ascending order to bring the country with the lowest infant mortality to the top.", + "Restrict the output to the first row only.", + "Return the single calculated value defined by the external knowledge formula: `population.Population_Growth * country.Population / 100`." + ] + }, + "revisql-train:8234": { + "raw": "1. Identify the `country` table to resolve the country name into its code and the `economy` table to obtain the `Service` percentage and `GDP` value.\n2. Join `country` to `economy` on the country code, matching `country.Code` with `economy.Country`.\n3. Filter the joined rows to keep only those where `country.Name` equals 'Brazil'.\n4. Compute the service of GDP by applying the external knowledge formula: multiply `economy.Service` by `economy.GDP` and divide by 100.\n5. Return the single resulting calculated value.", + "steps": [ + "Identify the `country` table to resolve the country name into its code and the `economy` table to obtain the `Service` percentage and `GDP` value.", + "Join `country` to `economy` on the country code, matching `country.Code` with `economy.Country`.", + "Filter the joined rows to keep only those where `country.Name` equals 'Brazil'.", + "Compute the service of GDP by applying the external knowledge formula: multiply `economy.Service` by `economy.GDP` and divide by 100.", + "Return the single resulting calculated value." + ] + }, + "revisql-train:8236": { + "raw": "1. Use the country table to retrieve the country name and population, and the population table to retrieve the growth rate.\n2. Join country and population on the country code, matching country.Code to population.Country.\n3. Filter the results to keep only rows where population.Population_Growth is less than zero, reflecting negative growth.\n4. Return exactly three columns: the country name, the population, and the population growth.", + "steps": [ + "Use the country table to retrieve the country name and population, and the population table to retrieve the growth rate.", + "Join country and population on the country code, matching country.Code to population.Country.", + "Filter the results to keep only rows where population.Population_Growth is less than zero, reflecting negative growth.", + "Return exactly three columns: the country name, the population, and the population growth." + ] + }, + "revisql-train:8239": { + "raw": "1. Identify that infant mortality rates are stored in the `population` table under the column `Infant_Mortality`.\n2. Note that the question provides the country name \"Ethiopia\" (external knowledge), while the `population` table links to countries via a country code in its `Country` column, so the `country` table is needed to resolve the name.\n3. Join the `country` table with the `population` table on the country code, matching `country.Code` to `population.Country`.\n4. Filter the `country` table to the row where the `Name` column equals 'Ethiopia'.\n5. Return the single column `Infant_Mortality` from the `population` table.", + "steps": [ + "Identify that infant mortality rates are stored in the `population` table under the column `Infant_Mortality`.", + "Note that the question provides the country name \"Ethiopia\" (external knowledge), while the `population` table links to countries via a country code in its `Country` column, so the `country` table is needed to resolve the name.", + "Join the `country` table with the `population` table on the country code, matching `country.Code` to `population.Country`.", + "Filter the `country` table to the row where the `Name` column equals 'Ethiopia'.", + "Return the single column `Infant_Mortality` from the `population` table." + ] + }, + "revisql-train:824": { + "raw": "1. Join the `twitter` table with the `user` table on `UserID` to connect each tweet to the poster's gender.\n2. Filter the `twitter` rows to only those where `RetweetCount` is greater than 30, applying the external knowledge that \"retweeted more than 30 times\" maps to `RetweetCount > 30`.\n3. Select the `Gender` column from the `user` side of the join.\n4. Apply `DISTINCT` to the `Gender` results so each qualifying gender appears only once in the final list.", + "steps": [ + "Join the `twitter` table with the `user` table on `UserID` to connect each tweet to the poster's gender.", + "Filter the `twitter` rows to only those where `RetweetCount` is greater than 30, applying the external knowledge that \"retweeted more than 30 times\" maps to `RetweetCount > 30`.", + "Select the `Gender` column from the `user` side of the join.", + "Apply `DISTINCT` to the `Gender` results so each qualifying gender appears only once in the final list." + ] + }, + "revisql-train:8245": { + "raw": "1. Start from the `country` table for country names and the `economy` table for GDP values.\n2. Join the two tables on the country code, matching `country.Code` to `economy.Country`.\n3. Sort the results by `economy.GDP` in descending order to place the highest GDP first.\n4. Limit the output to the single top row.\n5. Return only the `Name` column from the `country` table.", + "steps": [ + "Start from the `country` table for country names and the `economy` table for GDP values.", + "Join the two tables on the country code, matching `country.Code` to `economy.Country`.", + "Sort the results by `economy.GDP` in descending order to place the highest GDP first.", + "Limit the output to the single top row.", + "Return only the `Name` column from the `country` table." + ] + }, + "revisql-train:8248": { + "raw": "1. Use the country table for country names and the economy table for inflation figures.\n2. Join country to economy on country.Code = economy.Country.\n3. Discard rows where economy.Inflation is null.\n4. Sort the results by economy.Inflation in ascending order.\n5. Restrict the output to the first row only.\n6. Return the Name column from the country table.", + "steps": [ + "Use the country table for country names and the economy table for inflation figures.", + "Join country to economy on country.Code = economy.Country.", + "Discard rows where economy.Inflation is null.", + "Sort the results by economy.Inflation in ascending order.", + "Restrict the output to the first row only.", + "Return the Name column from the country table." + ] + }, + "revisql-train:826": { + "raw": "1. Join the twitter table with the location table on LocationID to associate every tweet with its Country.\n2. Group the results by Country and compute SUM(Likes) to get the total likes collected per country.\n3. Determine the maximum value among these per-country like totals.\n4. Filter to retain only the country or countries whose summed likes equal that maximum.\n5. Return the Country column.", + "steps": [ + "Join the twitter table with the location table on LocationID to associate every tweet with its Country.", + "Group the results by Country and compute SUM(Likes) to get the total likes collected per country.", + "Determine the maximum value among these per-country like totals.", + "Filter to retain only the country or countries whose summed likes equal that maximum.", + "Return the Country column." + ] + }, + "revisql-train:8264": { + "raw": "1. Join the `economy` and `population` tables on the `Country` column to match each country's GDP with its population growth rate.\n2. Filter the joined results to only countries where `economy.GDP` is greater than 1000000.\n3. Apply the external knowledge mapping \"population growth rate of over 1%\" to the filter `population.Population_Growth > 1`.\n4. Aggregate by counting the qualifying countries and return `COUNT(economy.Country)` as the final answer.", + "steps": [ + "Join the `economy` and `population` tables on the `Country` column to match each country's GDP with its population growth rate.", + "Filter the joined results to only countries where `economy.GDP` is greater than 1000000.", + "Apply the external knowledge mapping \"population growth rate of over 1%\" to the filter `population.Population_Growth > 1`.", + "Aggregate by counting the qualifying countries and return `COUNT(economy.Country)` as the final answer." + ] + }, + "revisql-train:8267": { + "raw": "1. Query the `language` table, grouping by `Country`, and apply a `HAVING COUNT(Country) > 3` filter to isolate the country codes of nations that use more than three languages.\n2. Join `country` to `language` on `country.Code = language.Country`, then join `population` on `population.Country = language.Country` to bring in the `Population_Growth` values for those countries.\n3. Restrict the joined results to only rows whose `language.Country` appears in the qualifying set from step 1.\n4. Group the filtered results by `population.Country` so each nation contributes a single `Population_Growth` value, avoiding duplication from multiple language records.\n5. Compute the average of the `Population_Growth` values from step 4 and return that single aggregated result.", + "steps": [ + "Query the `language` table, grouping by `Country`, and apply a `HAVING COUNT(Country) > 3` filter to isolate the country codes of nations that use more than three languages.", + "Join `country` to `language` on `country.Code = language.Country`, then join `population` on `population.Country = language.Country` to bring in the `Population_Growth` values for those countries.", + "Restrict the joined results to only rows whose `language.Country` appears in the qualifying set from step 1.", + "Group the filtered results by `population.Country` so each nation contributes a single `Population_Growth` value, avoiding duplication from multiple language records.", + "Compute the average of the `Population_Growth` values from step 4 and return that single aggregated result." + ] + }, + "revisql-train:8273": { + "raw": "1. Start with the borders table, which records the length of every international border between two countries.\n2. Join the country table twice: first on borders.Country1 = country.Code to get the first nation's full Name, then on borders.Country2 = country.Code to get the second nation's full Name.\n3. Sort the combined records by the border Length in descending order.\n4. Limit the result set to the first row to isolate the longest border.\n5. Return the Name column from each joined country instance as the two full country names.", + "steps": [ + "Start with the borders table, which records the length of every international border between two countries.", + "Join the country table twice: first on borders.Country1 = country.Code to get the first nation's full Name, then on borders.Country2 = country.Code to get the second nation's full Name.", + "Sort the combined records by the border Length in descending order.", + "Limit the result set to the first row to isolate the longest border.", + "Return the Name column from each joined country instance as the two full country names." + ] + }, + "revisql-train:8282": { + "raw": "1. Join the country table to the city table on the country code key country.Code = city.Country so that each city is linked to its country's name.\n2. Filter the joined rows to keep only those where the country Name is Japan.\n3. Apply the external knowledge that most people corresponds to the largest population, and order the Japanese cities by city Population in descending order.\n4. Restrict the result to the single top row to obtain the city with the highest population.\n5. Return the Name column from the city table.", + "steps": [ + "Join the country table to the city table on the country code key country.Code = city.Country so that each city is linked to its country's name.", + "Filter the joined rows to keep only those where the country Name is Japan.", + "Apply the external knowledge that most people corresponds to the largest population, and order the Japanese cities by city Population in descending order.", + "Restrict the result to the single top row to obtain the city with the highest population.", + "Return the Name column from the city table." + ] + }, + "revisql-train:8288": { + "raw": "1. Use the `country` table for the capital and country code, and the `ethnicGroup` table for the population percentage and group name.\n2. Join `country` to `ethnicGroup` on the country code, matching `country.Code` with `ethnicGroup.Country`.\n3. Filter the ethnic group rows to those where `Name` equals 'Malay', mapping the external knowledge of \"Malay\" to that column value.\n4. Order the joined results by `ethnicGroup.Percentage` in descending order and restrict the output to the single top row to isolate the largest share.\n5. Return only the `Capital` column from the `country` table.", + "steps": [ + "Use the `country` table for the capital and country code, and the `ethnicGroup` table for the population percentage and group name.", + "Join `country` to `ethnicGroup` on the country code, matching `country.Code` with `ethnicGroup.Country`.", + "Filter the ethnic group rows to those where `Name` equals 'Malay', mapping the external knowledge of \"Malay\" to that column value.", + "Order the joined results by `ethnicGroup.Percentage` in descending order and restrict the output to the single top row to isolate the largest share.", + "Return only the `Capital` column from the `country` table." + ] + }, + "revisql-train:8298": { + "raw": "1. Identify the country with the greatest population by selecting from the `country` table, ordering by `Population` in descending order, and limiting to the first row; retrieve its `Code`.\n2. Query the `geo_mountain` table, which links each mountain to a country through the `Country` column containing country codes.\n3. Filter `geo_mountain` to only rows where `Country` matches the single code obtained in step 1.\n4. Count the resulting rows to return the total number of mountains located in that country.", + "steps": [ + "Identify the country with the greatest population by selecting from the `country` table, ordering by `Population` in descending order, and limiting to the first row; retrieve its `Code`.", + "Query the `geo_mountain` table, which links each mountain to a country through the `Country` column containing country codes.", + "Filter `geo_mountain` to only rows where `Country` matches the single code obtained in step 1.", + "Count the resulting rows to return the total number of mountains located in that country." + ] + }, + "revisql-train:8302": { + "raw": "1. Identify the `country` table as the source for national population and area figures, and `geo_desert` as the source for desert names.\n2. Join `geo_desert` to `country` by matching `geo_desert.Country` to `country.Code`.\n3. Filter the joined rows to keep only those where `country.Population` exceeds 100,000.\n4. Further filter to keep only rows where `country.Area` is strictly less than 500,000.\n5. Return distinct values of the `Desert` column from `geo_desert`.", + "steps": [ + "Identify the `country` table as the source for national population and area figures, and `geo_desert` as the source for desert names.", + "Join `geo_desert` to `country` by matching `geo_desert.Country` to `country.Code`.", + "Filter the joined rows to keep only those where `country.Population` exceeds 100,000.", + "Further filter to keep only rows where `country.Area` is strictly less than 500,000.", + "Return distinct values of the `Desert` column from `geo_desert`." + ] + }, + "revisql-train:831": { + "raw": "1. Join the twitter table with the location table on LocationID to associate each tweet with its Country.\n2. Filter the joined records to keep only tweets where Sentiment is greater than 0, which identifies positive sentiment tweets.\n3. Group the results by Country and count the number of tweets in each group to obtain the total positive tweets per country.\n4. Determine the maximum value among those country-level counts.\n5. Return the Country (or countries) whose positive tweet count equals that maximum value.", + "steps": [ + "Join the twitter table with the location table on LocationID to associate each tweet with its Country.", + "Filter the joined records to keep only tweets where Sentiment is greater than 0, which identifies positive sentiment tweets.", + "Group the results by Country and count the number of tweets in each group to obtain the total positive tweets per country.", + "Determine the maximum value among those country-level counts.", + "Return the Country (or countries) whose positive tweet count equals that maximum value." + ] + }, + "revisql-train:8313": { + "raw": "1. Join the `country` table to `encompasses` on `country.Code = encompasses.Country` to associate each country with its continent.\n2. Join the result to `population` on `country.Code = population.Country` to bring in population growth figures.\n3. Filter for rows where `encompasses.Continent` equals 'Europe'.\n4. Apply the external knowledge that \"more than 1%\" maps to `population.Population_Growth > 1`.\n5. Return distinct values of the `country.Name` column.", + "steps": [ + "Join the `country` table to `encompasses` on `country.Code = encompasses.Country` to associate each country with its continent.", + "Join the result to `population` on `country.Code = population.Country` to bring in population growth figures.", + "Filter for rows where `encompasses.Continent` equals 'Europe'.", + "Apply the external knowledge that \"more than 1%\" maps to `population.Population_Growth > 1`.", + "Return distinct values of the `country.Name` column." + ] + }, + "revisql-train:8316": { + "raw": "1. Join the `continent` table to `encompasses` on the continent name, then join `country` on its `Code` to `encompasses.Country`, and join `economy` on its `Country` to `country.Code` to access agriculture percentages.\n2. Restrict the dataset to rows where the continent name is exactly 'Africa'.\n3. Calculate the average of the `Agriculture` column from the `economy` table.\n4. Return the single resulting average value for `Agriculture`.", + "steps": [ + "Join the `continent` table to `encompasses` on the continent name, then join `country` on its `Code` to `encompasses.Country`, and join `economy` on its `Country` to `country.Code` to access agriculture percentages.", + "Restrict the dataset to rows where the continent name is exactly 'Africa'.", + "Calculate the average of the `Agriculture` column from the `economy` table.", + "Return the single resulting average value for `Agriculture`." + ] + }, + "revisql-train:8324": { + "raw": "1. Identify the `city` and `province` tables as the sources needed to answer the question.\n2. Filter the `city` table to the single row where the city `Name` is 'Glenrothes'.\n3. Join `province` to that city row using both the province name (`province.Name = city.Province`) and the country code (`province.Country = city.Country`).\n4. Return the province name from the city side and the capital from the province side, specifically the columns `city.Province` and `province.Capital`.", + "steps": [ + "Identify the `city` and `province` tables as the sources needed to answer the question.", + "Filter the `city` table to the single row where the city `Name` is 'Glenrothes'.", + "Join `province` to that city row using both the province name (`province.Name = city.Province`) and the country code (`province.Country = city.Country`).", + "Return the province name from the city side and the capital from the province side, specifically the columns `city.Province` and `province.Capital`." + ] + }, + "revisql-train:8328": { + "raw": "1. Identify the `city` table for Edmonton's population and its province, and the `province` table for the province's total population.\n2. Join `city` to `province` on the province name (`city.Province = province.Name`) and country code (`city.country = province.country`) to link Edmonton to its correct province.\n3. Filter the `city` rows to only the one where `Name` equals 'Edmonton'.\n4. Cast the city's `Population` to a real number, multiply by 100, and divide by the province's `Population` to apply the external percentage formula.\n5. Return exactly this single calculated percentage value.", + "steps": [ + "Identify the `city` table for Edmonton's population and its province, and the `province` table for the province's total population.", + "Join `city` to `province` on the province name (`city.Province = province.Name`) and country code (`city.country = province.country`) to link Edmonton to its correct province.", + "Filter the `city` rows to only the one where `Name` equals 'Edmonton'.", + "Cast the city's `Population` to a real number, multiply by 100, and divide by the province's `Population` to apply the external percentage formula.", + "Return exactly this single calculated percentage value." + ] + }, + "revisql-train:8329": { + "raw": "1. Identify the `river` table as the source for information about rivers and their destinations.\n2. Recognize that the `Sea` column in `river` stores the final sea each river flows into.\n3. Map the entity \"Black Sea\" from the question and external knowledge to the exact value `'Black Sea'` in that column.\n4. Filter the rows of `river` to only those where `Sea` equals `'Black Sea'`.\n5. Return the `Name` column to list the matching river names.", + "steps": [ + "Identify the `river` table as the source for information about rivers and their destinations.", + "Recognize that the `Sea` column in `river` stores the final sea each river flows into.", + "Map the entity \"Black Sea\" from the question and external knowledge to the exact value `'Black Sea'` in that column.", + "Filter the rows of `river` to only those where `Sea` equals `'Black Sea'`.", + "Return the `Name` column to list the matching river names." + ] + }, + "revisql-train:8344": { + "raw": "1. Identify that river names and lengths are stored in the `river` table under the columns `Name` and `Length`.\n2. Join `river` to `geo_river` on `river.Name` = `geo_river.River` to link each river to its country code.\n3. Map the external knowledge that USA is a country to the filter value `'USA'` on `geo_river.Country`.\n4. Apply a WHERE clause to keep only rows where `geo_river.Country` equals `'USA'`.\n5. Use DISTINCT when selecting to prevent duplicate results for any river that spans multiple provinces in the USA.\n6. Return exactly the two columns `Name` and `Length` from the `river` table.", + "steps": [ + "Identify that river names and lengths are stored in the `river` table under the columns `Name` and `Length`.", + "Join `river` to `geo_river` on `river.Name` = `geo_river.River` to link each river to its country code.", + "Map the external knowledge that USA is a country to the filter value `'USA'` on `geo_river.Country`.", + "Apply a WHERE clause to keep only rows where `geo_river.Country` equals `'USA'`.", + "Use DISTINCT when selecting to prevent duplicate results for any river that spans multiple provinces in the USA.", + "Return exactly the two columns `Name` and `Length` from the `river` table." + ] + }, + "revisql-train:8347": { + "raw": "1. Start from the river table to obtain the names and lengths of rivers.\n2. Join river with located on the river name equal to located.River to connect rivers with the cities situated on them.\n3. Join located with city on located.City equal to city.Name to access the city entity for filtering.\n4. Filter the results to keep only rows where the city name is Belgrade.\n5. Return the river name and river length columns.", + "steps": [ + "Start from the river table to obtain the names and lengths of rivers.", + "Join river with located on the river name equal to located.River to connect rivers with the cities situated on them.", + "Join located with city on located.City equal to city.Name to access the city entity for filtering.", + "Filter the results to keep only rows where the city name is Belgrade.", + "Return the river name and river length columns." + ] + }, + "revisql-train:8348": { + "raw": "1. Identify that the `language` table stores the percentage of speakers for each language by country code, and the `country` table maps country codes to nation names.\n2. Filter the `language` table to rows where the language `Name` is 'Spanish' and the `Percentage` equals exactly 100.\n3. Join the filtered `language` records with the `country` table on `language.Country = country.Code` to retrieve the corresponding nation names.\n4. Return only the `Name` column from the `country` table as the final output.", + "steps": [ + "Identify that the `language` table stores the percentage of speakers for each language by country code, and the `country` table maps country codes to nation names.", + "Filter the `language` table to rows where the language `Name` is 'Spanish' and the `Percentage` equals exactly 100.", + "Join the filtered `language` records with the `country` table on `language.Country = country.Code` to retrieve the corresponding nation names.", + "Return only the `Name` column from the `country` table as the final output." + ] + }, + "revisql-train:8349": { + "raw": "1. Start from the `politics` table, which records dependency relationships in its `Dependent` column.\n2. Apply the external knowledge that \"dependent on the British Crown\" corresponds to the value `'GB'` in the `Dependent` column.\n3. Join the `country` table on `country.Code = politics.Country` to translate the country code into the full country name.\n4. Filter for rows where `politics.Dependent` is exactly `'GB'`.\n5. Return only the `Name` column from the `country` table.", + "steps": [ + "Start from the `politics` table, which records dependency relationships in its `Dependent` column.", + "Apply the external knowledge that \"dependent on the British Crown\" corresponds to the value `'GB'` in the `Dependent` column.", + "Join the `country` table on `country.Code = politics.Country` to translate the country code into the full country name.", + "Filter for rows where `politics.Dependent` is exactly `'GB'`.", + "Return only the `Name` column from the `country` table." + ] + }, + "revisql-train:8356": { + "raw": "1. Use the `language` table to get the percentage of speakers and the `country` table to get the total population and country code.\n2. Join `language` to `country` on `language.Country = country.Code`.\n3. Filter `language.Name` to 'Serbian' and `country.Name` to 'Montenegro', mapping the external knowledge that Serbian is a language and Montenegro is a country.\n4. Compute the number of people by multiplying `language.Percentage` by `country.Population` and dividing by 100.\n5. Return that single calculated value as the result column.", + "steps": [ + "Use the `language` table to get the percentage of speakers and the `country` table to get the total population and country code.", + "Join `language` to `country` on `language.Country = country.Code`.", + "Filter `language.Name` to 'Serbian' and `country.Name` to 'Montenegro', mapping the external knowledge that Serbian is a language and Montenegro is a country.", + "Compute the number of people by multiplying `language.Percentage` by `country.Population` and dividing by 100.", + "Return that single calculated value as the result column." + ] + }, + "revisql-train:8361": { + "raw": "1. Join the politics table to population on the Country code, and join the country table on politics.Country matching country.Code to bring together the nation's name, independence date, and infant mortality rate.\n2. Filter to rows where the year of the Independence date equals 1960.\n3. Order the results by Infant_Mortality in descending order to place the highest rate first.\n4. Limit the output to the first row only.\n5. Return the Name column from the country table.", + "steps": [ + "Join the politics table to population on the Country code, and join the country table on politics.Country matching country.Code to bring together the nation's name, independence date, and infant mortality rate.", + "Filter to rows where the year of the Independence date equals 1960.", + "Order the results by Infant_Mortality in descending order to place the highest rate first.", + "Limit the output to the first row only.", + "Return the Name column from the country table." + ] + }, + "revisql-train:8364": { + "raw": "1. Query the `desert` table to find the single largest desert by sorting records by `Area` in descending order and limiting the result to the first row, then note its `Name`.\n2. Access the `geo_desert` table, which connects desert names to the provinces that contain them.\n3. Filter `geo_desert` to keep only rows where the `Desert` column matches the name obtained in step 1.\n4. Return the `Province` column from the filtered rows.", + "steps": [ + "Query the `desert` table to find the single largest desert by sorting records by `Area` in descending order and limiting the result to the first row, then note its `Name`.", + "Access the `geo_desert` table, which connects desert names to the provinces that contain them.", + "Filter `geo_desert` to keep only rows where the `Desert` column matches the name obtained in step 1.", + "Return the `Province` column from the filtered rows." + ] + }, + "revisql-train:8368": { + "raw": "1. Query the `island` table to find the single island with the greatest `Area` by sorting in descending order and limiting to one record; keep its `Name`.\n2. Join the `islandIn` table with the `sea` table on `islandIn.Sea` matching `sea.Name` to link each island-sea association to the canonical sea entry.\n3. Filter the joined rows so that only those with `islandIn.Island` equal to the largest island name from step 1 are retained.\n4. Return the `Name` column from the `sea` table as the final answer.", + "steps": [ + "Query the `island` table to find the single island with the greatest `Area` by sorting in descending order and limiting to one record; keep its `Name`.", + "Join the `islandIn` table with the `sea` table on `islandIn.Sea` matching `sea.Name` to link each island-sea association to the canonical sea entry.", + "Filter the joined rows so that only those with `islandIn.Island` equal to the largest island name from step 1 are retained.", + "Return the `Name` column from the `sea` table as the final answer." + ] + }, + "revisql-train:8394": { + "raw": "1. Filter the `country` table to the row where `Name` is 'Japan', applying the external knowledge that Japan is a country.\n2. Inner join the `religion` table on `country.Code = religion.Country` to get all religions and their percentages for Japan.\n3. Use a correlated subquery against `religion` to find the maximum `Percentage` for that same country code.\n4. Keep only joined rows where the religion's `Percentage` equals that maximum value, capturing any ties for the majority.\n5. Return the `Name` column from the `religion` table.", + "steps": [ + "Filter the `country` table to the row where `Name` is 'Japan', applying the external knowledge that Japan is a country.", + "Inner join the `religion` table on `country.Code = religion.Country` to get all religions and their percentages for Japan.", + "Use a correlated subquery against `religion` to find the maximum `Percentage` for that same country code.", + "Keep only joined rows where the religion's `Percentage` equals that maximum value, capturing any ties for the majority.", + "Return the `Name` column from the `religion` table." + ] + }, + "revisql-train:840": { + "raw": "1. Join the twitter table with the user table on UserID to link each tweet to its poster's gender.\n2. Filter for male users by matching Gender to 'Male' in the user table.\n3. Filter for Monday tweets by matching Weekday to 'Monday' in the twitter table.\n4. Count distinct TweetID from the twitter table to compute the total number of tweets.\n5. Return that single aggregated count value.", + "steps": [ + "Join the twitter table with the user table on UserID to link each tweet to its poster's gender.", + "Filter for male users by matching Gender to 'Male' in the user table.", + "Filter for Monday tweets by matching Weekday to 'Monday' in the twitter table.", + "Count distinct TweetID from the twitter table to compute the total number of tweets.", + "Return that single aggregated count value." + ] + }, + "revisql-train:8402": { + "raw": "1. Use the country table to retrieve the population and country code for Switzerland, and the economy table to retrieve GDP.\n2. Join economy to country on country.Code = economy.Country to align GDP with the correct nation's population.\n3. Filter the rows where country.Name equals 'Switzerland'.\n4. Apply the external knowledge formula GDP per capita = GDP / Population by dividing economy.GDP by country.Population.\n5. Return the single calculated value representing GDP per capita.", + "steps": [ + "Use the country table to retrieve the population and country code for Switzerland, and the economy table to retrieve GDP.", + "Join economy to country on country.Code = economy.Country to align GDP with the correct nation's population.", + "Filter the rows where country.Name equals 'Switzerland'.", + "Apply the external knowledge formula GDP per capita = GDP / Population by dividing economy.GDP by country.Population.", + "Return the single calculated value representing GDP per capita." + ] + }, + "revisql-train:8416": { + "raw": "1. Select names from the `river` table where `River` equals 'Donau' and `Length` is greater than 500 to identify candidate rivers.\n2. Join the `country` table with `geo_river` on the country code (`country.Code = geo_river.Country`).\n3. Filter the joined rows to only those where `country.Name` is 'Slovenia'.\n4. Restrict `geo_river.River` to the candidate names obtained in step 1.\n5. Return the `River` column from `geo_river`.", + "steps": [ + "Select names from the `river` table where `River` equals 'Donau' and `Length` is greater than 500 to identify candidate rivers.", + "Join the `country` table with `geo_river` on the country code (`country.Code = geo_river.Country`).", + "Filter the joined rows to only those where `country.Name` is 'Slovenia'.", + "Restrict `geo_river.River` to the candidate names obtained in step 1.", + "Return the `River` column from `geo_river`." + ] + }, + "revisql-train:8417": { + "raw": "1. Retrieve the depth of the sea named 'Bay of Bengal' from the `sea` table to establish the reference depth.\n2. Join the `sea` table with `located` on the sea name to associate each sea with the cities situated on it.\n3. Join the result with the `city` table on the city name to ensure only valid city entities are considered.\n4. Filter for the sea whose depth is exactly 3969 meters less than the Bay of Bengal depth by checking that the reference depth minus the sea's depth equals 3969.\n5. Return the `City` column from the `located` table.", + "steps": [ + "Retrieve the depth of the sea named 'Bay of Bengal' from the `sea` table to establish the reference depth.", + "Join the `sea` table with `located` on the sea name to associate each sea with the cities situated on it.", + "Join the result with the `city` table on the city name to ensure only valid city entities are considered.", + "Filter for the sea whose depth is exactly 3969 meters less than the Bay of Bengal depth by checking that the reference depth minus the sea's depth equals 3969.", + "Return the `City` column from the `located` table." + ] + }, + "revisql-train:8421": { + "raw": "1. Begin with the `lake` table to retrieve each lake's name and depth.\n2. Join `geo_lake` on the lake name to link each lake to its province and country codes.\n3. Join `province` on province name and then `country` on country code to resolve the full country name.\n4. Filter for rows where the country name equals 'Bolivia', applying the external knowledge that Bolivia is the target country.\n5. Order by the lake depth descending, limit the result to one row, and return the lake name column.", + "steps": [ + "Begin with the `lake` table to retrieve each lake's name and depth.", + "Join `geo_lake` on the lake name to link each lake to its province and country codes.", + "Join `province` on province name and then `country` on country code to resolve the full country name.", + "Filter for rows where the country name equals 'Bolivia', applying the external knowledge that Bolivia is the target country.", + "Order by the lake depth descending, limit the result to one row, and return the lake name column." + ] + }, + "revisql-train:8425": { + "raw": "1. Group the `encompasses` table by the `country` column and retain only groups where the count of associated `continent` entries is greater than 1, producing the set of country codes that span multiple continents.\n2. From the `country` table, filter to rows where the ratio of the `population` column to the `Area` column is less than or equal to 10, representing a density not exceeding 10 inhabitants per square kilometer.\n3. Restrict those `country` rows to only those whose `CODE` appears in the multi-continent set identified in step 1.\n4. Return the `NAME` column of each qualifying country.", + "steps": [ + "Group the `encompasses` table by the `country` column and retain only groups where the count of associated `continent` entries is greater than 1, producing the set of country codes that span multiple continents.", + "From the `country` table, filter to rows where the ratio of the `population` column to the `Area` column is less than or equal to 10, representing a density not exceeding 10 inhabitants per square kilometer.", + "Restrict those `country` rows to only those whose `CODE` appears in the multi-continent set identified in step 1.", + "Return the `NAME` column of each qualifying country." + ] + }, + "revisql-train:8430": { + "raw": "1. Query the `country` table, which contains each nation's name, capital, and population.\n2. Select the `Name` and `Capital` columns to return the nation's name and its capital city.\n3. Sort the results by the `Population` column in ascending order so the least-populated nation appears first.\n4. Limit the output to the first row to obtain only the smallest-populated nation and its capital.", + "steps": [ + "Query the `country` table, which contains each nation's name, capital, and population.", + "Select the `Name` and `Capital` columns to return the nation's name and its capital city.", + "Sort the results by the `Population` column in ascending order so the least-populated nation appears first.", + "Limit the output to the first row to obtain only the smallest-populated nation and its capital." + ] + }, + "revisql-train:8442": { + "raw": "1. Map \"nation\" to the `country` table, \"still not independent\" to the `politics` table where `Independence` is NULL, and \"businesses\" to the `organization` table.\n2. Join `country` to `politics` on `country.Code` = `politics.Country`, then join `organization` to `politics` on `organization.Country` = `politics.Country`.\n3. Filter for nations that are not independent by requiring `politics.Independence` to be NULL.\n4. Filter for businesses founded after 1960 by extracting the year from `organization.Established` and checking it is greater than 1960.\n5. Count the `organization.Name` column and return that total count.", + "steps": [ + "Map \"nation\" to the `country` table, \"still not independent\" to the `politics` table where `Independence` is NULL, and \"businesses\" to the `organization` table.", + "Join `country` to `politics` on `country.Code` = `politics.Country`, then join `organization` to `politics` on `organization.Country` = `politics.Country`.", + "Filter for nations that are not independent by requiring `politics.Independence` to be NULL.", + "Filter for businesses founded after 1960 by extracting the year from `organization.Established` and checking it is greater than 1960.", + "Count the `organization.Name` column and return that total count." + ] + }, + "revisql-train:8445": { + "raw": "1. Identify that \"nations\" refers to country names, so the final output must be the `name` column from the `country` table.\n2. Use the external knowledge that \"British Overseas Territories\" is a government form, and filter the `politics` table where `Government` equals this exact value.\n3. Collect the `Country` codes from the filtered `politics` rows.\n4. Match those `Country` codes against the `CODE` column in the `country` table to find the corresponding nations.\n5. Return the `name` values for the matched countries.", + "steps": [ + "Identify that \"nations\" refers to country names, so the final output must be the `name` column from the `country` table.", + "Use the external knowledge that \"British Overseas Territories\" is a government form, and filter the `politics` table where `Government` equals this exact value.", + "Collect the `Country` codes from the filtered `politics` rows.", + "Match those `Country` codes against the `CODE` column in the `country` table to find the corresponding nations.", + "Return the `name` values for the matched countries." + ] + }, + "revisql-train:8448": { + "raw": "1. Target the `organization` table, applying the external knowledge that Organization means corporation, and filter rows to those where `Country` equals 'USA'.\n2. Group the results by `Province` and count the number of corporate headquarters in each province.\n3. Compute the maximum headquarters count across all USA provinces using a subquery that repeats the same USA filter and province grouping.\n4. Apply a HAVING clause to keep only provinces whose headquarters count equals that maximum value.\n5. Return the `Province` column for the qualifying provinces.", + "steps": [ + "Target the `organization` table, applying the external knowledge that Organization means corporation, and filter rows to those where `Country` equals 'USA'.", + "Group the results by `Province` and count the number of corporate headquarters in each province.", + "Compute the maximum headquarters count across all USA provinces using a subquery that repeats the same USA filter and province grouping.", + "Apply a HAVING clause to keep only provinces whose headquarters count equals that maximum value.", + "Return the `Province` column for the qualifying provinces." + ] + }, + "revisql-train:8451": { + "raw": "1. Start from the isMember table which records country-organization memberships and includes a Type column for membership status.\n2. Join the organization table on isMember.Organization equal to organization.Abbreviation to retrieve each organization's full name.\n3. Join the country table on isMember.Country equal to country.code to retrieve each country's full name.\n4. Apply the external knowledge mapping by filtering to rows where isMember.Type is the value corresponding to an associated member.\n5. Use DISTINCT to ensure each country-organization pair appears only once.\n6. Return the Name column from the country table and the Name column from the organization table.", + "steps": [ + "Start from the isMember table which records country-organization memberships and includes a Type column for membership status.", + "Join the organization table on isMember.Organization equal to organization.Abbreviation to retrieve each organization's full name.", + "Join the country table on isMember.Country equal to country.code to retrieve each country's full name.", + "Apply the external knowledge mapping by filtering to rows where isMember.Type is the value corresponding to an associated member.", + "Use DISTINCT to ensure each country-organization pair appears only once.", + "Return the Name column from the country table and the Name column from the organization table." + ] + }, + "revisql-train:8454": { + "raw": "1. Use the `sea` table to get the depth of the Baltic Sea and the `mergesWith` table to identify which sea it converges with, applying the external knowledge that coverage/convergence maps to `mergesWith`.\n2. Join `sea` to `mergesWith` on `sea.Name = mergesWith.Sea1` to link the Baltic Sea record to its converging partner.\n3. Filter the `sea` table to only the row where `Name` equals 'Baltic Sea'.\n4. Return the converging sea name from `mergesWith.Sea2` and the depth value from `sea.Depth`.", + "steps": [ + "Use the `sea` table to get the depth of the Baltic Sea and the `mergesWith` table to identify which sea it converges with, applying the external knowledge that coverage/convergence maps to `mergesWith`.", + "Join `sea` to `mergesWith` on `sea.Name = mergesWith.Sea1` to link the Baltic Sea record to its converging partner.", + "Filter the `sea` table to only the row where `Name` equals 'Baltic Sea'.", + "Return the converging sea name from `mergesWith.Sea2` and the depth value from `sea.Depth`." + ] + }, + "revisql-train:8455": { + "raw": "1. Join the country, organization, and politics tables by matching country code columns (country.Code = organization.Country and politics.Country = organization.Country) to link nations with their organizations and government types.\n2. Filter politics.Government to 'constitutional monarchy' to keep only constitutional monarchy nations.\n3. Use the external knowledge that growth maps to the Established column, extract the year from organization.Established, and keep only rows where that year exceeds 1907.\n4. Group by country.Name and count distinct organization.Name values per nation to measure post-1907 organizational growth.\n5. Sort the nations by that count from highest to lowest, keep only the first row, and return the column country.Name.", + "steps": [ + "Join the country, organization, and politics tables by matching country code columns (country.Code = organization.Country and politics.Country = organization.Country) to link nations with their organizations and government types.", + "Filter politics.Government to 'constitutional monarchy' to keep only constitutional monarchy nations.", + "Use the external knowledge that growth maps to the Established column, extract the year from organization.Established, and keep only rows where that year exceeds 1907.", + "Group by country.Name and count distinct organization.Name values per nation to measure post-1907 organizational growth.", + "Sort the nations by that count from highest to lowest, keep only the first row, and return the column country.Name." + ] + }, + "revisql-train:8460": { + "raw": "1. Look in the `organization` table, which stores names and establishment dates.\n2. Use the external knowledge that ABEDA is an abbreviation to filter the `Abbreviation` column to `'ABEDA'`.\n3. Map \"full name\" to the `Name` column and \"when was it established\" to the `Established` column.\n4. Return only the `Name` and `Established` columns for the matching row.", + "steps": [ + "Look in the `organization` table, which stores names and establishment dates.", + "Use the external knowledge that ABEDA is an abbreviation to filter the `Abbreviation` column to `'ABEDA'`.", + "Map \"full name\" to the `Name` column and \"when was it established\" to the `Established` column.", + "Return only the `Name` and `Established` columns for the matching row." + ] + }, + "revisql-train:8474": { + "raw": "1. Start from the `country` table to retrieve the `Name` and `Capital` columns, using `Code` as the country identifier.\n2. In the `isMember` table, filter for rows where `Organization` is 'IFAD' and `type` is 'Category III', keeping the `Country` column values.\n3. Restrict the `country` records to only those whose `Code` matches the set of country codes obtained from the `isMember` filter.\n4. Return exactly the `Name` and `Capital` columns for the qualifying countries.", + "steps": [ + "Start from the `country` table to retrieve the `Name` and `Capital` columns, using `Code` as the country identifier.", + "In the `isMember` table, filter for rows where `Organization` is 'IFAD' and `type` is 'Category III', keeping the `Country` column values.", + "Restrict the `country` records to only those whose `Code` matches the set of country codes obtained from the `isMember` filter.", + "Return exactly the `Name` and `Capital` columns for the qualifying countries." + ] + }, + "revisql-train:8477": { + "raw": "1. Join the `country` table to the `organization` table on `country.Code = organization.Country`.\n2. Filter the result to only rows where `organization.Country` equals 'USA'.\n3. Map the external knowledge to columns by using a conditional sum over `organization.City` that returns 1 when the city is 'Washington' and 0 otherwise as the partial count, and use the count of all `organization.City` values as the total count.\n4. Cast the partial count to a real number, multiply by 100, and divide by the total count to compute the percentage.\n5. Return exactly one unnamed column containing the calculated percentage.", + "steps": [ + "Join the `country` table to the `organization` table on `country.Code = organization.Country`.", + "Filter the result to only rows where `organization.Country` equals 'USA'.", + "Map the external knowledge to columns by using a conditional sum over `organization.City` that returns 1 when the city is 'Washington' and 0 otherwise as the partial count, and use the count of all `organization.City` values as the total count.", + "Cast the partial count to a real number, multiply by 100, and divide by the total count to compute the percentage.", + "Return exactly one unnamed column containing the calculated percentage." + ] + }, + "revisql-train:8486": { + "raw": "1. Identify the `country` table as the source for country codes and capital names, and the `politics` table as the source for government types.\n2. Join `country` to `politics` on the country code fields (`country.Code` matching `politics.Country`).\n3. Filter the joined rows to only those where `politics.Government` equals 'parliamentary democracy', applying the external knowledge that this is a government form.\n4. Return the `Capital` column from the `country` table.", + "steps": [ + "Identify the `country` table as the source for country codes and capital names, and the `politics` table as the source for government types.", + "Join `country` to `politics` on the country code fields (`country.Code` matching `politics.Country`).", + "Filter the joined rows to only those where `politics.Government` equals 'parliamentary democracy', applying the external knowledge that this is a government form.", + "Return the `Capital` column from the `country` table." + ] + }, + "revisql-train:8489": { + "raw": "1. Find the independence date in the `politics` table, which stores `Independence` keyed by `Country` code.\n2. Join the `politics` table with the `country` table on `politics.Country = country.Code` to translate the country name into its code.\n3. Filter the joined rows to only those where `country.Name` equals 'United States'.\n4. Return the `Independence` column from the `politics` table as the result.", + "steps": [ + "Find the independence date in the `politics` table, which stores `Independence` keyed by `Country` code.", + "Join the `politics` table with the `country` table on `politics.Country = country.Code` to translate the country name into its code.", + "Filter the joined rows to only those where `country.Name` equals 'United States'.", + "Return the `Independence` column from the `politics` table as the result." + ] + }, + "revisql-train:8491": { + "raw": "1. Join the `organization` table with the `country` table on `organization.Country = country.Code` to translate country codes into full country names.\n2. Filter the joined rows to only those where `country.Name` is 'Saudi Arabia', using the external knowledge that Saudi Arabia is a country name.\n3. Order the remaining rows by `organization.Established` in descending order so the most recently founded organization appears first.\n4. Limit the result set to the first row only.\n5. Return the value in the `organization.Name` column as the final answer.", + "steps": [ + "Join the `organization` table with the `country` table on `organization.Country = country.Code` to translate country codes into full country names.", + "Filter the joined rows to only those where `country.Name` is 'Saudi Arabia', using the external knowledge that Saudi Arabia is a country name.", + "Order the remaining rows by `organization.Established` in descending order so the most recently founded organization appears first.", + "Limit the result set to the first row only.", + "Return the value in the `organization.Name` column as the final answer." + ] + }, + "revisql-train:8494": { + "raw": "1. Use the `river` table, which contains the `Name` and `Length` columns for every river.\n2. Order all rows by `Length` in descending order so the longest river ranks first.\n3. Skip the first 16 rows to land on the 17th-longest river, then keep exactly one row.\n4. Return the `Name` and `Length` of that single resulting row.", + "steps": [ + "Use the `river` table, which contains the `Name` and `Length` columns for every river.", + "Order all rows by `Length` in descending order so the longest river ranks first.", + "Skip the first 16 rows to land on the 17th-longest river, then keep exactly one row.", + "Return the `Name` and `Length` of that single resulting row." + ] + }, + "revisql-train:8499": { + "raw": "1. Join the country table with the economy table on the country code, keeping each nation's Name and its GDP.\n2. Filter the joined rows to only those where the nation's population is between 60,000,000 and 99,000,000.\n3. Compute the maximum GDP value found within that filtered population range.\n4. Return the Name of the nation whose GDP equals that computed maximum.", + "steps": [ + "Join the country table with the economy table on the country code, keeping each nation's Name and its GDP.", + "Filter the joined rows to only those where the nation's population is between 60,000,000 and 99,000,000.", + "Compute the maximum GDP value found within that filtered population range.", + "Return the Name of the nation whose GDP equals that computed maximum." + ] + }, + "revisql-train:8507": { + "raw": "1. Use the `desert` table, which contains each desert’s `Name` and its geographic `Latitude`.\n2. Map the phrase “absolute latitudes” to the expression `ABS(Latitude)` so the check covers both hemispheres.\n3. Restrict the result to rows where that absolute latitude value falls between 30 and 40.\n4. Apply the range filter to the table rows.\n5. Return only the `Name` column for the deserts that satisfy the condition.", + "steps": [ + "Use the `desert` table, which contains each desert’s `Name` and its geographic `Latitude`.", + "Map the phrase “absolute latitudes” to the expression `ABS(Latitude)` so the check covers both hemispheres.", + "Restrict the result to rows where that absolute latitude value falls between 30 and 40.", + "Apply the range filter to the table rows.", + "Return only the `Name` column for the deserts that satisfy the condition." + ] + }, + "revisql-train:8508": { + "raw": "1. Join the desert and geo_desert tables on the desert name to link each desert to its countries.\n2. Group the results by desert name, Latitude, and Longitude to aggregate per unique desert.\n3. Filter the groups to keep only those where the count of distinct countries is greater than one.\n4. Return the Latitude and Longitude columns, as these represent the coordinates per the external knowledge.", + "steps": [ + "Join the desert and geo_desert tables on the desert name to link each desert to its countries.", + "Group the results by desert name, Latitude, and Longitude to aggregate per unique desert.", + "Filter the groups to keep only those where the count of distinct countries is greater than one.", + "Return the Latitude and Longitude columns, as these represent the coordinates per the external knowledge." + ] + }, + "revisql-train:851": { + "raw": "1. Join the user table to twitter on UserID and join location to twitter on LocationID to link gender, country, and tweet content.\n2. Filter for Gender = 'Male' and Country = 'Argentina' to isolate tweets by male users in Argentina.\n3. In a subquery using the same two joins and filters, find the maximum value of Likes within that restricted set.\n4. In the outer query, keep only the row where Likes equals the maximum found in the subquery.\n5. Return the text column from the twitter table.", + "steps": [ + "Join the user table to twitter on UserID and join location to twitter on LocationID to link gender, country, and tweet content.", + "Filter for Gender = 'Male' and Country = 'Argentina' to isolate tweets by male users in Argentina.", + "In a subquery using the same two joins and filters, find the maximum value of Likes within that restricted set.", + "In the outer query, keep only the row where Likes equals the maximum found in the subquery.", + "Return the text column from the twitter table." + ] + }, + "revisql-train:8511": { + "raw": "1. Focus on the Customers table, which stores each customer’s age and unique ID.\n2. Apply the external knowledge that a teenager is defined as a person aged between 13 and 19 years old, inclusive.\n3. Filter the Customers table to keep only rows where the age column is within that 13–19 range.\n4. Count the ID values of the remaining rows to obtain the total number of teenage customers.\n5. Return only that count.", + "steps": [ + "Focus on the Customers table, which stores each customer’s age and unique ID.", + "Apply the external knowledge that a teenager is defined as a person aged between 13 and 19 years old, inclusive.", + "Filter the Customers table to keep only rows where the age column is within that 13–19 range.", + "Count the ID values of the remaining rows to obtain the total number of teenage customers.", + "Return only that count." + ] + }, + "revisql-train:8517": { + "raw": "1. Union Mailings1_2 and mailings3 into a single set of all incentive mailings, because the marketing department’s mailings are stored across both tables.\n2. Inner join Customers with this combined mailing set on Customers.ID = REFID to link each customer to their mailing response.\n3. Apply the filter age > 40 on the Customers table to capture customers over 40, and apply the filter RESPONSE = 'true' on the mailing data to capture positive responses.\n4. Return distinct values of the OCCUPATION column from Customers so each qualifying occupation appears only once.", + "steps": [ + "Union Mailings1_2 and mailings3 into a single set of all incentive mailings, because the marketing department’s mailings are stored across both tables.", + "Inner join Customers with this combined mailing set on Customers.ID = REFID to link each customer to their mailing response.", + "Apply the filter age > 40 on the Customers table to capture customers over 40, and apply the filter RESPONSE = 'true' on the mailing data to capture positive responses.", + "Return distinct values of the OCCUPATION column from Customers so each qualifying occupation appears only once." + ] + }, + "revisql-train:8518": { + "raw": "1. Join the Customers and Demog tables on the GEOID column to link each customer to their geographic data.\n2. Filter the joined rows to keep only those where Customers.SEX equals 'Male'.\n3. Apply the demographic filter Demog.INHABITANTS_K > 30 to satisfy the \"over 30,000 inhabitants\" condition.\n4. Count the number of matching customer records and return that count as the result.", + "steps": [ + "Join the Customers and Demog tables on the GEOID column to link each customer to their geographic data.", + "Filter the joined rows to keep only those where Customers.SEX equals 'Male'.", + "Apply the demographic filter Demog.INHABITANTS_K > 30 to satisfy the \"over 30,000 inhabitants\" condition.", + "Count the number of matching customer records and return that count as the result." + ] + }, + "revisql-train:8523": { + "raw": "1. Combine Mailings1_2 and mailings3 with a union to assemble all incentive mailing responses into a single dataset, using REFID as the customer identifier.\n2. Join this unified mailing dataset with Customers on REFID = ID to attach demographic information to each response.\n3. Filter the RESPONSE column to the value 'true' to keep only customers who responded positively to the mailing.\n4. Filter the SEX column to 'Male' and the MARITAL_STATUS column to 'Divorced' to isolate the target customer segment.\n5. Count the Customers.ID column to compute the total number of matching individuals.\n6. Return that count as the final result column.", + "steps": [ + "Combine Mailings1_2 and mailings3 with a union to assemble all incentive mailing responses into a single dataset, using REFID as the customer identifier.", + "Join this unified mailing dataset with Customers on REFID = ID to attach demographic information to each response.", + "Filter the RESPONSE column to the value 'true' to keep only customers who responded positively to the mailing.", + "Filter the SEX column to 'Male' and the MARITAL_STATUS column to 'Divorced' to isolate the target customer segment.", + "Count the Customers.ID column to compute the total number of matching individuals.", + "Return that count as the final result column." + ] + }, + "revisql-train:8525": { + "raw": "1. Group the Customers table by GEOID and count the number of customers per geographic identifier to quantify how many customers come from each place.\n2. Compute the maximum value among those customer counts to determine what \"most customers\" equals numerically.\n3. Join the Demog table to the aggregated customer counts using GEOID as the join key so demographic data is available for each location.\n4. Filter the joined results to keep only the row or rows where the customer count equals that maximum value.\n5. Return the INHABITANTS_K column from Demog, since external knowledge specifies that column represents population in thousands.", + "steps": [ + "Group the Customers table by GEOID and count the number of customers per geographic identifier to quantify how many customers come from each place.", + "Compute the maximum value among those customer counts to determine what \"most customers\" equals numerically.", + "Join the Demog table to the aggregated customer counts using GEOID as the join key so demographic data is available for each location.", + "Filter the joined results to keep only the row or rows where the customer count equals that maximum value.", + "Return the INHABITANTS_K column from Demog, since external knowledge specifies that column represents population in thousands." + ] + }, + "revisql-train:8527": { + "raw": "1. Use the Mailings1_2 table as the base population because external knowledge defines the first 60,000 customers as all records in this table.\n2. Inner join Customers to Mailings1_2 on Customers.ID = Mailings1_2.REFID to link each mailing record to its corresponding customer demographics.\n3. Filter Mailings1_2.RESPONSE to the value 'true', applying the external knowledge mapping for a positive response to the incentive mailing.\n4. Filter Customers.age to between 13 and 19 inclusive, per external knowledge defining teenagers.\n5. Count Customers.ID and return that aggregated value as the final answer.", + "steps": [ + "Use the Mailings1_2 table as the base population because external knowledge defines the first 60,000 customers as all records in this table.", + "Inner join Customers to Mailings1_2 on Customers.ID = Mailings1_2.REFID to link each mailing record to its corresponding customer demographics.", + "Filter Mailings1_2.RESPONSE to the value 'true', applying the external knowledge mapping for a positive response to the incentive mailing.", + "Filter Customers.age to between 13 and 19 inclusive, per external knowledge defining teenagers.", + "Count Customers.ID and return that aggregated value as the final answer." + ] + }, + "revisql-train:8531": { + "raw": "1. Use the Customers table since it contains both occupation and geographic identifier fields.\n2. Map the requested \"geographic identifier\" to the GEOID column and the phrase \"handlers or cleaners\" to the OCCUPATION value 'Handlers-cleaners'.\n3. Filter the Customers rows to only those where OCCUPATION equals 'Handlers-cleaners'.\n4. Return only the GEOID column values.", + "steps": [ + "Use the Customers table since it contains both occupation and geographic identifier fields.", + "Map the requested \"geographic identifier\" to the GEOID column and the phrase \"handlers or cleaners\" to the OCCUPATION value 'Handlers-cleaners'.", + "Filter the Customers rows to only those where OCCUPATION equals 'Handlers-cleaners'.", + "Return only the GEOID column values." + ] + }, + "revisql-train:8547": { + "raw": "1. Use the Customers and Demog tables, joining them on the shared GEOID column to link each customer to their geographic data.\n2. Filter Customers to SEX = 'Female' and restrict age to between 50 and 60 inclusive.\n3. Filter Demog so INHABITANTS_K is between 19 and 24, because the column stores values in thousands and the requested 19,000–24,000 inhabitants maps directly to that range.\n4. Apply an inner join on GEOID so only records satisfying both the customer demographic and geographic filters are retained.\n5. Return the count of the ID column from Customers as the final aggregated result.", + "steps": [ + "Use the Customers and Demog tables, joining them on the shared GEOID column to link each customer to their geographic data.", + "Filter Customers to SEX = 'Female' and restrict age to between 50 and 60 inclusive.", + "Filter Demog so INHABITANTS_K is between 19 and 24, because the column stores values in thousands and the requested 19,000–24,000 inhabitants maps directly to that range.", + "Apply an inner join on GEOID so only records satisfying both the customer demographic and geographic filters are retained.", + "Return the count of the ID column from Customers as the final aggregated result." + ] + }, + "revisql-train:855": { + "raw": "1. Start from the course table alone; no joins are needed because both the target courses and the comparison course are in the same table.\n2. Translate \"less important\" into credit values using the external knowledge: lower credit means less important.\n3. Find the benchmark credit by querying the credit of the course whose name is 'Machine Learning Theory'.\n4. Filter the course table to keep only rows with a credit strictly smaller than that benchmark value.\n5. Return only the name column for the courses that pass this filter.", + "steps": [ + "Start from the course table alone; no joins are needed because both the target courses and the comparison course are in the same table.", + "Translate \"less important\" into credit values using the external knowledge: lower credit means less important.", + "Find the benchmark credit by querying the credit of the course whose name is 'Machine Learning Theory'.", + "Filter the course table to keep only rows with a credit strictly smaller than that benchmark value.", + "Return only the name column for the courses that pass this filter." + ] + }, + "revisql-train:8554": { + "raw": "1. Join the Customers table to the Demog table on the GEOID column to link each customer to their geographic data.\n2. Filter Customers to only rows where OCCUPATION equals 'Other-service', applying the external knowledge mapping.\n3. Filter Demog to only rows where INHABITANTS_K is greater than 20, since the external knowledge specifies that inhabitants more than 20000 maps to INHABITANTS_K > 20.\n4. Count the matching rows and return that single aggregated value, counting Demog.GEOID to produce the total number of qualifying customers.", + "steps": [ + "Join the Customers table to the Demog table on the GEOID column to link each customer to their geographic data.", + "Filter Customers to only rows where OCCUPATION equals 'Other-service', applying the external knowledge mapping.", + "Filter Demog to only rows where INHABITANTS_K is greater than 20, since the external knowledge specifies that inhabitants more than 20000 maps to INHABITANTS_K > 20.", + "Count the matching rows and return that single aggregated value, counting Demog.GEOID to produce the total number of qualifying customers." + ] + }, + "revisql-train:856": { + "raw": "1. Query the prof table to isolate Zhou Zhihua by filtering where first_name is 'Zhihua' and last_name is 'Zhou', then extract the popularity value to use as a benchmark.\n2. Query the prof table again and filter to rows where the popularity value is strictly greater than that benchmark, using the external knowledge that higher popularity means the professor is more popular.\n3. Aggregate the filtered rows by counting prof_id to compute the total number of professors more popular than Zhou Zhihua.\n4. Return only that count of prof_id as the final answer.", + "steps": [ + "Query the prof table to isolate Zhou Zhihua by filtering where first_name is 'Zhihua' and last_name is 'Zhou', then extract the popularity value to use as a benchmark.", + "Query the prof table again and filter to rows where the popularity value is strictly greater than that benchmark, using the external knowledge that higher popularity means the professor is more popular.", + "Aggregate the filtered rows by counting prof_id to compute the total number of professors more popular than Zhou Zhihua.", + "Return only that count of prof_id as the final answer." + ] + }, + "revisql-train:857": { + "raw": "1. Identify the `student` table as the sole source because it stores both student names and contact information.\n2. Map \"Kerry\" to the `f_name` column and \"Pryor\" to the `l_name` column for filtering.\n3. Apply equality filters on `f_name` and `l_name` to isolate the matching record.\n4. Return only the `phone_number` column in the result.", + "steps": [ + "Identify the `student` table as the sole source because it stores both student names and contact information.", + "Map \"Kerry\" to the `f_name` column and \"Pryor\" to the `l_name` column for filtering.", + "Apply equality filters on `f_name` and `l_name` to isolate the matching record.", + "Return only the `phone_number` column in the result." + ] + }, + "revisql-train:8571": { + "raw": "1. Combine Mailings1_2 and mailings3 into a single dataset using UNION since both tables share the same schema and REFID key, giving a complete view of all mailing responses.\n2. Join the Customers table to this unified mailing dataset on Customers.ID = REFID to connect customer demographics with their corresponding response records.\n3. Filter the results to only rows where SEX = 'Female' and EDUCATIONNUM >= 8, applying the external knowledge that defines this target segment.\n4. Return the columns MARITAL_STATUS from Customers and RESPONSE from the mailing dataset.", + "steps": [ + "Combine Mailings1_2 and mailings3 into a single dataset using UNION since both tables share the same schema and REFID key, giving a complete view of all mailing responses.", + "Join the Customers table to this unified mailing dataset on Customers.ID = REFID to connect customer demographics with their corresponding response records.", + "Filter the results to only rows where SEX = 'Female' and EDUCATIONNUM >= 8, applying the external knowledge that defines this target segment.", + "Return the columns MARITAL_STATUS from Customers and RESPONSE from the mailing dataset." + ] + }, + "revisql-train:8572": { + "raw": "1. Identify that the final output must come from the `age` column in the `Customers` table.\n2. Filter `Customers` to only rows where `SEX` equals `'Female'`, applying the external knowledge for gender.\n3. Interpret \"number of inhabitants below 30\" as the condition `INHABITANTS_K < 30` in the `Demog` table.\n4. Use the shared `GEOID` column to relate each customer in `Customers` to their geographic record in `Demog`.\n5. Restrict the customer set to those whose `GEOID` matches a `Demog` record satisfying `INHABITANTS_K < 30`.\n6. Return only the `age` values for the customers meeting both the gender and geographic filters.", + "steps": [ + "Identify that the final output must come from the `age` column in the `Customers` table.", + "Filter `Customers` to only rows where `SEX` equals `'Female'`, applying the external knowledge for gender.", + "Interpret \"number of inhabitants below 30\" as the condition `INHABITANTS_K < 30` in the `Demog` table.", + "Use the shared `GEOID` column to relate each customer in `Customers` to their geographic record in `Demog`.", + "Restrict the customer set to those whose `GEOID` matches a `Demog` record satisfying `INHABITANTS_K < 30`.", + "Return only the `age` values for the customers meeting both the gender and geographic filters." + ] + }, + "revisql-train:8576": { + "raw": "1. Union Mailings1_2 and mailings3 into a single mailing dataset because customer responses are split across both tables.\n2. Join Customers to Demog on GEOID; map income to Demog.INCOME_K and number of inhabitants to Demog.INHABITANTS_K per the external knowledge.\n3. Join the unified mailings to Customers on Customers.ID = mailings.REFID.\n4. Compute a scalar threshold as 0.5 multiplied by the total count of 'false' responses from the unified mailings.\n5. Filter rows where the mailing REFID is strictly greater than that computed threshold.\n6. Return the columns INCOME_K and INHABITANTS_K.", + "steps": [ + "Union Mailings1_2 and mailings3 into a single mailing dataset because customer responses are split across both tables.", + "Join Customers to Demog on GEOID; map income to Demog.INCOME_K and number of inhabitants to Demog.INHABITANTS_K per the external knowledge.", + "Join the unified mailings to Customers on Customers.ID = mailings.REFID.", + "Compute a scalar threshold as 0.5 multiplied by the total count of 'false' responses from the unified mailings.", + "Filter rows where the mailing REFID is strictly greater than that computed threshold.", + "Return the columns INCOME_K and INHABITANTS_K." + ] + }, + "revisql-train:8586": { + "raw": "1. Use the Community_Area table, which stores the district assignment for each community area.\n2. Map the question's term \"district\" to the `side` column based on the external knowledge.\n3. Filter to the row where `community_area_name` equals 'Lincoln Square'.\n4. Return only the `side` column as the answer.", + "steps": [ + "Use the Community_Area table, which stores the district assignment for each community area.", + "Map the question's term \"district\" to the `side` column based on the external knowledge.", + "Filter to the row where `community_area_name` equals 'Lincoln Square'.", + "Return only the `side` column as the answer." + ] + }, + "revisql-train:8588": { + "raw": "1. Target the `Community_Area` table and plan to return `community_area_name` as the answer column.\n2. Recognize that `population` is text with comma separators, so it must be cleaned by stripping commas and casting to an integer before numeric comparison.\n3. Compute the least population by scanning all rows, sorting the converted population in ascending order, and isolating the single smallest value.\n4. Filter the main `Community_Area` records to only those whose converted population equals that isolated smallest value.\n5. Output the `community_area_name`(s) from the filtered record(s).", + "steps": [ + "Target the `Community_Area` table and plan to return `community_area_name` as the answer column.", + "Recognize that `population` is text with comma separators, so it must be cleaned by stripping commas and casting to an integer before numeric comparison.", + "Compute the least population by scanning all rows, sorting the converted population in ascending order, and isolating the single smallest value.", + "Filter the main `Community_Area` records to only those whose converted population equals that isolated smallest value.", + "Output the `community_area_name`(s) from the filtered record(s)." + ] + }, + "revisql-train:859": { + "raw": "1. Map the term \"research assistants\" to the RA table using the provided abbreviation, noting it stores student_id and prof_id.\n2. Join RA with the prof table on the prof_id column to link each assistant to a professor's first and last names.\n3. Filter the joined rows to only those where first_name equals Sauveur and last_name equals Skyme.\n4. Count the student_id values from the RA table to total the number of research assistants for that professor.\n5. Return the resulting count as the single answer column.", + "steps": [ + "Map the term \"research assistants\" to the RA table using the provided abbreviation, noting it stores student_id and prof_id.", + "Join RA with the prof table on the prof_id column to link each assistant to a professor's first and last names.", + "Filter the joined rows to only those where first_name equals Sauveur and last_name equals Skyme.", + "Count the student_id values from the RA table to total the number of research assistants for that professor.", + "Return the resulting count as the single answer column." + ] + }, + "revisql-train:8592": { + "raw": "1. Join the Neighborhood table to the Community_Area table on the shared community_area_no key to link each neighborhood to its community area name.\n2. Filter the joined rows to only those where community_area_name equals 'Lincoln Square', using the external knowledge that Lincoln Square corresponds to that exact column value.\n3. Apply COUNT(*) across the remaining rows to compute the total number of neighborhoods in that community area.\n4. Return only that single aggregated count column.", + "steps": [ + "Join the Neighborhood table to the Community_Area table on the shared community_area_no key to link each neighborhood to its community area name.", + "Filter the joined rows to only those where community_area_name equals 'Lincoln Square', using the external knowledge that Lincoln Square corresponds to that exact column value.", + "Apply COUNT(*) across the remaining rows to compute the total number of neighborhoods in that community area.", + "Return only that single aggregated count column." + ] + }, + "revisql-train:8597": { + "raw": "1. Join the Crime table to the Community_Area table on the community_area_no key to link each crime to its geographic side.\n2. Filter Community_Area to only rows where side equals 'Central', applying the external knowledge that Central Chicago corresponds to side = 'Central'.\n3. Filter Crime to only rows where domestic equals 'TRUE', applying the external knowledge that a domestic violence case corresponds to domestic = 'TRUE'.\n4. Count all rows that satisfy both filters simultaneously.\n5. Return the resulting count as the single output column.", + "steps": [ + "Join the Crime table to the Community_Area table on the community_area_no key to link each crime to its geographic side.", + "Filter Community_Area to only rows where side equals 'Central', applying the external knowledge that Central Chicago corresponds to side = 'Central'.", + "Filter Crime to only rows where domestic equals 'TRUE', applying the external knowledge that a domestic violence case corresponds to domestic = 'TRUE'.", + "Count all rows that satisfy both filters simultaneously.", + "Return the resulting count as the single output column." + ] + }, + "revisql-train:8601": { + "raw": "1. Join the Community_Area and Crime tables on community_area_no to associate each crime record with its community area name.\n2. Filter to rows where community_area_name is either Woodlawn or Lincoln Square.\n3. Apply the January 2018 date filter by matching the date column against the pattern 1/%/2018%.\n4. Group the filtered results by community_area_name and count the crime reports for each area.\n5. Order those groups by the crime count in descending order so the area with the most crimes appears first.\n6. Return only the community_area_name of the single top-ranked record.", + "steps": [ + "Join the Community_Area and Crime tables on community_area_no to associate each crime record with its community area name.", + "Filter to rows where community_area_name is either Woodlawn or Lincoln Square.", + "Apply the January 2018 date filter by matching the date column against the pattern 1/%/2018%.", + "Group the filtered results by community_area_name and count the crime reports for each area.", + "Order those groups by the crime count in descending order so the area with the most crimes appears first.", + "Return only the community_area_name of the single top-ranked record." + ] + }, + "revisql-train:8603": { + "raw": "1. Map \"Central Chicago\" to the Community_Area table by filtering where side = 'Central', identifying the relevant community_area_no values.\n2. Join Crime with Community_Area on the community_area_no key to isolate all crime reports occurring in Central Chicago.\n3. Count the total number of crime reports in Central Chicago from the joined result.\n4. Separately count the neighborhoods in Central Chicago by counting rows in Neighborhood whose community_area_no matches the Central community areas identified in step 1.\n5. Divide the total crime count by the total neighborhood count, casting the crime count to REAL to ensure decimal division.\n6. Return the final calculated value as a single column named avg_crimes_per_neighborhood.", + "steps": [ + "Map \"Central Chicago\" to the Community_Area table by filtering where side = 'Central', identifying the relevant community_area_no values.", + "Join Crime with Community_Area on the community_area_no key to isolate all crime reports occurring in Central Chicago.", + "Count the total number of crime reports in Central Chicago from the joined result.", + "Separately count the neighborhoods in Central Chicago by counting rows in Neighborhood whose community_area_no matches the Central community areas identified in step 1.", + "Divide the total crime count by the total neighborhood count, casting the crime count to REAL to ensure decimal division.", + "Return the final calculated value as a single column named avg_crimes_per_neighborhood." + ] + }, + "revisql-train:8604": { + "raw": "1. Join the Crime table to the District table on district_no so that every crime record is paired with its district name.\n2. Use the external knowledge that district_name = 'Central' identifies the Central district.\n3. Count all crimes by counting every case_number in the joined result to establish the denominator.\n4. Count only the crimes in the Central district by summing a conditional expression that returns 1 when district_name is 'Central' and 0 otherwise.\n5. Compute the percentage by casting the Central district count to a real number, multiplying by 100, and dividing by the total crime count.\n6. Return a single column containing the final percentage value.", + "steps": [ + "Join the Crime table to the District table on district_no so that every crime record is paired with its district name.", + "Use the external knowledge that district_name = 'Central' identifies the Central district.", + "Count all crimes by counting every case_number in the joined result to establish the denominator.", + "Count only the crimes in the Central district by summing a conditional expression that returns 1 when district_name is 'Central' and 0 otherwise.", + "Compute the percentage by casting the Central district count to a real number, multiplying by 100, and dividing by the total crime count.", + "Return a single column containing the final percentage value." + ] + }, + "revisql-train:8608": { + "raw": "1. Use the Crime table since it contains the latitude and longitude columns that record incident coordinates.\n2. Inner join the District table on district_no to access district details for the matched crime record.\n3. Filter Crime rows to the exact coordinate by setting latitude to '41.66236555' and longitude to '-87.63470194' per the external mapping.\n4. Return only the district_name column from District, as that column represents the name of the district.", + "steps": [ + "Use the Crime table since it contains the latitude and longitude columns that record incident coordinates.", + "Inner join the District table on district_no to access district details for the matched crime record.", + "Filter Crime rows to the exact coordinate by setting latitude to '41.66236555' and longitude to '-87.63470194' per the external mapping.", + "Return only the district_name column from District, as that column represents the name of the district." + ] + }, + "revisql-train:8612": { + "raw": "1. Locate the target case in the Crime table by filtering on case_number equal to 'JB296775'.\n2. Join the IUCR table to Crime using the iucr_no key to access the severity classification data.\n3. Restrict the joined results to rows where Crime.case_number matches 'JB296775'.\n4. Return the IUCR.index_code column as the severity indicator, using DISTINCT in case the case number spans multiple report rows.", + "steps": [ + "Locate the target case in the Crime table by filtering on case_number equal to 'JB296775'.", + "Join the IUCR table to Crime using the iucr_no key to access the severity classification data.", + "Restrict the joined results to rows where Crime.case_number matches 'JB296775'.", + "Return the IUCR.index_code column as the severity indicator, using DISTINCT in case the case number spans multiple report rows." + ] + }, + "revisql-train:8614": { + "raw": "1. Locate the incident in the Crime table by filtering case_number to 'JB103470' per the external case reference.\n2. Link the Crime record to the Ward table via an inner join on ward_no to reach the legislative district details.\n3. Map the requested \"full name\" to the Ward columns alderman_first_name and alderman_last_name.\n4. Return only those two name columns.", + "steps": [ + "Locate the incident in the Crime table by filtering case_number to 'JB103470' per the external case reference.", + "Link the Crime record to the Ward table via an inner join on ward_no to reach the legislative district details.", + "Map the requested \"full name\" to the Ward columns alderman_first_name and alderman_last_name.", + "Return only those two name columns." + ] + }, + "revisql-train:8615": { + "raw": "1. Start with the Neighborhood table for neighborhood names and the Community_Area table for community identity.\n2. Join Neighborhood to Community_Area on the community_area_no column.\n3. Filter Community_Area where community_area_name equals 'West Englewood', applying the external knowledge mapping.\n4. Return the neighborhood_name column.", + "steps": [ + "Start with the Neighborhood table for neighborhood names and the Community_Area table for community identity.", + "Join Neighborhood to Community_Area on the community_area_no column.", + "Filter Community_Area where community_area_name equals 'West Englewood', applying the external knowledge mapping.", + "Return the neighborhood_name column." + ] + }, + "revisql-train:8616": { + "raw": "1. Map \"Roseland community\" to the filter value 'Roseland' in Community_Area.community_area_name using the external knowledge.\n2. Join Community_Area with Neighborhood on community_area_no to associate each neighborhood with its corresponding community name.\n3. Aggregate by summing a conditional expression that returns 1 for rows where community_area_name equals 'Roseland' and 0 otherwise, effectively counting the neighborhoods.\n4. Return exactly one column: the resulting single numeric aggregate value.", + "steps": [ + "Map \"Roseland community\" to the filter value 'Roseland' in Community_Area.community_area_name using the external knowledge.", + "Join Community_Area with Neighborhood on community_area_no to associate each neighborhood with its corresponding community name.", + "Aggregate by summing a conditional expression that returns 1 for rows where community_area_name equals 'Roseland' and 0 otherwise, effectively counting the neighborhoods.", + "Return exactly one column: the resulting single numeric aggregate value." + ] + }, + "revisql-train:8619": { + "raw": "1. Join Crime to Community_Area on community_area_no and to IUCR on iucr_no to access area names and crime classifications.\n2. Filter to rows where Community_Area.community_area_name equals 'West Englewood'.\n3. Map the external knowledge to IUCR columns: primary_description = 'THEFT' identifies theft, and secondary_description = '$500 AND UNDER' identifies under $500.\n4. Compute the numerator with a conditional sum that returns 1 when both theft conditions are met and 0 otherwise; use COUNT(*) as the denominator for all West Englewood records.\n5. Cast the numerator to REAL, multiply by 100.0, divide by the denominator, and return the result as the single column pct_under_500_theft_all_cases.", + "steps": [ + "Join Crime to Community_Area on community_area_no and to IUCR on iucr_no to access area names and crime classifications.", + "Filter to rows where Community_Area.community_area_name equals 'West Englewood'.", + "Map the external knowledge to IUCR columns: primary_description = 'THEFT' identifies theft, and secondary_description = '$500 AND UNDER' identifies under $500.", + "Compute the numerator with a conditional sum that returns 1 when both theft conditions are met and 0 otherwise; use COUNT(*) as the denominator for all West Englewood records.", + "Cast the numerator to REAL, multiply by 100.0, divide by the denominator, and return the result as the single column pct_under_500_theft_all_cases." + ] + }, + "revisql-train:862": { + "raw": "1. Start from the student table to retrieve names, and join it with registration on student_id to find course enrollments.\n2. Join registration with course on course_id to bring in the course name for each enrollment.\n3. Filter to keep only rows where the course name is exactly 'Machine Learning Theory'.\n4. Return the f_name and l_name columns from the student table to form the full names.", + "steps": [ + "Start from the student table to retrieve names, and join it with registration on student_id to find course enrollments.", + "Join registration with course on course_id to bring in the course name for each enrollment.", + "Filter to keep only rows where the course name is exactly 'Machine Learning Theory'.", + "Return the f_name and l_name columns from the student table to form the full names." + ] + }, + "revisql-train:8629": { + "raw": "1. Join District to Crime on district_no and Crime to FBI_Code on fbi_code_no to connect district names and crime classifications with incident records.\n2. Filter for District.district_name = 'Albany Park', Crime.arrest = 'TRUE', and Crime.location_description = 'APARTMENT', applying the external knowledge mappings for Albany Park and apartment.\n3. Use a conditional sum to count only rows where FBI_Code.title equals 'Criminal Sexual Abuse', mapping the external knowledge term to the crime classification column.\n4. Return the single aggregated numeric total representing the number of qualifying arrests.", + "steps": [ + "Join District to Crime on district_no and Crime to FBI_Code on fbi_code_no to connect district names and crime classifications with incident records.", + "Filter for District.district_name = 'Albany Park', Crime.arrest = 'TRUE', and Crime.location_description = 'APARTMENT', applying the external knowledge mappings for Albany Park and apartment.", + "Use a conditional sum to count only rows where FBI_Code.title equals 'Criminal Sexual Abuse', mapping the external knowledge term to the crime classification column.", + "Return the single aggregated numeric total representing the number of qualifying arrests." + ] + }, + "revisql-train:8636": { + "raw": "1. Map the legislative district's office address to the `ward_office_address` column in the `Ward` table using the external knowledge.\n2. Map the location identifier \"010XX W LAKE ST\" to the `block` column in the `Crime` table with the exact value '010XX W LAKE ST'.\n3. Join `Ward` and `Crime` on the `ward_no` key, since each crime record stores the ward where the incident occurred.\n4. Filter the joined rows to only those where `Crime.block` equals '010XX W LAKE ST'.\n5. Return the `ward_office_address` column, grouping by it to list each distinct legislative district office address once.", + "steps": [ + "Map the legislative district's office address to the `ward_office_address` column in the `Ward` table using the external knowledge.", + "Map the location identifier \"010XX W LAKE ST\" to the `block` column in the `Crime` table with the exact value '010XX W LAKE ST'.", + "Join `Ward` and `Crime` on the `ward_no` key, since each crime record stores the ward where the incident occurred.", + "Filter the joined rows to only those where `Crime.block` equals '010XX W LAKE ST'.", + "Return the `ward_office_address` column, grouping by it to list each distinct legislative district office address once." + ] + }, + "revisql-train:864": { + "raw": "1. Filter the student table to the single row where f_name equals 'Laughton' and l_name equals 'Antonio'.\n2. Join that result with the registration table on the student_id key to collect every course_id registered by that student.\n3. Join those registration rows with the course table on the course_id key to reach the course details.\n4. Return only the name column from the course table, with no aggregation or ordering needed.", + "steps": [ + "Filter the student table to the single row where f_name equals 'Laughton' and l_name equals 'Antonio'.", + "Join that result with the registration table on the student_id key to collect every course_id registered by that student.", + "Join those registration rows with the course table on the course_id key to reach the course details.", + "Return only the name column from the course table, with no aggregation or ordering needed." + ] + }, + "revisql-train:8641": { + "raw": "1. Identify that the District table contains the district name, the responsible person, and the contact email.\n2. Map \"Chicago Lawn\" to the district_name column, \"responsible person\" to the commander column, and \"email address\" to the email column using the provided external knowledge.\n3. Filter the District table to rows where district_name equals 'Chicago Lawn'.\n4. Return only the commander and email columns from the matching row.", + "steps": [ + "Identify that the District table contains the district name, the responsible person, and the contact email.", + "Map \"Chicago Lawn\" to the district_name column, \"responsible person\" to the commander column, and \"email address\" to the email column using the provided external knowledge.", + "Filter the District table to rows where district_name equals 'Chicago Lawn'.", + "Return only the commander and email columns from the matching row." + ] + }, + "revisql-train:8644": { + "raw": "1. Use the FBI_Code table since it stores crime titles, descriptions, and the crime_against classification.\n2. Map the phrase \"crimes cases against persons\" to the crime_against column with the exact value 'Persons' per the external knowledge.\n3. Retrieve only the title and description columns for the result.\n4. Filter the rows to those where crime_against equals 'Persons'.", + "steps": [ + "Use the FBI_Code table since it stores crime titles, descriptions, and the crime_against classification.", + "Map the phrase \"crimes cases against persons\" to the crime_against column with the exact value 'Persons' per the external knowledge.", + "Retrieve only the title and description columns for the result.", + "Filter the rows to those where crime_against equals 'Persons'." + ] + }, + "revisql-train:8648": { + "raw": "1. Filter the Crime table to rows where block equals '0000X N FRANCISCO AVE' using the provided address mapping.\n2. Join Crime to District on district_no to bring in district_name.\n3. Join Crime to Ward on ward_no to bring in alderman_first_name and alderman_last_name.\n4. Select case_number from Crime, alderman_first_name and alderman_last_name from Ward, and district_name from District.\n5. Group the results by case_number, alderman_first_name, alderman_last_name, and district_name.", + "steps": [ + "Filter the Crime table to rows where block equals '0000X N FRANCISCO AVE' using the provided address mapping.", + "Join Crime to District on district_no to bring in district_name.", + "Join Crime to Ward on ward_no to bring in alderman_first_name and alderman_last_name.", + "Select case_number from Crime, alderman_first_name and alderman_last_name from Ward, and district_name from District.", + "Group the results by case_number, alderman_first_name, alderman_last_name, and district_name." + ] + }, + "revisql-train:8650": { + "raw": "1. Map the name \"Douglas\" to the Community_Area table by filtering community_area_name to the exact value 'Douglas'.\n2. Map \"neighborhood areas\" to the neighborhood_name column in the Neighborhood table.\n3. Join Community_Area with Neighborhood on the shared community_area_no key to link the community area to its neighborhoods.\n4. Return only the neighborhood_name column from the Neighborhood side to produce the list.", + "steps": [ + "Map the name \"Douglas\" to the Community_Area table by filtering community_area_name to the exact value 'Douglas'.", + "Map \"neighborhood areas\" to the neighborhood_name column in the Neighborhood table.", + "Join Community_Area with Neighborhood on the shared community_area_no key to link the community area to its neighborhoods.", + "Return only the neighborhood_name column from the Neighborhood side to produce the list." + ] + }, + "revisql-train:8653": { + "raw": "1. Identify that aldermen's full names require the three columns from Ward—alderman_first_name, alderman_last_name, and alderman_name_suffix—and that location_description resides in Crime.\n2. Join Ward to Crime on ward_no to associate each reported crime with the alderman representing its ward.\n3. Join IUCR to Crime on iucr_no to access the primary and secondary classification descriptions needed for filtering.\n4. Apply the external knowledge mapping for \"arson by explosive\" by filtering IUCR.primary_description to 'ARSON' and IUCR.secondary_description to 'BY EXPLOSIVE'.\n5. Output the location_description from Crime along with the three alderman name columns from Ward.", + "steps": [ + "Identify that aldermen's full names require the three columns from Ward—alderman_first_name, alderman_last_name, and alderman_name_suffix—and that location_description resides in Crime.", + "Join Ward to Crime on ward_no to associate each reported crime with the alderman representing its ward.", + "Join IUCR to Crime on iucr_no to access the primary and secondary classification descriptions needed for filtering.", + "Apply the external knowledge mapping for \"arson by explosive\" by filtering IUCR.primary_description to 'ARSON' and IUCR.secondary_description to 'BY EXPLOSIVE'.", + "Output the location_description from Crime along with the three alderman name columns from Ward." + ] + }, + "revisql-train:8654": { + "raw": "1. Identify that occurrence date and location (latitude and longitude) are stored in the Crime table, while the crime classification descriptions are stored in the IUCR table.\n2. Join Crime to IUCR on the iucr_no column to link each crime report to its corresponding classification record.\n3. Filter IUCR using the external knowledge mappings: require primary_description to equal 'DECEPTIVE PRACTICE' and secondary_description to equal 'UNLAWFUL USE OF RECORDED SOUND'.\n4. Return the date, latitude, and longitude columns from the Crime table for all records satisfying both filter conditions.", + "steps": [ + "Identify that occurrence date and location (latitude and longitude) are stored in the Crime table, while the crime classification descriptions are stored in the IUCR table.", + "Join Crime to IUCR on the iucr_no column to link each crime report to its corresponding classification record.", + "Filter IUCR using the external knowledge mappings: require primary_description to equal 'DECEPTIVE PRACTICE' and secondary_description to equal 'UNLAWFUL USE OF RECORDED SOUND'.", + "Return the date, latitude, and longitude columns from the Crime table for all records satisfying both filter conditions." + ] + }, + "revisql-train:866": { + "raw": "1. Join the student table to registration on student_id, then join registration to course on course_id to connect each student with their course enrollments and satisfaction scores.\n2. Filter to rows where the course name is 'Machine Learning Theory' and the student's first and last names correspond to either Willie Rechert or Laughton Antonio.\n3. Apply the external knowledge that a higher sat value means greater satisfaction, and sort the filtered results by registration.sat in descending order.\n4. Restrict the output to the single top row using LIMIT 1 to obtain the more satisfied student.\n5. Return the student's first and last name columns, f_name and l_name.", + "steps": [ + "Join the student table to registration on student_id, then join registration to course on course_id to connect each student with their course enrollments and satisfaction scores.", + "Filter to rows where the course name is 'Machine Learning Theory' and the student's first and last names correspond to either Willie Rechert or Laughton Antonio.", + "Apply the external knowledge that a higher sat value means greater satisfaction, and sort the filtered results by registration.sat in descending order.", + "Restrict the output to the single top row using LIMIT 1 to obtain the more satisfied student.", + "Return the student's first and last name columns, f_name and l_name." + ] + }, + "revisql-train:8666": { + "raw": "1. Join Community_Area to Crime on the community_area_no key to link neighborhood names to crime records.\n2. Filter the joined rows to only those where community_area_name equals 'Bridgeport' per the external knowledge.\n3. Apply conditional aggregation by summing 1 for each Crime row where beat is less than 1000 and 0 for all other rows.\n4. Return the single aggregated numeric total as the final answer.", + "steps": [ + "Join Community_Area to Crime on the community_area_no key to link neighborhood names to crime records.", + "Filter the joined rows to only those where community_area_name equals 'Bridgeport' per the external knowledge.", + "Apply conditional aggregation by summing 1 for each Crime row where beat is less than 1000 and 0 for all other rows.", + "Return the single aggregated numeric total as the final answer." + ] + }, + "revisql-train:8670": { + "raw": "1. Map the external reference \"case JB107731\" to the `case_number` column in the Crime table with the exact value 'JB107731'.\n2. Join the Crime table to the District table using `district_no` as the join key to reach the district's address.\n3. Filter the Crime records to only the row where `case_number` equals 'JB107731'.\n4. Return the `address` column from the District table.", + "steps": [ + "Map the external reference \"case JB107731\" to the `case_number` column in the Crime table with the exact value 'JB107731'.", + "Join the Crime table to the District table using `district_no` as the join key to reach the district's address.", + "Filter the Crime records to only the row where `case_number` equals 'JB107731'.", + "Return the `address` column from the District table." + ] + }, + "revisql-train:8673": { + "raw": "1. From `Community_Area`, convert the text `population` to an integer after removing commas, order by that value descending, and isolate the single `community_area_no` with the highest population.\n2. Filter `Crime` to only records whose `community_area_no` equals the area identified in step 1.\n3. Within that filtered crime set, count total records and count records where `domestic` equals 'TRUE' using a conditional sum.\n4. Compute the percentage by dividing the domestic violence count by the total crime count and multiplying by 100.0.\n5. Return exactly one column: the calculated percentage labeled as `domestic_percentage`.", + "steps": [ + "From `Community_Area`, convert the text `population` to an integer after removing commas, order by that value descending, and isolate the single `community_area_no` with the highest population.", + "Filter `Crime` to only records whose `community_area_no` equals the area identified in step 1.", + "Within that filtered crime set, count total records and count records where `domestic` equals 'TRUE' using a conditional sum.", + "Compute the percentage by dividing the domestic violence count by the total crime count and multiplying by 100.0.", + "Return exactly one column: the calculated percentage labeled as `domestic_percentage`." + ] + }, + "revisql-train:8674": { + "raw": "1. Cast `Ward.Population` to an integer and isolate wards with population below 52,000.\n2. Join `Crime` to those wards on `ward_no` and compute the average `beat` across all crimes in that subset.\n3. Join `Crime` with `Ward` again on `ward_no`, retaining only crimes that occurred in wards with population below 52,000.\n4. Filter those crimes to rows where `beat` is greater than 0.9 multiplied by the average `beat` calculated in step 2.\n5. Return distinct values of `Crime.case_number`.", + "steps": [ + "Cast `Ward.Population` to an integer and isolate wards with population below 52,000.", + "Join `Crime` to those wards on `ward_no` and compute the average `beat` across all crimes in that subset.", + "Join `Crime` with `Ward` again on `ward_no`, retaining only crimes that occurred in wards with population below 52,000.", + "Filter those crimes to rows where `beat` is greater than 0.9 multiplied by the average `beat` calculated in step 2.", + "Return distinct values of `Crime.case_number`." + ] + }, + "revisql-train:8679": { + "raw": "1. Join the Crime table to the IUCR table on the shared iucr_no column so that the index_code classification is available for every crime record.\n2. Identify severe crimes using the external knowledge that index_code = 'I' denotes a severe crime.\n3. Tally the severe crimes by conditionally counting only rows where IUCR.index_code equals 'I'.\n4. Count all rows in the joined result to obtain the total number of crimes for the denominator.\n5. Compute the percentage by dividing the severe count by the total count and multiplying by 100.0.\n6. Return the final computed value as a single column named severe_percentage.", + "steps": [ + "Join the Crime table to the IUCR table on the shared iucr_no column so that the index_code classification is available for every crime record.", + "Identify severe crimes using the external knowledge that index_code = 'I' denotes a severe crime.", + "Tally the severe crimes by conditionally counting only rows where IUCR.index_code equals 'I'.", + "Count all rows in the joined result to obtain the total number of crimes for the denominator.", + "Compute the percentage by dividing the severe count by the total count and multiplying by 100.0.", + "Return the final computed value as a single column named severe_percentage." + ] + }, + "revisql-train:868": { + "raw": "1. Join the student table to the registration table on student_id, then join registration to the course table on course_id.\n2. Filter the course table to only rows where the name is Machine Learning Theory.\n3. Apply the external knowledge that UG means undergraduate and filter the student table to only rows where type equals UG.\n4. Count the student_id values from the student table to compute the total number of qualifying undergraduates.\n5. Return exactly one column: the count of student IDs.", + "steps": [ + "Join the student table to the registration table on student_id, then join registration to the course table on course_id.", + "Filter the course table to only rows where the name is Machine Learning Theory.", + "Apply the external knowledge that UG means undergraduate and filter the student table to only rows where type equals UG.", + "Count the student_id values from the student table to compute the total number of qualifying undergraduates.", + "Return exactly one column: the count of student IDs." + ] + }, + "revisql-train:8680": { + "raw": "1. Join the District and Crime tables on district_no to associate each crime with its district name.\n2. Filter the joined rows to only those where district_name equals 'Austin'.\n3. Group the filtered results by location_description, since \"kind of location\" corresponds to that column.\n4. Count case_number within each group to compute the number of crimes reported at each location.\n5. Order the groups by that count in descending order and return only the first row.\n6. The final output must be the location_description of that top location.", + "steps": [ + "Join the District and Crime tables on district_no to associate each crime with its district name.", + "Filter the joined rows to only those where district_name equals 'Austin'.", + "Group the filtered results by location_description, since \"kind of location\" corresponds to that column.", + "Count case_number within each group to compute the number of crimes reported at each location.", + "Order the groups by that count in descending order and return only the first row.", + "The final output must be the location_description of that top location." + ] + }, + "revisql-train:8687": { + "raw": "1. Join the Crime table to Community_Area on the shared community_area_no key to associate each incident with its geographic area.\n2. Filter the Crime rows to only those where the domestic column equals 'TRUE', matching the external knowledge that \"domestic crime\" means domestic = \"TRUE\".\n3. Group the joined results by community_area_no to tally the number of domestic crimes within each community area.\n4. Count the records per group, sort those counts in ascending order, and keep only the first row to obtain the minimum.\n5. Return the community_area_no column as the answer.", + "steps": [ + "Join the Crime table to Community_Area on the shared community_area_no key to associate each incident with its geographic area.", + "Filter the Crime rows to only those where the domestic column equals 'TRUE', matching the external knowledge that \"domestic crime\" means domestic = \"TRUE\".", + "Group the joined results by community_area_no to tally the number of domestic crimes within each community area.", + "Count the records per group, sort those counts in ascending order, and keep only the first row to obtain the minimum.", + "Return the community_area_no column as the answer." + ] + }, + "revisql-train:869": { + "raw": "1. Locate Willie Rechert in the student table by filtering f_name to 'Willie' and l_name to 'Rechert'.\n2. Join the RA table on student_id to find the research assistant assignment for that student.\n3. Join the prof table on prof_id to retrieve the advising professor's record.\n4. Return the professor's first_name and last_name columns as the full name.", + "steps": [ + "Locate Willie Rechert in the student table by filtering f_name to 'Willie' and l_name to 'Rechert'.", + "Join the RA table on student_id to find the research assistant assignment for that student.", + "Join the prof table on prof_id to retrieve the advising professor's record.", + "Return the professor's first_name and last_name columns as the full name." + ] + }, + "revisql-train:8690": { + "raw": "1. Left join Community_Area to Crime on community_area_no, then left join Crime to IUCR on iucr_no so every community is preserved.\n2. Group by community_area_no and compute a conditional count of rows where IUCR.secondary_description equals 'SOLICIT FOR PROSTITUTE' per community.\n3. Calculate the average of those per-community solicitation counts across all communities.\n4. Filter to retain only communities whose solicitation count is strictly greater than that average.\n5. Return community_area_name and population.", + "steps": [ + "Left join Community_Area to Crime on community_area_no, then left join Crime to IUCR on iucr_no so every community is preserved.", + "Group by community_area_no and compute a conditional count of rows where IUCR.secondary_description equals 'SOLICIT FOR PROSTITUTE' per community.", + "Calculate the average of those per-community solicitation counts across all communities.", + "Filter to retain only communities whose solicitation count is strictly greater than that average.", + "Return community_area_name and population." + ] + }, + "revisql-train:8692": { + "raw": "1. Join IUCR to Crime on iucr_no, then join Crime to District on district_no to combine crime classifications with district names.\n2. Calculate the vehicular hijacking average by counting joined rows where IUCR.secondary_description equals 'VEHICULAR HIJACKING' and dividing by the count of distinct District.district_name values appearing in those rows.\n3. Calculate the aggravated vehicular hijacking average by counting joined rows where IUCR.secondary_description equals 'AGGRAVATED VEHICULAR HIJACKING' and dividing by the count of distinct District.district_name values appearing in those rows.\n4. Cast all conditional counts to REAL before dividing to preserve decimal precision.\n5. Subtract the aggravated average from the vehicular average and return the single computed scalar aliased as difference.", + "steps": [ + "Join IUCR to Crime on iucr_no, then join Crime to District on district_no to combine crime classifications with district names.", + "Calculate the vehicular hijacking average by counting joined rows where IUCR.secondary_description equals 'VEHICULAR HIJACKING' and dividing by the count of distinct District.district_name values appearing in those rows.", + "Calculate the aggravated vehicular hijacking average by counting joined rows where IUCR.secondary_description equals 'AGGRAVATED VEHICULAR HIJACKING' and dividing by the count of distinct District.district_name values appearing in those rows.", + "Cast all conditional counts to REAL before dividing to preserve decimal precision.", + "Subtract the aggravated average from the vehicular average and return the single computed scalar aliased as difference." + ] + }, + "revisql-train:8695": { + "raw": "1. Identify the Ward table as the only source needed, since it holds both alderman names and population figures, requiring no joins.\n2. Map the requested \"first name of the aldermen\" to the `alderman_first_name` column.\n3. Map the condition \"more than 50,000 inhabitants\" to a filter on the `Population` column with the predicate `> 50000`.\n4. Return only the `alderman_first_name` column from rows in Ward that satisfy the population filter.", + "steps": [ + "Identify the Ward table as the only source needed, since it holds both alderman names and population figures, requiring no joins.", + "Map the requested \"first name of the aldermen\" to the `alderman_first_name` column.", + "Map the condition \"more than 50,000 inhabitants\" to a filter on the `Population` column with the predicate `> 50000`.", + "Return only the `alderman_first_name` column from rows in Ward that satisfy the population filter." + ] + }, + "revisql-train:8696": { + "raw": "1. Identify that FBI crime classifications reside in the FBI_Code table and individual crime incidents are recorded in the Crime table.\n2. Join FBI_Code to Crime on the shared fbi_code_no column to connect each crime report with its FBI classification.\n3. Use the external knowledge that \"Drug Abuse\" is stored in the title column of FBI_Code, and filter to rows where title equals 'Drug Abuse'.\n4. Return only the report_no column from the Crime table to list the report numbers for those crimes.", + "steps": [ + "Identify that FBI crime classifications reside in the FBI_Code table and individual crime incidents are recorded in the Crime table.", + "Join FBI_Code to Crime on the shared fbi_code_no column to connect each crime report with its FBI classification.", + "Use the external knowledge that \"Drug Abuse\" is stored in the title column of FBI_Code, and filter to rows where title equals 'Drug Abuse'.", + "Return only the report_no column from the Crime table to list the report numbers for those crimes." + ] + }, + "revisql-train:8699": { + "raw": "1. Start from the Crime table and join IUCR on the shared iucr_no to access the primary_description for each reported incident.\n2. Join Neighborhood to Crime on community_area_no to link individual crimes to their neighborhood names.\n3. Filter the results to only rows where neighborhood_name equals 'Hermosa', using the external knowledge that Hermosa is a neighborhood name.\n4. Apply a distinct count on primary_description to compute the number of unique crime types.\n5. Return that single aggregated count as the final answer.", + "steps": [ + "Start from the Crime table and join IUCR on the shared iucr_no to access the primary_description for each reported incident.", + "Join Neighborhood to Crime on community_area_no to link individual crimes to their neighborhood names.", + "Filter the results to only rows where neighborhood_name equals 'Hermosa', using the external knowledge that Hermosa is a neighborhood name.", + "Apply a distinct count on primary_description to compute the number of unique crime types.", + "Return that single aggregated count as the final answer." + ] + }, + "revisql-train:8700": { + "raw": "1. Join the District table to the Crime table on the district_no column to connect each commander with the cases in their district.\n2. Filter District rows where the commander column equals 'Ronald A. Pontecore Jr.'.\n3. Map the external knowledge so that \"person responsible for investigating\" refers to District.commander and \"domestic crime\" refers to Crime.domestic = 'TRUE'.\n4. Compute the total by summing a conditional expression that returns 1 when Crime.domestic is 'TRUE' and 0 otherwise.\n5. Return the single resulting aggregated count column.", + "steps": [ + "Join the District table to the Crime table on the district_no column to connect each commander with the cases in their district.", + "Filter District rows where the commander column equals 'Ronald A. Pontecore Jr.'.", + "Map the external knowledge so that \"person responsible for investigating\" refers to District.commander and \"domestic crime\" refers to Crime.domestic = 'TRUE'.", + "Compute the total by summing a conditional expression that returns 1 when Crime.domestic is 'TRUE' and 0 otherwise.", + "Return the single resulting aggregated count column." + ] + }, + "revisql-train:8704": { + "raw": "1. Join IUCR to Crime on iucr_no and Crime to District on district_no to connect crime classifications with district names.\n2. Filter IUCR rows where primary_description equals 'INTIMIDATION', mapping the question's \"intimidation-type crimes\" to that column and value.\n3. Group by District.district_name, since \"district\" refers to district_name, and count the intimidation crimes per district.\n4. Compute the maximum per-district count via a subquery that repeats the same joins, filter, and grouping.\n5. Return District.district_name only for groups whose count equals that maximum, using a HAVING clause.", + "steps": [ + "Join IUCR to Crime on iucr_no and Crime to District on district_no to connect crime classifications with district names.", + "Filter IUCR rows where primary_description equals 'INTIMIDATION', mapping the question's \"intimidation-type crimes\" to that column and value.", + "Group by District.district_name, since \"district\" refers to district_name, and count the intimidation crimes per district.", + "Compute the maximum per-district count via a subquery that repeats the same joins, filter, and grouping.", + "Return District.district_name only for groups whose count equals that maximum, using a HAVING clause." + ] + }, + "revisql-train:8705": { + "raw": "1. Join Community_Area to Crime on community_area_no, then Crime to IUCR on iucr_no to link neighborhood names, incident records, and crime type descriptions.\n2. Filter for rows where community_area_name is 'North Lawndale' and domestic is 'TRUE'.\n3. Group the results by IUCR.primary_description to aggregate each distinct domestic crime type.\n4. Order the groups by their record count in descending order to identify the most frequent type.\n5. Return only the IUCR.primary_description value for the single top-ranked group.", + "steps": [ + "Join Community_Area to Crime on community_area_no, then Crime to IUCR on iucr_no to link neighborhood names, incident records, and crime type descriptions.", + "Filter for rows where community_area_name is 'North Lawndale' and domestic is 'TRUE'.", + "Group the results by IUCR.primary_description to aggregate each distinct domestic crime type.", + "Order the groups by their record count in descending order to identify the most frequent type.", + "Return only the IUCR.primary_description value for the single top-ranked group." + ] + }, + "revisql-train:8709": { + "raw": "1. Use the `Crime` table to find reports where `location_description` is 'APARTMENT' and `arrest` is 'FALSE', applying the external knowledge that \"apartment crime\" maps to `location_description` = 'APARTMENT' and \"without arrest\" maps to `arrest` = 'FALSE'.\n2. Extract the distinct `ward_no` values from those filtered crime records to identify the relevant wards.\n3. Reference the `Ward` table, filtering to only the `ward_no`s found in step 2, and retrieve the `Population` column.\n4. Aggregate by calculating the average of `Population`, casting the text values to real numbers to ensure a numeric result.\n5. Return the computed average as a single column named `avg_population`.", + "steps": [ + "Use the `Crime` table to find reports where `location_description` is 'APARTMENT' and `arrest` is 'FALSE', applying the external knowledge that \"apartment crime\" maps to `location_description` = 'APARTMENT' and \"without arrest\" maps to `arrest` = 'FALSE'.", + "Extract the distinct `ward_no` values from those filtered crime records to identify the relevant wards.", + "Reference the `Ward` table, filtering to only the `ward_no`s found in step 2, and retrieve the `Population` column.", + "Aggregate by calculating the average of `Population`, casting the text values to real numbers to ensure a numeric result.", + "Return the computed average as a single column named `avg_population`." + ] + }, + "revisql-train:871": { + "raw": "1. Join the registration table to the course table on course_id to pair each student's satisfaction score with the corresponding course name.\n2. Filter the joined results to keep only rows where the course name is 'Machine Learning Theory'.\n3. Sum the sat values from registration to get total satisfaction.\n4. Count the student_id values from registration to get the number of students in that course.\n5. Cast the total satisfaction sum to a real number, divide by the student count, and return this single average satisfying degree.", + "steps": [ + "Join the registration table to the course table on course_id to pair each student's satisfaction score with the corresponding course name.", + "Filter the joined results to keep only rows where the course name is 'Machine Learning Theory'.", + "Sum the sat values from registration to get total satisfaction.", + "Count the student_id values from registration to get the number of students in that course.", + "Cast the total satisfaction sum to a real number, divide by the student count, and return this single average satisfying degree." + ] + }, + "revisql-train:8710": { + "raw": "1. Target the Ward table, as it contains both alderman names and ward population data; no joins are required.\n2. Select the alderman_first_name and alderman_last_name columns to produce the aldermen’s full names.\n3. Apply the external knowledge that “most crowded ward” means the highest Population values, and order the rows by Population in descending order.\n4. Limit the result to the first 5 rows to return only the top 5 most crowded wards.", + "steps": [ + "Target the Ward table, as it contains both alderman names and ward population data; no joins are required.", + "Select the alderman_first_name and alderman_last_name columns to produce the aldermen’s full names.", + "Apply the external knowledge that “most crowded ward” means the highest Population values, and order the rows by Population in descending order.", + "Limit the result to the first 5 rows to return only the top 5 most crowded wards." + ] + }, + "revisql-train:8711": { + "raw": "1. Join the Crime table to FBI_Code on the shared fbi_code_no key to access the classification for each crime record.\n2. Filter the joined rows to keep only those where FBI_Code.crime_against equals Property.\n3. Aggregate by counting all matching rows using COUNT(*).\n4. Return the resulting total in a single column named cnt.", + "steps": [ + "Join the Crime table to FBI_Code on the shared fbi_code_no key to access the classification for each crime record.", + "Filter the joined rows to keep only those where FBI_Code.crime_against equals Property.", + "Aggregate by counting all matching rows using COUNT(*).", + "Return the resulting total in a single column named cnt." + ] + }, + "revisql-train:8716": { + "raw": "1. Join the Crime and District tables on district_no to link every reported crime to its district and commanding officer.\n2. Filter the joined rows to keep only those where arrest equals 'FALSE', mapping the external knowledge that this indicates no arrest was made.\n3. Group the filtered results by the commander column from District, since the question asks for a commanding officer.\n4. Count report_no within each commander group to compute the total number of reported crimes with no arrest per district leader.\n5. Order the groups by that crime count in descending order and keep only the first row to isolate the highest number.\n6. Return the commander value from that single remaining row.", + "steps": [ + "Join the Crime and District tables on district_no to link every reported crime to its district and commanding officer.", + "Filter the joined rows to keep only those where arrest equals 'FALSE', mapping the external knowledge that this indicates no arrest was made.", + "Group the filtered results by the commander column from District, since the question asks for a commanding officer.", + "Count report_no within each commander group to compute the total number of reported crimes with no arrest per district leader.", + "Order the groups by that crime count in descending order and keep only the first row to isolate the highest number.", + "Return the commander value from that single remaining row." + ] + }, + "revisql-train:8718": { + "raw": "1. Join the District and Crime tables on district_no to connect district names to individual crime reports.\n2. Filter district_name to only the two values 'Deering' and 'Near West'.\n3. Filter Crime rows to those where location_description is exactly 'LIBRARY'.\n4. Group the joined results by district_name to aggregate incidents per district.\n5. Count the number of crime reports in each district, order the groups by that count from highest to lowest, and keep only the first row.\n6. Return the district_name column of the remaining top row.", + "steps": [ + "Join the District and Crime tables on district_no to connect district names to individual crime reports.", + "Filter district_name to only the two values 'Deering' and 'Near West'.", + "Filter Crime rows to those where location_description is exactly 'LIBRARY'.", + "Group the joined results by district_name to aggregate incidents per district.", + "Count the number of crime reports in each district, order the groups by that count from highest to lowest, and keep only the first row.", + "Return the district_name column of the remaining top row." + ] + }, + "revisql-train:8721": { + "raw": "1. In Community_Area, convert the text population values to integers by removing commas, sort ascending, and take the single community_area_no with the minimum population.\n2. In Crime, filter to keep only rows whose community_area_no matches the least-populated community area found in step 1.\n3. Group the filtered crime records by location_description.\n4. Order those groups by the count of incidents in descending order.\n5. Return the location_description from the top group, which is the most common location.", + "steps": [ + "In Community_Area, convert the text population values to integers by removing commas, sort ascending, and take the single community_area_no with the minimum population.", + "In Crime, filter to keep only rows whose community_area_no matches the least-populated community area found in step 1.", + "Group the filtered crime records by location_description.", + "Order those groups by the count of incidents in descending order.", + "Return the location_description from the top group, which is the most common location." + ] + }, + "revisql-train:8724": { + "raw": "1. Join the Crime table to Community_Area on community_area_no and to FBI_Code on fbi_code_no, using community_area_name for community names and the description column for crime types.\n2. Filter to South-side communities by trimming the side column and matching it to 'South'.\n3. Map the external knowledge description text to the FBI_Code description column, keeping only rows equal to the full text about unlawful taking, carrying, leading, or riding away of property.\n4. Group by community_area_name, count incidents per community, then order by that count descending and limit to the first row to get the community with the most reported incidents.\n5. Return the community_area_name column as the result.", + "steps": [ + "Join the Crime table to Community_Area on community_area_no and to FBI_Code on fbi_code_no, using community_area_name for community names and the description column for crime types.", + "Filter to South-side communities by trimming the side column and matching it to 'South'.", + "Map the external knowledge description text to the FBI_Code description column, keeping only rows equal to the full text about unlawful taking, carrying, leading, or riding away of property.", + "Group by community_area_name, count incidents per community, then order by that count descending and limit to the first row to get the community with the most reported incidents.", + "Return the community_area_name column as the result." + ] + }, + "revisql-train:8725": { + "raw": "1. Select the FBI_Code, Crime, and Community_Area tables.\n2. Join FBI_Code to Crime on fbi_code_no, then join Crime to Community_Area on community_area_no.\n3. Filter FBI_Code rows where crime_against equals Society using the external knowledge value.\n4. Filter Community_Area rows where community_area_name equals Englewood using the external knowledge value.\n5. Count the matching Crime records and return the total as a single numeric aggregate column.", + "steps": [ + "Select the FBI_Code, Crime, and Community_Area tables.", + "Join FBI_Code to Crime on fbi_code_no, then join Crime to Community_Area on community_area_no.", + "Filter FBI_Code rows where crime_against equals Society using the external knowledge value.", + "Filter Community_Area rows where community_area_name equals Englewood using the external knowledge value.", + "Count the matching Crime records and return the total as a single numeric aggregate column." + ] + }, + "revisql-train:8729": { + "raw": "1. Start with the Community_Area table alone; no joins are needed.\n2. Filter to rows where the population text is greater than 30000 by first removing any commas and casting the result to an integer.\n3. Trim whitespace from the side column and keep only rows where the side is North or South.\n4. Count how many communities remain for the South side and how many remain for the North side.\n5. Subtract the North community count from the South community count and return that single result as the column difference.", + "steps": [ + "Start with the Community_Area table alone; no joins are needed.", + "Filter to rows where the population text is greater than 30000 by first removing any commas and casting the result to an integer.", + "Trim whitespace from the side column and keep only rows where the side is North or South.", + "Count how many communities remain for the South side and how many remain for the North side.", + "Subtract the North community count from the South community count and return that single result as the column difference." + ] + }, + "revisql-train:8730": { + "raw": "1. Use the District table, which holds police district records and contact details.\n2. Filter on the district_name column for the value 'Near West', since external knowledge identifies this as the target district.\n3. Map \"all contact information\" to the four columns specified in external knowledge: phone, fax, tty, and twitter.\n4. No joins, aggregation, or ordering are needed; simply select the matching single row.\n5. Return exactly the four columns phone, fax, tty, and twitter.", + "steps": [ + "Use the District table, which holds police district records and contact details.", + "Filter on the district_name column for the value 'Near West', since external knowledge identifies this as the target district.", + "Map \"all contact information\" to the four columns specified in external knowledge: phone, fax, tty, and twitter.", + "No joins, aggregation, or ordering are needed; simply select the matching single row.", + "Return exactly the four columns phone, fax, tty, and twitter." + ] + }, + "revisql-train:8732": { + "raw": "1. Locate the incident classification table IUCR, which holds description fields.\n2. Filter to the single row where iucr_no = 275, mapping \"incident 275\" to that column.\n3. Map \"general description\" to primary_description and \"specific description\" to secondary_description.\n4. Return the primary_description and secondary_description values from that row.", + "steps": [ + "Locate the incident classification table IUCR, which holds description fields.", + "Filter to the single row where iucr_no = 275, mapping \"incident 275\" to that column.", + "Map \"general description\" to primary_description and \"specific description\" to secondary_description.", + "Return the primary_description and secondary_description values from that row." + ] + }, + "revisql-train:8735": { + "raw": "1. Join the Neighborhood table to the Community_Area table on the community_area_no key so each neighborhood is paired with its community area name.\n2. Use the external knowledge that \"Forest Glen\" is a value in the Community_Area community_area_name column.\n3. Apply a conditional aggregation that adds 1 for every joined row where community_area_name equals 'Forest Glen' and 0 otherwise, effectively counting only neighborhoods in that community.\n4. Return the single resulting numeric total as the answer.", + "steps": [ + "Join the Neighborhood table to the Community_Area table on the community_area_no key so each neighborhood is paired with its community area name.", + "Use the external knowledge that \"Forest Glen\" is a value in the Community_Area community_area_name column.", + "Apply a conditional aggregation that adds 1 for every joined row where community_area_name equals 'Forest Glen' and 0 otherwise, effectively counting only neighborhoods in that community.", + "Return the single resulting numeric total as the answer." + ] + }, + "revisql-train:8737": { + "raw": "1. Join the Crime table to FBI_Code on the fbi_code_no column to connect each crime report with its FBI classification title.\n2. Apply the external knowledge that individual crime cases are identified by report_no in Crime and that \"Weapons Violation\" is a value in the title column of FBI_Code.\n3. For every joined row, evaluate whether the FBI_Code title equals 'Weapons Violation', producing a value of 1 for matches and 0 for non-matches.\n4. Sum all of these conditional values to compute the total number of crime reports classified as \"Weapons Violation\".\n5. Return only this final aggregated count as the result.", + "steps": [ + "Join the Crime table to FBI_Code on the fbi_code_no column to connect each crime report with its FBI classification title.", + "Apply the external knowledge that individual crime cases are identified by report_no in Crime and that \"Weapons Violation\" is a value in the title column of FBI_Code.", + "For every joined row, evaluate whether the FBI_Code title equals 'Weapons Violation', producing a value of 1 for matches and 0 for non-matches.", + "Sum all of these conditional values to compute the total number of crime reports classified as \"Weapons Violation\".", + "Return only this final aggregated count as the result." + ] + }, + "revisql-train:8739": { + "raw": "1. Map the external incident number JB106545 to the `case_number` column in the Crime table.\n2. Filter Crime to the record where `case_number` equals 'JB106545' and retrieve its `district_no`.\n3. Join Crime with District on matching `district_no` values to link the incident to its district.\n4. Select `district_name` from District, applying DISTINCT to return the unique district name.", + "steps": [ + "Map the external incident number JB106545 to the `case_number` column in the Crime table.", + "Filter Crime to the record where `case_number` equals 'JB106545' and retrieve its `district_no`.", + "Join Crime with District on matching `district_no` values to link the incident to its district.", + "Select `district_name` from District, applying DISTINCT to return the unique district name." + ] + }, + "revisql-train:8741": { + "raw": "1. Map the external knowledge: \"communities\" refers to `community_area_name` in `Community_Area`, and \"fraud incident\" refers to `title` = 'Fraud' in `FBI_Code`.\n2. Join `FBI_Code` to `Crime` on `fbi_code_no` to link each crime report to its FBI classification.\n3. Join `Crime` to `Community_Area` on `community_area_no` to attach the community name to each report.\n4. Filter the joined rows to keep only those where `FBI_Code.title` equals 'Fraud'.\n5. Select distinct `community_area_name` from `Community_Area` to return each affected community once.", + "steps": [ + "Map the external knowledge: \"communities\" refers to `community_area_name` in `Community_Area`, and \"fraud incident\" refers to `title` = 'Fraud' in `FBI_Code`.", + "Join `FBI_Code` to `Crime` on `fbi_code_no` to link each crime report to its FBI classification.", + "Join `Crime` to `Community_Area` on `community_area_no` to attach the community name to each report.", + "Filter the joined rows to keep only those where `FBI_Code.title` equals 'Fraud'.", + "Select distinct `community_area_name` from `Community_Area` to return each affected community once." + ] + }, + "revisql-train:8742": { + "raw": "1. Filter the Community_Area table to the row where community_area_name equals 'Rogers Park'.\n2. Join Crime on community_area_no to get all incidents in that area, then join FBI_Code on fbi_code_no to reach the title column representing the major crime type.\n3. Group by title and count the number of crime reports for each major type.\n4. In a subquery that repeats the same joins and filter, find the maximum report count across all title groups.\n5. Return only the title(s) whose report count equals that maximum, yielding the most frequent major crime type(s) in Rogers Park.", + "steps": [ + "Filter the Community_Area table to the row where community_area_name equals 'Rogers Park'.", + "Join Crime on community_area_no to get all incidents in that area, then join FBI_Code on fbi_code_no to reach the title column representing the major crime type.", + "Group by title and count the number of crime reports for each major type.", + "In a subquery that repeats the same joins and filter, find the maximum report count across all title groups.", + "Return only the title(s) whose report count equals that maximum, yielding the most frequent major crime type(s) in Rogers Park." + ] + }, + "revisql-train:8745": { + "raw": "1. Use only the Ward table, since it contains both the ward identifier and the population data needed.\n2. Cast the text-stored Population column to integer so the values can be compared numerically rather than lexically.\n3. Compute the maximum of that casted Population across all rows in Ward to find the highest population value.\n4. Filter Ward to retain only the row(s) whose casted Population matches that maximum value.\n5. Return the ward_no column from the resulting row(s).", + "steps": [ + "Use only the Ward table, since it contains both the ward identifier and the population data needed.", + "Cast the text-stored Population column to integer so the values can be compared numerically rather than lexically.", + "Compute the maximum of that casted Population across all rows in Ward to find the highest population value.", + "Filter Ward to retain only the row(s) whose casted Population matches that maximum value.", + "Return the ward_no column from the resulting row(s)." + ] + }, + "revisql-train:8746": { + "raw": "1. Identify the Crime table as the source for incident details, since it contains the case_number, beat, and location_description columns.\n2. Apply the external knowledge to translate case JB112212 into a filter on the case_number column using the exact value 'JB112212'.\n3. Filter the Crime table to the single row where case_number equals 'JB112212'.\n4. Return the beat and location_description values from that row.", + "steps": [ + "Identify the Crime table as the source for incident details, since it contains the case_number, beat, and location_description columns.", + "Apply the external knowledge to translate case JB112212 into a filter on the case_number column using the exact value 'JB112212'.", + "Filter the Crime table to the single row where case_number equals 'JB112212'.", + "Return the beat and location_description values from that row." + ] + }, + "revisql-train:8747": { + "raw": "1. Use the FBI_Code table, which stores crime classifications and their associated FBI codes.\n2. Map the requested output \"FBI code\" to the fbi_code_no column.\n3. Map the given phrase \"The killing of one human being by another\" to the description column using the external knowledge.\n4. Filter to the row where description exactly matches that phrase.\n5. Return only the fbi_code_no column from the matched row.", + "steps": [ + "Use the FBI_Code table, which stores crime classifications and their associated FBI codes.", + "Map the requested output \"FBI code\" to the fbi_code_no column.", + "Map the given phrase \"The killing of one human being by another\" to the description column using the external knowledge.", + "Filter to the row where description exactly matches that phrase.", + "Return only the fbi_code_no column from the matched row." + ] + }, + "revisql-train:8748": { + "raw": "1. Use the external knowledge that \"Montclare\" maps to the community_area_name column in the Community_Area table.\n2. Join Community_Area to Crime on the community_area_no key to retrieve all crime records located in Montclare.\n3. Join Crime to Ward on the ward_no key to access the ward office addresses associated with those crimes.\n4. Filter the joined rows to keep only those where community_area_name equals 'Montclare'.\n5. Group the results by ward_office_address to produce a distinct list of addresses.\n6. Return only the ward_office_address column from the Ward table.", + "steps": [ + "Use the external knowledge that \"Montclare\" maps to the community_area_name column in the Community_Area table.", + "Join Community_Area to Crime on the community_area_no key to retrieve all crime records located in Montclare.", + "Join Crime to Ward on the ward_no key to access the ward office addresses associated with those crimes.", + "Filter the joined rows to keep only those where community_area_name equals 'Montclare'.", + "Group the results by ward_office_address to produce a distinct list of addresses.", + "Return only the ward_office_address column from the Ward table." + ] + }, + "revisql-train:8753": { + "raw": "1. Identify that report numbers are stored in the Crime table and commander names are stored in the District table.\n2. Join Crime to District on the shared district_no key to associate each crime with its district commander.\n3. Apply the external knowledge that \"Jill M. Stevens\" is a commander by filtering District.commander to equal 'Jill M. Stevens'.\n4. Select the report_no column from the Crime table and use DISTINCT to return only unique report numbers.\n5. Return solely the report_no values as the final result set.", + "steps": [ + "Identify that report numbers are stored in the Crime table and commander names are stored in the District table.", + "Join Crime to District on the shared district_no key to associate each crime with its district commander.", + "Apply the external knowledge that \"Jill M. Stevens\" is a commander by filtering District.commander to equal 'Jill M. Stevens'.", + "Select the report_no column from the Crime table and use DISTINCT to return only unique report numbers.", + "Return solely the report_no values as the final result set." + ] + }, + "revisql-train:8755": { + "raw": "1. Identify the Ward table as the only source needed, since it stores both ward numbers and alderman name fields.\n2. Map the requested full name to the three columns alderman_first_name, alderman_last_name, and alderman_name_suffix per the external knowledge.\n3. Filter to the single row where ward_no equals 21.\n4. Return exactly those three name columns with no joins, aggregation, or ordering required.", + "steps": [ + "Identify the Ward table as the only source needed, since it stores both ward numbers and alderman name fields.", + "Map the requested full name to the three columns alderman_first_name, alderman_last_name, and alderman_name_suffix per the external knowledge.", + "Filter to the single row where ward_no equals 21.", + "Return exactly those three name columns with no joins, aggregation, or ordering required." + ] + }, + "revisql-train:8765": { + "raw": "1. Join the IUCR table to the Crime table on the iucr_no column to link each incident's classification to its report details.\n2. Filter the joined rows to only those where IUCR.primary_description equals 'BATTERY', applying the external knowledge that the generic description maps to the primary_description column.\n3. Apply the external knowledge that \"do not have arrest made\" corresponds to Crime.arrest having the value 'FALSE'.\n4. Aggregate by computing a conditional count that sums 1 for every row where Crime.arrest is 'FALSE' and 0 otherwise, giving the total number of non-arrested battery incidents.\n5. Return exactly one column: the resulting aggregated numeric count.", + "steps": [ + "Join the IUCR table to the Crime table on the iucr_no column to link each incident's classification to its report details.", + "Filter the joined rows to only those where IUCR.primary_description equals 'BATTERY', applying the external knowledge that the generic description maps to the primary_description column.", + "Apply the external knowledge that \"do not have arrest made\" corresponds to Crime.arrest having the value 'FALSE'.", + "Aggregate by computing a conditional count that sums 1 for every row where Crime.arrest is 'FALSE' and 0 otherwise, giving the total number of non-arrested battery incidents.", + "Return exactly one column: the resulting aggregated numeric count." + ] + }, + "revisql-train:8767": { + "raw": "1. Join Crime to FBI_Code on the shared fbi_code_no column to link each incident to its FBI classification.\n2. Filter Crime records to January 2018 by applying the external date rule to the date column: the month portion is '1' and the year portion is '2018'.\n3. Apply the external knowledge mapping by restricting FBI_Code.crime_against to the exact value 'Property'.\n4. Compute the total by counting all rows that satisfy both filters.\n5. Return only that count as the final answer.", + "steps": [ + "Join Crime to FBI_Code on the shared fbi_code_no column to link each incident to its FBI classification.", + "Filter Crime records to January 2018 by applying the external date rule to the date column: the month portion is '1' and the year portion is '2018'.", + "Apply the external knowledge mapping by restricting FBI_Code.crime_against to the exact value 'Property'.", + "Compute the total by counting all rows that satisfy both filters.", + "Return only that count as the final answer." + ] + }, + "revisql-train:8775": { + "raw": "1. Query the inspections table; no joins are required.\n2. Map the 2016 criterion to the date column by restricting to rows where the year is 2016.\n3. Map the routine criterion to the type column using a LIKE 'Routine%' filter.\n4. Aggregate the filtered rows with COUNT(*) to get the total number.\n5. Return the single count column.", + "steps": [ + "Query the inspections table; no joins are required.", + "Map the 2016 criterion to the date column by restricting to rows where the year is 2016.", + "Map the routine criterion to the type column using a LIKE 'Routine%' filter.", + "Aggregate the filtered rows with COUNT(*) to get the total number.", + "Return the single count column." + ] + }, + "revisql-train:8776": { + "raw": "1. Filter the inspections table for rows where score equals 100, since external knowledge defines \"met all requirements\" as a perfect score.\n2. Inner join the inspections table with businesses on the business_id key to link each qualifying inspection to its restaurant.\n3. Apply DISTINCT to the name column from businesses to list each restaurant only once, regardless of how many perfect inspections it had.\n4. Return only that distinct name column as the result.", + "steps": [ + "Filter the inspections table for rows where score equals 100, since external knowledge defines \"met all requirements\" as a perfect score.", + "Inner join the inspections table with businesses on the business_id key to link each qualifying inspection to its restaurant.", + "Apply DISTINCT to the name column from businesses to list each restaurant only once, regardless of how many perfect inspections it had.", + "Return only that distinct name column as the result." + ] + }, + "revisql-train:8777": { + "raw": "1. Join the inspections table to the businesses table on the business_id foreign key to pair each inspection with its restaurant location.\n2. Filter the inspections rows to only those whose date falls in 2016 by extracting the year.\n3. Filter the businesses rows to only those whose city is one of the San Francisco variants: 'San Francisco', 'SAN FRANCISCO', 'SF', or 'S.F.'.\n4. Count distinct values of businesses.business_id to avoid double-counting restaurants with multiple inspections.\n5. Return only that count.", + "steps": [ + "Join the inspections table to the businesses table on the business_id foreign key to pair each inspection with its restaurant location.", + "Filter the inspections rows to only those whose date falls in 2016 by extracting the year.", + "Filter the businesses rows to only those whose city is one of the San Francisco variants: 'San Francisco', 'SAN FRANCISCO', 'SF', or 'S.F.'.", + "Count distinct values of businesses.business_id to avoid double-counting restaurants with multiple inspections.", + "Return only that count." + ] + }, + "revisql-train:8780": { + "raw": "1. Join the violations table with the businesses table on business_id to link each violation record to its restaurant name.\n2. Filter the violations to keep only rows where risk_category equals 'Low Risk'.\n3. Filter the violations to keep only rows where the year of the date column equals 2014.\n4. Select the name column from the businesses table, using DISTINCT to return each restaurant name only once.", + "steps": [ + "Join the violations table with the businesses table on business_id to link each violation record to its restaurant name.", + "Filter the violations to keep only rows where risk_category equals 'Low Risk'.", + "Filter the violations to keep only rows where the year of the date column equals 2014.", + "Select the name column from the businesses table, using DISTINCT to return each restaurant name only once." + ] + }, + "revisql-train:8784": { + "raw": "1. Inner join the inspections table with the businesses table on the business_id column to connect inspection records to business names.\n2. Filter the joined rows to keep only those belonging to the business named 'Tiramisu Kitchen'.\n3. Restrict the results to routine inspections by checking that the inspection type matches the pattern starting with 'Routine'.\n4. Further filter to keep only inspections with a score strictly greater than 70.\n5. Count the number of remaining qualifying inspection records and return that count.", + "steps": [ + "Inner join the inspections table with the businesses table on the business_id column to connect inspection records to business names.", + "Filter the joined rows to keep only those belonging to the business named 'Tiramisu Kitchen'.", + "Restrict the results to routine inspections by checking that the inspection type matches the pattern starting with 'Routine'.", + "Further filter to keep only inspections with a score strictly greater than 70.", + "Count the number of remaining qualifying inspection records and return that count." + ] + }, + "revisql-train:8788": { + "raw": "1. Join the inspections table with the businesses table on the business_id key to connect each inspection record to its eatery name.\n2. Filter the joined results to keep only rows where the businesses name column equals 'Tiramisu Kitchen'.\n3. Compute the average of the score column from the inspections table across all remaining rows.\n4. Return the single aggregated average score value as the final result.", + "steps": [ + "Join the inspections table with the businesses table on the business_id key to connect each inspection record to its eatery name.", + "Filter the joined results to keep only rows where the businesses name column equals 'Tiramisu Kitchen'.", + "Compute the average of the score column from the inspections table across all remaining rows.", + "Return the single aggregated average score value as the final result." + ] + }, + "revisql-train:8789": { + "raw": "1. Focus on the inspections table because the task is to count how many inspection records exist per business.\n2. Group the inspections data by business_id and count the rows in each group to obtain the number of inspections per business.\n3. In a subquery, compute the maximum value among all those per-business inspection counts to identify what “the most number” equals.\n4. In the main query, keep only the groups whose inspection count matches that maximum value using a HAVING filter.\n5. Return only the business_id column, as this is the Id number requested for the business(es) with the highest inspection count.", + "steps": [ + "Focus on the inspections table because the task is to count how many inspection records exist per business.", + "Group the inspections data by business_id and count the rows in each group to obtain the number of inspections per business.", + "In a subquery, compute the maximum value among all those per-business inspection counts to identify what “the most number” equals.", + "In the main query, keep only the groups whose inspection count matches that maximum value using a HAVING filter.", + "Return only the business_id column, as this is the Id number requested for the business(es) with the highest inspection count." + ] + }, + "revisql-train:8791": { + "raw": "1. Join the inspections table to the businesses table on business_id to connect inspection criteria with business names.\n2. Filter inspections to rows where score equals 100, corresponding to meeting all required standards.\n3. Further filter to rows where the inspection date is '2016-09-28' and the type is 'Routine - Unscheduled', matching the specified unscheduled routine inspection.\n4. Return the name column from the businesses table.", + "steps": [ + "Join the inspections table to the businesses table on business_id to connect inspection criteria with business names.", + "Filter inspections to rows where score equals 100, corresponding to meeting all required standards.", + "Further filter to rows where the inspection date is '2016-09-28' and the type is 'Routine - Unscheduled', matching the specified unscheduled routine inspection.", + "Return the name column from the businesses table." + ] + }, + "revisql-train:8792": { + "raw": "1. Join the violations table with the businesses table on the business_id key to associate each violation with the business name.\n2. Filter the violations to keep only rows where the risk_category is high risk.\n3. Group the joined records by business_id to count how many high-risk violations each business has.\n4. Order the grouped results by the violation count in descending order and restrict the output to the first row to isolate the maximum.\n5. Return the name column from the businesses table as the answer.", + "steps": [ + "Join the violations table with the businesses table on the business_id key to associate each violation with the business name.", + "Filter the violations to keep only rows where the risk_category is high risk.", + "Group the joined records by business_id to count how many high-risk violations each business has.", + "Order the grouped results by the violation count in descending order and restrict the output to the first row to isolate the maximum.", + "Return the name column from the businesses table as the answer." + ] + }, + "revisql-train:8796": { + "raw": "1. Join the inspections and businesses tables on business_id to associate each inspection with the business name.\n2. Filter the inspections to only rows where the type equals 'Complaint'.\n3. Group the joined records by business_id and name to aggregate per business.\n4. Count the number of complaint inspections for each business.\n5. Determine the maximum value among those per-business complaint counts.\n6. Return the name of the business whose complaint inspection count equals that maximum.", + "steps": [ + "Join the inspections and businesses tables on business_id to associate each inspection with the business name.", + "Filter the inspections to only rows where the type equals 'Complaint'.", + "Group the joined records by business_id and name to aggregate per business.", + "Count the number of complaint inspections for each business.", + "Determine the maximum value among those per-business complaint counts.", + "Return the name of the business whose complaint inspection count equals that maximum." + ] + }, + "revisql-train:88": { + "raw": "1. Target the `movies` table since it contains titles, directors, and popularity data.\n2. Filter rows where `director_name` equals 'Paul Thomas Anderson'.\n3. Compute the maximum `movie_popularity` within that director-specific subset.\n4. Keep only rows matching that maximum popularity to capture the most popular film(s).\n5. Return the `movie_title` column.", + "steps": [ + "Target the `movies` table since it contains titles, directors, and popularity data.", + "Filter rows where `director_name` equals 'Paul Thomas Anderson'.", + "Compute the maximum `movie_popularity` within that director-specific subset.", + "Keep only rows matching that maximum popularity to capture the most popular film(s).", + "Return the `movie_title` column." + ] + }, + "revisql-train:8802": { + "raw": "1. Join the inspections table with the businesses table on the business_id key to link each inspection record to its eatery name.\n2. Filter the joined rows to only those where the business name is exactly 'Chairman Bao'.\n3. Further filter to keep only inspections whose type is exactly 'Routine - Unscheduled'.\n4. Apply the external knowledge that the desired metric is the average score, meaning divide the sum of the score values by the count of matching inspections; this maps to aggregating the score column with an average function.\n5. Return exactly one column: the computed average score.", + "steps": [ + "Join the inspections table with the businesses table on the business_id key to link each inspection record to its eatery name.", + "Filter the joined rows to only those where the business name is exactly 'Chairman Bao'.", + "Further filter to keep only inspections whose type is exactly 'Routine - Unscheduled'.", + "Apply the external knowledge that the desired metric is the average score, meaning divide the sum of the score values by the count of matching inspections; this maps to aggregating the score column with an average function.", + "Return exactly one column: the computed average score." + ] + }, + "revisql-train:8806": { + "raw": "1. Use the businesses table since it holds the application_date and unique business_id for each eatery.\n2. Filter rows to those with an application_date in 2012, which can be done by checking the year portion equals 2012.\n3. Count the business_id values to compute the total number of eateries that applied in that year.\n4. Return the resulting count.", + "steps": [ + "Use the businesses table since it holds the application_date and unique business_id for each eatery.", + "Filter rows to those with an application_date in 2012, which can be done by checking the year portion equals 2012.", + "Count the business_id values to compute the total number of eateries that applied in that year.", + "Return the resulting count." + ] + }, + "revisql-train:8810": { + "raw": "1. In the violations table, filter to rows where risk_category equals 'High Risk' (the highest health and safety hazards) and the violation date falls in 2016.\n2. Select distinct business_id from those filtered rows so each establishment is counted only once regardless of multiple violations.\n3. Join this set of business_ids to the businesses table on business_id to get the city for each qualifying establishment.\n4. Group by city, count the establishments in each city, and sort those counts from highest to lowest.\n5. Return only the city column from the first row of that ordered result.", + "steps": [ + "In the violations table, filter to rows where risk_category equals 'High Risk' (the highest health and safety hazards) and the violation date falls in 2016.", + "Select distinct business_id from those filtered rows so each establishment is counted only once regardless of multiple violations.", + "Join this set of business_ids to the businesses table on business_id to get the city for each qualifying establishment.", + "Group by city, count the establishments in each city, and sort those counts from highest to lowest.", + "Return only the city column from the first row of that ordered result." + ] + }, + "revisql-train:8812": { + "raw": "1. Join the violations table to the businesses table on the business_id column to link each violation to its business name.\n2. Filter the joined rows to only those where businesses.name equals 'Tiramisu Kitchen', mapping the external knowledge that Tiramisu Kitchen is the business name.\n3. Further filter to only rows where violations.risk_category equals 'High Risk', mapping the external knowledge that high risk violations use that exact category value.\n4. Count the number of matching violation records, aggregating on the violations table's business_id.\n5. Return the resulting count as the single output column.", + "steps": [ + "Join the violations table to the businesses table on the business_id column to link each violation to its business name.", + "Filter the joined rows to only those where businesses.name equals 'Tiramisu Kitchen', mapping the external knowledge that Tiramisu Kitchen is the business name.", + "Further filter to only rows where violations.risk_category equals 'High Risk', mapping the external knowledge that high risk violations use that exact category value.", + "Count the number of matching violation records, aggregating on the violations table's business_id.", + "Return the resulting count as the single output column." + ] + }, + "revisql-train:8824": { + "raw": "1. Target the violations table because it stores risk_category and description for each eatery (business).\n2. Filter to rows where risk_category equals 'Low Risk', applying the external knowledge mapping for low risk violations.\n3. Further filter to rows where description exactly matches 'Unpermitted food facility'.\n4. Count distinct business_id values to ensure each eatery is only counted once.\n5. Return the resulting count as the answer column.", + "steps": [ + "Target the violations table because it stores risk_category and description for each eatery (business).", + "Filter to rows where risk_category equals 'Low Risk', applying the external knowledge mapping for low risk violations.", + "Further filter to rows where description exactly matches 'Unpermitted food facility'.", + "Count distinct business_id values to ensure each eatery is only counted once.", + "Return the resulting count as the answer column." + ] + }, + "revisql-train:8825": { + "raw": "1. Use the violations table since it contains the eatery identifier, risk_category, and description.\n2. Translate \"eateries' IDs\" into the business_id column based on the external knowledge.\n3. Filter rows where violation_type_id equals the text value '103101', mapping from the given \"violation ID of 103101\".\n4. Return exactly the three columns business_id, risk_category, and description.\n5. No table joins, aggregation, or ordering are needed because all required data resides in violations.", + "steps": [ + "Use the violations table since it contains the eatery identifier, risk_category, and description.", + "Translate \"eateries' IDs\" into the business_id column based on the external knowledge.", + "Filter rows where violation_type_id equals the text value '103101', mapping from the given \"violation ID of 103101\".", + "Return exactly the three columns business_id, risk_category, and description.", + "No table joins, aggregation, or ordering are needed because all required data resides in violations." + ] + }, + "revisql-train:8826": { + "raw": "1. Map eateries to the businesses table and highest score to the score column in inspections.\n2. Join inspections and businesses on business_id to link each inspection record to its eatery's city.\n3. Filter for businesses in 'SAN BRUNO' and, in a subquery joined on the same business_id, compute the maximum inspection score achieved by any San Bruno eatery.\n4. In the main query, keep only San Bruno inspection rows whose score equals that subquery maximum.\n5. Return the inspection date column and order the results by date in ascending order.", + "steps": [ + "Map eateries to the businesses table and highest score to the score column in inspections.", + "Join inspections and businesses on business_id to link each inspection record to its eatery's city.", + "Filter for businesses in 'SAN BRUNO' and, in a subquery joined on the same business_id, compute the maximum inspection score achieved by any San Bruno eatery.", + "In the main query, keep only San Bruno inspection rows whose score equals that subquery maximum.", + "Return the inspection date column and order the results by date in ascending order." + ] + }, + "revisql-train:8828": { + "raw": "1. Join the violations table to the businesses table on the business_id column to connect each violation to its eatery name.\n2. Filter the businesses table to only keep rows where the name is STARBUCKS.\n3. Filter the violations table to only keep rows where the risk_category equals High Risk.\n4. Select the violation_type_id and description columns from the violations table.\n5. Apply DISTINCT to the selected columns so the final result contains only unique violation type and description pairs.", + "steps": [ + "Join the violations table to the businesses table on the business_id column to connect each violation to its eatery name.", + "Filter the businesses table to only keep rows where the name is STARBUCKS.", + "Filter the violations table to only keep rows where the risk_category equals High Risk.", + "Select the violation_type_id and description columns from the violations table.", + "Apply DISTINCT to the selected columns so the final result contains only unique violation type and description pairs." + ] + }, + "revisql-train:8829": { + "raw": "1. Start with the inspections table to retrieve the required date, score, and type columns.\n2. Join the inspections table to the businesses table on the business_id key to access each eatery's tax code.\n3. Filter the results to only keep rows where the businesses table's tax_code column equals 'AA', mapping the external knowledge for tax code AA.\n4. Return the date, score, and type columns from the inspections table.", + "steps": [ + "Start with the inspections table to retrieve the required date, score, and type columns.", + "Join the inspections table to the businesses table on the business_id key to access each eatery's tax code.", + "Filter the results to only keep rows where the businesses table's tax_code column equals 'AA', mapping the external knowledge for tax code AA.", + "Return the date, score, and type columns from the inspections table." + ] + }, + "revisql-train:883": { + "raw": "1. Join the course table with the registration table on the course_id key to connect course names with student enrollment records.\n2. Filter the joined rows to only those where the course name is 'Statistical learning'.\n3. Count distinct student_id values from the registration table to compute the total number of students enrolled.\n4. Return exactly one column: the count of distinct student IDs.", + "steps": [ + "Join the course table with the registration table on the course_id key to connect course names with student enrollment records.", + "Filter the joined rows to only those where the course name is 'Statistical learning'.", + "Count distinct student_id values from the registration table to compute the total number of students enrolled.", + "Return exactly one column: the count of distinct student IDs." + ] + }, + "revisql-train:8831": { + "raw": "1. Identify that violation dates, risk categories, and descriptions are stored in the violations table, while eatery names and owner information are in the businesses table.\n2. Join violations to businesses on the business_id key to connect each violation record to its corresponding eatery.\n3. Use the external knowledge mapping to filter the businesses table to rows where owner_name is exactly 'Jade Chocolates LLC'.\n4. Return the columns date, risk_category, and description from violations, and the name column from businesses.", + "steps": [ + "Identify that violation dates, risk categories, and descriptions are stored in the violations table, while eatery names and owner information are in the businesses table.", + "Join violations to businesses on the business_id key to connect each violation record to its corresponding eatery.", + "Use the external knowledge mapping to filter the businesses table to rows where owner_name is exactly 'Jade Chocolates LLC'.", + "Return the columns date, risk_category, and description from violations, and the name column from businesses." + ] + }, + "revisql-train:8833": { + "raw": "1. Filter the violations table to rows where `date` equals '2014-06-03' and `risk_category` equals 'High Risk', using the external knowledge to map the question's date and risk wording to these exact column values.\n2. Inner join the filtered violations with the businesses table on `business_id` to link each violation to its corresponding eatery.\n3. Apply DISTINCT to avoid duplicate rows, since one business may have multiple high-risk violations on that single day.\n4. Return the `name`, `city`, and `tax_code` columns from the businesses table.", + "steps": [ + "Filter the violations table to rows where `date` equals '2014-06-03' and `risk_category` equals 'High Risk', using the external knowledge to map the question's date and risk wording to these exact column values.", + "Inner join the filtered violations with the businesses table on `business_id` to link each violation to its corresponding eatery.", + "Apply DISTINCT to avoid duplicate rows, since one business may have multiple high-risk violations on that single day.", + "Return the `name`, `city`, and `tax_code` columns from the businesses table." + ] + }, + "revisql-train:8834": { + "raw": "1. Join inspections and businesses on business_id to link each inspection record to its restaurant name.\n2. Filter to rows where businesses.name equals 'El Aji Peruvian Restaurant'.\n3. Compute the maximum inspections.score among those rows to find the highest inspection score for that restaurant.\n4. Join the inspections data back to that maximum score result, retaining only rows where inspections.score matches the computed maximum.\n5. Return the distinct values of inspections.type from the matching rows.", + "steps": [ + "Join inspections and businesses on business_id to link each inspection record to its restaurant name.", + "Filter to rows where businesses.name equals 'El Aji Peruvian Restaurant'.", + "Compute the maximum inspections.score among those rows to find the highest inspection score for that restaurant.", + "Join the inspections data back to that maximum score result, retaining only rows where inspections.score matches the computed maximum.", + "Return the distinct values of inspections.type from the matching rows." + ] + }, + "revisql-train:8838": { + "raw": "1. Start with the `businesses` table because the question asks for businesses at a specific location.\n2. Map the location details from the external knowledge to columns: filter `address` to exactly '1825 POST St #223' and `city` to exactly 'SAN FRANCISCO'.\n3. Combine both conditions so only businesses matching the full address and city are kept.\n4. Apply `COUNT` on `business_id` to get the total number of matching businesses.\n5. Return the resulting count as the single output column.", + "steps": [ + "Start with the `businesses` table because the question asks for businesses at a specific location.", + "Map the location details from the external knowledge to columns: filter `address` to exactly '1825 POST St #223' and `city` to exactly 'SAN FRANCISCO'.", + "Combine both conditions so only businesses matching the full address and city are kept.", + "Apply `COUNT` on `business_id` to get the total number of matching businesses.", + "Return the resulting count as the single output column." + ] + }, + "revisql-train:8844": { + "raw": "1. Join the violations table with the businesses table on the business_id column to link each violation’s risk category with the corresponding business’s postal code.\n2. Filter the businesses table to only keep rows where postal_code equals 94117.\n3. Filter the violations table to only keep rows where risk_category is 'High Risk', applying the external knowledge that defines high risk category.\n4. Use COUNT DISTINCT on the businesses table’s business_id to total unique businesses that satisfy both filters, preventing duplicate counts from multiple violations.\n5. Return only that aggregated count of distinct business_id.", + "steps": [ + "Join the violations table with the businesses table on the business_id column to link each violation’s risk category with the corresponding business’s postal code.", + "Filter the businesses table to only keep rows where postal_code equals 94117.", + "Filter the violations table to only keep rows where risk_category is 'High Risk', applying the external knowledge that defines high risk category.", + "Use COUNT DISTINCT on the businesses table’s business_id to total unique businesses that satisfy both filters, preventing duplicate counts from multiple violations.", + "Return only that aggregated count of distinct business_id." + ] + }, + "revisql-train:8848": { + "raw": "1. Start with the `violations` and `businesses` tables, since the violation criteria and owner information are stored separately.\n2. Inner join the two tables on `business_id` to link each violation record to its corresponding business.\n3. Filter the `violations` side by applying the external knowledge: keep only rows where `risk_category` is 'High Risk', `violation_type_id` is 103109, and `description` is 'Unclean or unsanitary food contact surfaces'.\n4. Use `DISTINCT` on the owner results because a single business may have multiple matching violations and the question asks for the owners, not every occurrence.\n5. Return only the `owner_name` column.", + "steps": [ + "Start with the `violations` and `businesses` tables, since the violation criteria and owner information are stored separately.", + "Inner join the two tables on `business_id` to link each violation record to its corresponding business.", + "Filter the `violations` side by applying the external knowledge: keep only rows where `risk_category` is 'High Risk', `violation_type_id` is 103109, and `description` is 'Unclean or unsanitary food contact surfaces'.", + "Use `DISTINCT` on the owner results because a single business may have multiple matching violations and the question asks for the owners, not every occurrence.", + "Return only the `owner_name` column." + ] + }, + "revisql-train:8849": { + "raw": "1. Join the `inspections` table with the `businesses` table on the `business_id` column to connect inspection scores with owner location and business names.\n2. Filter the `businesses` records to only those whose `owner_city` is 'Cameron Park', using the external knowledge that Cameron Park is a city name.\n3. Filter the `inspections` records to only those with a `score` of exactly 100.\n4. Return the distinct values of the `name` column from `businesses` to list each qualifying business once without duplicates.", + "steps": [ + "Join the `inspections` table with the `businesses` table on the `business_id` column to connect inspection scores with owner location and business names.", + "Filter the `businesses` records to only those whose `owner_city` is 'Cameron Park', using the external knowledge that Cameron Park is a city name.", + "Filter the `inspections` records to only those with a `score` of exactly 100.", + "Return the distinct values of the `name` column from `businesses` to list each qualifying business once without duplicates." + ] + }, + "revisql-train:8850": { + "raw": "1. Join the violations table with the businesses table on the business_id key to connect violation records with business location data.\n2. Filter the businesses table to only include rows where business_id is between 30 and 50 inclusive.\n3. Apply the location constraints on the businesses table: require address to exactly equal '747 IRVING St' and city to match 'San Francisco' using a LIKE condition.\n4. Return only distinct violation_type_id values from the violations table.", + "steps": [ + "Join the violations table with the businesses table on the business_id key to connect violation records with business location data.", + "Filter the businesses table to only include rows where business_id is between 30 and 50 inclusive.", + "Apply the location constraints on the businesses table: require address to exactly equal '747 IRVING St' and city to match 'San Francisco' using a LIKE condition.", + "Return only distinct violation_type_id values from the violations table." + ] + }, + "revisql-train:8851": { + "raw": "1. Map the external violation description to the violations table by filtering violation_type_id to 103156 and date to 2014-06-12.\n2. Join the businesses table on business_id to retrieve owner information for matching businesses.\n3. Select the owner_name column from the businesses side.\n4. Use DISTINCT on owner_name to ensure each owner appears only once.", + "steps": [ + "Map the external violation description to the violations table by filtering violation_type_id to 103156 and date to 2014-06-12.", + "Join the businesses table on business_id to retrieve owner information for matching businesses.", + "Select the owner_name column from the businesses side.", + "Use DISTINCT on owner_name to ensure each owner appears only once." + ] + }, + "revisql-train:8859": { + "raw": "1. Join the beers table to the breweries table on beers.brewery_id matching breweries.id.\n2. Filter the joined rows to only those where breweries.name equals 'Stevens Point Brewery'.\n3. For the numerator, sum a conditional indicator that returns 1 when beers.style is 'American Adjunct Lager' and 0 otherwise.\n4. For the denominator, count all beers from that brewery (e.g., beers.brewery_id).\n5. Cast the numerator to REAL, multiply by 100, divide by the denominator, and return a single column containing the computed percentage.", + "steps": [ + "Join the beers table to the breweries table on beers.brewery_id matching breweries.id.", + "Filter the joined rows to only those where breweries.name equals 'Stevens Point Brewery'.", + "For the numerator, sum a conditional indicator that returns 1 when beers.style is 'American Adjunct Lager' and 0 otherwise.", + "For the denominator, count all beers from that brewery (e.g., beers.brewery_id).", + "Cast the numerator to REAL, multiply by 100, divide by the denominator, and return a single column containing the computed percentage." + ] + }, + "revisql-train:886": { + "raw": "1. Join the RA table with prof on prof_id and with student on student_id to access the professor's name and each student's type.\n2. Filter to only rows where prof.first_name is 'Ogdon' and prof.last_name is 'Zywicki'.\n3. Within the filtered group, compute a conditional sum that counts 1 when student.type equals 'TPG' (taught postgraduate) and 0 otherwise to get the numerator.\n4. Count all RA.student_id records for the same professor to serve as the denominator.\n5. Calculate the percentage by casting the numerator to a real number, multiplying by 100, and dividing by the denominator.\n6. Return the single resulting percentage value.", + "steps": [ + "Join the RA table with prof on prof_id and with student on student_id to access the professor's name and each student's type.", + "Filter to only rows where prof.first_name is 'Ogdon' and prof.last_name is 'Zywicki'.", + "Within the filtered group, compute a conditional sum that counts 1 when student.type equals 'TPG' (taught postgraduate) and 0 otherwise to get the numerator.", + "Count all RA.student_id records for the same professor to serve as the denominator.", + "Calculate the percentage by casting the numerator to a real number, multiplying by 100, and dividing by the denominator.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:8868": { + "raw": "1. Map the recipe name \"Raspberry Chiffon Pie\" to the title column in the Recipe table.\n2. Join the Recipe table with the Nutrition table on the recipe_id key to access nutritional data for that recipe.\n3. Filter the results to only the row where Recipe.title equals \"Raspberry Chiffon Pie\".\n4. Return the calories column from the Nutrition table as the answer.", + "steps": [ + "Map the recipe name \"Raspberry Chiffon Pie\" to the title column in the Recipe table.", + "Join the Recipe table with the Nutrition table on the recipe_id key to access nutritional data for that recipe.", + "Filter the results to only the row where Recipe.title equals \"Raspberry Chiffon Pie\".", + "Return the calories column from the Nutrition table as the answer." + ] + }, + "revisql-train:8872": { + "raw": "1. Filter the Ingredient table to rows where the name equals graham cracker crumbs, applying the external knowledge that this string is an ingredient name.\n2. Join the Quantity table on ingredient_id to connect the matched ingredient to the recipes that include it.\n3. Count distinct recipe_id values from the joined result so each recipe is counted only once.\n4. Return that single numeric count.", + "steps": [ + "Filter the Ingredient table to rows where the name equals graham cracker crumbs, applying the external knowledge that this string is an ingredient name.", + "Join the Quantity table on ingredient_id to connect the matched ingredient to the recipes that include it.", + "Count distinct recipe_id values from the joined result so each recipe is counted only once.", + "Return that single numeric count." + ] + }, + "revisql-train:8876": { + "raw": "1. Map the recipe name \"turkey tenderloin bundles\" from the external knowledge to the `title` column in the `Recipe` table.\n2. Identify that the requested calorie data resides in the `calories` column of the `Nutrition` table.\n3. Join `Recipe` with `Nutrition` using the shared `recipe_id` foreign key to connect the recipe to its nutrients.\n4. Filter the result to only the row where `Recipe.title` exactly matches \"Turkey Tenderloin Bundles\".\n5. Return the single `calories` column from the `Nutrition` table.", + "steps": [ + "Map the recipe name \"turkey tenderloin bundles\" from the external knowledge to the `title` column in the `Recipe` table.", + "Identify that the requested calorie data resides in the `calories` column of the `Nutrition` table.", + "Join `Recipe` with `Nutrition` using the shared `recipe_id` foreign key to connect the recipe to its nutrients.", + "Filter the result to only the row where `Recipe.title` exactly matches \"Turkey Tenderloin Bundles\".", + "Return the single `calories` column from the `Nutrition` table." + ] + }, + "revisql-train:8879": { + "raw": "1. Start with the Ingredient table and filter rows where the `name` column equals 'seedless red grapes', using the external knowledge that this is an ingredient name.\n2. Inner join the Quantity table on `ingredient_id` to link each matching ingredient to every recipe it appears in.\n3. Apply `COUNT(*)` to the joined result to total how many times the ingredient appears across recipes.\n4. Return exactly one column: the count.", + "steps": [ + "Start with the Ingredient table and filter rows where the `name` column equals 'seedless red grapes', using the external knowledge that this is an ingredient name.", + "Inner join the Quantity table on `ingredient_id` to link each matching ingredient to every recipe it appears in.", + "Apply `COUNT(*)` to the joined result to total how many times the ingredient appears across recipes.", + "Return exactly one column: the count." + ] + }, + "revisql-train:888": { + "raw": "1. Start from the course table because the question asks about counting courses.\n2. Map \"highest difficulty\" to the maximum value in the diff column, using the external knowledge that diff represents difficulty and higher values indicate greater difficulty.\n3. Compute the maximum diff value across all rows in the course table to determine the highest difficulty level present in the data.\n4. Filter the course table to only those rows where diff equals that maximum value.\n5. Count the remaining rows and return that single count.", + "steps": [ + "Start from the course table because the question asks about counting courses.", + "Map \"highest difficulty\" to the maximum value in the diff column, using the external knowledge that diff represents difficulty and higher values indicate greater difficulty.", + "Compute the maximum diff value across all rows in the course table to determine the highest difficulty level present in the data.", + "Filter the course table to only those rows where diff equals that maximum value.", + "Count the remaining rows and return that single count." + ] + }, + "revisql-train:8882": { + "raw": "1. Join the Ingredient and Quantity tables on ingredient_id to link each ingredient's name to its appearances in recipes.\n2. Group by ingredient_id and name to aggregate usage per unique ingredient.\n3. Count distinct recipe_id within each group to measure how many different recipes use the ingredient, mapping \"most widely used\" to the highest breadth of recipe usage.\n4. Order the grouped results by this distinct recipe count in descending order so the most widely used ingredient ranks first.\n5. Limit the result to the single top row.\n6. Return only the name column from the Ingredient table.", + "steps": [ + "Join the Ingredient and Quantity tables on ingredient_id to link each ingredient's name to its appearances in recipes.", + "Group by ingredient_id and name to aggregate usage per unique ingredient.", + "Count distinct recipe_id within each group to measure how many different recipes use the ingredient, mapping \"most widely used\" to the highest breadth of recipe usage.", + "Order the grouped results by this distinct recipe count in descending order so the most widely used ingredient ranks first.", + "Limit the result to the single top row.", + "Return only the name column from the Ingredient table." + ] + }, + "revisql-train:8889": { + "raw": "1. Filter the Ingredient table to rows where the name column equals 'coarsely ground black pepper', mapping the external knowledge string directly to that name value.\n2. Join Quantity to the filtered Ingredient result on ingredient_id to retrieve all recipe_ids linked to that ingredient.\n3. Join Nutrition to those Quantity rows on recipe_id to bring in the calorie data for each matching recipe.\n4. Compute the average of the calories column from the Nutrition table across all joined rows.\n5. Return the single calculated average value of calories.", + "steps": [ + "Filter the Ingredient table to rows where the name column equals 'coarsely ground black pepper', mapping the external knowledge string directly to that name value.", + "Join Quantity to the filtered Ingredient result on ingredient_id to retrieve all recipe_ids linked to that ingredient.", + "Join Nutrition to those Quantity rows on recipe_id to bring in the calorie data for each matching recipe.", + "Compute the average of the calories column from the Nutrition table across all joined rows.", + "Return the single calculated average value of calories." + ] + }, + "revisql-train:8890": { + "raw": "1. Map the phrase \"cause stomach pain\" to the Nutrition table using the external knowledge, which translates it to iron content greater than 20.\n2. Identify that recipe names are stored in the title column of the Recipe table, so Recipe must be queried.\n3. Join Recipe to Nutrition on the shared recipe_id key to associate each recipe name with its corresponding iron value.\n4. Filter the joined rows to keep only those where the iron value in Nutrition exceeds 20.\n5. Return exactly the title column from Recipe as the output.", + "steps": [ + "Map the phrase \"cause stomach pain\" to the Nutrition table using the external knowledge, which translates it to iron content greater than 20.", + "Identify that recipe names are stored in the title column of the Recipe table, so Recipe must be queried.", + "Join Recipe to Nutrition on the shared recipe_id key to associate each recipe name with its corresponding iron value.", + "Filter the joined rows to keep only those where the iron value in Nutrition exceeds 20.", + "Return exactly the title column from Recipe as the output." + ] + }, + "revisql-train:8891": { + "raw": "1. Map the recipe name \"Apricot Yogurt Parfaits\" to the `title` column in the `Recipe` table using the external knowledge and filter for that exact title.\n2. Join `Recipe` to `Quantity` on `recipe_id` to retrieve every ingredient line item associated with the matched recipe.\n3. Count all rows in the joined result, because each record in `Quantity` represents one ingredient in the recipe.\n4. Return the single aggregated count value as the answer.", + "steps": [ + "Map the recipe name \"Apricot Yogurt Parfaits\" to the `title` column in the `Recipe` table using the external knowledge and filter for that exact title.", + "Join `Recipe` to `Quantity` on `recipe_id` to retrieve every ingredient line item associated with the matched recipe.", + "Count all rows in the joined result, because each record in `Quantity` represents one ingredient in the recipe.", + "Return the single aggregated count value as the answer." + ] + }, + "revisql-train:8893": { + "raw": "1. Map the external knowledge phrase about helping the body's natural defence against illness and infection to the maximum vitamin_a value in the Nutrition table.\n2. Select the recipe_id or recipe_ids from Nutrition where vitamin_a equals the overall maximum vitamin_a found in that table.\n3. Filter the Quantity table to only include rows whose recipe_id matches those top recipes identified above.\n4. Count all matching rows in Quantity and return that single aggregated value as the total number of ingredients.", + "steps": [ + "Map the external knowledge phrase about helping the body's natural defence against illness and infection to the maximum vitamin_a value in the Nutrition table.", + "Select the recipe_id or recipe_ids from Nutrition where vitamin_a equals the overall maximum vitamin_a found in that table.", + "Filter the Quantity table to only include rows whose recipe_id matches those top recipes identified above.", + "Count all matching rows in Quantity and return that single aggregated value as the total number of ingredients." + ] + }, + "revisql-train:8898": { + "raw": "1. Start from the Recipe table and filter to rows where title equals 'Warm Chinese Chicken Salad'.\n2. Join Recipe to Quantity on recipe_id to connect the recipe with its ingredient entries.\n3. Join Quantity to Ingredient on ingredient_id to access ingredient names.\n4. Apply the filter that \"optional\" maps to Quantity.optional equal to 'TRUE'.\n5. Return only the name column from Ingredient.", + "steps": [ + "Start from the Recipe table and filter to rows where title equals 'Warm Chinese Chicken Salad'.", + "Join Recipe to Quantity on recipe_id to connect the recipe with its ingredient entries.", + "Join Quantity to Ingredient on ingredient_id to access ingredient names.", + "Apply the filter that \"optional\" maps to Quantity.optional equal to 'TRUE'.", + "Return only the name column from Ingredient." + ] + }, + "revisql-train:8901": { + "raw": "1. Join the Recipe and Nutrition tables on recipe_id to combine recipe titles, sources, and calorie values.\n2. Filter the joined rows to only those where the source column equals 'National Potato Board', using the external knowledge that this is a source value.\n3. Compute the maximum calories within that filtered subset, mapping \"highest calories\" to MAX(calories).\n4. Return the title column for the recipe(s) whose calories equal that computed maximum.", + "steps": [ + "Join the Recipe and Nutrition tables on recipe_id to combine recipe titles, sources, and calorie values.", + "Filter the joined rows to only those where the source column equals 'National Potato Board', using the external knowledge that this is a source value.", + "Compute the maximum calories within that filtered subset, mapping \"highest calories\" to MAX(calories).", + "Return the title column for the recipe(s) whose calories equal that computed maximum." + ] + }, + "revisql-train:8906": { + "raw": "1. Locate the recipe in the Recipe table by filtering the title column to 'Tomato-Cucumber Relish'.\n2. Join Recipe to Quantity on recipe_id to connect the recipe with its ingredient quantities.\n3. Join Quantity to Ingredient on ingredient_id to retrieve the ingredient details.\n4. Return the name column from the Ingredient table to list the ingredients.", + "steps": [ + "Locate the recipe in the Recipe table by filtering the title column to 'Tomato-Cucumber Relish'.", + "Join Recipe to Quantity on recipe_id to connect the recipe with its ingredient quantities.", + "Join Quantity to Ingredient on ingredient_id to retrieve the ingredient details.", + "Return the name column from the Ingredient table to list the ingredients." + ] + }, + "revisql-train:8908": { + "raw": "1. Determine the maximum `carbo` value in the `Nutrition` table to find the highest carbohydrate content.\n2. Collect the `recipe_id`(s) from `Nutrition` where `carbo` equals that maximum value.\n3. Join `Quantity` to `Ingredient` on `ingredient_id` to associate recipe components with their ingredient names.\n4. Limit the joined rows to quantities whose `recipe_id` matches the high-carb recipe(s) identified above.\n5. Apply the rationing condition by keeping only rows where `max_qty` equals `min_qty`.\n6. Return the `name` column from `Ingredient`.", + "steps": [ + "Determine the maximum `carbo` value in the `Nutrition` table to find the highest carbohydrate content.", + "Collect the `recipe_id`(s) from `Nutrition` where `carbo` equals that maximum value.", + "Join `Quantity` to `Ingredient` on `ingredient_id` to associate recipe components with their ingredient names.", + "Limit the joined rows to quantities whose `recipe_id` matches the high-carb recipe(s) identified above.", + "Apply the rationing condition by keeping only rows where `max_qty` equals `min_qty`.", + "Return the `name` column from `Ingredient`." + ] + }, + "revisql-train:8915": { + "raw": "1. Join Recipe to Quantity on recipe_id and Quantity to Ingredient on ingredient_id to link each recipe with its ingredient names.\n2. Map total time to the sum of prep_min, cook_min, and stnd_min from Recipe, and include the recipe title in the output.\n3. Group the joined rows by recipe_id to enable aggregate filtering on the complete set of ingredients per recipe.\n4. Use a HAVING clause to restrict the results to recipes that contain exactly one distinct ingredient name overall.\n5. In the same HAVING clause, require that the recipe includes 'lima beans' in its ingredient set; combined with step 4, this guarantees lima beans is the sole ingredient.\n6. Return the recipe title and the computed total_time columns.", + "steps": [ + "Join Recipe to Quantity on recipe_id and Quantity to Ingredient on ingredient_id to link each recipe with its ingredient names.", + "Map total time to the sum of prep_min, cook_min, and stnd_min from Recipe, and include the recipe title in the output.", + "Group the joined rows by recipe_id to enable aggregate filtering on the complete set of ingredients per recipe.", + "Use a HAVING clause to restrict the results to recipes that contain exactly one distinct ingredient name overall.", + "In the same HAVING clause, require that the recipe includes 'lima beans' in its ingredient set; combined with step 4, this guarantees lima beans is the sole ingredient.", + "Return the recipe title and the computed total_time columns." + ] + }, + "revisql-train:8919": { + "raw": "1. Map the recipe name \"Raspberry Chiffon Pie\" to the `title` column in the `Recipe` table and filter for that exact recipe.\n2. Join the `Quantity` table to `Recipe` on the shared `recipe_id` key to retrieve all ingredient rows linked to that recipe.\n3. Count distinct values of `ingredient_id` from the `Quantity` records to return the total number of unique ingredients needed.", + "steps": [ + "Map the recipe name \"Raspberry Chiffon Pie\" to the `title` column in the `Recipe` table and filter for that exact recipe.", + "Join the `Quantity` table to `Recipe` on the shared `recipe_id` key to retrieve all ingredient rows linked to that recipe.", + "Count distinct values of `ingredient_id` from the `Quantity` records to return the total number of unique ingredients needed." + ] + }, + "revisql-train:892": { + "raw": "1. Use the `prof` table exclusively, as the question only concerns professor attributes with no need for joins.\n2. Map \"female\" from the external knowledge to the `gender` column, filtering for rows where `gender = 'Female'`.\n3. Determine the maximum value of the `popularity` column across the entire `prof` table to identify the most popular professor(s).\n4. Apply a second filter so that only rows whose `popularity` equals that maximum value are kept.\n5. Count the `prof_id` values of the rows that satisfy both conditions.\n6. Return only that count column.", + "steps": [ + "Use the `prof` table exclusively, as the question only concerns professor attributes with no need for joins.", + "Map \"female\" from the external knowledge to the `gender` column, filtering for rows where `gender = 'Female'`.", + "Determine the maximum value of the `popularity` column across the entire `prof` table to identify the most popular professor(s).", + "Apply a second filter so that only rows whose `popularity` equals that maximum value are kept.", + "Count the `prof_id` values of the rows that satisfy both conditions.", + "Return only that count column." + ] + }, + "revisql-train:8920": { + "raw": "1. Join the Recipe table to the Nutrition table on the shared recipe_id column to access both recipe titles and alcohol content.\n2. Apply the external knowledge that \"alcohol free\" corresponds to the Nutrition.alcohol column having a value of 0.\n3. Filter the joined rows to keep only those where alcohol equals 0.\n4. Return the Recipe.title column to list the names of the qualifying recipes.", + "steps": [ + "Join the Recipe table to the Nutrition table on the shared recipe_id column to access both recipe titles and alcohol content.", + "Apply the external knowledge that \"alcohol free\" corresponds to the Nutrition.alcohol column having a value of 0.", + "Filter the joined rows to keep only those where alcohol equals 0.", + "Return the Recipe.title column to list the names of the qualifying recipes." + ] + }, + "revisql-train:8922": { + "raw": "1. Join Recipe to Quantity on recipe_id, then join Quantity to Ingredient on ingredient_id to link recipes with their ingredient categories.\n2. Filter Ingredient.category to 'dairy' using the external knowledge mapping for dairy recipes.\n3. Filter Recipe.servings to greater than 10 using the external knowledge mapping for serving more than 10 people.\n4. Count distinct Recipe.recipe_id to avoid duplicate counts when a recipe contains multiple dairy ingredients.\n5. Return that count as the final result.", + "steps": [ + "Join Recipe to Quantity on recipe_id, then join Quantity to Ingredient on ingredient_id to link recipes with their ingredient categories.", + "Filter Ingredient.category to 'dairy' using the external knowledge mapping for dairy recipes.", + "Filter Recipe.servings to greater than 10 using the external knowledge mapping for serving more than 10 people.", + "Count distinct Recipe.recipe_id to avoid duplicate counts when a recipe contains multiple dairy ingredients.", + "Return that count as the final result." + ] + }, + "revisql-train:8924": { + "raw": "1. Join the Recipe and Nutrition tables on the recipe_id column to link each recipe title with its nutritional calorie data.\n2. Sort the joined results by the calories column in descending order, applying the external knowledge that \"highest calories\" corresponds to the maximum value at the top.\n3. Limit the sorted set to the first row only to isolate the single recipe with the greatest calorie count.\n4. Return the title column from the Recipe table as the final answer.", + "steps": [ + "Join the Recipe and Nutrition tables on the recipe_id column to link each recipe title with its nutritional calorie data.", + "Sort the joined results by the calories column in descending order, applying the external knowledge that \"highest calories\" corresponds to the maximum value at the top.", + "Limit the sorted set to the first row only to isolate the single recipe with the greatest calorie count.", + "Return the title column from the Recipe table as the final answer." + ] + }, + "revisql-train:8930": { + "raw": "1. Join Recipe to Quantity on recipe_id, Quantity to Ingredient on ingredient_id, and Recipe to Nutrition on recipe_id to connect ingredient categories with nutritional values.\n2. Filter the rows to only those where Ingredient.category equals 'cheese' per the external knowledge mapping.\n3. Count the distinct recipes in this filtered set to establish the denominator.\n4. Count the distinct recipes only when Nutrition.calories is greater than 200 to establish the numerator.\n5. Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named cheese_over_200_pct.", + "steps": [ + "Join Recipe to Quantity on recipe_id, Quantity to Ingredient on ingredient_id, and Recipe to Nutrition on recipe_id to connect ingredient categories with nutritional values.", + "Filter the rows to only those where Ingredient.category equals 'cheese' per the external knowledge mapping.", + "Count the distinct recipes in this filtered set to establish the denominator.", + "Count the distinct recipes only when Nutrition.calories is greater than 200 to establish the numerator.", + "Divide the numerator by the denominator, multiply by 100.0, and return the result as a single column named cheese_over_200_pct." + ] + }, + "revisql-train:8934": { + "raw": "1. Target the `position` table alone; no joins are needed because the requested attribute and the filter both belong to this table.\n2. Map the phrase \"required education\" to the `educationrequired` column using the external knowledge.\n3. Filter rows to only those where `positiontitle` equals 'Regional Manager', as the external knowledge defines that as the regional manager position.\n4. Return exactly the `educationrequired` column with no aggregation or ordering.", + "steps": [ + "Target the `position` table alone; no joins are needed because the requested attribute and the filter both belong to this table.", + "Map the phrase \"required education\" to the `educationrequired` column using the external knowledge.", + "Filter rows to only those where `positiontitle` equals 'Regional Manager', as the external knowledge defines that as the regional manager position.", + "Return exactly the `educationrequired` column with no aggregation or ordering." + ] + }, + "revisql-train:896": { + "raw": "1. Join the registration table to the course table on course_id to link student grades with course names and difficulty values.\n2. Filter for the easiest courses by restricting to rows where the diff column in the course table equals 1, per the external knowledge.\n3. Filter for excellent grades by restricting to rows where the grade column in the registration table equals 'A', per the external knowledge.\n4. Group the remaining rows by the name column from the course table.\n5. Count the student_ids in each group, order the groups by that count from highest to lowest, and keep only the first row.\n6. The final result must return exactly the name column.", + "steps": [ + "Join the registration table to the course table on course_id to link student grades with course names and difficulty values.", + "Filter for the easiest courses by restricting to rows where the diff column in the course table equals 1, per the external knowledge.", + "Filter for excellent grades by restricting to rows where the grade column in the registration table equals 'A', per the external knowledge.", + "Group the remaining rows by the name column from the course table.", + "Count the student_ids in each group, order the groups by that count from highest to lowest, and keep only the first row.", + "The final result must return exactly the name column." + ] + }, + "revisql-train:8962": { + "raw": "1. Use the employee table alone; no joins are required because both performance and salary are in this table.\n2. Filter to rows where performance equals 'Poor', applying the external knowledge mapping for poor performance.\n3. Convert the salary text to a real number by extracting from the 4th character onward, removing commas, and casting to REAL.\n4. Keep only rows where the converted salary is greater than 50000, matching the external knowledge threshold for over $50,000.\n5. Count the surviving rows with COUNT(*) to produce the total number of employees.\n6. Return the single resulting count column.", + "steps": [ + "Use the employee table alone; no joins are required because both performance and salary are in this table.", + "Filter to rows where performance equals 'Poor', applying the external knowledge mapping for poor performance.", + "Convert the salary text to a real number by extracting from the 4th character onward, removing commas, and casting to REAL.", + "Keep only rows where the converted salary is greater than 50000, matching the external knowledge threshold for over $50,000.", + "Count the surviving rows with COUNT(*) to produce the total number of employees.", + "Return the single resulting count column." + ] + }, + "revisql-train:8966": { + "raw": "1. Use only the `position` table, as the question asks for a salary attribute tied to a position’s work complexity.\n2. Map \"most complex work\" to the highest `educationrequired` value; because that column stores text with a leading number followed by a unit, extract the integer portion from each row before comparing.\n3. Compute the maximum of those extracted numeric education years across all rows to identify the most complex work requirement.\n4. Filter to the row(s) in `position` where the extracted numeric education year equals that maximum value.\n5. Return the `minsalary` column from the matching row.", + "steps": [ + "Use only the `position` table, as the question asks for a salary attribute tied to a position’s work complexity.", + "Map \"most complex work\" to the highest `educationrequired` value; because that column stores text with a leading number followed by a unit, extract the integer portion from each row before comparing.", + "Compute the maximum of those extracted numeric education years across all rows to identify the most complex work requirement.", + "Filter to the row(s) in `position` where the extracted numeric education year equals that maximum value.", + "Return the `minsalary` column from the matching row." + ] + }, + "revisql-train:8967": { + "raw": "1. Join the employee table to the location table on the locationID foreign key to link each employee to their office.\n2. Group the results by address, locationcity, state, and zipcode, since these four columns compose the full office location address per the external knowledge.\n3. Count the number of employees within each group to determine the headcount per location.\n4. Identify the maximum headcount value across all location groups.\n5. Filter the grouped results to keep only the location(s) whose employee count equals that maximum headcount.\n6. Return exactly the four columns address, locationcity, state, and zipcode.", + "steps": [ + "Join the employee table to the location table on the locationID foreign key to link each employee to their office.", + "Group the results by address, locationcity, state, and zipcode, since these four columns compose the full office location address per the external knowledge.", + "Count the number of employees within each group to determine the headcount per location.", + "Identify the maximum headcount value across all location groups.", + "Filter the grouped results to keep only the location(s) whose employee count equals that maximum headcount.", + "Return exactly the four columns address, locationcity, state, and zipcode." + ] + }, + "revisql-train:8974": { + "raw": "1. Join the employee table to location on locationID and to position on positionID to access state, performance, and job title.\n2. Filter rows where positiontitle equals 'Account Representative' and performance equals 'Good', mapping the external knowledge terms directly to those column values.\n3. Group the filtered results by the state column from the location table.\n4. Count the number of employees within each state and order the groups by that count in descending order.\n5. Restrict the output to the single top row using LIMIT 1 to capture the state with the highest amount.\n6. Return only the state column.", + "steps": [ + "Join the employee table to location on locationID and to position on positionID to access state, performance, and job title.", + "Filter rows where positiontitle equals 'Account Representative' and performance equals 'Good', mapping the external knowledge terms directly to those column values.", + "Group the filtered results by the state column from the location table.", + "Count the number of employees within each state and order the groups by that count in descending order.", + "Restrict the output to the single top row using LIMIT 1 to capture the state with the highest amount.", + "Return only the state column." + ] + }, + "revisql-train:898": { + "raw": "1. Start from the RA table, which holds advising relationships between students and professors via student_id and prof_id.\n2. Join the prof table on prof_id to access the professor's first and last name.\n3. Apply the external knowledge that Ogdon Zywicki is a professor by filtering to rows where first_name equals 'Ogdon' and last_name equals 'Zywicki'.\n4. Count the student_id values from the RA table to return the total number of students that professor advises.", + "steps": [ + "Start from the RA table, which holds advising relationships between students and professors via student_id and prof_id.", + "Join the prof table on prof_id to access the professor's first and last name.", + "Apply the external knowledge that Ogdon Zywicki is a professor by filtering to rows where first_name equals 'Ogdon' and last_name equals 'Zywicki'.", + "Count the student_id values from the RA table to return the total number of students that professor advises." + ] + }, + "revisql-train:8981": { + "raw": "1. Filter the employee table to the row where firstname equals Emily and lastname equals Wood, using the external knowledge that full name maps to these two columns.\n2. Join the employee table to the position table on the positionID foreign key to access the position title.\n3. Extract the hiredate and salary values from the employee record, and the positiontitle from the joined position record.\n4. Do not apply any aggregation or ordering, as the query targets a single specific employee.\n5. Return exactly three columns: hiredate, positiontitle, and salary.", + "steps": [ + "Filter the employee table to the row where firstname equals Emily and lastname equals Wood, using the external knowledge that full name maps to these two columns.", + "Join the employee table to the position table on the positionID foreign key to access the position title.", + "Extract the hiredate and salary values from the employee record, and the positiontitle from the joined position record.", + "Do not apply any aggregation or ordering, as the query targets a single specific employee.", + "Return exactly three columns: hiredate, positiontitle, and salary." + ] + }, + "revisql-train:8982": { + "raw": "1. Map the full name \"Bill Marlin\" to the employee columns firstname and lastname, and map \"maximum salary\" and \"minimum salary\" to the position columns maxsalary and minsalary.\n2. Filter the employee table to the row where firstname equals Bill and lastname equals Marlin.\n3. Join that employee row to the position table using the positionID key.\n4. Return exactly the maxsalary, minsalary, and positiontitle columns from the position side of the join.", + "steps": [ + "Map the full name \"Bill Marlin\" to the employee columns firstname and lastname, and map \"maximum salary\" and \"minimum salary\" to the position columns maxsalary and minsalary.", + "Filter the employee table to the row where firstname equals Bill and lastname equals Marlin.", + "Join that employee row to the position table using the positionID key.", + "Return exactly the maxsalary, minsalary, and positiontitle columns from the position side of the join." + ] + }, + "revisql-train:8990": { + "raw": "1. Use only the trip table, as it contains all necessary fields: duration, start_station_name, and end_station_name.\n2. Map the question's \"start station\" to the start_station_name column and \"end station\" to the end_station_name column.\n3. Aggregate the duration column to find the maximum value, identifying the longest trip.\n4. Filter the trip records to only those where the duration equals this maximum value.\n5. Return exactly the start_station_name and end_station_name columns for the matched record(s).", + "steps": [ + "Use only the trip table, as it contains all necessary fields: duration, start_station_name, and end_station_name.", + "Map the question's \"start station\" to the start_station_name column and \"end station\" to the end_station_name column.", + "Aggregate the duration column to find the maximum value, identifying the longest trip.", + "Filter the trip records to only those where the duration equals this maximum value.", + "Return exactly the start_station_name and end_station_name columns for the matched record(s)." + ] + }, + "revisql-train:8992": { + "raw": "1. Filter the `trip` table to only rows where `bike_id` equals 13.\n2. Parse the text `end_date` into a sortable datetime key so the latest trip can be identified accurately.\n3. Order those filtered trips by the parsed end date descending and take the single most recent row, applying the external knowledge that the \"final station\" corresponds to the record with the maximum end date.\n4. Join that latest trip row to the `station` table on `trip.end_station_id` = `station.id`.\n5. Return `station.name` as the final station and `station.city` as the city.", + "steps": [ + "Filter the `trip` table to only rows where `bike_id` equals 13.", + "Parse the text `end_date` into a sortable datetime key so the latest trip can be identified accurately.", + "Order those filtered trips by the parsed end date descending and take the single most recent row, applying the external knowledge that the \"final station\" corresponds to the record with the maximum end date.", + "Join that latest trip row to the `station` table on `trip.end_station_id` = `station.id`.", + "Return `station.name` as the final station and `station.city` as the city." + ] + }, + "revisql-train:8995": { + "raw": "1. Join the `station` and `trip` tables on `station.id = trip.start_station_id` to link each borrowing event to its station’s city.\n2. Group by `trip.start_station_id` and count the number of trips per station to measure borrowed bikes, keeping the start station name and city in the result.\n3. Wrap that grouped aggregation into a named subquery so the maximum count can be evaluated independently.\n4. Compute the maximum trip count across all stations from that subquery.\n5. Filter the subquery to only the station(s) whose trip count equals that maximum value.\n6. Return exactly the columns `start_station_name` and `city`.", + "steps": [ + "Join the `station` and `trip` tables on `station.id = trip.start_station_id` to link each borrowing event to its station’s city.", + "Group by `trip.start_station_id` and count the number of trips per station to measure borrowed bikes, keeping the start station name and city in the result.", + "Wrap that grouped aggregation into a named subquery so the maximum count can be evaluated independently.", + "Compute the maximum trip count across all stations from that subquery.", + "Filter the subquery to only the station(s) whose trip count equals that maximum value.", + "Return exactly the columns `start_station_name` and `city`." + ] + }, + "revisql-train:8999": { + "raw": "1. Map the coordinates 37.331415 and -121.8932 to the `lat` and `long` columns in the `station` table, and interpret \"returned at\" as the trip's end station.\n2. Join `station` to `trip` on `station.id = trip.end_station_id` to link each trip to its return location.\n3. Filter the joined rows to only those where `lat` equals 37.331415 and `long` equals -121.8932.\n4. Apply the external knowledge that \"the time the bike was borrowed\" corresponds to the `start_date` column in `trip`.\n5. Return the `start_date` column from the filtered trip records.", + "steps": [ + "Map the coordinates 37.331415 and -121.8932 to the `lat` and `long` columns in the `station` table, and interpret \"returned at\" as the trip's end station.", + "Join `station` to `trip` on `station.id = trip.end_station_id` to link each trip to its return location.", + "Filter the joined rows to only those where `lat` equals 37.331415 and `long` equals -121.8932.", + "Apply the external knowledge that \"the time the bike was borrowed\" corresponds to the `start_date` column in `trip`.", + "Return the `start_date` column from the filtered trip records." + ] + }, + "revisql-train:9001": { + "raw": "1. Filter the `trip` table to rows where `duration` is less than 300 seconds to capture trips under 5 minutes per the external knowledge.\n2. Join the `weather` table on matching `zip_code` and on `weather.date` equaling the date-only portion extracted from `trip.start_date` before its first space.\n3. Select `trip.start_station_name` as the borrowing station and `trip.end_station_name` as the return station per the external knowledge mappings.\n4. Select `weather.mean_temperature_f` to indicate the day’s mean temperature, applying the external knowledge mapping.\n5. Return exactly these three columns with no aggregation or ordering.", + "steps": [ + "Filter the `trip` table to rows where `duration` is less than 300 seconds to capture trips under 5 minutes per the external knowledge.", + "Join the `weather` table on matching `zip_code` and on `weather.date` equaling the date-only portion extracted from `trip.start_date` before its first space.", + "Select `trip.start_station_name` as the borrowing station and `trip.end_station_name` as the return station per the external knowledge mappings.", + "Select `weather.mean_temperature_f` to indicate the day’s mean temperature, applying the external knowledge mapping.", + "Return exactly these three columns with no aggregation or ordering." + ] + }, + "revisql-train:9003": { + "raw": "1. Use the trip table and filter start_date to keep only trips that began in July, August, or September 2013 by matching the month and year in the text date.\n2. Group the remaining rows by bike_id so every trip belonging to the same bike is aggregated together.\n3. Sum the duration column within each bike_id group to get the total usage time per bike for the quarter.\n4. Compute the average of those per-bike total durations, which maps the average-usage definition to the total duration divided by the count of distinct bikes used.\n5. Return that single computed average in a column named avg_bike_usage.", + "steps": [ + "Use the trip table and filter start_date to keep only trips that began in July, August, or September 2013 by matching the month and year in the text date.", + "Group the remaining rows by bike_id so every trip belonging to the same bike is aggregated together.", + "Sum the duration column within each bike_id group to get the total usage time per bike for the quarter.", + "Compute the average of those per-bike total durations, which maps the average-usage definition to the total duration divided by the count of distinct bikes used.", + "Return that single computed average in a column named avg_bike_usage." + ] + }, + "revisql-train:9005": { + "raw": "1. Query the trip table alone since duration, start_date, and end_date all reside there and no joins are necessary.\n2. Filter rows by mapping started August 29, 2013 to the start_date column and ended August 29, 2013 to the end_date column, using a pattern match for 8/29/2013 because the text values may include timestamps.\n3. Compute the longest duration by taking the maximum of the duration column.\n4. Return a single result column representing that maximum duration.", + "steps": [ + "Query the trip table alone since duration, start_date, and end_date all reside there and no joins are necessary.", + "Filter rows by mapping started August 29, 2013 to the start_date column and ended August 29, 2013 to the end_date column, using a pattern match for 8/29/2013 because the text values may include timestamps.", + "Compute the longest duration by taking the maximum of the duration column.", + "Return a single result column representing that maximum duration." + ] + }, + "revisql-train:9008": { + "raw": "1. Query the station table exclusively; no joins are required.\n2. Filter the city column to San Francisco, mapping the requested city name from the question.\n3. Filter the dock_count column to values greater than 20, applying the external knowledge that equates holding more than 20 bikes to dock_count.\n4. Combine both filters with AND so only stations meeting the location and capacity constraints are considered.\n5. Aggregate by summing a value of 1 for each qualifying row and 0 otherwise to produce a single total count.\n6. Return exactly one numeric column representing the total number of stations that satisfy both conditions.", + "steps": [ + "Query the station table exclusively; no joins are required.", + "Filter the city column to San Francisco, mapping the requested city name from the question.", + "Filter the dock_count column to values greater than 20, applying the external knowledge that equates holding more than 20 bikes to dock_count.", + "Combine both filters with AND so only stations meeting the location and capacity constraints are considered.", + "Aggregate by summing a value of 1 for each qualifying row and 0 otherwise to produce a single total count.", + "Return exactly one numeric column representing the total number of stations that satisfy both conditions." + ] + }, + "revisql-train:9009": { + "raw": "1. Target the `weather` table and map the phrase \"hottest temperature\" to the `max_temperature_f` column.\n2. Compute the overall maximum of `max_temperature_f`, excluding rows where the value is NULL or an empty string to ensure a valid numeric result.\n3. Filter the `weather` table to keep only rows whose `max_temperature_f` equals that maximum value.\n4. Return the `date` column from those rows so that every date tied for the hottest temperature is listed.", + "steps": [ + "Target the `weather` table and map the phrase \"hottest temperature\" to the `max_temperature_f` column.", + "Compute the overall maximum of `max_temperature_f`, excluding rows where the value is NULL or an empty string to ensure a valid numeric result.", + "Filter the `weather` table to keep only rows whose `max_temperature_f` equals that maximum value.", + "Return the `date` column from those rows so that every date tied for the hottest temperature is listed." + ] + }, + "revisql-train:901": { + "raw": "1. Join the registration table with the course table on course_id to associate student grades with course names.\n2. Filter for rows where registration.grade equals 'A' (applying the external knowledge mapping) and course.name is either \"Advanced Operating System\" or \"Intro to BlockChain\".\n3. Group the filtered results by course.name to aggregate the A grades separately for each course.\n4. Count the number of student_id values within each course group to measure how many students received an A.\n5. Sort the groups by that student count in descending order and restrict the result to the first row only.\n6. Return the course.name column as the final answer.", + "steps": [ + "Join the registration table with the course table on course_id to associate student grades with course names.", + "Filter for rows where registration.grade equals 'A' (applying the external knowledge mapping) and course.name is either \"Advanced Operating System\" or \"Intro to BlockChain\".", + "Group the filtered results by course.name to aggregate the A grades separately for each course.", + "Count the number of student_id values within each course group to measure how many students received an A.", + "Sort the groups by that student count in descending order and restrict the result to the first row only.", + "Return the course.name column as the final answer." + ] + }, + "revisql-train:9011": { + "raw": "1. Query only the `weather` table, as it contains both the dates and the rain-event records needed.\n2. Filter rows to those where the `events` column matches rainy conditions using `LIKE 'Rain'`, per the external knowledge mapping.\n3. Derive the year for each row from the text `date` column (e.g., by extracting its last four characters) and alias it as `yr`.\n4. Group the filtered results by this extracted `yr`.\n5. Within each year group, count distinct `date` values to obtain the number of unique rainy days and avoid duplicate-date inflation.\n6. Order the year groups by that rainy-day count in descending order and return the year from the single top row.", + "steps": [ + "Query only the `weather` table, as it contains both the dates and the rain-event records needed.", + "Filter rows to those where the `events` column matches rainy conditions using `LIKE 'Rain'`, per the external knowledge mapping.", + "Derive the year for each row from the text `date` column (e.g., by extracting its last four characters) and alias it as `yr`.", + "Group the filtered results by this extracted `yr`.", + "Within each year group, count distinct `date` values to obtain the number of unique rainy days and avoid duplicate-date inflation.", + "Order the year groups by that rainy-day count in descending order and return the year from the single top row." + ] + }, + "revisql-train:9014": { + "raw": "1. Filter the `trip` table for rows where `start_station_name` equals 'Powell Street BART', `bike_id` equals 496, and `start_date` begins with '8/29/2013' to isolate the borrowing event.\n2. Join the `trip` result to the `weather` table on matching `zip_code` to bring in local weather data for that area.\n3. Restrict the joined `weather` records to `date` equal to '8/29/2013' so the reading corresponds to the exact day of the trip.\n4. Return only the `max_humidity` column from the `weather` table as the final answer.", + "steps": [ + "Filter the `trip` table for rows where `start_station_name` equals 'Powell Street BART', `bike_id` equals 496, and `start_date` begins with '8/29/2013' to isolate the borrowing event.", + "Join the `trip` result to the `weather` table on matching `zip_code` to bring in local weather data for that area.", + "Restrict the joined `weather` records to `date` equal to '8/29/2013' so the reading corresponds to the exact day of the trip.", + "Return only the `max_humidity` column from the `weather` table as the final answer." + ] + }, + "revisql-train:9015": { + "raw": "1. Start from the weather table and filter to rows where zip_code is 94301, events maps to foggy weather as 'Fog', and the date falls in November 2014.\n2. Left join the trip table by matching the date portion extracted from start_date to weather.date, and map subscriber to subscription_type equal 'Subscriber' within the join condition so days without subscriber trips still appear.\n3. Group the results by weather.date to aggregate data for each individual day.\n4. Count trip.id to calculate the total number of bikes borrowed by subscribers on each of those foggy days.\n5. Return weather.date as the day and the trip count as the subscriber bikes borrowed total.", + "steps": [ + "Start from the weather table and filter to rows where zip_code is 94301, events maps to foggy weather as 'Fog', and the date falls in November 2014.", + "Left join the trip table by matching the date portion extracted from start_date to weather.date, and map subscriber to subscription_type equal 'Subscriber' within the join condition so days without subscriber trips still appear.", + "Group the results by weather.date to aggregate data for each individual day.", + "Count trip.id to calculate the total number of bikes borrowed by subscribers on each of those foggy days.", + "Return weather.date as the day and the trip count as the subscriber bikes borrowed total." + ] + }, + "revisql-train:9016": { + "raw": "1. Join trip and station on start_station_name = name to link each trip’s origin with its station record.\n2. Filter to rows where subscription_type is 'Customer'.\n3. Group by start_station_name and count trips to get customer usage per borrow station.\n4. In a subquery on the same joined and filtered data, find the minimum of those per-station customer counts.\n5. Keep only station(s) whose customer trip count equals that minimum via a HAVING clause.\n6. Output start_station_name and installation_date.", + "steps": [ + "Join trip and station on start_station_name = name to link each trip’s origin with its station record.", + "Filter to rows where subscription_type is 'Customer'.", + "Group by start_station_name and count trips to get customer usage per borrow station.", + "In a subquery on the same joined and filtered data, find the minimum of those per-station customer counts.", + "Keep only station(s) whose customer trip count equals that minimum via a HAVING clause.", + "Output start_station_name and installation_date." + ] + }, + "revisql-train:9017": { + "raw": "1. Join the `station` table to the `status` table on `station.id` = `status.station_id` to link station names with their bike availability records.\n2. Filter `status.bikes_available` to 0, mapping the external knowledge that \"no bike available to borrow\" means zero bikes are present.\n3. Filter `status.time` to the date 11/3/2013 by matching values that begin with '2013/11/03' to account for any time-of-day suffix in the stored timestamps.\n4. Select distinct values of the `name` column from the `station` table so each empty station appears only once in the result.", + "steps": [ + "Join the `station` table to the `status` table on `station.id` = `status.station_id` to link station names with their bike availability records.", + "Filter `status.bikes_available` to 0, mapping the external knowledge that \"no bike available to borrow\" means zero bikes are present.", + "Filter `status.time` to the date 11/3/2013 by matching values that begin with '2013/11/03' to account for any time-of-day suffix in the stored timestamps.", + "Select distinct values of the `name` column from the `station` table so each empty station appears only once in the result." + ] + }, + "revisql-train:9018": { + "raw": "1. Select the `trip` table for `duration` and `start_station_name`, and join it to the `station` table on `trip.start_station_name = station.name` to link each trip to its starting station's city.\n2. Filter the joined rows to only those where `station.city` equals 'Palo Alto'.\n3. Map the external knowledge to the query logic: the given formula describes an average (total duration divided by trip count), so aggregate using `AVG(trip.duration)`.\n4. Return exactly one column: the average duration.", + "steps": [ + "Select the `trip` table for `duration` and `start_station_name`, and join it to the `station` table on `trip.start_station_name = station.name` to link each trip to its starting station's city.", + "Filter the joined rows to only those where `station.city` equals 'Palo Alto'.", + "Map the external knowledge to the query logic: the given formula describes an average (total duration divided by trip count), so aggregate using `AVG(trip.duration)`.", + "Return exactly one column: the average duration." + ] + }, + "revisql-train:9023": { + "raw": "1. Filter the trip table to rows where start_station_name equals end_station_name, applying the external knowledge that \"similar\" means matching names.\n2. Left join the station table on start_station_name = station.name to fetch location data for the station while preserving every qualifying trip.\n3. Map the requested location coordinates to the lat and long columns from the station table, as indicated by the external knowledge.\n4. Return the trip id, latitude, and longitude.", + "steps": [ + "Filter the trip table to rows where start_station_name equals end_station_name, applying the external knowledge that \"similar\" means matching names.", + "Left join the station table on start_station_name = station.name to fetch location data for the station while preserving every qualifying trip.", + "Map the requested location coordinates to the lat and long columns from the station table, as indicated by the external knowledge.", + "Return the trip id, latitude, and longitude." + ] + }, + "revisql-train:9024": { + "raw": "1. Join the station table to the status table on station id equals status station id.\n2. Filter station name to San Jose Diridon Caltrain Station.\n3. Filter status time to 2013/08/29 18:14:01 to match the 6:14:01 PM timestamp.\n4. Compute borrowed bikes by subtracting status bikes available from station dock count, mapping the external knowledge formula to these two columns.\n5. Return the calculated difference as a single column named borrowed.", + "steps": [ + "Join the station table to the status table on station id equals status station id.", + "Filter station name to San Jose Diridon Caltrain Station.", + "Filter status time to 2013/08/29 18:14:01 to match the 6:14:01 PM timestamp.", + "Compute borrowed bikes by subtracting status bikes available from station dock count, mapping the external knowledge formula to these two columns.", + "Return the calculated difference as a single column named borrowed." + ] + }, + "revisql-train:9028": { + "raw": "1. Filter the trip table to the row with id = 4312 and keep start_station_id and start_date.\n2. Inner join the status table on station_id equal to that trip's start_station_id.\n3. In the join condition, reformat the trip's start_date by extracting year, month, day, and time substrings to build a LIKE pattern that aligns with the status.time text format.\n4. Sum the docks_available values from the matched status rows.\n5. Return the resulting sum of docks_available.", + "steps": [ + "Filter the trip table to the row with id = 4312 and keep start_station_id and start_date.", + "Inner join the status table on station_id equal to that trip's start_station_id.", + "In the join condition, reformat the trip's start_date by extracting year, month, day, and time substrings to build a LIKE pattern that aligns with the status.time text format.", + "Sum the docks_available values from the matched status rows.", + "Return the resulting sum of docks_available." + ] + }, + "revisql-train:9030": { + "raw": "1. Filter the trip table to Subscriber rides that started at 2nd at Folsom and ended at 5th at Howard, keeping only rows where start_date falls in 2014 by matching the /2014 pattern.\n2. Compute the minimum duration and the average duration across this filtered set, mapping shortest duration to MIN(duration).\n3. Identify the trip rows whose duration equals that computed minimum.\n4. Combine the single aggregate statistics row with the minimum-duration trip rows via a cross join so both values are available in the same result.\n5. Return the minimum duration as shortest_duration and the difference between average duration and minimum duration as shorter_than_avg.", + "steps": [ + "Filter the trip table to Subscriber rides that started at 2nd at Folsom and ended at 5th at Howard, keeping only rows where start_date falls in 2014 by matching the /2014 pattern.", + "Compute the minimum duration and the average duration across this filtered set, mapping shortest duration to MIN(duration).", + "Identify the trip rows whose duration equals that computed minimum.", + "Combine the single aggregate statistics row with the minimum-duration trip rows via a cross join so both values are available in the same result.", + "Return the minimum duration as shortest_duration and the difference between average duration and minimum duration as shorter_than_avg." + ] + }, + "revisql-train:9032": { + "raw": "1. Select the weather table exclusively; no joins are needed because temperature, humidity, and date all reside there.\n2. Filter the date column to May 2015, mapping the external knowledge’s month specification to that column.\n3. Apply the range filter on mean_humidity so it is between 65 and 75 inclusive.\n4. Aggregate the filtered rows by computing the average of max_temperature_f and the average of min_temperature_f.\n5. Return the two resulting values as the average maximum temperature and the average minimum temperature.", + "steps": [ + "Select the weather table exclusively; no joins are needed because temperature, humidity, and date all reside there.", + "Filter the date column to May 2015, mapping the external knowledge’s month specification to that column.", + "Apply the range filter on mean_humidity so it is between 65 and 75 inclusive.", + "Aggregate the filtered rows by computing the average of max_temperature_f and the average of min_temperature_f.", + "Return the two resulting values as the average maximum temperature and the average minimum temperature." + ] + }, + "revisql-train:9035": { + "raw": "1. Join the trip and weather tables on matching zip_code and the date portion of trip.start_date, keeping only rows where weather.events indicates fog.\n2. Order the resulting fog rides by trip.duration descending and limit to the first row to isolate the single longest ride.\n3. Join the station table twice: once on trip.start_station_id to get the start station's latitude and longitude, and once on trip.end_station_id to get the end station's latitude and longitude.\n4. Return mean_visibility_miles, mean_wind_speed_mph, and the weather events value from the weather record associated with that longest ride.\n5. Return the latitude and longitude from both station joins as the start and end coordinates, alongside start_station_name and end_station_name from the trip record.", + "steps": [ + "Join the trip and weather tables on matching zip_code and the date portion of trip.start_date, keeping only rows where weather.events indicates fog.", + "Order the resulting fog rides by trip.duration descending and limit to the first row to isolate the single longest ride.", + "Join the station table twice: once on trip.start_station_id to get the start station's latitude and longitude, and once on trip.end_station_id to get the end station's latitude and longitude.", + "Return mean_visibility_miles, mean_wind_speed_mph, and the weather events value from the weather record associated with that longest ride.", + "Return the latitude and longitude from both station joins as the start and end coordinates, alongside start_station_name and end_station_name from the trip record." + ] + }, + "revisql-train:9038": { + "raw": "1. Start from the `trip` table and aggregate its `duration` column by averaging it to compute the average ride duration.\n2. Join the `weather` table on two conditions: `trip.zip_code` equals `weather.zip_code`, and the date-only part extracted from `trip.start_date` equals `weather.date`.\n3. Filter the joined rows to keep only weather records where `events` indicates rain.\n4. Further filter by converting `weather.precipitation_inches` to a real number and ensuring it exceeds 0.8, treating any trace or placeholder values (such as 'T' or '0') as 0 before the comparison.\n5. Return the final calculated average duration value.", + "steps": [ + "Start from the `trip` table and aggregate its `duration` column by averaging it to compute the average ride duration.", + "Join the `weather` table on two conditions: `trip.zip_code` equals `weather.zip_code`, and the date-only part extracted from `trip.start_date` equals `weather.date`.", + "Filter the joined rows to keep only weather records where `events` indicates rain.", + "Further filter by converting `weather.precipitation_inches` to a real number and ensuring it exceeds 0.8, treating any trace or placeholder values (such as 'T' or '0') as 0 before the comparison.", + "Return the final calculated average duration value." + ] + }, + "revisql-train:904": { + "raw": "1. Join the `student` and `registration` tables on `student_id` to connect each student's GPA with their course grades.\n2. Filter on `student.gpa` to retain only students whose GPA is between 3 and 4 inclusive.\n3. Filter on `registration.grade` to retain only rows where the grade is NULL, applying the external knowledge that a null or empty grade indicates a failed course.\n4. Aggregate by taking a distinct count of `student_id` so each qualifying student is counted once even if they failed multiple courses.\n5. Return that count of distinct `student_id` values.", + "steps": [ + "Join the `student` and `registration` tables on `student_id` to connect each student's GPA with their course grades.", + "Filter on `student.gpa` to retain only students whose GPA is between 3 and 4 inclusive.", + "Filter on `registration.grade` to retain only rows where the grade is NULL, applying the external knowledge that a null or empty grade indicates a failed course.", + "Aggregate by taking a distinct count of `student_id` so each qualifying student is counted once even if they failed multiple courses.", + "Return that count of distinct `student_id` values." + ] + }, + "revisql-train:9040": { + "raw": "1. Use the `station` table exclusively, since the question only requires station location and installation date information.\n2. Filter to rows where `city` equals 'San Francisco', applying the external knowledge that the city name maps directly to the `city` column.\n3. Filter to rows where the year in `installation_date` is 2014, using the external knowledge that installation year is derived from the `installation_date` column.\n4. Because the question asks for a count of stations satisfying both conditions, apply a conditional aggregation that adds 1 for rows meeting both filters and 0 otherwise, then sum the result.\n5. Return exactly one column: the aggregated total count of stations.", + "steps": [ + "Use the `station` table exclusively, since the question only requires station location and installation date information.", + "Filter to rows where `city` equals 'San Francisco', applying the external knowledge that the city name maps directly to the `city` column.", + "Filter to rows where the year in `installation_date` is 2014, using the external knowledge that installation year is derived from the `installation_date` column.", + "Because the question asks for a count of stations satisfying both conditions, apply a conditional aggregation that adds 1 for rows meeting both filters and 0 otherwise, then sum the result.", + "Return exactly one column: the aggregated total count of stations." + ] + }, + "revisql-train:9044": { + "raw": "1. Join the `trip` table to the `station` table on `trip.end_station_id = station.id` to access the city of each trip's ending station.\n2. Filter the `trip` records to only those where `subscription_type` equals 'Subscriber'.\n3. Apply the external knowledge that \"ended in San Jose\" maps to the end station's city, and filter the joined `station` records to only those where `city` equals 'San Jose'.\n4. Count the matching rows using `COUNT(station.id)` to compute the total number of qualifying trips.\n5. Return that single aggregated count column as the result.", + "steps": [ + "Join the `trip` table to the `station` table on `trip.end_station_id = station.id` to access the city of each trip's ending station.", + "Filter the `trip` records to only those where `subscription_type` equals 'Subscriber'.", + "Apply the external knowledge that \"ended in San Jose\" maps to the end station's city, and filter the joined `station` records to only those where `city` equals 'San Jose'.", + "Count the matching rows using `COUNT(station.id)` to compute the total number of qualifying trips.", + "Return that single aggregated count column as the result." + ] + }, + "revisql-train:9045": { + "raw": "1. Join the trip table with the station table on trip.start_station_name = station.name to link each trip to its starting station’s capacity.\n2. Filter the joined results to only stations where dock_count equals 15, mapping “can hold 15 bikes” to the dock_count column.\n3. Compute the minimum duration within that filtered set to identify the shortest trip, mapping “shortest duration” to MIN(duration).\n4. Keep only the trip record(s) whose duration equals that minimum value and whose start station has dock_count = 15.\n5. Return the id column from the trip table as the final answer.", + "steps": [ + "Join the trip table with the station table on trip.start_station_name = station.name to link each trip to its starting station’s capacity.", + "Filter the joined results to only stations where dock_count equals 15, mapping “can hold 15 bikes” to the dock_count column.", + "Compute the minimum duration within that filtered set to identify the shortest trip, mapping “shortest duration” to MIN(duration).", + "Keep only the trip record(s) whose duration equals that minimum value and whose start station has dock_count = 15.", + "Return the id column from the trip table as the final answer." + ] + }, + "revisql-train:9046": { + "raw": "1. Join `trip` to `station` on `trip.start_station_id` = `station.id` to bring in the starting station's city.\n2. Filter the joined rows to only those where `station.city` is 'San Francisco'.\n3. Parse the 4-digit year from each `trip.start_date` text value.\n4. Group the results by that parsed year and count the number of trips in each group.\n5. Order the year groups by the trip count in descending order and keep only the top row.\n6. Return the year value from that single remaining row.", + "steps": [ + "Join `trip` to `station` on `trip.start_station_id` = `station.id` to bring in the starting station's city.", + "Filter the joined rows to only those where `station.city` is 'San Francisco'.", + "Parse the 4-digit year from each `trip.start_date` text value.", + "Group the results by that parsed year and count the number of trips in each group.", + "Order the year groups by the trip count in descending order and keep only the top row.", + "Return the year value from that single remaining row." + ] + }, + "revisql-train:9047": { + "raw": "1. Join the trip table to the station table on trip.start_station_name = station.name to access the city for each start station.\n2. Filter the joined rows to only those where station.city equals 'San Jose', applying the external knowledge that San Jose refers to that city value.\n3. For the numerator, use a conditional aggregation on trip.duration that counts 1 when duration is greater than 800 and 0 otherwise, mapping the external knowledge that long trips are defined as duration > 800.\n4. For the denominator, count all trip.id values in the filtered San Jose set to get the total number of trips.\n5. Cast the numerator to a real number, multiply by 100, and divide by the denominator to compute the percentage of trips; return exactly this single calculated percentage value.", + "steps": [ + "Join the trip table to the station table on trip.start_station_name = station.name to access the city for each start station.", + "Filter the joined rows to only those where station.city equals 'San Jose', applying the external knowledge that San Jose refers to that city value.", + "For the numerator, use a conditional aggregation on trip.duration that counts 1 when duration is greater than 800 and 0 otherwise, mapping the external knowledge that long trips are defined as duration > 800.", + "For the denominator, count all trip.id values in the filtered San Jose set to get the total number of trips.", + "Cast the numerator to a real number, multiply by 100, and divide by the denominator to compute the percentage of trips; return exactly this single calculated percentage value." + ] + }, + "revisql-train:905": { + "raw": "1. Start with the `student` table and keep only rows where `type` = `'UG'` to isolate bachelor's degree students.\n2. Ensure the student has at least one row in the `registration` table linked by `student_id`, confirming they took at least one course.\n3. Exclude any student who has a `registration` row linked by `student_id` where `grade` is NULL, empty, or not equal to `'A'`.\n4. Return the count of the remaining students.", + "steps": [ + "Start with the `student` table and keep only rows where `type` = `'UG'` to isolate bachelor's degree students.", + "Ensure the student has at least one row in the `registration` table linked by `student_id`, confirming they took at least one course.", + "Exclude any student who has a `registration` row linked by `student_id` where `grade` is NULL, empty, or not equal to `'A'`.", + "Return the count of the remaining students." + ] + }, + "revisql-train:9056": { + "raw": "1. Filter the `trip` table to the single row where `id` is 4275.\n2. Map the requested metric \"mean humidity\" to the `mean_humidity` column in the `weather` table.\n3. Join the `trip` row with `weather` using matching `zip_code` values.\n4. Align the records further by extracting the date-only portion from `trip.start_date` (the substring before the first space) to match `weather.date`.\n5. Return the `mean_humidity` value from the resulting joined `weather` row.", + "steps": [ + "Filter the `trip` table to the single row where `id` is 4275.", + "Map the requested metric \"mean humidity\" to the `mean_humidity` column in the `weather` table.", + "Join the `trip` row with `weather` using matching `zip_code` values.", + "Align the records further by extracting the date-only portion from `trip.start_date` (the substring before the first space) to match `weather.date`.", + "Return the `mean_humidity` value from the resulting joined `weather` row." + ] + }, + "revisql-train:9058": { + "raw": "1. Use the station table since the question asks about bike stations and no joins are required.\n2. Filter the city column to San Jose based on the external knowledge mapping location.\n3. Parse installation_date to extract the year from the last four characters and the month from the digits before the first slash.\n4. Keep only rows where the year is greater than 2013, or where the year is 2013 and the month is greater than 8, to satisfy after August 2013.\n5. Aggregate with COUNT(*) and return that single numeric value as the answer.", + "steps": [ + "Use the station table since the question asks about bike stations and no joins are required.", + "Filter the city column to San Jose based on the external knowledge mapping location.", + "Parse installation_date to extract the year from the last four characters and the month from the digits before the first slash.", + "Keep only rows where the year is greater than 2013, or where the year is 2013 and the month is greater than 8, to satisfy after August 2013.", + "Aggregate with COUNT(*) and return that single numeric value as the answer." + ] + }, + "revisql-train:9061": { + "raw": "1. Map \"number of bikes that can be borrowed\" to the `bikes_available` column in the `status` table.\n2. Locate the station name condition in the `station` table where `name` equals 'San Jose Diridon Caltrain Station'.\n3. Join `station` to `status` on `station.id = status.station_id` to link station names with bike availability records.\n4. Filter the joined results by `status.time` equal to '2013/08/29 12:06:01'.\n5. Return only the `bikes_available` column as the final answer.", + "steps": [ + "Map \"number of bikes that can be borrowed\" to the `bikes_available` column in the `status` table.", + "Locate the station name condition in the `station` table where `name` equals 'San Jose Diridon Caltrain Station'.", + "Join `station` to `status` on `station.id = status.station_id` to link station names with bike availability records.", + "Filter the joined results by `status.time` equal to '2013/08/29 12:06:01'.", + "Return only the `bikes_available` column as the final answer." + ] + }, + "revisql-train:9062": { + "raw": "1. Use the external knowledge to map \"bike is borrowed from\" to the trip table's start_station_name column.\n2. Filter the trip table to the single record where id equals 4069.\n3. Join the filtered trip with the station table on trip.start_station_name matching station.name.\n4. Return the city column from the station table.", + "steps": [ + "Use the external knowledge to map \"bike is borrowed from\" to the trip table's start_station_name column.", + "Filter the trip table to the single record where id equals 4069.", + "Join the filtered trip with the station table on trip.start_station_name matching station.name.", + "Return the city column from the station table." + ] + }, + "revisql-train:9064": { + "raw": "1. Map \"starting stations\" to the `start_station_name` column in the `trip` table and plan to return only distinct values of it.\n2. Join the `weather` table to `trip` by matching the date-only portion of `trip.start_date` to `weather.date`, and restrict the join to rows where `weather.zip_code` is 94107.\n3. Apply the external knowledge that \"day with a max humidity over 80\" means filtering `weather.max_humidity` to be greater than 80.\n4. Apply the external knowledge that \"in 2013\" means filtering the `weather.date` value to the year 2013.\n5. Select the distinct `start_station_name` as the final result column.", + "steps": [ + "Map \"starting stations\" to the `start_station_name` column in the `trip` table and plan to return only distinct values of it.", + "Join the `weather` table to `trip` by matching the date-only portion of `trip.start_date` to `weather.date`, and restrict the join to rows where `weather.zip_code` is 94107.", + "Apply the external knowledge that \"day with a max humidity over 80\" means filtering `weather.max_humidity` to be greater than 80.", + "Apply the external knowledge that \"in 2013\" means filtering the `weather.date` value to the year 2013.", + "Select the distinct `start_station_name` as the final result column." + ] + }, + "revisql-train:9065": { + "raw": "1. Join the station table to the trip table on station.id = trip.start_station_id to link each trip to its starting station’s capacity.\n2. Filter to rows where trip.subscription_type equals 'Subscriber', mapping the term “subscriber”.\n3. Filter to rows where trip.start_date indicates August 2013, mapping the date requirement to the start_date column.\n4. Filter to rows where station.dock_count is greater than 20, mapping “station that can hold more than 20 bikes”.\n5. Count the values of trip.id and return only that single aggregated count column.", + "steps": [ + "Join the station table to the trip table on station.id = trip.start_station_id to link each trip to its starting station’s capacity.", + "Filter to rows where trip.subscription_type equals 'Subscriber', mapping the term “subscriber”.", + "Filter to rows where trip.start_date indicates August 2013, mapping the date requirement to the start_date column.", + "Filter to rows where station.dock_count is greater than 20, mapping “station that can hold more than 20 bikes”.", + "Count the values of trip.id and return only that single aggregated count column." + ] + }, + "revisql-train:9066": { + "raw": "1. Use the external knowledge to map location coordinates to the lat and long columns in the station table, and the longest borrowed bike to MAX(duration) in the trip table.\n2. Join trip to station on trip.start_station_name = station.name to connect each trip to its origin station.\n3. Compute the maximum duration across the joined trip records to identify the longest trip.\n4. Filter the joined results to keep only the trip whose duration equals that maximum value.\n5. Return the lat and long columns from the station table.", + "steps": [ + "Use the external knowledge to map location coordinates to the lat and long columns in the station table, and the longest borrowed bike to MAX(duration) in the trip table.", + "Join trip to station on trip.start_station_name = station.name to connect each trip to its origin station.", + "Compute the maximum duration across the joined trip records to identify the longest trip.", + "Filter the joined results to keep only the trip whose duration equals that maximum value.", + "Return the lat and long columns from the station table." + ] + }, + "revisql-train:9068": { + "raw": "1. Join the trip table to the weather table on matching zip_code and on the date-only portion of trip.start_date equaling weather.date.\n2. Restrict to the year 2013 by filtering weather.date to values containing '2013'.\n3. Restrict to foggy start days by filtering weather.events to 'Fog'.\n4. Restrict to the required origin by filtering trip.start_station_name to '2nd at Townsend'.\n5. Return a single aggregated value counting trip.start_station_name to give the total number of qualifying trips.", + "steps": [ + "Join the trip table to the weather table on matching zip_code and on the date-only portion of trip.start_date equaling weather.date.", + "Restrict to the year 2013 by filtering weather.date to values containing '2013'.", + "Restrict to foggy start days by filtering weather.events to 'Fog'.", + "Restrict to the required origin by filtering trip.start_station_name to '2nd at Townsend'.", + "Return a single aggregated value counting trip.start_station_name to give the total number of qualifying trips." + ] + }, + "revisql-train:9069": { + "raw": "1. Join the `trip` table to the `weather` table on matching `zip_code` and on the date-only prefix of `trip.start_date` (the portion before the first space) equaling `weather.date`.\n2. Apply the “in 2013” external knowledge by filtering `weather.date` with `LIKE '%2013%'`.\n3. Apply the “starting on a day with a fog” external knowledge by filtering `weather.events` to `'Fog'`.\n4. Apply the “longest duration” external knowledge by aggregating with `MAX(trip.duration)`.\n5. Return exactly one column: the maximum trip duration.", + "steps": [ + "Join the `trip` table to the `weather` table on matching `zip_code` and on the date-only prefix of `trip.start_date` (the portion before the first space) equaling `weather.date`.", + "Apply the “in 2013” external knowledge by filtering `weather.date` with `LIKE '%2013%'`.", + "Apply the “starting on a day with a fog” external knowledge by filtering `weather.events` to `'Fog'`.", + "Apply the “longest duration” external knowledge by aggregating with `MAX(trip.duration)`.", + "Return exactly one column: the maximum trip duration." + ] + }, + "revisql-train:907": { + "raw": "1. Target the RA table, which contains the research ability scores (capability) along with prof_id and student_id; no joins to other tables are needed.\n2. Compute the minimum capability value in RA to represent the lowest research ability.\n3. Filter RA rows where capability equals that minimum value.\n4. Output prof_id and student_id from the filtered rows.", + "steps": [ + "Target the RA table, which contains the research ability scores (capability) along with prof_id and student_id; no joins to other tables are needed.", + "Compute the minimum capability value in RA to represent the lowest research ability.", + "Filter RA rows where capability equals that minimum value.", + "Output prof_id and student_id from the filtered rows." + ] + }, + "revisql-train:9071": { + "raw": "1. Join the trip table to the station table on trip.start_station_id matching station.id to locate the city of the station the bike was borrowed from.\n2. Filter the station records to only those where city equals 'San Francisco'.\n3. Filter the trip records to only those where subscription_type equals 'Subscriber'.\n4. Count the id values from the trip table to compute the total number of qualifying trips.\n5. Return only that count column.", + "steps": [ + "Join the trip table to the station table on trip.start_station_id matching station.id to locate the city of the station the bike was borrowed from.", + "Filter the station records to only those where city equals 'San Francisco'.", + "Filter the trip records to only those where subscription_type equals 'Subscriber'.", + "Count the id values from the trip table to compute the total number of qualifying trips.", + "Return only that count column." + ] + }, + "revisql-train:9072": { + "raw": "1. In the weather table, filter to 2014 by matching dates ending with \"/2014\", sort by max_temperature_f descending, and limit to the single hottest date.\n2. In the trip table, filter rows where start_station_name is exactly \"2nd at Folsom\".\n3. Further filter those trips by keeping only start_date values that begin with the hottest date found in step 1, using a trailing wildcard to account for any time portion.\n4. Count the remaining rows and return the result as the column trips.", + "steps": [ + "In the weather table, filter to 2014 by matching dates ending with \"/2014\", sort by max_temperature_f descending, and limit to the single hottest date.", + "In the trip table, filter rows where start_station_name is exactly \"2nd at Folsom\".", + "Further filter those trips by keeping only start_date values that begin with the hottest date found in step 1, using a trailing wildcard to account for any time portion.", + "Count the remaining rows and return the result as the column trips." + ] + }, + "revisql-train:9077": { + "raw": "1. Use only the `trip` table; no joins are needed because the trip length is stored directly in its `duration` column.\n2. Identify `duration` as the column representing trip length in seconds.\n3. Aggregate by taking the maximum of `duration` to obtain the longest trip length in seconds.\n4. Convert that maximum duration into days using the external knowledge that days equal duration divided by 86400, casting the result as a real number to keep decimal precision.\n5. Return two columns: the longest duration in seconds and the same longest duration expressed in days.", + "steps": [ + "Use only the `trip` table; no joins are needed because the trip length is stored directly in its `duration` column.", + "Identify `duration` as the column representing trip length in seconds.", + "Aggregate by taking the maximum of `duration` to obtain the longest trip length in seconds.", + "Convert that maximum duration into days using the external knowledge that days equal duration divided by 86400, casting the result as a real number to keep decimal precision.", + "Return two columns: the longest duration in seconds and the same longest duration expressed in days." + ] + }, + "revisql-train:908": { + "raw": "1. Target the `prof` table exclusively; no joins are needed because graduation school and name are both stored there.\n2. Filter rows where the `graduate_from` column equals the exact string 'University of Boston'.\n3. Apply the external knowledge that a professor's full name comprises `first_name` and `last_name`, so both columns must be output.\n4. Select only `first_name` and `last_name` without any aggregation or ordering.", + "steps": [ + "Target the `prof` table exclusively; no joins are needed because graduation school and name are both stored there.", + "Filter rows where the `graduate_from` column equals the exact string 'University of Boston'.", + "Apply the external knowledge that a professor's full name comprises `first_name` and `last_name`, so both columns must be output.", + "Select only `first_name` and `last_name` without any aggregation or ordering." + ] + }, + "revisql-train:9081": { + "raw": "1. From the trip table, extract the date portion and zip code from both start_date and end_date, filter for 2014 trips, and union start_station_name and end_station_name into a single set of station-day records.\n2. Cast zip_code to text so it matches the weather table’s zip_code column type.\n3. Join this station-day set to the weather table on matching zip_code and date to attach the daily mean_temperature_f values.\n4. Apply the external knowledge conversion that 20 degrees Celsius equals 68 degrees Fahrenheit, keeping only rows where mean_temperature_f is 68.\n5. Select distinct station_name from the filtered results to return each qualifying station exactly once.", + "steps": [ + "From the trip table, extract the date portion and zip code from both start_date and end_date, filter for 2014 trips, and union start_station_name and end_station_name into a single set of station-day records.", + "Cast zip_code to text so it matches the weather table’s zip_code column type.", + "Join this station-day set to the weather table on matching zip_code and date to attach the daily mean_temperature_f values.", + "Apply the external knowledge conversion that 20 degrees Celsius equals 68 degrees Fahrenheit, keeping only rows where mean_temperature_f is 68.", + "Select distinct station_name from the filtered results to return each qualifying station exactly once." + ] + }, + "revisql-train:9087": { + "raw": "1. Group the trip table by bike_id, count trips per bike, order by that count ascending, and limit to the single bike_id representing the least used bike.\n2. Join that resulting bike_id back to the trip table on bike_id to retrieve every individual trip record for the least used bicycle.\n3. For each trip, use a CASE expression to output 'Yes' when start_station_id equals end_station_id and 'No' otherwise.\n4. Convert the duration from seconds to hours by dividing duration by 3600.0.\n5. Return the columns bike_id, the Yes/No same-station indicator, and the computed duration in hours.", + "steps": [ + "Group the trip table by bike_id, count trips per bike, order by that count ascending, and limit to the single bike_id representing the least used bike.", + "Join that resulting bike_id back to the trip table on bike_id to retrieve every individual trip record for the least used bicycle.", + "For each trip, use a CASE expression to output 'Yes' when start_station_id equals end_station_id and 'No' otherwise.", + "Convert the duration from seconds to hours by dividing duration by 3600.0.", + "Return the columns bike_id, the Yes/No same-station indicator, and the computed duration in hours." + ] + }, + "revisql-train:9089": { + "raw": "1. Use the station table since the question asks about stations and their installation details.\n2. Filter the city column to 'Mountain View' per the external knowledge mapping.\n3. Filter the installation_date column to '12/31/2013' per the external knowledge mapping.\n4. Apply both filters together with an AND condition.\n5. Return only the name column for the matching rows.", + "steps": [ + "Use the station table since the question asks about stations and their installation details.", + "Filter the city column to 'Mountain View' per the external knowledge mapping.", + "Filter the installation_date column to '12/31/2013' per the external knowledge mapping.", + "Apply both filters together with an AND condition.", + "Return only the name column for the matching rows." + ] + }, + "revisql-train:9094": { + "raw": "1. Join the trip table with the station table on station.id equal to trip.start_station_id to link each trip to its starting station’s location data.\n2. Filter the results to only rows where trip.start_station_name equals 'Santa Clara at Almaden'.\n3. Compute the average of trip.duration to get the average duration for those trips.\n4. Select station.lat and station.long to return the latitude and longitude of the starting station.\n5. Return the computed average duration alongside lat and long as the final output columns.", + "steps": [ + "Join the trip table with the station table on station.id equal to trip.start_station_id to link each trip to its starting station’s location data.", + "Filter the results to only rows where trip.start_station_name equals 'Santa Clara at Almaden'.", + "Compute the average of trip.duration to get the average duration for those trips.", + "Select station.lat and station.long to return the latitude and longitude of the starting station.", + "Return the computed average duration alongside lat and long as the final output columns." + ] + }, + "revisql-train:9095": { + "raw": "1. Filter the trip table to rows where start_station_name equals 'Franklin at Maple', applying the external knowledge that \"starting from\" maps to that column.\n2. Order the filtered results by duration ascending and keep only the first row to isolate the shortest trip, mapping \"shortest trip\" to the minimum duration; retain duration, start_date, and zip_code.\n3. Extract the date portion from the retained start_date to match against weather.date, because the trip start_date includes a time component.\n4. Join this single shortest trip record with the weather table on the extracted date and zip_code.\n5. Return the trip's duration as shortest_duration_seconds and the weather's max_wind_Speed_mph as max_wind_speed_mph, using the external knowledge that \"maximum wind speed\" maps to that column.", + "steps": [ + "Filter the trip table to rows where start_station_name equals 'Franklin at Maple', applying the external knowledge that \"starting from\" maps to that column.", + "Order the filtered results by duration ascending and keep only the first row to isolate the shortest trip, mapping \"shortest trip\" to the minimum duration; retain duration, start_date, and zip_code.", + "Extract the date portion from the retained start_date to match against weather.date, because the trip start_date includes a time component.", + "Join this single shortest trip record with the weather table on the extracted date and zip_code.", + "Return the trip's duration as shortest_duration_seconds and the weather's max_wind_Speed_mph as max_wind_speed_mph, using the external knowledge that \"maximum wind speed\" maps to that column." + ] + }, + "revisql-train:9096": { + "raw": "1. Join the `station` table to the `status` table on `station.id` = `status.station_id` to link station details with bike availability records.\n2. Filter `station.name` to the exact value 'San Jose Diridon Caltrain Station' to isolate the requested location.\n3. Filter `status.time` to the exact timestamp '2013/10/20 08:11:01', converting the input \"10/20/2013 8:11:01 AM\" to the stored format.\n4. Sum the `status.bikes_available` column to compute the total number of bikes that can be borrowed at that specific moment.\n5. Return the aggregated sum as `bikes_borrowed`, along with the station's coordinates `station.lat` and `station.long`.", + "steps": [ + "Join the `station` table to the `status` table on `station.id` = `status.station_id` to link station details with bike availability records.", + "Filter `station.name` to the exact value 'San Jose Diridon Caltrain Station' to isolate the requested location.", + "Filter `status.time` to the exact timestamp '2013/10/20 08:11:01', converting the input \"10/20/2013 8:11:01 AM\" to the stored format.", + "Sum the `status.bikes_available` column to compute the total number of bikes that can be borrowed at that specific moment.", + "Return the aggregated sum as `bikes_borrowed`, along with the station's coordinates `station.lat` and `station.long`." + ] + }, + "revisql-train:9100": { + "raw": "1. Join the trip table to the station table on the condition that the station's name equals the trip's end_station_name, connecting each finished trip to its destination station's details.\n2. Filter the results to only trips with end_station_name equal to 'MLK Library', applying the external knowledge that \"trips have been ended at\" maps to the end_station_name column.\n3. Further filter to only rows where subscription_type equals 'Subscriber', using the external knowledge that \"subscribers\" refers to this column and value.\n4. Count the trip ids to obtain the number of qualifying trips.\n5. Return two columns: the count of trips and the dock_count from the station table, representing the number of docks at MLK Library.", + "steps": [ + "Join the trip table to the station table on the condition that the station's name equals the trip's end_station_name, connecting each finished trip to its destination station's details.", + "Filter the results to only trips with end_station_name equal to 'MLK Library', applying the external knowledge that \"trips have been ended at\" maps to the end_station_name column.", + "Further filter to only rows where subscription_type equals 'Subscriber', using the external knowledge that \"subscribers\" refers to this column and value.", + "Count the trip ids to obtain the number of qualifying trips.", + "Return two columns: the count of trips and the dock_count from the station table, representing the number of docks at MLK Library." + ] + }, + "revisql-train:9134": { + "raw": "1. Join the customer table with the rental table on customer_id to link each rental record to the corresponding customer.\n2. Group the results by customer_id, first_name, and last_name, then count rental_id to compute the number of films rented per customer.\n3. Use the external knowledge mapping that \"full name\" corresponds to the first_name and last_name columns, and \"rented the most films\" corresponds to the maximum of those counted rental_id values.\n4. Filter the grouped results to keep only the customer(s) whose rental count equals that maximum value.\n5. Return exactly the columns first_name and last_name as the full name of the customer(s).", + "steps": [ + "Join the customer table with the rental table on customer_id to link each rental record to the corresponding customer.", + "Group the results by customer_id, first_name, and last_name, then count rental_id to compute the number of films rented per customer.", + "Use the external knowledge mapping that \"full name\" corresponds to the first_name and last_name columns, and \"rented the most films\" corresponds to the maximum of those counted rental_id values.", + "Filter the grouped results to keep only the customer(s) whose rental count equals that maximum value.", + "Return exactly the columns first_name and last_name as the full name of the customer(s)." + ] + }, + "revisql-train:9137": { + "raw": "1. Join the customer and rental tables on customer_id to associate each rental record with its customer.\n2. Filter the rows to only those where first_name and last_name correspond to either RUTH MARTINEZ or LINDA WILLIAMS.\n3. Group the results by first_name and last_name, counting the rental records per customer to compute total rentals.\n4. Order the grouped results by the rental count in descending order and keep only the top row to isolate the customer with the higher count.\n5. Return the first_name and last_name columns of the resulting customer.", + "steps": [ + "Join the customer and rental tables on customer_id to associate each rental record with its customer.", + "Filter the rows to only those where first_name and last_name correspond to either RUTH MARTINEZ or LINDA WILLIAMS.", + "Group the results by first_name and last_name, counting the rental records per customer to compute total rentals.", + "Order the grouped results by the rental count in descending order and keep only the top row to isolate the customer with the higher count.", + "Return the first_name and last_name columns of the resulting customer." + ] + }, + "revisql-train:9141": { + "raw": "1. Locate PENELOPE GUINESS in the actor table by filtering on first_name = 'PENELOPE' and last_name = 'GUINESS'.\n2. Join the actor table to film_actor on actor_id to collect every film_id associated with that actor.\n3. Join film_actor to the film table on film_id to reach the length column for each of those films.\n4. Apply the external knowledge that average duration time maps to an aggregation of AVG(length) over the joined film rows.\n5. Return only that single computed average duration value.", + "steps": [ + "Locate PENELOPE GUINESS in the actor table by filtering on first_name = 'PENELOPE' and last_name = 'GUINESS'.", + "Join the actor table to film_actor on actor_id to collect every film_id associated with that actor.", + "Join film_actor to the film table on film_id to reach the length column for each of those films.", + "Apply the external knowledge that average duration time maps to an aggregation of AVG(length) over the joined film rows.", + "Return only that single computed average duration value." + ] + }, + "revisql-train:9145": { + "raw": "1. Identify the address table as the source for postal codes, using its address_id as the primary key.\n2. Apply the external knowledge that \"address No.65\" corresponds to address_id = 65.\n3. Filter the address table to the single row where address_id equals 65.\n4. Return only the postal_code column from that row.", + "steps": [ + "Identify the address table as the source for postal codes, using its address_id as the primary key.", + "Apply the external knowledge that \"address No.65\" corresponds to address_id = 65.", + "Filter the address table to the single row where address_id equals 65.", + "Return only the postal_code column from that row." + ] + }, + "revisql-train:916": { + "raw": "1. Find the maximum value in the course table's diff column to identify the most difficult course(s).\n2. Join the student table to the registration table on student_id, and join the registration table to the course table on course_id.\n3. Filter the joined rows to keep only those where the course's diff equals the maximum difficulty found in step 1.\n4. Further filter those rows to only include records where the registration grade is 'A'.\n5. Return the distinct f_name and l_name columns from the student table to list the qualifying students' full names.", + "steps": [ + "Find the maximum value in the course table's diff column to identify the most difficult course(s).", + "Join the student table to the registration table on student_id, and join the registration table to the course table on course_id.", + "Filter the joined rows to keep only those where the course's diff equals the maximum difficulty found in step 1.", + "Further filter those rows to only include records where the registration grade is 'A'.", + "Return the distinct f_name and l_name columns from the student table to list the qualifying students' full names." + ] + }, + "revisql-train:9164": { + "raw": "1. Join the `payment` table to the `rental` table on `rental_id`; the money paid is stored in `payment.amount`.\n2. Filter the joined rows by `rental.customer_id` = 297 to identify customer No.297.\n3. Filter by `rental.rental_date` using a LIKE pattern beginning with '2005-07-28 12:27:27' to match the exact rental timestamp provided.\n4. Return only the `amount` column from `payment`.", + "steps": [ + "Join the `payment` table to the `rental` table on `rental_id`; the money paid is stored in `payment.amount`.", + "Filter the joined rows by `rental.customer_id` = 297 to identify customer No.297.", + "Filter by `rental.rental_date` using a LIKE pattern beginning with '2005-07-28 12:27:27' to match the exact rental timestamp provided.", + "Return only the `amount` column from `payment`." + ] + }, + "revisql-train:9166": { + "raw": "1. Use `film_category` as the primary table and join it to `category` on the shared `category_id` key.\n2. Filter the joined rows to only those where `category.name` is exactly 'Documentary'.\n3. Count the `film_id` column from `film_category` to compute the total number of documentary films.\n4. Return only that single aggregated count.", + "steps": [ + "Use `film_category` as the primary table and join it to `category` on the shared `category_id` key.", + "Filter the joined rows to only those where `category.name` is exactly 'Documentary'.", + "Count the `film_id` column from `film_category` to compute the total number of documentary films.", + "Return only that single aggregated count." + ] + }, + "revisql-train:9170": { + "raw": "1. Join the country table with the city table on country_id so that each city record carries its corresponding country name.\n2. Map the terms Indian and Italian to the country column values India and Italy respectively.\n3. Use conditional aggregation to count rows: sum 1 whenever the country is India to form the numerator, and sum 1 whenever the country is Italy to form the denominator.\n4. Cast the numerator aggregate to a real number before dividing by the denominator, ensuring the result is a decimal ratio rather than an integer.\n5. Return a single column containing the resulting ratio that represents how many times the Indian city count exceeds the Italian city count.", + "steps": [ + "Join the country table with the city table on country_id so that each city record carries its corresponding country name.", + "Map the terms Indian and Italian to the country column values India and Italy respectively.", + "Use conditional aggregation to count rows: sum 1 whenever the country is India to form the numerator, and sum 1 whenever the country is Italy to form the denominator.", + "Cast the numerator aggregate to a real number before dividing by the denominator, ensuring the result is a decimal ratio rather than an integer.", + "Return a single column containing the resulting ratio that represents how many times the Indian city count exceeds the Italian city count." + ] + }, + "revisql-train:9174": { + "raw": "1. Target the `film` table, which contains both the film title and the special features.\n2. Map the requested film name to the `title` column using the exact value 'SMOOCHY CONTROL'.\n3. Filter rows where `title` equals 'SMOOCHY CONTROL'.\n4. Return only the `special_features` column.", + "steps": [ + "Target the `film` table, which contains both the film title and the special features.", + "Map the requested film name to the `title` column using the exact value 'SMOOCHY CONTROL'.", + "Filter rows where `title` equals 'SMOOCHY CONTROL'.", + "Return only the `special_features` column." + ] + }, + "revisql-train:9176": { + "raw": "1. Identify the `film` table as the only source needed, since it holds both film titles and runtime data.\n2. Map the requested film names to the `title` column.\n3. Apply the external knowledge that \"more than 180 minutes long\" means filtering the `length` column to values strictly greater than 180.\n4. Return exactly the `title` column for all rows satisfying that duration condition.", + "steps": [ + "Identify the `film` table as the only source needed, since it holds both film titles and runtime data.", + "Map the requested film names to the `title` column.", + "Apply the external knowledge that \"more than 180 minutes long\" means filtering the `length` column to values strictly greater than 180.", + "Return exactly the `title` column for all rows satisfying that duration condition." + ] + }, + "revisql-train:92": { + "raw": "1. Use only the `lists` table, since it contains both the list titles and their comment counts.\n2. Map the requirement \"the most comments\" to the maximum value of the `list_comments` column using a MAX aggregate across all rows.\n3. Compute that maximum comment count from the `lists` table.\n4. Filter the `lists` table to keep only the row(s) where `list_comments` equals that maximum value.\n5. Return exactly the `list_title` column from the filtered row(s).", + "steps": [ + "Use only the `lists` table, since it contains both the list titles and their comment counts.", + "Map the requirement \"the most comments\" to the maximum value of the `list_comments` column using a MAX aggregate across all rows.", + "Compute that maximum comment count from the `lists` table.", + "Filter the `lists` table to keep only the row(s) where `list_comments` equals that maximum value.", + "Return exactly the `list_title` column from the filtered row(s)." + ] + }, + "revisql-train:920": { + "raw": "1. Use the `student`, `registration`, and `course` tables.\n2. Join `student` to `registration` on `student_id`, then join `registration` to `course` on `course_id`.\n3. Filter for rows where `student.type` is `'UG'` and `student.gpa` is greater than or equal to `3.7`.\n4. Return the distinct values of the `name` column from the `course` table.", + "steps": [ + "Use the `student`, `registration`, and `course` tables.", + "Join `student` to `registration` on `student_id`, then join `registration` to `course` on `course_id`.", + "Filter for rows where `student.type` is `'UG'` and `student.gpa` is greater than or equal to `3.7`.", + "Return the distinct values of the `name` column from the `course` table." + ] + }, + "revisql-train:921": { + "raw": "1. Identify the three tables required: prof to check the graduation school, RA to connect professors with students and store capability, and student to provide the students' names.\n2. Join prof to RA on prof_id, then join RA to student on student_id to establish the path from professor graduation records to advised students.\n3. Filter the results to only rows where graduate_from is University of Washington.\n4. Return the columns f_name and l_name from student and capability from RA.", + "steps": [ + "Identify the three tables required: prof to check the graduation school, RA to connect professors with students and store capability, and student to provide the students' names.", + "Join prof to RA on prof_id, then join RA to student on student_id to establish the path from professor graduation records to advised students.", + "Filter the results to only rows where graduate_from is University of Washington.", + "Return the columns f_name and l_name from student and capability from RA." + ] + }, + "revisql-train:9216": { + "raw": "1. Start with the customer table and filter to the single customer where first_name equals 'BRIAN' and last_name equals 'WYMAN'.\n2. Join from customer to rental on customer_id to get all rentals for that customer, then apply the July 2005 filter by mapping the external knowledge to the rental_date column: extract the year as 2005 and the month as 07.\n3. Join from rental to inventory on inventory_id to obtain the film_id for each qualifying rental.\n4. Join from inventory to film on film_id to access the film records.\n5. Return only the title column from the film table.", + "steps": [ + "Start with the customer table and filter to the single customer where first_name equals 'BRIAN' and last_name equals 'WYMAN'.", + "Join from customer to rental on customer_id to get all rentals for that customer, then apply the July 2005 filter by mapping the external knowledge to the rental_date column: extract the year as 2005 and the month as 07.", + "Join from rental to inventory on inventory_id to obtain the film_id for each qualifying rental.", + "Join from inventory to film on film_id to access the film records.", + "Return only the title column from the film table." + ] + }, + "revisql-train:9229": { + "raw": "1. Filter the `film` table to the single record whose `description` exactly matches the provided plot summary.\n2. Join `film_actor` on `film_id` to obtain the `actor_id` values for every actor linked to that film.\n3. Join the `actor` table on `actor_id` to access the actor name columns.\n4. Return only the `last_name` column from the `actor` table.", + "steps": [ + "Filter the `film` table to the single record whose `description` exactly matches the provided plot summary.", + "Join `film_actor` on `film_id` to obtain the `actor_id` values for every actor linked to that film.", + "Join the `actor` table on `actor_id` to access the actor name columns.", + "Return only the `last_name` column from the `actor` table." + ] + }, + "revisql-train:9235": { + "raw": "1. Join the film table to the inventory table on the shared film_id column so film attributes can be checked alongside inventory IDs.\n2. Restrict the inventory rows to only those with an inventory_id between 20 and 60 inclusive.\n3. Filter the film rows to keep only those where the rating column equals 'G', applying the external knowledge that G rating corresponds to rating = 'G'.\n4. Count distinct film_id values so each qualifying film is counted once, even if it has multiple inventory items falling inside the specified range.\n5. Return that final count as the answer.", + "steps": [ + "Join the film table to the inventory table on the shared film_id column so film attributes can be checked alongside inventory IDs.", + "Restrict the inventory rows to only those with an inventory_id between 20 and 60 inclusive.", + "Filter the film rows to keep only those where the rating column equals 'G', applying the external knowledge that G rating corresponds to rating = 'G'.", + "Count distinct film_id values so each qualifying film is counted once, even if it has multiple inventory items falling inside the specified range.", + "Return that final count as the answer." + ] + }, + "revisql-train:9240": { + "raw": "1. Filter the actor table to the single record where first_name is 'LUCILLE' and last_name is 'DEE', mapping the external full-name knowledge to those two columns.\n2. Inner join film_actor on actor_id to collect every film_id linked to that actor.\n3. Inner join film on film_id and apply the filter rental_rate = 4.99 to keep only films with that price.\n4. Inner join inventory on film_id to reach the inventory records for the qualifying films.\n5. Return only the inventory_id column from the inventory table.", + "steps": [ + "Filter the actor table to the single record where first_name is 'LUCILLE' and last_name is 'DEE', mapping the external full-name knowledge to those two columns.", + "Inner join film_actor on actor_id to collect every film_id linked to that actor.", + "Inner join film on film_id and apply the filter rental_rate = 4.99 to keep only films with that price.", + "Inner join inventory on film_id to reach the inventory records for the qualifying films.", + "Return only the inventory_id column from the inventory table." + ] + }, + "revisql-train:9249": { + "raw": "1. Join `film_category` to `category` on `category_id` so every film is paired with its category name.\n2. Use the external knowledge that 'Horror' is a value in the `category.name` column to identify horror films.\n3. Count all rows from the join to obtain the total number of film-category associations.\n4. Count only the rows where `category.name` equals 'Horror' to obtain the horror subset.\n5. Cast the horror count to a real number, multiply by 100, and divide by the total count to compute the percentage.\n6. Return the single resulting percentage value.", + "steps": [ + "Join `film_category` to `category` on `category_id` so every film is paired with its category name.", + "Use the external knowledge that 'Horror' is a value in the `category.name` column to identify horror films.", + "Count all rows from the join to obtain the total number of film-category associations.", + "Count only the rows where `category.name` equals 'Horror' to obtain the horror subset.", + "Cast the horror count to a real number, multiply by 100, and divide by the total count to compute the percentage.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:9269": { + "raw": "1. Use the rental table to access rental dates and the payment table to access payment amounts, joining them on the rental_id key.\n2. Filter to rows where the date portion of rental.rental_date equals '2005-07-29', applying the external knowledge that July 29, 2005 maps to that exact date string.\n3. Sum the payment.amount column across the filtered rows to compute the total paid.\n4. Return the single aggregated total amount value.", + "steps": [ + "Use the rental table to access rental dates and the payment table to access payment amounts, joining them on the rental_id key.", + "Filter to rows where the date portion of rental.rental_date equals '2005-07-29', applying the external knowledge that July 29, 2005 maps to that exact date string.", + "Sum the payment.amount column across the filtered rows to compute the total paid.", + "Return the single aggregated total amount value." + ] + }, + "revisql-train:927": { + "raw": "1. Use the `course` table, which holds the name and credit for every course.\n2. Filter to the single row where the `name` column equals 'Computer Vision'.\n3. Return the value from the `credit` column of that row.", + "steps": [ + "Use the `course` table, which holds the name and credit for every course.", + "Filter to the single row where the `name` column equals 'Computer Vision'.", + "Return the value from the `credit` column of that row." + ] + }, + "revisql-train:9274": { + "raw": "1. Join film_category to film_actor on film_id, then to category on category_id, and to actor on actor_id to connect each actor with their film's category and name fields.\n2. Filter the joined rows to only those where category.name equals 'Comedy'.\n3. Group by actor_id, first_name, and last_name, counting the film_actor records to compute how many comedy films each actor appeared in.\n4. Determine the maximum value of that comedy film count across all actors.\n5. Return first_name and last_name for the actor(s) whose comedy film count matches that maximum.", + "steps": [ + "Join film_category to film_actor on film_id, then to category on category_id, and to actor on actor_id to connect each actor with their film's category and name fields.", + "Filter the joined rows to only those where category.name equals 'Comedy'.", + "Group by actor_id, first_name, and last_name, counting the film_actor records to compute how many comedy films each actor appeared in.", + "Determine the maximum value of that comedy film count across all actors.", + "Return first_name and last_name for the actor(s) whose comedy film count matches that maximum." + ] + }, + "revisql-train:9291": { + "raw": "1. Use the `address` table to locate the record matching the street value '1623 Kingstown Drive'.\n2. Join the `city` table to the `address` table on their shared `city_id` column.\n3. Filter the joined results to keep only the row where the `address` column equals '1623 Kingstown Drive'.\n4. Return the `city` column from the `city` table as the final answer.", + "steps": [ + "Use the `address` table to locate the record matching the street value '1623 Kingstown Drive'.", + "Join the `city` table to the `address` table on their shared `city_id` column.", + "Filter the joined results to keep only the row where the `address` column equals '1623 Kingstown Drive'.", + "Return the `city` column from the `city` table as the final answer." + ] + }, + "revisql-train:93": { + "raw": "1. Join the `movies` and `ratings` tables on `movie_id` to link each film to its user ratings.\n2. Filter to rows where `movie_release_year` equals 2008, applying the release-year condition.\n3. Group the filtered results by `movie_id` (and its associated `movie_title`) to prepare for per-film aggregation.\n4. Compute `AVG(rating_score)` for each film group.\n5. Use a subquery that repeats the same join, 2008 filter, and grouping, then orders the averages descending and limits to 1, to isolate the single highest average rating score.\n6. In the outer query, keep only groups whose average matches that subquery result, and return the `movie_title` column.", + "steps": [ + "Join the `movies` and `ratings` tables on `movie_id` to link each film to its user ratings.", + "Filter to rows where `movie_release_year` equals 2008, applying the release-year condition.", + "Group the filtered results by `movie_id` (and its associated `movie_title`) to prepare for per-film aggregation.", + "Compute `AVG(rating_score)` for each film group.", + "Use a subquery that repeats the same join, 2008 filter, and grouping, then orders the averages descending and limits to 1, to isolate the single highest average rating score.", + "In the outer query, keep only groups whose average matches that subquery result, and return the `movie_title` column." + ] + }, + "revisql-train:930": { + "raw": "1. Join the RA table to the student table on the student_id column to combine salary records with each student's GPA.\n2. Filter the joined rows to only those where RA.salary equals 'high', applying the external knowledge mapping for \"high salary\".\n3. Further filter to only rows where student.gpa is greater than 3, applying the external knowledge mapping for \"GPA higher than 3\".\n4. Count the distinct student_id values from the RA table to produce the total number of qualifying students.", + "steps": [ + "Join the RA table to the student table on the student_id column to combine salary records with each student's GPA.", + "Filter the joined rows to only those where RA.salary equals 'high', applying the external knowledge mapping for \"high salary\".", + "Further filter to only rows where student.gpa is greater than 3, applying the external knowledge mapping for \"GPA higher than 3\".", + "Count the distinct student_id values from the RA table to produce the total number of qualifying students." + ] + }, + "revisql-train:9306": { + "raw": "1. Use only the `film` table; no joins are needed because the required attributes both reside there.\n2. Return the `rating` column to answer what the question asks for.\n3. Apply the external knowledge that \"featuring behind the scenes\" maps to the `special_features` column, filtering with a LIKE pattern that contains 'Behind the Scenes'.\n4. Do not aggregate or order; simply retrieve the `rating` for every row that matches the filter.", + "steps": [ + "Use only the `film` table; no joins are needed because the required attributes both reside there.", + "Return the `rating` column to answer what the question asks for.", + "Apply the external knowledge that \"featuring behind the scenes\" maps to the `special_features` column, filtering with a LIKE pattern that contains 'Behind the Scenes'.", + "Do not aggregate or order; simply retrieve the `rating` for every row that matches the filter." + ] + }, + "revisql-train:9307": { + "raw": "1. Use only the rental table, as it contains both customer_id and rental_id to link customers to each rental event.\n2. Group the records by customer_id to aggregate rentals for each individual customer.\n3. Count the rental_id values in each group to compute the total number of films rented per customer, mapping the external knowledge that the rental count is derived from rental_id.\n4. Order the grouped results by this count in descending order to place the highest rental total first.\n5. Limit the result to the single top row to isolate the largest number of films rented by any one customer.\n6. Return exactly one column: the count of rental_id representing that maximum rental count.", + "steps": [ + "Use only the rental table, as it contains both customer_id and rental_id to link customers to each rental event.", + "Group the records by customer_id to aggregate rentals for each individual customer.", + "Count the rental_id values in each group to compute the total number of films rented per customer, mapping the external knowledge that the rental count is derived from rental_id.", + "Order the grouped results by this count in descending order to place the highest rental total first.", + "Limit the result to the single top row to isolate the largest number of films rented by any one customer.", + "Return exactly one column: the count of rental_id representing that maximum rental count." + ] + }, + "revisql-train:9308": { + "raw": "1. Query the film_text table, which contains both film descriptions and titles.\n2. Filter to rows where the description contains the word \"Lacklusture\" by using a pattern match with leading and trailing wildcards.\n3. Return only the title column, as external knowledge specifies that \"films\" refers to title.", + "steps": [ + "Query the film_text table, which contains both film descriptions and titles.", + "Filter to rows where the description contains the word \"Lacklusture\" by using a pattern match with leading and trailing wildcards.", + "Return only the title column, as external knowledge specifies that \"films\" refers to title." + ] + }, + "revisql-train:9313": { + "raw": "1. Map the term \"cast\" to the actor table and note that actor names correspond to the first_name and last_name columns.\n2. Join film_actor to actor on actor_id to connect each actor with their film appearances.\n3. Join film to film_actor on film_id to access the title of each film.\n4. Filter the joined results to only the row where the film title equals 'JASON TRAP'.\n5. Return the first_name and last_name columns from the actor table.", + "steps": [ + "Map the term \"cast\" to the actor table and note that actor names correspond to the first_name and last_name columns.", + "Join film_actor to actor on actor_id to connect each actor with their film appearances.", + "Join film to film_actor on film_id to access the title of each film.", + "Filter the joined results to only the row where the film title equals 'JASON TRAP'.", + "Return the first_name and last_name columns from the actor table." + ] + }, + "revisql-train:932": { + "raw": "1. Join the RA table with the student table on student_id to link each student's research capability with their demographic attributes.\n2. Filter the joined rows to only those where student.type equals 'RPG', applying the external knowledge that maps \"research postgraduate students\" to this value.\n3. Further filter to rows where student.intelligence is greater than or equal to 4, applying the external knowledge that maps \"intelligence level of 4 and above\" to this condition.\n4. Return distinct values of the capability column from the RA table.", + "steps": [ + "Join the RA table with the student table on student_id to link each student's research capability with their demographic attributes.", + "Filter the joined rows to only those where student.type equals 'RPG', applying the external knowledge that maps \"research postgraduate students\" to this value.", + "Further filter to rows where student.intelligence is greater than or equal to 4, applying the external knowledge that maps \"intelligence level of 4 and above\" to this condition.", + "Return distinct values of the capability column from the RA table." + ] + }, + "revisql-train:9320": { + "raw": "1. Join film_actor to actor on actor_id to bring in each actor's first_name and last_name for every film appearance.\n2. Group by actor_id, first_name, and last_name, then count film_id to calculate the total number of films per actor.\n3. Compute the maximum value among those film counts to identify the highest number of films any actor appeared in.\n4. Filter the grouped results to keep only the actor(s) whose film count equals that maximum.\n5. Return the columns first_name and last_name.", + "steps": [ + "Join film_actor to actor on actor_id to bring in each actor's first_name and last_name for every film appearance.", + "Group by actor_id, first_name, and last_name, then count film_id to calculate the total number of films per actor.", + "Compute the maximum value among those film counts to identify the highest number of films any actor appeared in.", + "Filter the grouped results to keep only the actor(s) whose film count equals that maximum.", + "Return the columns first_name and last_name." + ] + }, + "revisql-train:9321": { + "raw": "1. Join film_category with category on category_id and with film on film_id to bring together each film and its category name.\n2. Apply the external knowledge that the category name 'Horror' is stored in the category table’s name column (T2.name).\n3. For the numerator, sum a conditional indicator that returns 1 when the category name is 'Horror' and 0 otherwise.\n4. For the denominator, count every T1.film_id to obtain the total number of film entries.\n5. Cast the numerator to a real number, multiply by 100, and divide by the denominator to compute the percentage.\n6. Return exactly one column containing this final calculated percentage.", + "steps": [ + "Join film_category with category on category_id and with film on film_id to bring together each film and its category name.", + "Apply the external knowledge that the category name 'Horror' is stored in the category table’s name column (T2.name).", + "For the numerator, sum a conditional indicator that returns 1 when the category name is 'Horror' and 0 otherwise.", + "For the denominator, count every T1.film_id to obtain the total number of film entries.", + "Cast the numerator to a real number, multiply by 100, and divide by the denominator to compute the percentage.", + "Return exactly one column containing this final calculated percentage." + ] + }, + "revisql-train:9325": { + "raw": "1. Map the external knowledge so that \"full name\" refers to the actor table's first_name and last_name columns, and \"global maximum rental rate\" refers to the maximum value of rental_rate in the film table.\n2. Join the actor table to film_actor on actor_id, then join film_actor to film on film_id to connect every actor with the rental rates of their films.\n3. Group the joined results by actor_id, first_name, and last_name to aggregate rental rates per individual actor.\n4. Compute the single global maximum rental_rate from the film table, and use a HAVING clause to keep only those actor groups whose maximum rental_rate equals that global value.\n5. Return the first_name and last_name columns for each qualifying actor.", + "steps": [ + "Map the external knowledge so that \"full name\" refers to the actor table's first_name and last_name columns, and \"global maximum rental rate\" refers to the maximum value of rental_rate in the film table.", + "Join the actor table to film_actor on actor_id, then join film_actor to film on film_id to connect every actor with the rental rates of their films.", + "Group the joined results by actor_id, first_name, and last_name to aggregate rental rates per individual actor.", + "Compute the single global maximum rental_rate from the film table, and use a HAVING clause to keep only those actor groups whose maximum rental_rate equals that global value.", + "Return the first_name and last_name columns for each qualifying actor." + ] + }, + "revisql-train:933": { + "raw": "1. Join the registration table with the student table using the student_id column as the join key.\n2. Filter the results to only rows where the grade column in registration is 'B'.\n3. Further filter to only rows where the intelligence column in student equals 3.\n4. Count the distinct student_id values from the registration table to produce the final answer.", + "steps": [ + "Join the registration table with the student table using the student_id column as the join key.", + "Filter the results to only rows where the grade column in registration is 'B'.", + "Further filter to only rows where the intelligence column in student equals 3.", + "Count the distinct student_id values from the registration table to produce the final answer." + ] + }, + "revisql-train:9338": { + "raw": "1. Target the `film` table, which stores each film’s release year and unique identifier.\n2. Filter rows where `release_year` equals 2006, using the external knowledge that “released in 2006” maps to this column and value.\n3. Count the `film_id` values to compute the total number of matching films.\n4. Return only the resulting count column.", + "steps": [ + "Target the `film` table, which stores each film’s release year and unique identifier.", + "Filter rows where `release_year` equals 2006, using the external knowledge that “released in 2006” maps to this column and value.", + "Count the `film_id` values to compute the total number of matching films.", + "Return only the resulting count column." + ] + }, + "revisql-train:9340": { + "raw": "1. Identify that the film table alone supplies both the film_id and the rental_duration values, so no joins are needed.\n2. Apply the external knowledge that \"highest rental duration\" means the maximum value of the rental_duration column.\n3. Compute that maximum by running a scalar subquery on the film table that selects MAX(rental_duration).\n4. Filter the film table to retain only rows whose rental_duration equals the value returned by that subquery.\n5. Return exactly the film_id column for all films matching that filter.", + "steps": [ + "Identify that the film table alone supplies both the film_id and the rental_duration values, so no joins are needed.", + "Apply the external knowledge that \"highest rental duration\" means the maximum value of the rental_duration column.", + "Compute that maximum by running a scalar subquery on the film table that selects MAX(rental_duration).", + "Filter the film table to retain only rows whose rental_duration equals the value returned by that subquery.", + "Return exactly the film_id column for all films matching that filter." + ] + }, + "revisql-train:9341": { + "raw": "1. Use the `film` table, which contains both the film `title` and the `rental_rate`.\n2. Map the phrase \"most expensive rental rate\" to the maximum value of the `rental_rate` column by computing `MAX(rental_rate)` in a subquery against the same `film` table.\n3. Filter the main `film` query to keep only rows whose `rental_rate` equals that maximum value.\n4. Return exactly the `title` column for the matching films.", + "steps": [ + "Use the `film` table, which contains both the film `title` and the `rental_rate`.", + "Map the phrase \"most expensive rental rate\" to the maximum value of the `rental_rate` column by computing `MAX(rental_rate)` in a subquery against the same `film` table.", + "Filter the main `film` query to keep only rows whose `rental_rate` equals that maximum value.", + "Return exactly the `title` column for the matching films." + ] + }, + "revisql-train:9349": { + "raw": "1. Join `film` to `film_category` on `film_id`, then to `category` on `category_id` to associate each film with its category name.\n2. Filter the joined rows to only those where `category.name` equals 'Documentary', mapping the external knowledge that documentary refers to that specific category name.\n3. Compute the maximum value of `length` from the filtered documentary rows, applying the external knowledge that longest length corresponds to `MAX(length)`.\n4. Select the `title` from the documentary films whose `length` equals that computed maximum.\n5. Return only the `title` column as the final result.", + "steps": [ + "Join `film` to `film_category` on `film_id`, then to `category` on `category_id` to associate each film with its category name.", + "Filter the joined rows to only those where `category.name` equals 'Documentary', mapping the external knowledge that documentary refers to that specific category name.", + "Compute the maximum value of `length` from the filtered documentary rows, applying the external knowledge that longest length corresponds to `MAX(length)`.", + "Select the `title` from the documentary films whose `length` equals that computed maximum.", + "Return only the `title` column as the final result." + ] + }, + "revisql-train:9360": { + "raw": "1. Join film_category to film on film_id, then to category on category_id, and to language on language_id so every row carries the film’s category name and language name.\n2. Keep only rows where language.name equals 'English', mapping the external knowledge for English films.\n3. Count how many of those English rows are horror films by summing a conditional indicator that is 1 when category.name equals 'Horror' and 0 otherwise.\n4. Cast that horror count to REAL, multiply by 100, and divide by the total count of film_id in the filtered English set to compute the percentage.\n5. Return the single resulting percentage value.", + "steps": [ + "Join film_category to film on film_id, then to category on category_id, and to language on language_id so every row carries the film’s category name and language name.", + "Keep only rows where language.name equals 'English', mapping the external knowledge for English films.", + "Count how many of those English rows are horror films by summing a conditional indicator that is 1 when category.name equals 'Horror' and 0 otherwise.", + "Cast that horror count to REAL, multiply by 100, and divide by the total count of film_id in the filtered English set to compute the percentage.", + "Return the single resulting percentage value." + ] + }, + "revisql-train:9369": { + "raw": "1. Start with the `film` table and join it to `film_category` on `film_id` to link each film to its category association.\n2. Join `category` on `category_id` to retrieve the category name.\n3. Apply the external knowledge that \"price per day is more than $1\" maps to a filter where `rental_rate` divided by `rental_duration` is greater than 1.\n4. Return the columns `title` from `film`, `name` from `category`, and `special_features` from `film`.", + "steps": [ + "Start with the `film` table and join it to `film_category` on `film_id` to link each film to its category association.", + "Join `category` on `category_id` to retrieve the category name.", + "Apply the external knowledge that \"price per day is more than $1\" maps to a filter where `rental_rate` divided by `rental_duration` is greater than 1.", + "Return the columns `title` from `film`, `name` from `category`, and `special_features` from `film`." + ] + }, + "revisql-train:9371": { + "raw": "1. Locate Maria Miller in the customer table by filtering where UPPER(first_name) equals 'MARIA' and UPPER(last_name) equals 'MILLER', and retrieve her customer_id.\n2. Join the rental table with inventory on the inventory_id key to associate each rental record with its corresponding film_id.\n3. Restrict the joined results to only rentals whose customer_id matches the value found in step 1.\n4. Count the distinct film_id values from the inventory side to determine how many unique movies were rented.\n5. Return the final result as a single column named distinct_films.", + "steps": [ + "Locate Maria Miller in the customer table by filtering where UPPER(first_name) equals 'MARIA' and UPPER(last_name) equals 'MILLER', and retrieve her customer_id.", + "Join the rental table with inventory on the inventory_id key to associate each rental record with its corresponding film_id.", + "Restrict the joined results to only rentals whose customer_id matches the value found in step 1.", + "Count the distinct film_id values from the inventory side to determine how many unique movies were rented.", + "Return the final result as a single column named distinct_films." + ] + }, + "revisql-train:9372": { + "raw": "1. Locate Dorothy Taylor in the customer table by filtering first_name to 'DOROTHY' and last_name to 'TAYLOR'.\n2. Chain joins from customer to rental on customer_id, rental to inventory on inventory_id, and inventory to film on film_id to reach the movie titles.\n3. Use a subquery on rental joined to customer with the same name filters to find the maximum rental_date, mapping \"the most recent\" to MAX(rental_date).\n4. Keep only the rental row in the main query whose rental_date equals that maximum value.\n5. Return the title column from the film table.", + "steps": [ + "Locate Dorothy Taylor in the customer table by filtering first_name to 'DOROTHY' and last_name to 'TAYLOR'.", + "Chain joins from customer to rental on customer_id, rental to inventory on inventory_id, and inventory to film on film_id to reach the movie titles.", + "Use a subquery on rental joined to customer with the same name filters to find the maximum rental_date, mapping \"the most recent\" to MAX(rental_date).", + "Keep only the rental row in the main query whose rental_date equals that maximum value.", + "Return the title column from the film table." + ] + }, + "revisql-train:9373": { + "raw": "1. Start from the film_category table to link each film to its category identifier.\n2. Join the category table on category_id and apply the filter that name equals 'Action', using the external knowledge that action movies map to this category name.\n3. Join the inventory table on film_id to ensure only films with physical copies available for rent are included.\n4. Count distinct film_id values so each unique action movie is counted once regardless of how many inventory items or category rows exist.\n5. Return the final result as a single column named action_movies_available.", + "steps": [ + "Start from the film_category table to link each film to its category identifier.", + "Join the category table on category_id and apply the filter that name equals 'Action', using the external knowledge that action movies map to this category name.", + "Join the inventory table on film_id to ensure only films with physical copies available for rent are included.", + "Count distinct film_id values so each unique action movie is counted once regardless of how many inventory items or category rows exist.", + "Return the final result as a single column named action_movies_available." + ] + }, + "revisql-train:9374": { + "raw": "1. Filter the film table to the row where title equals 'WYOMING STORM' using the external knowledge mapping.\n2. Join film to inventory on film_id to find which stores carry physical copies of that film.\n3. Join inventory to store on store_id to identify the specific rental store locations.\n4. Join store to address on address_id to retrieve the physical address text for each store.\n5. Return the address column from the address table and the rental_rate column from the film table.", + "steps": [ + "Filter the film table to the row where title equals 'WYOMING STORM' using the external knowledge mapping.", + "Join film to inventory on film_id to find which stores carry physical copies of that film.", + "Join inventory to store on store_id to identify the specific rental store locations.", + "Join store to address on address_id to retrieve the physical address text for each store.", + "Return the address column from the address table and the rental_rate column from the film table." + ] + }, + "revisql-train:9375": { + "raw": "1. Filter the customer table to the record where first_name equals 'ANDRE' and last_name equals 'RAPP'.\n2. Join that customer record to the rental table on customer_id to access the rental_date and return_date columns.\n3. Join rental to inventory on inventory_id, then join inventory to film on film_id to reach the film title.\n4. Apply the external knowledge mapping that 'Destiny Saturday' corresponds to film.title = 'DESTINY SATURDAY' to isolate the correct rental.\n5. Compute the duration by subtracting the Julian day of rental_date from the Julian day of return_date.\n6. Return the computed difference aliased as days_to_return.", + "steps": [ + "Filter the customer table to the record where first_name equals 'ANDRE' and last_name equals 'RAPP'.", + "Join that customer record to the rental table on customer_id to access the rental_date and return_date columns.", + "Join rental to inventory on inventory_id, then join inventory to film on film_id to reach the film title.", + "Apply the external knowledge mapping that 'Destiny Saturday' corresponds to film.title = 'DESTINY SATURDAY' to isolate the correct rental.", + "Compute the duration by subtracting the Julian day of rental_date from the Julian day of return_date.", + "Return the computed difference aliased as days_to_return." + ] + }, + "revisql-train:9379": { + "raw": "1. Target the `film` table, as it contains both the rental pricing and replacement cost data needed.\n2. Filter to rows where `rental_rate` is exactly 4.99, applying the external knowledge that the specified rental rate maps to this column value.\n3. Aggregate the `replacement_cost` column using the average function, reflecting the external knowledge that \"average replacement cost\" means `avg(replacement_cost)`.\n4. Return the single computed column representing the average replacement cost.", + "steps": [ + "Target the `film` table, as it contains both the rental pricing and replacement cost data needed.", + "Filter to rows where `rental_rate` is exactly 4.99, applying the external knowledge that the specified rental rate maps to this column value.", + "Aggregate the `replacement_cost` column using the average function, reflecting the external knowledge that \"average replacement cost\" means `avg(replacement_cost)`.", + "Return the single computed column representing the average replacement cost." + ] + }, + "revisql-train:938": { + "raw": "1. Join the student table to the registration table on student_id, then join registration to the course table on course_id to link each student with the credits of their enrolled courses.\n2. Filter the course table to only rows where credit equals 3.\n3. Filter the student table to only rows where gpa equals 3.2.\n4. Since one student may have multiple registrations in 3-credit courses, aggregate with a distinct count of student_id to avoid duplicates.\n5. Return the final count of distinct students.", + "steps": [ + "Join the student table to the registration table on student_id, then join registration to the course table on course_id to link each student with the credits of their enrolled courses.", + "Filter the course table to only rows where credit equals 3.", + "Filter the student table to only rows where gpa equals 3.2.", + "Since one student may have multiple registrations in 3-credit courses, aggregate with a distinct count of student_id to avoid duplicates.", + "Return the final count of distinct students." + ] + }, + "revisql-train:9384": { + "raw": "1. Determine the maximum value of the `length` column in the `film` table, as \"longest\" refers to `MAX(length)`.\n2. Filter the `film` table to include only rows where `length` equals that maximum value.\n3. Select the `title` column from the filtered records.\n4. Arrange the results alphabetically in ascending order by `title`.", + "steps": [ + "Determine the maximum value of the `length` column in the `film` table, as \"longest\" refers to `MAX(length)`.", + "Filter the `film` table to include only rows where `length` equals that maximum value.", + "Select the `title` column from the filtered records.", + "Arrange the results alphabetically in ascending order by `title`." + ] + }, + "revisql-train:9387": { + "raw": "1. Target the customer table, as it stores the active status for each customer.\n2. Map the question’s “active” to the active column using the external knowledge that active means active = 1.\n3. Filter rows to include only those where active equals 1.\n4. Aggregate by counting customer_id to compute the total number of still-active customers.\n5. Return the count of customer_id as the final result column.", + "steps": [ + "Target the customer table, as it stores the active status for each customer.", + "Map the question’s “active” to the active column using the external knowledge that active means active = 1.", + "Filter rows to include only those where active equals 1.", + "Aggregate by counting customer_id to compute the total number of still-active customers.", + "Return the count of customer_id as the final result column." + ] + }, + "revisql-train:9388": { + "raw": "1. Query the `film` table, which contains both the film titles and their ratings.\n2. Apply a filter on the `rating` column where the value equals `'PG-13'`, using the external knowledge that \"rated as PG-13\" maps to `rating = 'PG-13'`.\n3. Return only the `title` column to list the names of the films.\n4. No joins, aggregation, or ordering are required.", + "steps": [ + "Query the `film` table, which contains both the film titles and their ratings.", + "Apply a filter on the `rating` column where the value equals `'PG-13'`, using the external knowledge that \"rated as PG-13\" maps to `rating = 'PG-13'`.", + "Return only the `title` column to list the names of the films.", + "No joins, aggregation, or ordering are required." + ] + }, + "revisql-train:9393": { + "raw": "1. Use the film_actor table as the central bridge, joining it to the actor table on actor_id to retrieve first_name and last_name for the full names.\n2. Join film_actor to the film table on film_id to access the title column for filtering.\n3. Apply the external knowledge mapping by filtering to film.title = 'ENDING CROWDS'.\n4. Return the columns first_name and last_name from the actor table as the full names of all actors in that film.", + "steps": [ + "Use the film_actor table as the central bridge, joining it to the actor table on actor_id to retrieve first_name and last_name for the full names.", + "Join film_actor to the film table on film_id to access the title column for filtering.", + "Apply the external knowledge mapping by filtering to film.title = 'ENDING CROWDS'.", + "Return the columns first_name and last_name from the actor table as the full names of all actors in that film." + ] + }, + "revisql-train:9396": { + "raw": "1. Use the `city` table as the primary source and join it to the `country` table on the shared `country_id` key.\n2. Apply a WHERE condition on the `country` column to keep only rows where the value is 'Philippines'.\n3. Return the `city` column from the `city` table.", + "steps": [ + "Use the `city` table as the primary source and join it to the `country` table on the shared `country_id` key.", + "Apply a WHERE condition on the `country` column to keep only rows where the value is 'Philippines'.", + "Return the `city` column from the `city` table." + ] + }, + "revisql-train:9397": { + "raw": "1. Start from the film table and left join inventory on film_id, then left join rental on inventory_id, so every film is preserved even if it has no rentals.\n2. Group by film_id along with title, and count rental_id to compute the total number of rentals per film.\n3. Compute the minimum value of those rental counts across all films to identify the least rented threshold.\n4. Filter the grouped results to keep only films whose rental count equals that minimum.\n5. Return the title column for those films, ordered alphabetically by title.", + "steps": [ + "Start from the film table and left join inventory on film_id, then left join rental on inventory_id, so every film is preserved even if it has no rentals.", + "Group by film_id along with title, and count rental_id to compute the total number of rentals per film.", + "Compute the minimum value of those rental counts across all films to identify the least rented threshold.", + "Filter the grouped results to keep only films whose rental count equals that minimum.", + "Return the title column for those films, ordered alphabetically by title." + ] + }, + "revisql-train:9399": { + "raw": "1. Start with the `film` table and filter to rows where `title` equals 'BEACH HEARTBREAKERS'.\n2. Join `film_category` on `film_id` to bridge the film to its category identifier.\n3. Join `category` on `category_id` to reach the category's descriptive name.\n4. Return only the `name` column from the `category` table.", + "steps": [ + "Start with the `film` table and filter to rows where `title` equals 'BEACH HEARTBREAKERS'.", + "Join `film_category` on `film_id` to bridge the film to its category identifier.", + "Join `category` on `category_id` to reach the category's descriptive name.", + "Return only the `name` column from the `category` table." + ] + }, + "revisql-train:94": { + "raw": "1. Join the `movies` table to the `ratings` table on `movie_id` to connect each movie title with its rating records.\n2. Map the phrase \"likes related to the critic made by the user rating the movie\" to the `critic_likes` column in `ratings`.\n3. Group the joined results by `movies.movie_id` to aggregate data per distinct movie.\n4. Sum the `critic_likes` values within each group to compute the total number of critic likes per movie.\n5. Order the grouped results by the summed likes in descending order and limit the output to the first three rows.\n6. Return only the `movie_title` column as the final result.", + "steps": [ + "Join the `movies` table to the `ratings` table on `movie_id` to connect each movie title with its rating records.", + "Map the phrase \"likes related to the critic made by the user rating the movie\" to the `critic_likes` column in `ratings`.", + "Group the joined results by `movies.movie_id` to aggregate data per distinct movie.", + "Sum the `critic_likes` values within each group to compute the total number of critic likes per movie.", + "Order the grouped results by the summed likes in descending order and limit the output to the first three rows.", + "Return only the `movie_title` column as the final result." + ] + }, + "revisql-train:940": { + "raw": "1. Join registration to student on student_id and to course on course_id to combine grade, email, and difficulty data.\n2. Filter the registration rows to only those with grade equal to 'B'.\n3. Compute the difficulty threshold as 80% of the average of the diff column across all courses, matching the external definition.\n4. Retain only rows where the course's diff value is strictly greater than that computed threshold.\n5. Return the email column from the student table.", + "steps": [ + "Join registration to student on student_id and to course on course_id to combine grade, email, and difficulty data.", + "Filter the registration rows to only those with grade equal to 'B'.", + "Compute the difficulty threshold as 80% of the average of the diff column across all courses, matching the external definition.", + "Retain only rows where the course's diff value is strictly greater than that computed threshold.", + "Return the email column from the student table." + ] + }, + "revisql-train:9405": { + "raw": "1. Start from the customer table, which holds both customer names and their activity status.\n2. Filter to active customers only by requiring active = 1, applying the external knowledge that active refers to active = 1.\n3. Further filter to rows where first_name equals 'NINA'.\n4. Aggregate by counting customer_id to compute the total number of matching customers.\n5. Return the resulting count of customer_id as the single output column.", + "steps": [ + "Start from the customer table, which holds both customer names and their activity status.", + "Filter to active customers only by requiring active = 1, applying the external knowledge that active refers to active = 1.", + "Further filter to rows where first_name equals 'NINA'.", + "Aggregate by counting customer_id to compute the total number of matching customers.", + "Return the resulting count of customer_id as the single output column." + ] + }, + "revisql-train:9408": { + "raw": "1. Filter the actor table to the row where first_name is 'NICK' and last_name is 'WAHLBERG'.\n2. Join that result to film_actor on actor_id, then join to film on film_id to collect all films starring the actor.\n3. Extract the film.length column, mapping the requested \"duration\", alongside film.rental_rate for those rows.\n4. Compute the maximum rental_rate across this subset of films to find the highest rental rate.\n5. Return only the length value of the film(s) whose rental_rate equals that maximum.", + "steps": [ + "Filter the actor table to the row where first_name is 'NICK' and last_name is 'WAHLBERG'.", + "Join that result to film_actor on actor_id, then join to film on film_id to collect all films starring the actor.", + "Extract the film.length column, mapping the requested \"duration\", alongside film.rental_rate for those rows.", + "Compute the maximum rental_rate across this subset of films to find the highest rental rate.", + "Return only the length value of the film(s) whose rental_rate equals that maximum." + ] + }, + "revisql-train:9411": { + "raw": "1. Join `film_actor` to `actor` on `actor_id` and to `film` on `film_id` to connect cast members with film details.\n2. Apply the external knowledge that a rental rate of 2.99 maps to `film.rental_rate = 2.99`.\n3. Filter the `actor` table to rows where `first_name` is 'NINA' and `last_name` is 'SOTO'.\n4. Aggregate with `COUNT(film_actor.film_id)` to compute the number of matching films.\n5. Return the count of `film_id` as the single output column.", + "steps": [ + "Join `film_actor` to `actor` on `actor_id` and to `film` on `film_id` to connect cast members with film details.", + "Apply the external knowledge that a rental rate of 2.99 maps to `film.rental_rate = 2.99`.", + "Filter the `actor` table to rows where `first_name` is 'NINA' and `last_name` is 'SOTO'.", + "Aggregate with `COUNT(film_actor.film_id)` to compute the number of matching films.", + "Return the count of `film_id` as the single output column." + ] + }, + "revisql-train:9424": { + "raw": "1. Identify that customer full names are stored as `first_name` and `last_name` in the `customer` table, while payment amounts are recorded in the `payment` table.\n2. Join `payment` to `customer` on the `customer_id` key to link every payment to the corresponding customer.\n3. Compute the biggest single payment amount by using `MAX(amount)` queried from the `payment` table.\n4. Filter the joined results to only rows where the payment `amount` equals that maximum value.\n5. Return the distinct `first_name` and `last_name` columns to show the full name(s) of the customer(s) who made that largest payment.", + "steps": [ + "Identify that customer full names are stored as `first_name` and `last_name` in the `customer` table, while payment amounts are recorded in the `payment` table.", + "Join `payment` to `customer` on the `customer_id` key to link every payment to the corresponding customer.", + "Compute the biggest single payment amount by using `MAX(amount)` queried from the `payment` table.", + "Filter the joined results to only rows where the payment `amount` equals that maximum value.", + "Return the distinct `first_name` and `last_name` columns to show the full name(s) of the customer(s) who made that largest payment." + ] + }, + "revisql-train:945": { + "raw": "1. Use only the `student` table since every required field and condition is present there and no joins are needed.\n2. Map the external knowledge \"intelligence < 4\" to a filter on the `intelligence` column.\n3. Map the external knowledge \"gpa > 3\" to a filter on the `gpa` column, combining it with the intelligence filter using AND.\n4. Map the external knowledge \"full name = f_name, l_name\" to select the `f_name` and `l_name` columns.\n5. Include the `phone_number` column and return exactly these three columns.", + "steps": [ + "Use only the `student` table since every required field and condition is present there and no joins are needed.", + "Map the external knowledge \"intelligence < 4\" to a filter on the `intelligence` column.", + "Map the external knowledge \"gpa > 3\" to a filter on the `gpa` column, combining it with the intelligence filter using AND.", + "Map the external knowledge \"full name = f_name, l_name\" to select the `f_name` and `l_name` columns.", + "Include the `phone_number` column and return exactly these three columns." + ] + }, + "revisql-train:95": { + "raw": "1. Start from the lists_users table to access user_id and list_creation_date_utc.\n2. Inner join the lists table on list_id to bring in list_followers for each list.\n3. Apply the follower condition by filtering list_followers to greater than 100, mapping the external knowledge for \"more than 100 followers\".\n4. Apply the date condition by filtering list_creation_date_utc with a pattern starting with 2009, mapping the external knowledge for \"created in 2009\".\n5. Aggregate by counting distinct user_id to return the number of unique users satisfying both conditions.", + "steps": [ + "Start from the lists_users table to access user_id and list_creation_date_utc.", + "Inner join the lists table on list_id to bring in list_followers for each list.", + "Apply the follower condition by filtering list_followers to greater than 100, mapping the external knowledge for \"more than 100 followers\".", + "Apply the date condition by filtering list_creation_date_utc with a pattern starting with 2009, mapping the external knowledge for \"created in 2009\".", + "Aggregate by counting distinct user_id to return the number of unique users satisfying both conditions." + ] + }, + "revisql-train:951": { + "raw": "1. Join the RA table with the student table on student_id to retrieve each RA's full name components.\n2. Join the registration table on student_id to access the grades for courses taken.\n3. Filter for records where the grade column is NULL or an empty string, reflecting the external knowledge that these mean the student failed.\n4. Use DISTINCT to ensure each qualifying RA is listed once even if they failed multiple courses.\n5. Return the columns f_name, l_name from student, and capability from RA.", + "steps": [ + "Join the RA table with the student table on student_id to retrieve each RA's full name components.", + "Join the registration table on student_id to access the grades for courses taken.", + "Filter for records where the grade column is NULL or an empty string, reflecting the external knowledge that these mean the student failed.", + "Use DISTINCT to ensure each qualifying RA is listed once even if they failed multiple courses.", + "Return the columns f_name, l_name from student, and capability from RA." + ] + }, + "revisql-train:955": { + "raw": "1. In the RA table, group by student_id and derive two binary flags per student indicating whether they have any 'high' salary record and any 'free' salary record, since one student may hold multiple RA positions under different professors.\n2. In the registration table, group by student_id and calculate the average sat to obtain each student's mean satisfaction score.\n3. Join the flagged salary data to the per-student satisfaction averages using student_id as the join key.\n4. Compute the overall average of those per-student mean satisfaction values for the group flagged with 'high' salary, and do the same for the group flagged with 'free' salary.\n5. Subtract the free-salary group average from the high-salary group average and return the result as a single difference column.", + "steps": [ + "In the RA table, group by student_id and derive two binary flags per student indicating whether they have any 'high' salary record and any 'free' salary record, since one student may hold multiple RA positions under different professors.", + "In the registration table, group by student_id and calculate the average sat to obtain each student's mean satisfaction score.", + "Join the flagged salary data to the per-student satisfaction averages using student_id as the join key.", + "Compute the overall average of those per-student mean satisfaction values for the group flagged with 'high' salary, and do the same for the group flagged with 'free' salary.", + "Subtract the free-salary group average from the high-salary group average and return the result as a single difference column." + ] + }, + "revisql-train:956": { + "raw": "1. Join the prof, RA, and student tables using prof_id and student_id as the join keys to link each professor with the students they advise.\n2. Filter for undergraduate students by applying the condition that student.type equals 'UG'.\n3. Group the results by professor ID and count the number of student IDs in each group to calculate how many undergraduate students each professor advised.\n4. Sort the grouped results by this count in descending order and keep only the top row to isolate the professor who advised the most undergraduates.\n5. Return the graduate_from column from the prof table, which holds the university from which that professor graduated.", + "steps": [ + "Join the prof, RA, and student tables using prof_id and student_id as the join keys to link each professor with the students they advise.", + "Filter for undergraduate students by applying the condition that student.type equals 'UG'.", + "Group the results by professor ID and count the number of student IDs in each group to calculate how many undergraduate students each professor advised.", + "Sort the grouped results by this count in descending order and keep only the top row to isolate the professor who advised the most undergraduates.", + "Return the graduate_from column from the prof table, which holds the university from which that professor graduated." + ] + }, + "revisql-train:957": { + "raw": "1. Join the RA table to the prof table on prof_id to link each professor with their advised students and access name and email fields.\n2. Filter for rows where the professor's teachingability is greater than the average teachingability across all rows in the prof table.\n3. Group the joined results by professor prof_id so that advisees can be counted per professor.\n4. Apply a HAVING condition keeping only groups where the count of student_id from RA is two or more.\n5. Return the columns first_name, last_name, and email to provide the full name and email address.", + "steps": [ + "Join the RA table to the prof table on prof_id to link each professor with their advised students and access name and email fields.", + "Filter for rows where the professor's teachingability is greater than the average teachingability across all rows in the prof table.", + "Group the joined results by professor prof_id so that advisees can be counted per professor.", + "Apply a HAVING condition keeping only groups where the count of student_id from RA is two or more.", + "Return the columns first_name, last_name, and email to provide the full name and email address." + ] + }, + "revisql-train:962": { + "raw": "1. Join the student table to registration on student_id, then join registration to course on course_id.\n2. Filter course rows to only those where name equals 'Statistical learning'.\n3. Filter registration rows to only those where sat equals 4, applying the external knowledge that satisfaction refers to sat.\n4. Filter student rows to only those where gpa equals 3.8.\n5. Count the student_id values from the student table to produce the final answer.", + "steps": [ + "Join the student table to registration on student_id, then join registration to course on course_id.", + "Filter course rows to only those where name equals 'Statistical learning'.", + "Filter registration rows to only those where sat equals 4, applying the external knowledge that satisfaction refers to sat.", + "Filter student rows to only those where gpa equals 3.8.", + "Count the student_id values from the student table to produce the final answer." + ] + }, + "revisql-train:963": { + "raw": "1. Join the student table to registration on student_id, then join registration to course on course_id to connect students with course difficulty data.\n2. Filter courses to those where diff equals 3 and students to those where intelligence equals 2, using the external knowledge mappings.\n3. Count distinct student_id values to ensure each student is counted only once regardless of multiple enrollments in difficulty-3 courses.\n4. Return only the resulting count of distinct students.", + "steps": [ + "Join the student table to registration on student_id, then join registration to course on course_id to connect students with course difficulty data.", + "Filter courses to those where diff equals 3 and students to those where intelligence equals 2, using the external knowledge mappings.", + "Count distinct student_id values to ensure each student is counted only once regardless of multiple enrollments in difficulty-3 courses.", + "Return only the resulting count of distinct students." + ] + }, + "revisql-train:964": { + "raw": "1. Join the student table to registration on student_id, then join registration to course on course_id.\n2. Filter the course table to only rows where the course name is \"Applied Deep Learning\".\n3. Filter the registration table to only rows where grade equals \"C\", applying the external knowledge that \"got a C\" maps to grade = 'C'.\n4. Return the student's first name and last name columns from the student table, named f_name and l_name.", + "steps": [ + "Join the student table to registration on student_id, then join registration to course on course_id.", + "Filter the course table to only rows where the course name is \"Applied Deep Learning\".", + "Filter the registration table to only rows where grade equals \"C\", applying the external knowledge that \"got a C\" maps to grade = 'C'.", + "Return the student's first name and last name columns from the student table, named f_name and l_name." + ] + }, + "revisql-train:967": { + "raw": "1. Start from the advisedBy table, which holds the student-advisor relationship records.\n2. Map the concept \"students\" to the p_id column and \"advisor\" to the p_id_dummy column.\n3. Count all p_id values to obtain the total number of student supervisees.\n4. Count distinct p_id_dummy values to obtain the total number of unique advisors.\n5. Divide the total student count by the distinct advisor count, casting the numerator as REAL to perform decimal division.\n6. Return the single computed result in a column named avgnum.", + "steps": [ + "Start from the advisedBy table, which holds the student-advisor relationship records.", + "Map the concept \"students\" to the p_id column and \"advisor\" to the p_id_dummy column.", + "Count all p_id values to obtain the total number of student supervisees.", + "Count distinct p_id_dummy values to obtain the total number of unique advisors.", + "Divide the total student count by the distinct advisor count, casting the numerator as REAL to perform decimal division.", + "Return the single computed result in a column named avgnum." + ] + }, + "revisql-train:968": { + "raw": "1. Join the taughtBy table with the person table on the p_id column to link course assignments to role information.\n2. Filter taughtBy rows to only those where course_id equals 18, mapping the specified course ID 18 directly to this column.\n3. Filter person rows to only those where the professor flag equals 1, ensuring the count includes only actual professors.\n4. Count distinct p_id values from the taughtBy records to total unique professors teaching that course.\n5. Return a single column containing that aggregated count.", + "steps": [ + "Join the taughtBy table with the person table on the p_id column to link course assignments to role information.", + "Filter taughtBy rows to only those where course_id equals 18, mapping the specified course ID 18 directly to this column.", + "Filter person rows to only those where the professor flag equals 1, ensuring the count includes only actual professors.", + "Count distinct p_id values from the taughtBy records to total unique professors teaching that course.", + "Return a single column containing that aggregated count." + ] + }, + "revisql-train:969": { + "raw": "1. Recognize that the request only asks for course information by level, so the `course` table alone is sufficient; no joins are needed.\n2. Use the external knowledge to map \"professional or master/graduate courses\" to the `courseLevel` column value `'Level_500'`.\n3. Filter the `course` table to keep only rows where `courseLevel` equals `'Level_500'`.\n4. Return only the `course_id` column from the filtered results.", + "steps": [ + "Recognize that the request only asks for course information by level, so the `course` table alone is sufficient; no joins are needed.", + "Use the external knowledge to map \"professional or master/graduate courses\" to the `courseLevel` column value `'Level_500'`.", + "Filter the `course` table to keep only rows where `courseLevel` equals `'Level_500'`.", + "Return only the `course_id` column from the filtered results." + ] + }, + "revisql-train:97": { + "raw": "1. Use the external knowledge to map \"cover image of the user\" to the column user_cover_image_url in the lists_users table.\n2. Join lists_users with lists on the shared list_id key to connect each list creator with the corresponding list record.\n3. Filter the joined rows to only those where the list_title in lists matches Georgia related films.\n4. Return the user_cover_image_url column from the lists_users table for the matching row.", + "steps": [ + "Use the external knowledge to map \"cover image of the user\" to the column user_cover_image_url in the lists_users table.", + "Join lists_users with lists on the shared list_id key to connect each list creator with the corresponding list record.", + "Filter the joined rows to only those where the list_title in lists matches Georgia related films.", + "Return the user_cover_image_url column from the lists_users table for the matching row." + ] + }, + "revisql-train:972": { + "raw": "1. Start with the `taughtBy` table, since it contains the professor IDs in its `p_id` column.\n2. Join `course` on `course_id` to access the course level information.\n3. Join `person` on `p_id` to verify the person's role.\n4. Filter for rows where `courseLevel` equals 'Level_400' (high-level or harder undergraduate course) and `professor` equals 1.\n5. Return distinct values of `taughtBy.p_id` as the professor IDs.", + "steps": [ + "Start with the `taughtBy` table, since it contains the professor IDs in its `p_id` column.", + "Join `course` on `course_id` to access the course level information.", + "Join `person` on `p_id` to verify the person's role.", + "Filter for rows where `courseLevel` equals 'Level_400' (high-level or harder undergraduate course) and `professor` equals 1.", + "Return distinct values of `taughtBy.p_id` as the professor IDs." + ] + }, + "revisql-train:974": { + "raw": "1. Start with the `advisedBy` table, which stores relationships between students and their advisors.\n2. Map the term \"advisors\" to the `p_id_dummy` column using the external knowledge.\n3. Join `advisedBy` to the `person` table on `p_id` to access each student's `yearsInProgram`.\n4. Filter the joined rows to keep only those where `yearsInProgram` equals 'Year_3'.\n5. Return distinct values of `p_id_dummy` so each advisor appears only once in the result.", + "steps": [ + "Start with the `advisedBy` table, which stores relationships between students and their advisors.", + "Map the term \"advisors\" to the `p_id_dummy` column using the external knowledge.", + "Join `advisedBy` to the `person` table on `p_id` to access each student's `yearsInProgram`.", + "Filter the joined rows to keep only those where `yearsInProgram` equals 'Year_3'.", + "Return distinct values of `p_id_dummy` so each advisor appears only once in the result." + ] + }, + "revisql-train:975": { + "raw": "1. Use the course table to retrieve course levels and the taughtBy table to connect professors with the courses they teach.\n2. Join course and taughtBy on the shared course_id column.\n3. Filter taughtBy to only rows where p_id equals 297, applying the external knowledge that professor ID 297 maps directly to this column.\n4. Return only the courseLevel column from the course table.", + "steps": [ + "Use the course table to retrieve course levels and the taughtBy table to connect professors with the courses they teach.", + "Join course and taughtBy on the shared course_id column.", + "Filter taughtBy to only rows where p_id equals 297, applying the external knowledge that professor ID 297 maps directly to this column.", + "Return only the courseLevel column from the course table." + ] + }, + "revisql-train:980": { + "raw": "1. Join `taughtBy` with `course` on `course_id` and with `person` on `p_id` to connect each professor to the levels of courses they teach.\n2. Filter the rows to keep only those where `person.professor` equals 1, so only actual professors are considered.\n3. Group the filtered results by `taughtBy.p_id`, the professor identifier.\n4. Apply a HAVING condition using conditional aggregation to require that each professor’s group has at least one course with `courseLevel` = 'Level_400' and at least one with `courseLevel` = 'Level_500'.\n5. Return the distinct `taughtBy.p_id` values as the IDs of professors who teach both harder undergraduate and master/graduate courses.", + "steps": [ + "Join `taughtBy` with `course` on `course_id` and with `person` on `p_id` to connect each professor to the levels of courses they teach.", + "Filter the rows to keep only those where `person.professor` equals 1, so only actual professors are considered.", + "Group the filtered results by `taughtBy.p_id`, the professor identifier.", + "Apply a HAVING condition using conditional aggregation to require that each professor’s group has at least one course with `courseLevel` = 'Level_400' and at least one with `courseLevel` = 'Level_500'.", + "Return the distinct `taughtBy.p_id` values as the IDs of professors who teach both harder undergraduate and master/graduate courses." + ] + }, + "revisql-train:983": { + "raw": "1. Start with the course table, as the question concerns courses and no joins to other tables are required.\n2. Map the external knowledge that \"basic and medium undergraduate courses\" corresponds to courseLevel = 'Level_300'.\n3. Filter the course table by applying courseLevel = 'Level_300'.\n4. Since the question asks \"how many\", aggregate the filtered results with a count of all matching rows.\n5. Return only the resulting count; no other columns need to be selected.", + "steps": [ + "Start with the course table, as the question concerns courses and no joins to other tables are required.", + "Map the external knowledge that \"basic and medium undergraduate courses\" corresponds to courseLevel = 'Level_300'.", + "Filter the course table by applying courseLevel = 'Level_300'.", + "Since the question asks \"how many\", aggregate the filtered results with a count of all matching rows.", + "Return only the resulting count; no other columns need to be selected." + ] + }, + "revisql-train:984": { + "raw": "1. Use external knowledge to map course no.11 to taughtBy.course_id = 11 and people to taughtBy.p_id.\n2. Join taughtBy with person on p_id to access the professor flag for each individual.\n3. Filter the joined rows to only those where course_id = 11 and professor = 1.\n4. Count taughtBy.p_id to return the total number of people teaching that course.", + "steps": [ + "Use external knowledge to map course no.11 to taughtBy.course_id = 11 and people to taughtBy.p_id.", + "Join taughtBy with person on p_id to access the professor flag for each individual.", + "Filter the joined rows to only those where course_id = 11 and professor = 1.", + "Count taughtBy.p_id to return the total number of people teaching that course." + ] + }, + "revisql-train:988": { + "raw": "1. Join the `course` table to `taughtBy` on `course_id`, then join `taughtBy` to `person` on `p_id` to link each course with its instructors.\n2. Use the external knowledge mapping for course level to filter `course` rows where `courseLevel` equals `'Level_300'`, isolating basic or medium undergraduate courses.\n3. Use the external knowledge mapping for role to filter `person` rows where `professor` equals `1`, keeping only professors.\n4. Compute the total as a count of distinct `course_id` values from the `course` table to ensure each qualifying course is counted once.\n5. Return exactly that count of distinct `course_id`.", + "steps": [ + "Join the `course` table to `taughtBy` on `course_id`, then join `taughtBy` to `person` on `p_id` to link each course with its instructors.", + "Use the external knowledge mapping for course level to filter `course` rows where `courseLevel` equals `'Level_300'`, isolating basic or medium undergraduate courses.", + "Use the external knowledge mapping for role to filter `person` rows where `professor` equals `1`, keeping only professors.", + "Compute the total as a count of distinct `course_id` values from the `course` table to ensure each qualifying course is counted once.", + "Return exactly that count of distinct `course_id`." + ] + }, + "revisql-train:989": { + "raw": "1. Join the `course` table to `taughtBy` on `course_id` to link each course with its instructors.\n2. Join `taughtBy` to the `person` table on `p_id` to access each instructor’s position attributes.\n3. Filter rows where `courseLevel` equals `'Level_300'`, corresponding to basic or medium undergraduate courses per the external knowledge.\n4. Filter rows where `hasPosition` equals `'Faculty_eme'`, corresponding to faculty employees per the external knowledge.\n5. Return the `p_id` column representing the faculty employee’s person ID.", + "steps": [ + "Join the `course` table to `taughtBy` on `course_id` to link each course with its instructors.", + "Join `taughtBy` to the `person` table on `p_id` to access each instructor’s position attributes.", + "Filter rows where `courseLevel` equals `'Level_300'`, corresponding to basic or medium undergraduate courses per the external knowledge.", + "Filter rows where `hasPosition` equals `'Faculty_eme'`, corresponding to faculty employees per the external knowledge.", + "Return the `p_id` column representing the faculty employee’s person ID." + ] + }, + "revisql-train:990": { + "raw": "1. Start from the taughtBy table and filter to rows where course_id equals 9 to locate the teacher(s) of course no.9.\n2. Join those results to the person table on matching p_id to bring in the teacher's position information.\n3. Map the faculty member check to the person.hasPosition column, treating any non-zero value as indicating a faculty member.\n4. Use a conditional expression that returns 'Yes' when hasPosition is not 0 and 'No' otherwise.\n5. Return only that conditional Yes/No result as the final output column.", + "steps": [ + "Start from the taughtBy table and filter to rows where course_id equals 9 to locate the teacher(s) of course no.9.", + "Join those results to the person table on matching p_id to bring in the teacher's position information.", + "Map the faculty member check to the person.hasPosition column, treating any non-zero value as indicating a faculty member.", + "Use a conditional expression that returns 'Yes' when hasPosition is not 0 and 'No' otherwise.", + "Return only that conditional Yes/No result as the final output column." + ] + }, + "revisql-train:991": { + "raw": "1. Identify that course levels are in the `courseLevel` column of the `course` table and that instructor assignments are stored in the `taughtBy` table.\n2. Join `course` with `taughtBy` on `course_id` to link each course with the person teaching it.\n3. Filter the joined rows to only those where `taughtBy.p_id` equals 79, mapping to teacher no.79.\n4. Return the `courseLevel` values from the `course` table as the result.", + "steps": [ + "Identify that course levels are in the `courseLevel` column of the `course` table and that instructor assignments are stored in the `taughtBy` table.", + "Join `course` with `taughtBy` on `course_id` to link each course with the person teaching it.", + "Filter the joined rows to only those where `taughtBy.p_id` equals 79, mapping to teacher no.79.", + "Return the `courseLevel` values from the `course` table as the result." + ] + }, + "revisql-train:992": { + "raw": "1. Start from the `advisedBy` table, noting that the advisor identifier is stored in `p_id_dummy` per the external knowledge.\n2. Join `advisedBy` to the `person` table on the student key, matching `advisedBy.p_id` to `person.p_id`, to bring in program year information.\n3. Filter the joined rows to keep only those where `person.yearsInProgram` equals 'Year_5', mapping the 5th-year requirement.\n4. Return the `p_id_dummy` column from `advisedBy` as the final output containing the advisor IDs.", + "steps": [ + "Start from the `advisedBy` table, noting that the advisor identifier is stored in `p_id_dummy` per the external knowledge.", + "Join `advisedBy` to the `person` table on the student key, matching `advisedBy.p_id` to `person.p_id`, to bring in program year information.", + "Filter the joined rows to keep only those where `person.yearsInProgram` equals 'Year_5', mapping the 5th-year requirement.", + "Return the `p_id_dummy` column from `advisedBy` as the final output containing the advisor IDs." + ] + }, + "revisql-train:994": { + "raw": "1. Join the `course` table to `taughtBy` on matching `course_id`, then join `taughtBy` to `person` on matching `p_id` to link each course with its instructor(s).\n2. Filter the courses to only basic or medium undergraduate by requiring `courseLevel` to equal 'Level_300'.\n3. Filter the instructors to only faculty members by requiring `hasPosition` to not equal '0'.\n4. Count distinct values of `course_id` from the `course` table and return that single aggregated number.", + "steps": [ + "Join the `course` table to `taughtBy` on matching `course_id`, then join `taughtBy` to `person` on matching `p_id` to link each course with its instructor(s).", + "Filter the courses to only basic or medium undergraduate by requiring `courseLevel` to equal 'Level_300'.", + "Filter the instructors to only faculty members by requiring `hasPosition` to not equal '0'.", + "Count distinct values of `course_id` from the `course` table and return that single aggregated number." + ] + }, + "revisql-train:996": { + "raw": "1. Join the `course` and `taughtBy` tables on `course_id` to link every course with its instructors.\n2. In the outer query, group by `taughtBy.course_id` and count distinct `taughtBy.p_id` to compute the number of teachers for each course.\n3. In a subquery, perform the same join of `course` and `taughtBy`, group by `course_id`, count distinct `p_id`, order the resulting counts descending, and limit to 1 to obtain the maximum teacher count.\n4. Apply a `HAVING` clause to the outer grouped results so only course(s) whose teacher count equals that subquery maximum are retained.\n5. Return the `courseLevel` column from the `course` table as the final result.", + "steps": [ + "Join the `course` and `taughtBy` tables on `course_id` to link every course with its instructors.", + "In the outer query, group by `taughtBy.course_id` and count distinct `taughtBy.p_id` to compute the number of teachers for each course.", + "In a subquery, perform the same join of `course` and `taughtBy`, group by `course_id`, count distinct `p_id`, order the resulting counts descending, and limit to 1 to obtain the maximum teacher count.", + "Apply a `HAVING` clause to the outer grouped results so only course(s) whose teacher count equals that subquery maximum are retained.", + "Return the `courseLevel` column from the `course` table as the final result." + ] + } + }, + "sample_size": 2064, + "seed": 42 +} diff --git a/revisql-verified/subsets/bird-platinum-hard.json b/revisql-verified/subsets/bird-platinum-hard.json new file mode 100644 index 0000000000000000000000000000000000000000..cd73d1c93721b2816634e0afe448fc41b1b26644 --- /dev/null +++ b/revisql-verified/subsets/bird-platinum-hard.json @@ -0,0 +1,691 @@ +[ + "revisql-train:11", + "revisql-train:17", + "revisql-train:33", + "revisql-train:37", + "revisql-train:38", + "revisql-train:40", + "revisql-train:50", + "revisql-train:53", + "revisql-train:78", + "revisql-train:80", + "revisql-train:81", + "revisql-train:94", + "revisql-train:119", + "revisql-train:157", + "revisql-train:166", + "revisql-train:177", + "revisql-train:209", + "revisql-train:227", + "revisql-train:230", + "revisql-train:239", + "revisql-train:248", + "revisql-train:263", + "revisql-train:273", + "revisql-train:282", + "revisql-train:283", + "revisql-train:286", + "revisql-train:314", + "revisql-train:321", + "revisql-train:324", + "revisql-train:330", + "revisql-train:333", + "revisql-train:340", + "revisql-train:385", + "revisql-train:388", + "revisql-train:402", + "revisql-train:440", + "revisql-train:454", + "revisql-train:457", + "revisql-train:518", + "revisql-train:535", + "revisql-train:536", + "revisql-train:559", + "revisql-train:563", + "revisql-train:566", + "revisql-train:575", + "revisql-train:579", + "revisql-train:588", + "revisql-train:594", + "revisql-train:596", + "revisql-train:617", + "revisql-train:618", + "revisql-train:624", + "revisql-train:656", + "revisql-train:670", + "revisql-train:743", + "revisql-train:747", + "revisql-train:748", + "revisql-train:765", + "revisql-train:774", + "revisql-train:851", + "revisql-train:862", + "revisql-train:866", + "revisql-train:869", + "revisql-train:905", + "revisql-train:908", + "revisql-train:916", + "revisql-train:930", + "revisql-train:945", + "revisql-train:955", + "revisql-train:956", + "revisql-train:957", + "revisql-train:964", + "revisql-train:972", + "revisql-train:1000", + "revisql-train:1018", + "revisql-train:1024", + "revisql-train:1027", + "revisql-train:1028", + "revisql-train:1045", + "revisql-train:1046", + "revisql-train:1050", + "revisql-train:1055", + "revisql-train:1061", + "revisql-train:1067", + "revisql-train:1098", + "revisql-train:1104", + "revisql-train:1144", + "revisql-train:1154", + "revisql-train:1156", + "revisql-train:1175", + "revisql-train:1183", + "revisql-train:1187", + "revisql-train:1192", + "revisql-train:1220", + "revisql-train:1234", + "revisql-train:1235", + "revisql-train:1244", + "revisql-train:1269", + "revisql-train:1290", + "revisql-train:1296", + "revisql-train:1315", + "revisql-train:1326", + "revisql-train:1374", + "revisql-train:1415", + "revisql-train:1431", + "revisql-train:1456", + "revisql-train:1458", + "revisql-train:1483", + "revisql-train:1484", + "revisql-train:1501", + "revisql-train:1504", + "revisql-train:1512", + "revisql-train:1519", + "revisql-train:1538", + "revisql-train:1554", + "revisql-train:1558", + "revisql-train:1582", + "revisql-train:1583", + "revisql-train:1584", + "revisql-train:1590", + "revisql-train:1593", + "revisql-train:1595", + "revisql-train:1596", + "revisql-train:1606", + "revisql-train:1625", + "revisql-train:1627", + "revisql-train:1640", + "revisql-train:1641", + "revisql-train:1642", + "revisql-train:1643", + "revisql-train:1645", + "revisql-train:1649", + "revisql-train:1666", + "revisql-train:1684", + "revisql-train:1713", + "revisql-train:1718", + "revisql-train:1738", + "revisql-train:1740", + "revisql-train:1748", + "revisql-train:1775", + "revisql-train:1803", + "revisql-train:1813", + "revisql-train:1892", + "revisql-train:1934", + "revisql-train:1982", + "revisql-train:1997", + "revisql-train:2019", + "revisql-train:2022", + "revisql-train:2023", + "revisql-train:2040", + "revisql-train:2051", + "revisql-train:2052", + "revisql-train:2074", + "revisql-train:2077", + "revisql-train:2120", + "revisql-train:2135", + "revisql-train:2141", + "revisql-train:2142", + "revisql-train:2155", + "revisql-train:2167", + "revisql-train:2174", + "revisql-train:2178", + "revisql-train:2196", + "revisql-train:2200", + "revisql-train:2206", + "revisql-train:2248", + "revisql-train:2249", + "revisql-train:2252", + "revisql-train:2255", + "revisql-train:2272", + "revisql-train:2303", + "revisql-train:2315", + "revisql-train:2375", + "revisql-train:2398", + "revisql-train:2400", + "revisql-train:2407", + "revisql-train:2409", + "revisql-train:2412", + "revisql-train:2415", + "revisql-train:2417", + "revisql-train:2440", + "revisql-train:2441", + "revisql-train:2446", + "revisql-train:2465", + "revisql-train:2476", + "revisql-train:2479", + "revisql-train:2483", + "revisql-train:2505", + "revisql-train:2508", + "revisql-train:2510", + "revisql-train:2513", + "revisql-train:2515", + "revisql-train:2518", + "revisql-train:2526", + "revisql-train:2533", + "revisql-train:2537", + "revisql-train:2540", + "revisql-train:2542", + "revisql-train:2543", + "revisql-train:2546", + "revisql-train:2548", + "revisql-train:2551", + "revisql-train:2557", + "revisql-train:2562", + "revisql-train:2569", + "revisql-train:2580", + "revisql-train:2582", + "revisql-train:2587", + "revisql-train:2588", + "revisql-train:2599", + "revisql-train:2614", + "revisql-train:2615", + "revisql-train:2627", + "revisql-train:2637", + "revisql-train:2643", + "revisql-train:2687", + "revisql-train:2691", + "revisql-train:2692", + "revisql-train:2703", + "revisql-train:2721", + "revisql-train:2750", + "revisql-train:2754", + "revisql-train:2755", + "revisql-train:2782", + "revisql-train:2795", + "revisql-train:2802", + "revisql-train:2807", + "revisql-train:2849", + "revisql-train:2851", + "revisql-train:2855", + "revisql-train:2858", + "revisql-train:2859", + "revisql-train:2861", + "revisql-train:2896", + "revisql-train:2927", + "revisql-train:2934", + "revisql-train:2945", + "revisql-train:2997", + "revisql-train:3011", + "revisql-train:3026", + "revisql-train:3030", + "revisql-train:3044", + "revisql-train:3064", + "revisql-train:3104", + "revisql-train:3106", + "revisql-train:3115", + "revisql-train:3125", + "revisql-train:3136", + "revisql-train:3140", + "revisql-train:3145", + "revisql-train:3150", + "revisql-train:3170", + "revisql-train:3175", + "revisql-train:3179", + "revisql-train:3187", + "revisql-train:3189", + "revisql-train:3193", + "revisql-train:3194", + "revisql-train:3198", + "revisql-train:3204", + "revisql-train:3205", + "revisql-train:3207", + "revisql-train:3223", + "revisql-train:3237", + "revisql-train:3244", + "revisql-train:3248", + "revisql-train:3251", + "revisql-train:3257", + "revisql-train:3266", + "revisql-train:3272", + "revisql-train:3275", + "revisql-train:3290", + "revisql-train:3295", + "revisql-train:3306", + "revisql-train:3308", + "revisql-train:3359", + "revisql-train:3360", + "revisql-train:3373", + "revisql-train:3384", + "revisql-train:3395", + "revisql-train:3519", + "revisql-train:3523", + "revisql-train:3525", + "revisql-train:3529", + "revisql-train:3533", + "revisql-train:3535", + "revisql-train:3549", + "revisql-train:3554", + "revisql-train:3559", + "revisql-train:3560", + "revisql-train:3571", + "revisql-train:3575", + "revisql-train:3581", + "revisql-train:3591", + "revisql-train:3603", + "revisql-train:3605", + "revisql-train:3619", + "revisql-train:3620", + "revisql-train:3632", + "revisql-train:3633", + "revisql-train:3659", + "revisql-train:3669", + "revisql-train:3673", + "revisql-train:3679", + "revisql-train:3686", + "revisql-train:3687", + "revisql-train:3688", + "revisql-train:3689", + "revisql-train:3693", + "revisql-train:3694", + "revisql-train:3699", + "revisql-train:3709", + "revisql-train:3710", + "revisql-train:3725", + "revisql-train:3728", + "revisql-train:3729", + "revisql-train:3733", + "revisql-train:3741", + "revisql-train:3755", + "revisql-train:3765", + "revisql-train:3829", + "revisql-train:3841", + "revisql-train:3871", + "revisql-train:3873", + "revisql-train:3891", + "revisql-train:3909", + "revisql-train:3936", + "revisql-train:3984", + "revisql-train:4011", + "revisql-train:4033", + "revisql-train:4038", + "revisql-train:4041", + "revisql-train:4042", + "revisql-train:4071", + "revisql-train:4084", + "revisql-train:4087", + "revisql-train:4101", + "revisql-train:4112", + "revisql-train:4130", + "revisql-train:4132", + "revisql-train:4144", + "revisql-train:4151", + "revisql-train:4193", + "revisql-train:4213", + "revisql-train:4216", + "revisql-train:4254", + "revisql-train:4266", + "revisql-train:4271", + "revisql-train:4272", + "revisql-train:4274", + "revisql-train:4280", + "revisql-train:4301", + "revisql-train:4310", + "revisql-train:4311", + "revisql-train:4328", + "revisql-train:4333", + "revisql-train:4352", + "revisql-train:4382", + "revisql-train:4392", + "revisql-train:4413", + "revisql-train:4416", + "revisql-train:4459", + "revisql-train:4464", + "revisql-train:4475", + "revisql-train:4484", + "revisql-train:4508", + "revisql-train:4533", + "revisql-train:4535", + "revisql-train:4541", + "revisql-train:4568", + "revisql-train:4614", + "revisql-train:4620", + "revisql-train:4624", + "revisql-train:4633", + "revisql-train:4644", + "revisql-train:4657", + "revisql-train:4659", + "revisql-train:4691", + "revisql-train:4693", + "revisql-train:4694", + "revisql-train:4701", + "revisql-train:4707", + "revisql-train:4712", + "revisql-train:4718", + "revisql-train:4719", + "revisql-train:4721", + "revisql-train:4729", + "revisql-train:4730", + "revisql-train:4733", + "revisql-train:4747", + "revisql-train:4751", + "revisql-train:4753", + "revisql-train:4773", + "revisql-train:4777", + "revisql-train:4792", + "revisql-train:4797", + "revisql-train:4850", + "revisql-train:4857", + "revisql-train:4866", + "revisql-train:4868", + "revisql-train:4878", + "revisql-train:4897", + "revisql-train:4903", + "revisql-train:4922", + "revisql-train:4952", + "revisql-train:4959", + "revisql-train:4969", + "revisql-train:5018", + "revisql-train:5060", + "revisql-train:5065", + "revisql-train:5088", + "revisql-train:5097", + "revisql-train:5107", + "revisql-train:5108", + "revisql-train:5113", + "revisql-train:5116", + "revisql-train:5141", + "revisql-train:5151", + "revisql-train:5162", + "revisql-train:5173", + "revisql-train:5175", + "revisql-train:5180", + "revisql-train:5186", + "revisql-train:5189", + "revisql-train:5190", + "revisql-train:5196", + "revisql-train:5198", + "revisql-train:5200", + "revisql-train:5201", + "revisql-train:5214", + "revisql-train:5238", + "revisql-train:5245", + "revisql-train:5249", + "revisql-train:5255", + "revisql-train:5262", + "revisql-train:5278", + "revisql-train:5279", + "revisql-train:5284", + "revisql-train:5285", + "revisql-train:5290", + "revisql-train:5292", + "revisql-train:5298", + "revisql-train:5302", + "revisql-train:5316", + "revisql-train:5323", + "revisql-train:5324", + "revisql-train:5347", + "revisql-train:5350", + "revisql-train:5357", + "revisql-train:5384", + "revisql-train:5401", + "revisql-train:5431", + "revisql-train:5436", + "revisql-train:5450", + "revisql-train:5458", + "revisql-train:5469", + "revisql-train:5486", + "revisql-train:5517", + "revisql-train:5518", + "revisql-train:5524", + "revisql-train:5531", + "revisql-train:5532", + "revisql-train:5552", + "revisql-train:5556", + "revisql-train:5566", + "revisql-train:5583", + "revisql-train:5696", + "revisql-train:5781", + "revisql-train:5835", + "revisql-train:5836", + "revisql-train:5837", + "revisql-train:5852", + "revisql-train:5861", + "revisql-train:5869", + "revisql-train:5871", + "revisql-train:5907", + "revisql-train:5911", + "revisql-train:5924", + "revisql-train:5960", + "revisql-train:5985", + "revisql-train:5990", + "revisql-train:6006", + "revisql-train:6015", + "revisql-train:6023", + "revisql-train:6024", + "revisql-train:6032", + "revisql-train:6033", + "revisql-train:6049", + "revisql-train:6066", + "revisql-train:6072", + "revisql-train:6082", + "revisql-train:6113", + "revisql-train:6117", + "revisql-train:6121", + "revisql-train:6137", + "revisql-train:6138", + "revisql-train:6146", + "revisql-train:6151", + "revisql-train:6163", + "revisql-train:6167", + "revisql-train:6168", + "revisql-train:6172", + "revisql-train:6173", + "revisql-train:6185", + "revisql-train:6207", + "revisql-train:6251", + "revisql-train:6259", + "revisql-train:6260", + "revisql-train:6286", + "revisql-train:6364", + "revisql-train:6371", + "revisql-train:6393", + "revisql-train:6403", + "revisql-train:6503", + "revisql-train:6562", + "revisql-train:6577", + "revisql-train:6659", + "revisql-train:6710", + "revisql-train:6727", + "revisql-train:6765", + "revisql-train:6779", + "revisql-train:6788", + "revisql-train:6802", + "revisql-train:6819", + "revisql-train:6839", + "revisql-train:6855", + "revisql-train:6889", + "revisql-train:6903", + "revisql-train:6910", + "revisql-train:6923", + "revisql-train:6959", + "revisql-train:6997", + "revisql-train:6999", + "revisql-train:7000", + "revisql-train:7025", + "revisql-train:7036", + "revisql-train:7075", + "revisql-train:7076", + "revisql-train:7086", + "revisql-train:7095", + "revisql-train:7127", + "revisql-train:7137", + "revisql-train:7159", + "revisql-train:7169", + "revisql-train:7171", + "revisql-train:7182", + "revisql-train:7183", + "revisql-train:7198", + "revisql-train:7204", + "revisql-train:7207", + "revisql-train:7219", + "revisql-train:7220", + "revisql-train:7273", + "revisql-train:7303", + "revisql-train:7306", + "revisql-train:7313", + "revisql-train:7316", + "revisql-train:7322", + "revisql-train:7339", + "revisql-train:7357", + "revisql-train:7358", + "revisql-train:7369", + "revisql-train:7389", + "revisql-train:7399", + "revisql-train:7418", + "revisql-train:7434", + "revisql-train:7455", + "revisql-train:7464", + "revisql-train:7488", + "revisql-train:7534", + "revisql-train:7536", + "revisql-train:7627", + "revisql-train:7644", + "revisql-train:7647", + "revisql-train:7656", + "revisql-train:7697", + "revisql-train:7713", + "revisql-train:7717", + "revisql-train:7724", + "revisql-train:7747", + "revisql-train:7756", + "revisql-train:7779", + "revisql-train:7811", + "revisql-train:7883", + "revisql-train:7888", + "revisql-train:7914", + "revisql-train:7947", + "revisql-train:8063", + "revisql-train:8133", + "revisql-train:8213", + "revisql-train:8222", + "revisql-train:8232", + "revisql-train:8245", + "revisql-train:8248", + "revisql-train:8288", + "revisql-train:8349", + "revisql-train:8356", + "revisql-train:8442", + "revisql-train:8448", + "revisql-train:8451", + "revisql-train:8455", + "revisql-train:8486", + "revisql-train:8508", + "revisql-train:8517", + "revisql-train:8523", + "revisql-train:8576", + "revisql-train:8588", + "revisql-train:8601", + "revisql-train:8604", + "revisql-train:8614", + "revisql-train:8619", + "revisql-train:8629", + "revisql-train:8648", + "revisql-train:8653", + "revisql-train:8673", + "revisql-train:8679", + "revisql-train:8690", + "revisql-train:8704", + "revisql-train:8705", + "revisql-train:8709", + "revisql-train:8710", + "revisql-train:8718", + "revisql-train:8724", + "revisql-train:8729", + "revisql-train:8742", + "revisql-train:8755", + "revisql-train:8767", + "revisql-train:8777", + "revisql-train:8780", + "revisql-train:8789", + "revisql-train:8810", + "revisql-train:8828", + "revisql-train:8833", + "revisql-train:8838", + "revisql-train:8915", + "revisql-train:8919", + "revisql-train:8924", + "revisql-train:8930", + "revisql-train:8962", + "revisql-train:8974", + "revisql-train:8990", + "revisql-train:8992", + "revisql-train:8999", + "revisql-train:9001", + "revisql-train:9003", + "revisql-train:9011", + "revisql-train:9014", + "revisql-train:9015", + "revisql-train:9016", + "revisql-train:9017", + "revisql-train:9018", + "revisql-train:9023", + "revisql-train:9024", + "revisql-train:9028", + "revisql-train:9030", + "revisql-train:9032", + "revisql-train:9035", + "revisql-train:9038", + "revisql-train:9045", + "revisql-train:9046", + "revisql-train:9047", + "revisql-train:9056", + "revisql-train:9058", + "revisql-train:9064", + "revisql-train:9068", + "revisql-train:9069", + "revisql-train:9072", + "revisql-train:9077", + "revisql-train:9081", + "revisql-train:9087", + "revisql-train:9095", + "revisql-train:9096", + "revisql-train:9164", + "revisql-train:9240", + "revisql-train:9249", + "revisql-train:9274", + "revisql-train:9306", + "revisql-train:9321", + "revisql-train:9369", + "revisql-train:9371", + "revisql-train:9373", + "revisql-train:9374", + "revisql-train:9375", + "revisql-train:9393", + "revisql-train:9397", + "revisql-train:9405", + "revisql-train:9408", + "revisql-train:9411", + "revisql-train:9424" +] diff --git a/revisql-verified/verifier/gate-policy.json b/revisql-verified/verifier/gate-policy.json new file mode 100644 index 0000000000000000000000000000000000000000..aeddf0178e533c4a15ea498dd68d8745a46900fd --- /dev/null +++ b/revisql-verified/verifier/gate-policy.json @@ -0,0 +1,19233 @@ +{ + "address": { + "schema": [ + [ + "table", + "CBSA", + "CBSA", + "CREATE TABLE CBSA\n(\n CBSA INTEGER\n primary key,\n CBSA_name TEXT,\n CBSA_type TEXT\n)" + ], + [ + "table", + "alias", + "alias", + "CREATE TABLE alias\n(\n zip_code INTEGER\n primary key,\n alias TEXT,\n foreign key (zip_code) references zip_data(zip_code)\n)" + ], + [ + "table", + "area_code", + "area_code", + "CREATE TABLE area_code\n(\n zip_code INTEGER,\n area_code INTEGER,\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n)" + ], + [ + "table", + "avoid", + "avoid", + "CREATE TABLE avoid\n(\n zip_code INTEGER,\n bad_alias TEXT,\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n)" + ], + [ + "table", + "congress", + "congress", + "CREATE TABLE congress\n(\n cognress_rep_id TEXT\n primary key,\n first_name TEXT,\n last_name TEXT,\n CID TEXT,\n party TEXT,\n state TEXT,\n abbreviation TEXT,\n House TEXT,\n District INTEGER,\n land_area REAL,\n foreign key (abbreviation) references state(abbreviation)\n)" + ], + [ + "table", + "country", + "country", + "CREATE TABLE country\n(\n zip_code INTEGER,\n county TEXT,\n state TEXT,\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n)" + ], + [ + "table", + "state", + "state", + "CREATE TABLE state\n(\n abbreviation TEXT\n primary key,\n name TEXT\n)" + ], + [ + "table", + "zip_congress", + "zip_congress", + "CREATE TABLE zip_congress\n(\n zip_code INTEGER,\n district TEXT,\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n)" + ], + [ + "table", + "zip_data", + "zip_data", + "CREATE TABLE zip_data\n(\n zip_code INTEGER\n primary key,\n city TEXT,\n state TEXT,\n multi_county TEXT,\n type TEXT,\n organization TEXT,\n time_zone TEXT,\n daylight_savings TEXT,\n latitude REAL,\n longitude REAL,\n elevation INTEGER,\n state_fips INTEGER,\n county_fips INTEGER,\n region TEXT,\n division TEXT,\n population_2020 INTEGER,\n population_2010 INTEGER,\n households INTEGER,\n avg_house_value INTEGER,\n avg_income_per_household INTEGER,\n persons_per_household REAL,\n white_population INTEGER,\n black_population INTEGER,\n hispanic_population INTEGER,\n asian_population INTEGER,\n american_indian_population INTEGER,\n hawaiian_population INTEGER,\n other_population INTEGER,\n male_population INTEGER,\n female_population INTEGER,\n median_age REAL,\n male_median_age REAL,\n female_median_age REAL,\n residential_mailboxes INTEGER,\n business_mailboxes INTEGER,\n total_delivery_receptacles INTEGER,\n businesses INTEGER,\n \"1st_quarter_payroll\" INTEGER,\n annual_payroll INTEGER,\n employees INTEGER,\n water_area REAL,\n land_area REAL,\n single_family_delivery_units INTEGER,\n multi_family_delivery_units INTEGER,\n total_beneficiaries INTEGER,\n retired_workers INTEGER,\n disabled_workers INTEGER,\n parents_and_widowed INTEGER,\n spouses INTEGER,\n children INTEGER,\n over_65 INTEGER,\n monthly_benefits_all INTEGER,\n monthly_benefits_retired_workers INTEGER,\n monthly_benefits_widowed INTEGER,\n CBSA INTEGER,\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n)" + ] + ], + "solver_schema": { + "CBSA": { + "CBSA": "INT", + "CBSA_name": "VARCHAR", + "CBSA_type": "VARCHAR" + }, + "alias": { + "zip_code": "INT", + "alias": "VARCHAR" + }, + "area_code": { + "zip_code": "INT", + "area_code": "INT" + }, + "avoid": { + "zip_code": "INT", + "bad_alias": "VARCHAR" + }, + "congress": { + "cognress_rep_id": "VARCHAR", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "CID": "VARCHAR", + "party": "VARCHAR", + "state": "VARCHAR", + "abbreviation": "VARCHAR", + "House": "VARCHAR", + "District": "INT", + "land_area": "REAL" + }, + "country": { + "zip_code": "INT", + "county": "VARCHAR", + "state": "VARCHAR" + }, + "state": { + "abbreviation": "VARCHAR", + "name": "VARCHAR" + }, + "zip_congress": { + "zip_code": "INT", + "district": "VARCHAR" + }, + "zip_data": { + "zip_code": "INT", + "city": "VARCHAR", + "state": "VARCHAR", + "multi_county": "VARCHAR", + "type": "VARCHAR", + "organization": "VARCHAR", + "time_zone": "VARCHAR", + "daylight_savings": "VARCHAR", + "latitude": "REAL", + "longitude": "REAL", + "elevation": "INT", + "state_fips": "INT", + "county_fips": "INT", + "region": "VARCHAR", + "division": "VARCHAR", + "population_2020": "INT", + "population_2010": "INT", + "households": "INT", + "avg_house_value": "INT", + "avg_income_per_household": "INT", + "persons_per_household": "REAL", + "white_population": "INT", + "black_population": "INT", + "hispanic_population": "INT", + "asian_population": "INT", + "american_indian_population": "INT", + "hawaiian_population": "INT", + "other_population": "INT", + "male_population": "INT", + "female_population": "INT", + "median_age": "REAL", + "male_median_age": "REAL", + "female_median_age": "REAL", + "residential_mailboxes": "INT", + "business_mailboxes": "INT", + "total_delivery_receptacles": "INT", + "businesses": "INT", + "1st_quarter_payroll": "INT", + "annual_payroll": "INT", + "employees": "INT", + "water_area": "REAL", + "land_area": "REAL", + "single_family_delivery_units": "INT", + "multi_family_delivery_units": "INT", + "total_beneficiaries": "INT", + "retired_workers": "INT", + "disabled_workers": "INT", + "parents_and_widowed": "INT", + "spouses": "INT", + "children": "INT", + "over_65": "INT", + "monthly_benefits_all": "INT", + "monthly_benefits_retired_workers": "INT", + "monthly_benefits_widowed": "INT", + "CBSA": "INT" + } + }, + "policies": [ + { + "table": "alias", + "id": 0, + "declaration": [ + [ + 0, + 0, + "zip_data", + "zip_code", + "zip_code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 138, + "query": "SELECT COUNT(*) FROM \"alias\" c WHERE c.\"zip_code\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"zip_data\" p WHERE p.\"zip_code\" = c.\"zip_code\")" + }, + { + "table": "area_code", + "id": 0, + "declaration": [ + [ + 0, + 0, + "zip_data", + "zip_code", + "zip_code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 138, + "query": "SELECT COUNT(*) FROM \"area_code\" c WHERE c.\"zip_code\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"zip_data\" p WHERE p.\"zip_code\" = c.\"zip_code\")" + }, + { + "table": "avoid", + "id": 0, + "declaration": [ + [ + 0, + 0, + "zip_data", + "zip_code", + "zip_code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 5, + "query": "SELECT COUNT(*) FROM \"avoid\" c WHERE c.\"zip_code\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"zip_data\" p WHERE p.\"zip_code\" = c.\"zip_code\")" + }, + { + "table": "congress", + "id": 0, + "declaration": [ + [ + 0, + 0, + "state", + "abbreviation", + "abbreviation", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"congress\" c WHERE c.\"abbreviation\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"state\" p WHERE p.\"abbreviation\" = c.\"abbreviation\")" + }, + { + "table": "country", + "id": 0, + "declaration": [ + [ + 0, + 0, + "state", + "state", + "abbreviation", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"country\" c WHERE c.\"state\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"state\" p WHERE p.\"abbreviation\" = c.\"state\")" + }, + { + "table": "country", + "id": 1, + "declaration": [ + [ + 1, + 0, + "zip_data", + "zip_code", + "zip_code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 194, + "query": "SELECT COUNT(*) FROM \"country\" c WHERE c.\"zip_code\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"zip_data\" p WHERE p.\"zip_code\" = c.\"zip_code\")" + }, + { + "table": "zip_congress", + "id": 0, + "declaration": [ + [ + 0, + 0, + "zip_data", + "zip_code", + "zip_code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"zip_congress\" c WHERE c.\"zip_code\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"zip_data\" p WHERE p.\"zip_code\" = c.\"zip_code\")" + }, + { + "table": "zip_congress", + "id": 1, + "declaration": [ + [ + 1, + 0, + "congress", + "district", + "cognress_rep_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"zip_congress\" c WHERE c.\"district\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"congress\" p WHERE p.\"cognress_rep_id\" = c.\"district\")" + }, + { + "table": "zip_data", + "id": 0, + "declaration": [ + [ + 0, + 0, + "CBSA", + "CBSA", + "CBSA", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"zip_data\" c WHERE c.\"CBSA\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CBSA\" p WHERE p.\"CBSA\" = c.\"CBSA\")" + }, + { + "table": "zip_data", + "id": 1, + "declaration": [ + [ + 1, + 0, + "state", + "state", + "abbreviation", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"zip_data\" c WHERE c.\"state\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"state\" p WHERE p.\"abbreviation\" = c.\"state\")" + } + ], + "sha256": "cc75a98289fc6998bb0cc314306b92277f23c97000ef3f2bd0d8b220cb1e8771" + }, + "airline": { + "schema": [ + [ + "table", + "Air Carriers", + "Air Carriers", + "CREATE TABLE \"Air Carriers\"\n(\n Code INTEGER\n primary key,\n Description TEXT\n)" + ], + [ + "table", + "Airlines", + "Airlines", + "CREATE TABLE Airlines\n(\n FL_DATE TEXT,\n OP_CARRIER_AIRLINE_ID INTEGER,\n TAIL_NUM TEXT,\n OP_CARRIER_FL_NUM INTEGER,\n ORIGIN_AIRPORT_ID INTEGER,\n ORIGIN_AIRPORT_SEQ_ID INTEGER,\n ORIGIN_CITY_MARKET_ID INTEGER,\n ORIGIN TEXT,\n DEST_AIRPORT_ID INTEGER,\n DEST_AIRPORT_SEQ_ID INTEGER,\n DEST_CITY_MARKET_ID INTEGER,\n DEST TEXT,\n CRS_DEP_TIME INTEGER,\n DEP_TIME INTEGER,\n DEP_DELAY INTEGER,\n DEP_DELAY_NEW INTEGER,\n ARR_TIME INTEGER,\n ARR_DELAY INTEGER,\n ARR_DELAY_NEW INTEGER,\n CANCELLED INTEGER,\n CANCELLATION_CODE TEXT,\n CRS_ELAPSED_TIME INTEGER,\n ACTUAL_ELAPSED_TIME INTEGER,\n CARRIER_DELAY INTEGER,\n WEATHER_DELAY INTEGER,\n NAS_DELAY INTEGER,\n SECURITY_DELAY INTEGER,\n LATE_AIRCRAFT_DELAY INTEGER,\n FOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n FOREIGN KEY (DEST) REFERENCES Airports(Code),\n FOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code)\n)" + ], + [ + "table", + "Airports", + "Airports", + "CREATE TABLE Airports\n(\n Code TEXT\n primary key,\n Description TEXT\n)" + ] + ], + "solver_schema": { + "Air Carriers": { + "Code": "INT", + "Description": "VARCHAR" + }, + "Airlines": { + "FL_DATE": "VARCHAR", + "OP_CARRIER_AIRLINE_ID": "INT", + "TAIL_NUM": "VARCHAR", + "OP_CARRIER_FL_NUM": "INT", + "ORIGIN_AIRPORT_ID": "INT", + "ORIGIN_AIRPORT_SEQ_ID": "INT", + "ORIGIN_CITY_MARKET_ID": "INT", + "ORIGIN": "VARCHAR", + "DEST_AIRPORT_ID": "INT", + "DEST_AIRPORT_SEQ_ID": "INT", + "DEST_CITY_MARKET_ID": "INT", + "DEST": "VARCHAR", + "CRS_DEP_TIME": "INT", + "DEP_TIME": "INT", + "DEP_DELAY": "INT", + "DEP_DELAY_NEW": "INT", + "ARR_TIME": "INT", + "ARR_DELAY": "INT", + "ARR_DELAY_NEW": "INT", + "CANCELLED": "INT", + "CANCELLATION_CODE": "VARCHAR", + "CRS_ELAPSED_TIME": "INT", + "ACTUAL_ELAPSED_TIME": "INT", + "CARRIER_DELAY": "INT", + "WEATHER_DELAY": "INT", + "NAS_DELAY": "INT", + "SECURITY_DELAY": "INT", + "LATE_AIRCRAFT_DELAY": "INT" + }, + "Airports": { + "Code": "VARCHAR", + "Description": "VARCHAR" + } + }, + "policies": [ + { + "table": "Airlines", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Air Carriers", + "OP_CARRIER_AIRLINE_ID", + "Code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Airlines\" c WHERE c.\"OP_CARRIER_AIRLINE_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Air Carriers\" p WHERE p.\"Code\" = c.\"OP_CARRIER_AIRLINE_ID\")" + }, + { + "table": "Airlines", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Airports", + "DEST", + "Code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Airlines\" c WHERE c.\"DEST\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Airports\" p WHERE p.\"Code\" = c.\"DEST\")" + }, + { + "table": "Airlines", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Airports", + "ORIGIN", + "Code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Airlines\" c WHERE c.\"ORIGIN\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Airports\" p WHERE p.\"Code\" = c.\"ORIGIN\")" + } + ], + "sha256": "50308a01c2467df9370ce6ee45595c97af2a06b73e195f52444406d4cdad08a8" + }, + "app_store": { + "schema": [ + [ + "table", + "playstore", + "playstore", + "CREATE TABLE \"playstore\"\n(\n App TEXT,\n Category TEXT,\n Rating REAL,\n Reviews INTEGER,\n Size TEXT,\n Installs TEXT,\n Type TEXT,\n Price TEXT,\n \"Content Rating\" TEXT,\n Genres TEXT\n)" + ], + [ + "table", + "user_reviews", + "user_reviews", + "CREATE TABLE \"user_reviews\"\n(\n App TEXT\n references \"playstore\" (App),\n Translated_Review TEXT,\n Sentiment TEXT,\n Sentiment_Polarity TEXT,\n Sentiment_Subjectivity TEXT\n)" + ] + ], + "solver_schema": { + "playstore": { + "App": "VARCHAR", + "Category": "VARCHAR", + "Rating": "REAL", + "Reviews": "INT", + "Size": "VARCHAR", + "Installs": "VARCHAR", + "Type": "VARCHAR", + "Price": "VARCHAR", + "Content Rating": "VARCHAR", + "Genres": "VARCHAR" + }, + "user_reviews": { + "App": "VARCHAR", + "Translated_Review": "VARCHAR", + "Sentiment": "VARCHAR", + "Sentiment_Polarity": "VARCHAR", + "Sentiment_Subjectivity": "VARCHAR" + } + }, + "policies": [ + { + "table": "user_reviews", + "id": 0, + "declaration": [ + [ + 0, + 0, + "playstore", + "App", + "App", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"playstore\"" + } + ], + "sha256": "5abf267faa3c2b25f1b23c0a82bca1ca7b65368b84b16be2a6e7228168a681ef" + }, + "authors": { + "schema": [ + [ + "table", + "Author", + "Author", + "CREATE TABLE \"Author\"\n(\n Id INTEGER\n constraint Author_pk\n primary key,\n Name TEXT,\n Affiliation TEXT\n)" + ], + [ + "table", + "Conference", + "Conference", + "CREATE TABLE \"Conference\"\n(\n Id INTEGER\n constraint Conference_pk\n primary key,\n ShortName TEXT,\n FullName TEXT,\n HomePage TEXT\n)" + ], + [ + "table", + "Journal", + "Journal", + "CREATE TABLE \"Journal\"\n(\n Id INTEGER\n constraint Journal_pk\n primary key,\n ShortName TEXT,\n FullName TEXT,\n HomePage TEXT\n)" + ], + [ + "table", + "Paper", + "Paper", + "CREATE TABLE Paper\n(\n Id INTEGER\n primary key,\n Title TEXT,\n Year INTEGER,\n ConferenceId INTEGER,\n JournalId INTEGER,\n Keyword TEXT,\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n)" + ], + [ + "table", + "PaperAuthor", + "PaperAuthor", + "CREATE TABLE PaperAuthor\n(\n PaperId INTEGER,\n AuthorId INTEGER,\n Name TEXT,\n Affiliation TEXT,\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n)" + ] + ], + "solver_schema": { + "Author": { + "Id": "INT", + "Name": "VARCHAR", + "Affiliation": "VARCHAR" + }, + "Conference": { + "Id": "INT", + "ShortName": "VARCHAR", + "FullName": "VARCHAR", + "HomePage": "VARCHAR" + }, + "Journal": { + "Id": "INT", + "ShortName": "VARCHAR", + "FullName": "VARCHAR", + "HomePage": "VARCHAR" + }, + "Paper": { + "Id": "INT", + "Title": "VARCHAR", + "Year": "INT", + "ConferenceId": "INT", + "JournalId": "INT", + "Keyword": "VARCHAR" + }, + "PaperAuthor": { + "PaperId": "INT", + "AuthorId": "INT", + "Name": "VARCHAR", + "Affiliation": "VARCHAR" + } + }, + "policies": [ + { + "table": "Paper", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Journal", + "JournalId", + "Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1074306, + "query": "SELECT COUNT(*) FROM \"Paper\" c WHERE c.\"JournalId\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Journal\" p WHERE p.\"Id\" = c.\"JournalId\")" + }, + { + "table": "Paper", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Conference", + "ConferenceId", + "Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1718515, + "query": "SELECT COUNT(*) FROM \"Paper\" c WHERE c.\"ConferenceId\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Conference\" p WHERE p.\"Id\" = c.\"ConferenceId\")" + }, + { + "table": "PaperAuthor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Author", + "AuthorId", + "Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1791014, + "query": "SELECT COUNT(*) FROM \"PaperAuthor\" c WHERE c.\"AuthorId\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Author\" p WHERE p.\"Id\" = c.\"AuthorId\")" + }, + { + "table": "PaperAuthor", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Paper", + "PaperId", + "Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 2496, + "query": "SELECT COUNT(*) FROM \"PaperAuthor\" c WHERE c.\"PaperId\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Paper\" p WHERE p.\"Id\" = c.\"PaperId\")" + } + ], + "sha256": "72f3c288aab05bcfdeae92dbb419e6d8468f63c7b36813b09ea1be2b9956b72f" + }, + "beer_factory": { + "schema": [ + [ + "table", + "customers", + "customers", + "CREATE TABLE customers\n(\n CustomerID INTEGER\n primary key,\n First TEXT,\n Last TEXT,\n StreetAddress TEXT,\n City TEXT,\n State TEXT,\n ZipCode INTEGER,\n Email TEXT,\n PhoneNumber TEXT,\n FirstPurchaseDate DATE,\n SubscribedToEmailList TEXT,\n Gender TEXT\n)" + ], + [ + "table", + "geolocation", + "geolocation", + "CREATE TABLE geolocation\n(\n LocationID INTEGER\n primary key,\n Latitude REAL,\n Longitude REAL,\n foreign key (LocationID) references location(LocationID)\n)" + ], + [ + "table", + "location", + "location", + "CREATE TABLE location\n(\n LocationID INTEGER\n primary key,\n LocationName TEXT,\n StreetAddress TEXT,\n City TEXT,\n State TEXT,\n ZipCode INTEGER,\n foreign key (LocationID) references geolocation(LocationID)\n)" + ], + [ + "table", + "rootbeer", + "rootbeer", + "CREATE TABLE rootbeer\n(\n RootBeerID INTEGER\n primary key,\n BrandID INTEGER,\n ContainerType TEXT,\n LocationID INTEGER,\n PurchaseDate DATE,\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n)" + ], + [ + "table", + "rootbeerbrand", + "rootbeerbrand", + "CREATE TABLE rootbeerbrand\n(\n BrandID INTEGER\n primary key,\n BrandName TEXT,\n FirstBrewedYear INTEGER,\n BreweryName TEXT,\n City TEXT,\n State TEXT,\n Country TEXT,\n Description TEXT,\n CaneSugar TEXT,\n CornSyrup TEXT,\n Honey TEXT,\n ArtificialSweetener TEXT,\n Caffeinated TEXT,\n Alcoholic TEXT,\n AvailableInCans TEXT,\n AvailableInBottles TEXT,\n AvailableInKegs TEXT,\n Website TEXT,\n FacebookPage TEXT,\n Twitter TEXT,\n WholesaleCost REAL,\n CurrentRetailPrice REAL\n)" + ], + [ + "table", + "rootbeerreview", + "rootbeerreview", + "CREATE TABLE rootbeerreview\n(\n CustomerID INTEGER,\n BrandID INTEGER,\n StarRating INTEGER,\n ReviewDate DATE,\n Review TEXT,\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n)" + ], + [ + "table", + "transaction", + "transaction", + "CREATE TABLE \"transaction\"\n(\n TransactionID INTEGER\n primary key,\n CreditCardNumber INTEGER,\n CustomerID INTEGER,\n TransactionDate DATE,\n CreditCardType TEXT,\n LocationID INTEGER,\n RootBeerID INTEGER,\n PurchasePrice REAL,\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n)" + ] + ], + "solver_schema": { + "customers": { + "CustomerID": "INT", + "First": "VARCHAR", + "Last": "VARCHAR", + "StreetAddress": "VARCHAR", + "City": "VARCHAR", + "State": "VARCHAR", + "ZipCode": "INT", + "Email": "VARCHAR", + "PhoneNumber": "VARCHAR", + "FirstPurchaseDate": "REAL", + "SubscribedToEmailList": "VARCHAR", + "Gender": "VARCHAR" + }, + "geolocation": { + "LocationID": "INT", + "Latitude": "REAL", + "Longitude": "REAL" + }, + "location": { + "LocationID": "INT", + "LocationName": "VARCHAR", + "StreetAddress": "VARCHAR", + "City": "VARCHAR", + "State": "VARCHAR", + "ZipCode": "INT" + }, + "rootbeer": { + "RootBeerID": "INT", + "BrandID": "INT", + "ContainerType": "VARCHAR", + "LocationID": "INT", + "PurchaseDate": "REAL" + }, + "rootbeerbrand": { + "BrandID": "INT", + "BrandName": "VARCHAR", + "FirstBrewedYear": "INT", + "BreweryName": "VARCHAR", + "City": "VARCHAR", + "State": "VARCHAR", + "Country": "VARCHAR", + "Description": "VARCHAR", + "CaneSugar": "VARCHAR", + "CornSyrup": "VARCHAR", + "Honey": "VARCHAR", + "ArtificialSweetener": "VARCHAR", + "Caffeinated": "VARCHAR", + "Alcoholic": "VARCHAR", + "AvailableInCans": "VARCHAR", + "AvailableInBottles": "VARCHAR", + "AvailableInKegs": "VARCHAR", + "Website": "VARCHAR", + "FacebookPage": "VARCHAR", + "Twitter": "VARCHAR", + "WholesaleCost": "REAL", + "CurrentRetailPrice": "REAL" + }, + "rootbeerreview": { + "CustomerID": "INT", + "BrandID": "INT", + "StarRating": "INT", + "ReviewDate": "REAL", + "Review": "VARCHAR" + }, + "transaction": { + "TransactionID": "INT", + "CreditCardNumber": "INT", + "CustomerID": "INT", + "TransactionDate": "REAL", + "CreditCardType": "VARCHAR", + "LocationID": "INT", + "RootBeerID": "INT", + "PurchasePrice": "REAL" + } + }, + "policies": [ + { + "table": "geolocation", + "id": 0, + "declaration": [ + [ + 0, + 0, + "location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"geolocation\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "location", + "id": 0, + "declaration": [ + [ + 0, + 0, + "geolocation", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"location\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"geolocation\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "rootbeer", + "id": 0, + "declaration": [ + [ + 0, + 0, + "rootbeerbrand", + "BrandID", + "BrandID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rootbeer\" c WHERE c.\"BrandID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"rootbeerbrand\" p WHERE p.\"BrandID\" = c.\"BrandID\")" + }, + { + "table": "rootbeer", + "id": 1, + "declaration": [ + [ + 1, + 0, + "location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rootbeer\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "rootbeer", + "id": 2, + "declaration": [ + [ + 2, + 0, + "geolocation", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rootbeer\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"geolocation\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "rootbeerreview", + "id": 0, + "declaration": [ + [ + 0, + 0, + "rootbeerbrand", + "BrandID", + "BrandID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rootbeerreview\" c WHERE c.\"BrandID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"rootbeerbrand\" p WHERE p.\"BrandID\" = c.\"BrandID\")" + }, + { + "table": "rootbeerreview", + "id": 1, + "declaration": [ + [ + 1, + 0, + "customers", + "CustomerID", + "CustomerID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rootbeerreview\" c WHERE c.\"CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customers\" p WHERE p.\"CustomerID\" = c.\"CustomerID\")" + }, + { + "table": "transaction", + "id": 0, + "declaration": [ + [ + 0, + 0, + "rootbeer", + "RootBeerID", + "RootBeerID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"transaction\" c WHERE c.\"RootBeerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"rootbeer\" p WHERE p.\"RootBeerID\" = c.\"RootBeerID\")" + }, + { + "table": "transaction", + "id": 1, + "declaration": [ + [ + 1, + 0, + "location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"transaction\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "transaction", + "id": 2, + "declaration": [ + [ + 2, + 0, + "customers", + "CustomerID", + "CustomerID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"transaction\" c WHERE c.\"CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customers\" p WHERE p.\"CustomerID\" = c.\"CustomerID\")" + } + ], + "sha256": "3cf815ded995e8bec52d59b4763f8229054556f171a4eeb7b53f86535b94bc19" + }, + "bike_share_1": { + "schema": [ + [ + "table", + "station", + "station", + "CREATE TABLE \"station\"\n(\n id INTEGER not null\n primary key,\n name TEXT,\n lat REAL,\n long REAL,\n dock_count INTEGER,\n city TEXT,\n installation_date TEXT\n)" + ], + [ + "table", + "status", + "status", + "CREATE TABLE \"status\"\n(\n station_id INTEGER,\n bikes_available INTEGER,\n docks_available INTEGER,\n time TEXT\n)" + ], + [ + "table", + "trip", + "trip", + "CREATE TABLE \"trip\"\n(\n id INTEGER not null\n primary key,\n duration INTEGER,\n start_date TEXT,\n start_station_name TEXT,\n start_station_id INTEGER,\n end_date TEXT,\n end_station_name TEXT,\n end_station_id INTEGER,\n bike_id INTEGER,\n subscription_type TEXT,\n zip_code INTEGER\n)" + ], + [ + "table", + "weather", + "weather", + "CREATE TABLE \"weather\"\n(\n date TEXT,\n max_temperature_f INTEGER,\n mean_temperature_f INTEGER,\n min_temperature_f INTEGER,\n max_dew_point_f INTEGER,\n mean_dew_point_f INTEGER,\n min_dew_point_f INTEGER,\n max_humidity INTEGER,\n mean_humidity INTEGER,\n min_humidity INTEGER,\n max_sea_level_pressure_inches REAL,\n mean_sea_level_pressure_inches REAL,\n min_sea_level_pressure_inches REAL,\n max_visibility_miles INTEGER,\n mean_visibility_miles INTEGER,\n min_visibility_miles INTEGER,\n max_wind_Speed_mph INTEGER,\n mean_wind_speed_mph INTEGER,\n max_gust_speed_mph INTEGER,\n precipitation_inches TEXT,\n cloud_cover INTEGER,\n events TEXT,\n wind_dir_degrees INTEGER,\n zip_code TEXT\n)" + ] + ], + "solver_schema": { + "station": { + "id": "INT", + "name": "VARCHAR", + "lat": "REAL", + "long": "REAL", + "dock_count": "INT", + "city": "VARCHAR", + "installation_date": "VARCHAR" + }, + "status": { + "station_id": "INT", + "bikes_available": "INT", + "docks_available": "INT", + "time": "VARCHAR" + }, + "trip": { + "id": "INT", + "duration": "INT", + "start_date": "VARCHAR", + "start_station_name": "VARCHAR", + "start_station_id": "INT", + "end_date": "VARCHAR", + "end_station_name": "VARCHAR", + "end_station_id": "INT", + "bike_id": "INT", + "subscription_type": "VARCHAR", + "zip_code": "INT" + }, + "weather": { + "date": "VARCHAR", + "max_temperature_f": "INT", + "mean_temperature_f": "INT", + "min_temperature_f": "INT", + "max_dew_point_f": "INT", + "mean_dew_point_f": "INT", + "min_dew_point_f": "INT", + "max_humidity": "INT", + "mean_humidity": "INT", + "min_humidity": "INT", + "max_sea_level_pressure_inches": "REAL", + "mean_sea_level_pressure_inches": "REAL", + "min_sea_level_pressure_inches": "REAL", + "max_visibility_miles": "INT", + "mean_visibility_miles": "INT", + "min_visibility_miles": "INT", + "max_wind_Speed_mph": "INT", + "mean_wind_speed_mph": "INT", + "max_gust_speed_mph": "INT", + "precipitation_inches": "VARCHAR", + "cloud_cover": "INT", + "events": "VARCHAR", + "wind_dir_degrees": "INT", + "zip_code": "VARCHAR" + } + }, + "policies": [], + "sha256": "3d6918cb16405c1a5f483182d5effbe00c6e07d14f950b1843ec28ad8991246b" + }, + "book_publishing_company": { + "schema": [ + [ + "table", + "authors", + "authors", + "CREATE TABLE authors\n(\n au_id TEXT\n primary key,\n au_lname TEXT not null,\n au_fname TEXT not null,\n phone TEXT not null,\n address TEXT,\n city TEXT,\n state TEXT,\n zip TEXT,\n contract TEXT not null\n)" + ], + [ + "table", + "discounts", + "discounts", + "CREATE TABLE discounts\n(\n discounttype TEXT not null,\n stor_id TEXT,\n lowqty INTEGER,\n highqty INTEGER,\n discount REAL not null,\n foreign key (stor_id) references stores(stor_id)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "employee", + "employee", + "CREATE TABLE employee\n(\n emp_id TEXT\n primary key,\n fname TEXT not null,\n minit TEXT,\n lname TEXT not null,\n job_id INTEGER not null,\n job_lvl INTEGER,\n pub_id TEXT not null,\n hire_date DATETIME not null,\n foreign key (job_id) references jobs(job_id)\n on update cascade on delete cascade,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "jobs", + "jobs", + "CREATE TABLE jobs\n(\n job_id INTEGER\n primary key,\n job_desc TEXT not null,\n min_lvl INTEGER not null,\n max_lvl INTEGER not null\n)" + ], + [ + "table", + "pub_info", + "pub_info", + "CREATE TABLE pub_info\n(\n pub_id TEXT\n primary key,\n logo BLOB,\n pr_info TEXT,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "publishers", + "publishers", + "CREATE TABLE publishers\n(\n pub_id TEXT\n primary key,\n pub_name TEXT,\n city TEXT,\n state TEXT,\n country TEXT\n)" + ], + [ + "table", + "roysched", + "roysched", + "CREATE TABLE roysched\n(\n title_id TEXT not null,\n lorange INTEGER,\n hirange INTEGER,\n royalty INTEGER,\n foreign key (title_id) references titles(title_id)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "sales", + "sales", + "CREATE TABLE sales\n(\n stor_id TEXT not null,\n ord_num TEXT not null,\n ord_date DATETIME not null,\n qty INTEGER not null,\n payterms TEXT not null,\n title_id TEXT not null,\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n on update cascade on delete cascade,\n foreign key (title_id) references titles(title_id)\n on update cascade on delete cascade\n\n)" + ], + [ + "table", + "stores", + "stores", + "CREATE TABLE stores\n(\n stor_id TEXT\n primary key,\n stor_name TEXT,\n stor_address TEXT,\n city TEXT,\n state TEXT,\n zip TEXT\n)" + ], + [ + "table", + "titleauthor", + "titleauthor", + "CREATE TABLE titleauthor\n(\n au_id TEXT not null,\n title_id TEXT not null,\n au_ord INTEGER,\n royaltyper INTEGER,\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n on update cascade on delete cascade,\n foreign key (title_id) references titles (title_id)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "titles", + "titles", + "CREATE TABLE titles\n(\n title_id TEXT\n primary key,\n title TEXT not null,\n type TEXT not null,\n pub_id TEXT,\n price REAL,\n advance REAL,\n royalty INTEGER,\n ytd_sales INTEGER,\n notes TEXT,\n pubdate DATETIME not null,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n)" + ] + ], + "solver_schema": { + "authors": { + "au_id": "VARCHAR", + "au_lname": "VARCHAR", + "au_fname": "VARCHAR", + "phone": "VARCHAR", + "address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip": "VARCHAR", + "contract": "VARCHAR" + }, + "discounts": { + "discounttype": "VARCHAR", + "stor_id": "VARCHAR", + "lowqty": "INT", + "highqty": "INT", + "discount": "REAL" + }, + "employee": { + "emp_id": "VARCHAR", + "fname": "VARCHAR", + "minit": "VARCHAR", + "lname": "VARCHAR", + "job_id": "INT", + "job_lvl": "INT", + "pub_id": "VARCHAR", + "hire_date": "REAL" + }, + "jobs": { + "job_id": "INT", + "job_desc": "VARCHAR", + "min_lvl": "INT", + "max_lvl": "INT" + }, + "pub_info": { + "pub_id": "VARCHAR", + "logo": "REAL", + "pr_info": "VARCHAR" + }, + "publishers": { + "pub_id": "VARCHAR", + "pub_name": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "country": "VARCHAR" + }, + "roysched": { + "title_id": "VARCHAR", + "lorange": "INT", + "hirange": "INT", + "royalty": "INT" + }, + "sales": { + "stor_id": "VARCHAR", + "ord_num": "VARCHAR", + "ord_date": "REAL", + "qty": "INT", + "payterms": "VARCHAR", + "title_id": "VARCHAR" + }, + "stores": { + "stor_id": "VARCHAR", + "stor_name": "VARCHAR", + "stor_address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip": "VARCHAR" + }, + "titleauthor": { + "au_id": "VARCHAR", + "title_id": "VARCHAR", + "au_ord": "INT", + "royaltyper": "INT" + }, + "titles": { + "title_id": "VARCHAR", + "title": "VARCHAR", + "type": "VARCHAR", + "pub_id": "VARCHAR", + "price": "REAL", + "advance": "REAL", + "royalty": "INT", + "ytd_sales": "INT", + "notes": "VARCHAR", + "pubdate": "REAL" + } + }, + "policies": [ + { + "table": "discounts", + "id": 0, + "declaration": [ + [ + 0, + 0, + "stores", + "stor_id", + "stor_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"discounts\" c WHERE c.\"stor_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"stores\" p WHERE p.\"stor_id\" = c.\"stor_id\")" + }, + { + "table": "employee", + "id": 0, + "declaration": [ + [ + 0, + 0, + "publishers", + "pub_id", + "pub_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employee\" c WHERE c.\"pub_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"publishers\" p WHERE p.\"pub_id\" = c.\"pub_id\")" + }, + { + "table": "employee", + "id": 1, + "declaration": [ + [ + 1, + 0, + "jobs", + "job_id", + "job_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employee\" c WHERE c.\"job_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"jobs\" p WHERE p.\"job_id\" = c.\"job_id\")" + }, + { + "table": "pub_info", + "id": 0, + "declaration": [ + [ + 0, + 0, + "publishers", + "pub_id", + "pub_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"pub_info\" c WHERE c.\"pub_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"publishers\" p WHERE p.\"pub_id\" = c.\"pub_id\")" + }, + { + "table": "roysched", + "id": 0, + "declaration": [ + [ + 0, + 0, + "titles", + "title_id", + "title_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"roysched\" c WHERE c.\"title_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"titles\" p WHERE p.\"title_id\" = c.\"title_id\")" + }, + { + "table": "sales", + "id": 0, + "declaration": [ + [ + 0, + 0, + "titles", + "title_id", + "title_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"sales\" c WHERE c.\"title_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"titles\" p WHERE p.\"title_id\" = c.\"title_id\")" + }, + { + "table": "sales", + "id": 1, + "declaration": [ + [ + 1, + 0, + "stores", + "stor_id", + "stor_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"sales\" c WHERE c.\"stor_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"stores\" p WHERE p.\"stor_id\" = c.\"stor_id\")" + }, + { + "table": "titleauthor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "titles", + "title_id", + "title_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"titleauthor\" c WHERE c.\"title_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"titles\" p WHERE p.\"title_id\" = c.\"title_id\")" + }, + { + "table": "titleauthor", + "id": 1, + "declaration": [ + [ + 1, + 0, + "authors", + "au_id", + "au_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"titleauthor\" c WHERE c.\"au_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"authors\" p WHERE p.\"au_id\" = c.\"au_id\")" + }, + { + "table": "titles", + "id": 0, + "declaration": [ + [ + 0, + 0, + "publishers", + "pub_id", + "pub_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"titles\" c WHERE c.\"pub_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"publishers\" p WHERE p.\"pub_id\" = c.\"pub_id\")" + } + ], + "sha256": "b493a54214d7b224a6f2b9b22b0f651c98f0c345a91cdec10b94825d4d897f4d" + }, + "books": { + "schema": [ + [ + "table", + "address", + "address", + "CREATE TABLE address\n(\n address_id INTEGER\n primary key,\n street_number TEXT,\n street_name TEXT,\n city TEXT,\n country_id INTEGER,\n foreign key (country_id) references country(country_id)\n)" + ], + [ + "table", + "address_status", + "address_status", + "CREATE TABLE address_status\n(\n status_id INTEGER\n primary key,\n address_status TEXT\n)" + ], + [ + "table", + "author", + "author", + "CREATE TABLE author\n(\n author_id INTEGER\n primary key,\n author_name TEXT\n)" + ], + [ + "table", + "book", + "book", + "CREATE TABLE book\n(\n book_id INTEGER\n primary key,\n title TEXT,\n isbn13 TEXT,\n language_id INTEGER,\n num_pages INTEGER,\n publication_date DATE,\n publisher_id INTEGER,\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n)" + ], + [ + "table", + "book_author", + "book_author", + "CREATE TABLE book_author\n(\n book_id INTEGER,\n author_id INTEGER,\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n)" + ], + [ + "table", + "book_language", + "book_language", + "CREATE TABLE book_language\n(\n language_id INTEGER\n primary key,\n language_code TEXT,\n language_name TEXT\n)" + ], + [ + "table", + "country", + "country", + "CREATE TABLE country\n(\n country_id INTEGER\n primary key,\n country_name TEXT\n)" + ], + [ + "table", + "cust_order", + "cust_order", + "CREATE TABLE \"cust_order\"\n(\n order_id INTEGER\n primary key autoincrement,\n order_date DATETIME,\n customer_id INTEGER\n references customer,\n shipping_method_id INTEGER\n references shipping_method,\n dest_address_id INTEGER\n references address\n)" + ], + [ + "table", + "customer", + "customer", + "CREATE TABLE customer\n(\n customer_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n email TEXT\n)" + ], + [ + "table", + "customer_address", + "customer_address", + "CREATE TABLE customer_address\n(\n customer_id INTEGER,\n address_id INTEGER,\n status_id INTEGER,\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n)" + ], + [ + "table", + "order_history", + "order_history", + "CREATE TABLE \"order_history\"\n(\n history_id INTEGER\n primary key autoincrement,\n order_id INTEGER\n references cust_order,\n status_id INTEGER\n references order_status,\n status_date DATETIME\n)" + ], + [ + "table", + "order_line", + "order_line", + "CREATE TABLE \"order_line\"\n(\n line_id INTEGER\n primary key autoincrement,\n order_id INTEGER\n references cust_order,\n book_id INTEGER\n references book,\n price REAL\n)" + ], + [ + "table", + "order_status", + "order_status", + "CREATE TABLE order_status\n(\n status_id INTEGER\n primary key,\n status_value TEXT\n)" + ], + [ + "table", + "publisher", + "publisher", + "CREATE TABLE publisher\n(\n publisher_id INTEGER\n primary key,\n publisher_name TEXT\n)" + ], + [ + "table", + "shipping_method", + "shipping_method", + "CREATE TABLE shipping_method\n(\n method_id INTEGER\n primary key,\n method_name TEXT,\n cost REAL\n)" + ] + ], + "solver_schema": { + "address": { + "address_id": "INT", + "street_number": "VARCHAR", + "street_name": "VARCHAR", + "city": "VARCHAR", + "country_id": "INT" + }, + "address_status": { + "status_id": "INT", + "address_status": "VARCHAR" + }, + "author": { + "author_id": "INT", + "author_name": "VARCHAR" + }, + "book": { + "book_id": "INT", + "title": "VARCHAR", + "isbn13": "VARCHAR", + "language_id": "INT", + "num_pages": "INT", + "publication_date": "REAL", + "publisher_id": "INT" + }, + "book_author": { + "book_id": "INT", + "author_id": "INT" + }, + "book_language": { + "language_id": "INT", + "language_code": "VARCHAR", + "language_name": "VARCHAR" + }, + "country": { + "country_id": "INT", + "country_name": "VARCHAR" + }, + "cust_order": { + "order_id": "INT", + "order_date": "REAL", + "customer_id": "INT", + "shipping_method_id": "INT", + "dest_address_id": "INT" + }, + "customer": { + "customer_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "email": "VARCHAR" + }, + "customer_address": { + "customer_id": "INT", + "address_id": "INT", + "status_id": "INT" + }, + "order_history": { + "history_id": "INT", + "order_id": "INT", + "status_id": "INT", + "status_date": "REAL" + }, + "order_line": { + "line_id": "INT", + "order_id": "INT", + "book_id": "INT", + "price": "REAL" + }, + "order_status": { + "status_id": "INT", + "status_value": "VARCHAR" + }, + "publisher": { + "publisher_id": "INT", + "publisher_name": "VARCHAR" + }, + "shipping_method": { + "method_id": "INT", + "method_name": "VARCHAR", + "cost": "REAL" + } + }, + "policies": [ + { + "table": "address", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "country_id", + "country_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"address\" c WHERE c.\"country_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"country_id\" = c.\"country_id\")" + }, + { + "table": "book", + "id": 0, + "declaration": [ + [ + 0, + 0, + "publisher", + "publisher_id", + "publisher_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"book\" c WHERE c.\"publisher_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"publisher\" p WHERE p.\"publisher_id\" = c.\"publisher_id\")" + }, + { + "table": "book", + "id": 1, + "declaration": [ + [ + 1, + 0, + "book_language", + "language_id", + "language_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"book\" c WHERE c.\"language_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"book_language\" p WHERE p.\"language_id\" = c.\"language_id\")" + }, + { + "table": "book_author", + "id": 0, + "declaration": [ + [ + 0, + 0, + "book", + "book_id", + "book_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"book_author\" c WHERE c.\"book_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"book\" p WHERE p.\"book_id\" = c.\"book_id\")" + }, + { + "table": "book_author", + "id": 1, + "declaration": [ + [ + 1, + 0, + "author", + "author_id", + "author_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"book_author\" c WHERE c.\"author_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"author\" p WHERE p.\"author_id\" = c.\"author_id\")" + }, + { + "table": "cust_order", + "id": 0, + "declaration": [ + [ + 0, + 0, + "address", + "dest_address_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"cust_order\" c WHERE c.\"dest_address_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"address\" p WHERE p.\"address_id\" = c.\"dest_address_id\")" + }, + { + "table": "cust_order", + "id": 1, + "declaration": [ + [ + 1, + 0, + "shipping_method", + "shipping_method_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"cust_order\" c WHERE c.\"shipping_method_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"shipping_method\" p WHERE p.\"method_id\" = c.\"shipping_method_id\")" + }, + { + "table": "cust_order", + "id": 2, + "declaration": [ + [ + 2, + 0, + "customer", + "customer_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"cust_order\" c WHERE c.\"customer_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"customer_id\" = c.\"customer_id\")" + }, + { + "table": "customer_address", + "id": 0, + "declaration": [ + [ + 0, + 0, + "customer", + "customer_id", + "customer_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customer_address\" c WHERE c.\"customer_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"customer_id\" = c.\"customer_id\")" + }, + { + "table": "customer_address", + "id": 1, + "declaration": [ + [ + 1, + 0, + "address", + "address_id", + "address_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customer_address\" c WHERE c.\"address_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"address\" p WHERE p.\"address_id\" = c.\"address_id\")" + }, + { + "table": "order_history", + "id": 0, + "declaration": [ + [ + 0, + 0, + "order_status", + "status_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"order_history\" c WHERE c.\"status_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"order_status\" p WHERE p.\"status_id\" = c.\"status_id\")" + }, + { + "table": "order_history", + "id": 1, + "declaration": [ + [ + 1, + 0, + "cust_order", + "order_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"order_history\" c WHERE c.\"order_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"cust_order\" p WHERE p.\"order_id\" = c.\"order_id\")" + }, + { + "table": "order_line", + "id": 0, + "declaration": [ + [ + 0, + 0, + "book", + "book_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"order_line\" c WHERE c.\"book_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"book\" p WHERE p.\"book_id\" = c.\"book_id\")" + }, + { + "table": "order_line", + "id": 1, + "declaration": [ + [ + 1, + 0, + "cust_order", + "order_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"order_line\" c WHERE c.\"order_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"cust_order\" p WHERE p.\"order_id\" = c.\"order_id\")" + } + ], + "sha256": "8b34bb9752cb1550a622945e1b814b5978cd9435a00ab037c2758b552a7f856e" + }, + "car_retails": { + "schema": [ + [ + "table", + "customers", + "customers", + "CREATE TABLE customers\n(\n customerNumber INTEGER not null\n primary key,\n customerName TEXT not null,\n contactLastName TEXT not null,\n contactFirstName TEXT not null,\n phone TEXT not null,\n addressLine1 TEXT not null,\n addressLine2 TEXT,\n city TEXT not null,\n state TEXT,\n postalCode TEXT,\n country TEXT not null,\n salesRepEmployeeNumber INTEGER,\n creditLimit REAL,\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n)" + ], + [ + "table", + "employees", + "employees", + "CREATE TABLE employees\n(\n employeeNumber INTEGER not null\n primary key,\n lastName TEXT not null,\n firstName TEXT not null,\n extension TEXT not null,\n email TEXT not null,\n officeCode TEXT not null,\n reportsTo INTEGER,\n jobTitle TEXT not null,\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n)" + ], + [ + "table", + "offices", + "offices", + "CREATE TABLE offices\n(\n officeCode TEXT not null\n primary key,\n city TEXT not null,\n phone TEXT not null,\n addressLine1 TEXT not null,\n addressLine2 TEXT,\n state TEXT,\n country TEXT not null,\n postalCode TEXT not null,\n territory TEXT not null\n)" + ], + [ + "table", + "orderdetails", + "orderdetails", + "CREATE TABLE \"orderdetails\"\n(\n orderNumber INTEGER not null\n references orders,\n productCode TEXT not null\n references products,\n quantityOrdered INTEGER not null,\n priceEach REAL not null,\n orderLineNumber INTEGER not null,\n primary key (orderNumber, productCode)\n)" + ], + [ + "table", + "orders", + "orders", + "CREATE TABLE orders\n(\n orderNumber INTEGER not null\n primary key,\n orderDate DATE not null,\n requiredDate DATE not null,\n shippedDate DATE,\n status TEXT not null,\n comments TEXT,\n customerNumber INTEGER not null,\n foreign key (customerNumber) references customers(customerNumber)\n)" + ], + [ + "table", + "payments", + "payments", + "CREATE TABLE payments\n(\n customerNumber INTEGER not null,\n checkNumber TEXT not null,\n paymentDate DATE not null,\n amount REAL not null,\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n)" + ], + [ + "table", + "productlines", + "productlines", + "CREATE TABLE productlines\n(\n productLine TEXT not null\n primary key,\n textDescription TEXT,\n htmlDescription TEXT,\n image BLOB\n)" + ], + [ + "table", + "products", + "products", + "CREATE TABLE products\n(\n productCode TEXT not null\n primary key,\n productName TEXT not null,\n productLine TEXT not null,\n productScale TEXT not null,\n productVendor TEXT not null,\n productDescription TEXT not null,\n quantityInStock INTEGER not null,\n buyPrice REAL not null,\n MSRP REAL not null,\n foreign key (productLine) references productlines(productLine)\n)" + ] + ], + "solver_schema": { + "customers": { + "customerNumber": "INT", + "customerName": "VARCHAR", + "contactLastName": "VARCHAR", + "contactFirstName": "VARCHAR", + "phone": "VARCHAR", + "addressLine1": "VARCHAR", + "addressLine2": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "postalCode": "VARCHAR", + "country": "VARCHAR", + "salesRepEmployeeNumber": "INT", + "creditLimit": "REAL" + }, + "employees": { + "employeeNumber": "INT", + "lastName": "VARCHAR", + "firstName": "VARCHAR", + "extension": "VARCHAR", + "email": "VARCHAR", + "officeCode": "VARCHAR", + "reportsTo": "INT", + "jobTitle": "VARCHAR" + }, + "offices": { + "officeCode": "VARCHAR", + "city": "VARCHAR", + "phone": "VARCHAR", + "addressLine1": "VARCHAR", + "addressLine2": "VARCHAR", + "state": "VARCHAR", + "country": "VARCHAR", + "postalCode": "VARCHAR", + "territory": "VARCHAR" + }, + "orderdetails": { + "orderNumber": "INT", + "productCode": "VARCHAR", + "quantityOrdered": "INT", + "priceEach": "REAL", + "orderLineNumber": "INT" + }, + "orders": { + "orderNumber": "INT", + "orderDate": "REAL", + "requiredDate": "REAL", + "shippedDate": "REAL", + "status": "VARCHAR", + "comments": "VARCHAR", + "customerNumber": "INT" + }, + "payments": { + "customerNumber": "INT", + "checkNumber": "VARCHAR", + "paymentDate": "REAL", + "amount": "REAL" + }, + "productlines": { + "productLine": "VARCHAR", + "textDescription": "VARCHAR", + "htmlDescription": "VARCHAR", + "image": "REAL" + }, + "products": { + "productCode": "VARCHAR", + "productName": "VARCHAR", + "productLine": "VARCHAR", + "productScale": "VARCHAR", + "productVendor": "VARCHAR", + "productDescription": "VARCHAR", + "quantityInStock": "INT", + "buyPrice": "REAL", + "MSRP": "REAL" + } + }, + "policies": [ + { + "table": "customers", + "id": 0, + "declaration": [ + [ + 0, + 0, + "employees", + "salesRepEmployeeNumber", + "employeeNumber", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customers\" c WHERE c.\"salesRepEmployeeNumber\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"employees\" p WHERE p.\"employeeNumber\" = c.\"salesRepEmployeeNumber\")" + }, + { + "table": "employees", + "id": 0, + "declaration": [ + [ + 0, + 0, + "employees", + "reportsTo", + "employeeNumber", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employees\" c WHERE c.\"reportsTo\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"employees\" p WHERE p.\"employeeNumber\" = c.\"reportsTo\")" + }, + { + "table": "employees", + "id": 1, + "declaration": [ + [ + 1, + 0, + "offices", + "officeCode", + "officeCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employees\" c WHERE c.\"officeCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"offices\" p WHERE p.\"officeCode\" = c.\"officeCode\")" + }, + { + "table": "orderdetails", + "id": 0, + "declaration": [ + [ + 0, + 0, + "products", + "productCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"orderdetails\" c WHERE c.\"productCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"products\" p WHERE p.\"productCode\" = c.\"productCode\")" + }, + { + "table": "orderdetails", + "id": 1, + "declaration": [ + [ + 1, + 0, + "orders", + "orderNumber", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"orderdetails\" c WHERE c.\"orderNumber\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"orders\" p WHERE p.\"orderNumber\" = c.\"orderNumber\")" + }, + { + "table": "orders", + "id": 0, + "declaration": [ + [ + 0, + 0, + "customers", + "customerNumber", + "customerNumber", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"orders\" c WHERE c.\"customerNumber\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customers\" p WHERE p.\"customerNumber\" = c.\"customerNumber\")" + }, + { + "table": "payments", + "id": 0, + "declaration": [ + [ + 0, + 0, + "customers", + "customerNumber", + "customerNumber", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"payments\" c WHERE c.\"customerNumber\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customers\" p WHERE p.\"customerNumber\" = c.\"customerNumber\")" + }, + { + "table": "products", + "id": 0, + "declaration": [ + [ + 0, + 0, + "productlines", + "productLine", + "productLine", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"products\" c WHERE c.\"productLine\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"productlines\" p WHERE p.\"productLine\" = c.\"productLine\")" + } + ], + "sha256": "a5c434b67cd62c8e35721dfb462405b8750fee684e9d005f79bcc23bacdb1bf5" + }, + "cars": { + "schema": [ + [ + "table", + "country", + "country", + "CREATE TABLE country\n(\n origin INTEGER\n primary key,\n country TEXT\n)" + ], + [ + "table", + "data", + "data", + "CREATE TABLE data\n(\n ID INTEGER\n primary key,\n mpg REAL,\n cylinders INTEGER,\n displacement REAL,\n horsepower INTEGER,\n weight INTEGER,\n acceleration REAL,\n model INTEGER,\n car_name TEXT,\n foreign key (ID) references price(ID)\n)" + ], + [ + "table", + "price", + "price", + "CREATE TABLE price\n(\n ID INTEGER\n primary key,\n price REAL\n)" + ], + [ + "table", + "production", + "production", + "CREATE TABLE production\n(\n ID INTEGER,\n model_year INTEGER,\n country INTEGER,\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n)" + ] + ], + "solver_schema": { + "country": { + "origin": "INT", + "country": "VARCHAR" + }, + "data": { + "ID": "INT", + "mpg": "REAL", + "cylinders": "INT", + "displacement": "REAL", + "horsepower": "INT", + "weight": "INT", + "acceleration": "REAL", + "model": "INT", + "car_name": "VARCHAR" + }, + "price": { + "ID": "INT", + "price": "REAL" + }, + "production": { + "ID": "INT", + "model_year": "INT", + "country": "INT" + } + }, + "policies": [ + { + "table": "data", + "id": 0, + "declaration": [ + [ + 0, + 0, + "price", + "ID", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"data\" c WHERE c.\"ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"price\" p WHERE p.\"ID\" = c.\"ID\")" + }, + { + "table": "production", + "id": 0, + "declaration": [ + [ + 0, + 0, + "price", + "ID", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"production\" c WHERE c.\"ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"price\" p WHERE p.\"ID\" = c.\"ID\")" + }, + { + "table": "production", + "id": 1, + "declaration": [ + [ + 1, + 0, + "data", + "ID", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"production\" c WHERE c.\"ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"data\" p WHERE p.\"ID\" = c.\"ID\")" + }, + { + "table": "production", + "id": 2, + "declaration": [ + [ + 2, + 0, + "country", + "country", + "origin", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"production\" c WHERE c.\"country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"origin\" = c.\"country\")" + } + ], + "sha256": "0338e4d6f3c7bb90748b6a1971c0d18f301166b77f2ca9984c197a0f20d7f67e" + }, + "chicago_crime": { + "schema": [ + [ + "table", + "Community_Area", + "Community_Area", + "CREATE TABLE Community_Area\n(\n community_area_no INTEGER\n primary key,\n community_area_name TEXT,\n side TEXT,\n population TEXT\n)" + ], + [ + "table", + "Crime", + "Crime", + "CREATE TABLE Crime\n(\n report_no INTEGER\n primary key,\n case_number TEXT,\n date TEXT,\n block TEXT,\n iucr_no TEXT,\n location_description TEXT,\n arrest TEXT,\n domestic TEXT,\n beat INTEGER,\n district_no INTEGER,\n ward_no INTEGER,\n community_area_no INTEGER,\n fbi_code_no TEXT,\n latitude TEXT,\n longitude TEXT,\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n)" + ], + [ + "table", + "District", + "District", + "CREATE TABLE District\n(\n district_no INTEGER\n primary key,\n district_name TEXT,\n address TEXT,\n zip_code INTEGER,\n commander TEXT,\n email TEXT,\n phone TEXT,\n fax TEXT,\n tty TEXT,\n twitter TEXT\n)" + ], + [ + "table", + "FBI_Code", + "FBI_Code", + "CREATE TABLE FBI_Code\n(\n fbi_code_no TEXT\n primary key,\n title TEXT,\n description TEXT,\n crime_against TEXT\n)" + ], + [ + "table", + "IUCR", + "IUCR", + "CREATE TABLE IUCR\n(\n iucr_no TEXT\n primary key,\n primary_description TEXT,\n secondary_description TEXT,\n index_code TEXT\n)" + ], + [ + "table", + "Neighborhood", + "Neighborhood", + "CREATE TABLE Neighborhood\n(\n neighborhood_name TEXT\n primary key,\n community_area_no INTEGER,\n foreign key (community_area_no) references Community_Area(community_area_no)\n)" + ], + [ + "table", + "Ward", + "Ward", + "CREATE TABLE Ward\n(\n ward_no INTEGER\n primary key,\n alderman_first_name TEXT,\n alderman_last_name TEXT,\n alderman_name_suffix TEXT,\n ward_office_address TEXT,\n ward_office_zip TEXT,\n ward_email TEXT,\n ward_office_phone TEXT,\n ward_office_fax TEXT,\n city_hall_office_room INTEGER,\n city_hall_office_phone TEXT,\n city_hall_office_fax TEXT,\n Population INTEGER\n)" + ] + ], + "solver_schema": { + "Community_Area": { + "community_area_no": "INT", + "community_area_name": "VARCHAR", + "side": "VARCHAR", + "population": "VARCHAR" + }, + "Crime": { + "report_no": "INT", + "case_number": "VARCHAR", + "date": "VARCHAR", + "block": "VARCHAR", + "iucr_no": "VARCHAR", + "location_description": "VARCHAR", + "arrest": "VARCHAR", + "domestic": "VARCHAR", + "beat": "INT", + "district_no": "INT", + "ward_no": "INT", + "community_area_no": "INT", + "fbi_code_no": "VARCHAR", + "latitude": "VARCHAR", + "longitude": "VARCHAR" + }, + "District": { + "district_no": "INT", + "district_name": "VARCHAR", + "address": "VARCHAR", + "zip_code": "INT", + "commander": "VARCHAR", + "email": "VARCHAR", + "phone": "VARCHAR", + "fax": "VARCHAR", + "tty": "VARCHAR", + "twitter": "VARCHAR" + }, + "FBI_Code": { + "fbi_code_no": "VARCHAR", + "title": "VARCHAR", + "description": "VARCHAR", + "crime_against": "VARCHAR" + }, + "IUCR": { + "iucr_no": "VARCHAR", + "primary_description": "VARCHAR", + "secondary_description": "VARCHAR", + "index_code": "VARCHAR" + }, + "Neighborhood": { + "neighborhood_name": "VARCHAR", + "community_area_no": "INT" + }, + "Ward": { + "ward_no": "INT", + "alderman_first_name": "VARCHAR", + "alderman_last_name": "VARCHAR", + "alderman_name_suffix": "VARCHAR", + "ward_office_address": "VARCHAR", + "ward_office_zip": "VARCHAR", + "ward_email": "VARCHAR", + "ward_office_phone": "VARCHAR", + "ward_office_fax": "VARCHAR", + "city_hall_office_room": "INT", + "city_hall_office_phone": "VARCHAR", + "city_hall_office_fax": "VARCHAR", + "Population": "INT" + } + }, + "policies": [ + { + "table": "Crime", + "id": 0, + "declaration": [ + [ + 0, + 0, + "FBI_Code", + "fbi_code_no", + "fbi_code_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Crime\" c WHERE c.\"fbi_code_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"FBI_Code\" p WHERE p.\"fbi_code_no\" = c.\"fbi_code_no\")" + }, + { + "table": "Crime", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Community_Area", + "community_area_no", + "community_area_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Crime\" c WHERE c.\"community_area_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Community_Area\" p WHERE p.\"community_area_no\" = c.\"community_area_no\")" + }, + { + "table": "Crime", + "id": 2, + "declaration": [ + [ + 2, + 0, + "District", + "district_no", + "district_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 10, + "query": "SELECT COUNT(*) FROM \"Crime\" c WHERE c.\"district_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"District\" p WHERE p.\"district_no\" = c.\"district_no\")" + }, + { + "table": "Crime", + "id": 3, + "declaration": [ + [ + 3, + 0, + "IUCR", + "iucr_no", + "iucr_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 68, + "query": "SELECT COUNT(*) FROM \"Crime\" c WHERE c.\"iucr_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"IUCR\" p WHERE p.\"iucr_no\" = c.\"iucr_no\")" + }, + { + "table": "Crime", + "id": 4, + "declaration": [ + [ + 4, + 0, + "Ward", + "ward_no", + "ward_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Crime\" c WHERE c.\"ward_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Ward\" p WHERE p.\"ward_no\" = c.\"ward_no\")" + }, + { + "table": "Neighborhood", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Community_Area", + "community_area_no", + "community_area_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Neighborhood\" c WHERE c.\"community_area_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Community_Area\" p WHERE p.\"community_area_no\" = c.\"community_area_no\")" + } + ], + "sha256": "dfd081c54e79be5e980d16c8f0dd8403a82946073f2f061936fa18fb8ad69161" + }, + "citeseer": { + "schema": [ + [ + "table", + "cites", + "cites", + "CREATE TABLE cites\n(\n cited_paper_id TEXT not null,\n citing_paper_id TEXT not null,\n primary key (cited_paper_id, citing_paper_id)\n)" + ], + [ + "table", + "content", + "content", + "CREATE TABLE content\n(\n paper_id TEXT not null,\n word_cited_id TEXT not null,\n primary key (paper_id, word_cited_id),\n foreign key (paper_id) references paper(paper_id)\n)" + ], + [ + "table", + "paper", + "paper", + "CREATE TABLE paper\n(\n paper_id TEXT not null\n primary key,\n class_label TEXT not null\n)" + ] + ], + "solver_schema": { + "cites": { + "cited_paper_id": "VARCHAR", + "citing_paper_id": "VARCHAR" + }, + "content": { + "paper_id": "VARCHAR", + "word_cited_id": "VARCHAR" + }, + "paper": { + "paper_id": "VARCHAR", + "class_label": "VARCHAR" + } + }, + "policies": [ + { + "table": "content", + "id": 0, + "declaration": [ + [ + 0, + 0, + "paper", + "paper_id", + "paper_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"content\" c WHERE c.\"paper_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"paper\" p WHERE p.\"paper_id\" = c.\"paper_id\")" + } + ], + "sha256": "2590117d0545f92aec1651f1bc063bd5897755eaadfd56aaf0c105a81e616e32" + }, + "codebase_comments": { + "schema": [ + [ + "table", + "Method", + "Method", + "CREATE TABLE \"Method\"\n(\n Id INTEGER not null\n primary key autoincrement,\n Name TEXT,\n FullComment TEXT,\n Summary TEXT,\n ApiCalls TEXT,\n CommentIsXml INTEGER,\n SampledAt INTEGER,\n SolutionId INTEGER,\n Lang TEXT,\n NameTokenized TEXT\n)" + ], + [ + "table", + "MethodParameter", + "MethodParameter", + "CREATE TABLE \"MethodParameter\"\n(\n Id INTEGER not null\n primary key autoincrement,\n MethodId TEXT,\n Type TEXT,\n Name TEXT\n)" + ], + [ + "table", + "Repo", + "Repo", + "CREATE TABLE Repo\n(\n Id INTEGER not null\n primary key autoincrement,\n Url TEXT,\n Stars INTEGER,\n Forks INTEGER,\n Watchers INTEGER,\n ProcessedTime INTEGER\n)" + ], + [ + "table", + "Solution", + "Solution", + "CREATE TABLE Solution\n(\n Id INTEGER not null\n primary key autoincrement,\n RepoId INTEGER,\n Path TEXT,\n ProcessedTime INTEGER,\n WasCompiled INTEGER\n)" + ] + ], + "solver_schema": { + "Method": { + "Id": "INT", + "Name": "VARCHAR", + "FullComment": "VARCHAR", + "Summary": "VARCHAR", + "ApiCalls": "VARCHAR", + "CommentIsXml": "INT", + "SampledAt": "INT", + "SolutionId": "INT", + "Lang": "VARCHAR", + "NameTokenized": "VARCHAR" + }, + "MethodParameter": { + "Id": "INT", + "MethodId": "VARCHAR", + "Type": "VARCHAR", + "Name": "VARCHAR" + }, + "Repo": { + "Id": "INT", + "Url": "VARCHAR", + "Stars": "INT", + "Forks": "INT", + "Watchers": "INT", + "ProcessedTime": "INT" + }, + "Solution": { + "Id": "INT", + "RepoId": "INT", + "Path": "VARCHAR", + "ProcessedTime": "INT", + "WasCompiled": "INT" + } + }, + "policies": [], + "sha256": "e4b25e8c72a79cc4142deab8c81c0c6bfd1294ae7014d518d55b7a3e8faff0a8" + }, + "coinmarketcap": { + "schema": [ + [ + "table", + "coins", + "coins", + "CREATE TABLE coins\n(\n id INTEGER not null\n primary key,\n name TEXT,\n slug TEXT,\n symbol TEXT,\n status TEXT,\n category TEXT,\n description TEXT,\n subreddit TEXT,\n notice TEXT,\n tags TEXT,\n tag_names TEXT,\n website TEXT,\n platform_id INTEGER,\n date_added TEXT,\n date_launched TEXT\n)" + ], + [ + "table", + "historical", + "historical", + "CREATE TABLE \"historical\"\n(\n date DATE,\n coin_id INTEGER,\n cmc_rank INTEGER,\n market_cap REAL,\n price REAL,\n open REAL,\n high REAL,\n low REAL,\n close REAL,\n time_high TEXT,\n time_low TEXT,\n volume_24h REAL,\n percent_change_1h REAL,\n percent_change_24h REAL,\n percent_change_7d REAL,\n circulating_supply REAL,\n total_supply REAL,\n max_supply REAL,\n num_market_pairs INTEGER\n)" + ] + ], + "solver_schema": { + "coins": { + "id": "INT", + "name": "VARCHAR", + "slug": "VARCHAR", + "symbol": "VARCHAR", + "status": "VARCHAR", + "category": "VARCHAR", + "description": "VARCHAR", + "subreddit": "VARCHAR", + "notice": "VARCHAR", + "tags": "VARCHAR", + "tag_names": "VARCHAR", + "website": "VARCHAR", + "platform_id": "INT", + "date_added": "VARCHAR", + "date_launched": "VARCHAR" + }, + "historical": { + "date": "REAL", + "coin_id": "INT", + "cmc_rank": "INT", + "market_cap": "REAL", + "price": "REAL", + "open": "REAL", + "high": "REAL", + "low": "REAL", + "close": "REAL", + "time_high": "VARCHAR", + "time_low": "VARCHAR", + "volume_24h": "REAL", + "percent_change_1h": "REAL", + "percent_change_24h": "REAL", + "percent_change_7d": "REAL", + "circulating_supply": "REAL", + "total_supply": "REAL", + "max_supply": "REAL", + "num_market_pairs": "INT" + } + }, + "policies": [], + "sha256": "ff179a460968f85bc7b0836a50d6c3dd3e5002be7990fb9e2bfa88213803a0f2" + }, + "college_completion": { + "schema": [ + [ + "table", + "institution_details", + "institution_details", + "CREATE TABLE institution_details\n(\n unitid INTEGER\n constraint institution_details_pk\n primary key,\n chronname TEXT,\n city TEXT,\n state TEXT,\n level TEXT,\n control TEXT,\n basic TEXT,\n hbcu TEXT,\n flagship TEXT,\n long_x REAL,\n lat_y REAL,\n site TEXT,\n student_count INTEGER,\n awards_per_value REAL,\n awards_per_state_value REAL,\n awards_per_natl_value REAL,\n exp_award_value INTEGER,\n exp_award_state_value INTEGER,\n exp_award_natl_value INTEGER,\n exp_award_percentile INTEGER,\n ft_pct REAL,\n fte_value INTEGER,\n fte_percentile INTEGER,\n med_sat_value TEXT,\n med_sat_percentile TEXT,\n aid_value INTEGER,\n aid_percentile INTEGER,\n endow_value TEXT,\n endow_percentile TEXT,\n grad_100_value REAL,\n grad_100_percentile INTEGER,\n grad_150_value REAL,\n grad_150_percentile INTEGER,\n pell_value REAL,\n pell_percentile INTEGER,\n retain_value REAL,\n retain_percentile INTEGER,\n ft_fac_value REAL,\n ft_fac_percentile INTEGER,\n vsa_year TEXT,\n vsa_grad_after4_first TEXT,\n vsa_grad_elsewhere_after4_first TEXT,\n vsa_enroll_after4_first TEXT,\n vsa_enroll_elsewhere_after4_first TEXT,\n vsa_grad_after6_first TEXT,\n vsa_grad_elsewhere_after6_first TEXT,\n vsa_enroll_after6_first TEXT,\n vsa_enroll_elsewhere_after6_first TEXT,\n vsa_grad_after4_transfer TEXT,\n vsa_grad_elsewhere_after4_transfer TEXT,\n vsa_enroll_after4_transfer TEXT,\n vsa_enroll_elsewhere_after4_transfer TEXT,\n vsa_grad_after6_transfer TEXT,\n vsa_grad_elsewhere_after6_transfer TEXT,\n vsa_enroll_after6_transfer TEXT,\n vsa_enroll_elsewhere_after6_transfer TEXT,\n similar TEXT,\n state_sector_ct INTEGER,\n carnegie_ct INTEGER,\n counted_pct TEXT,\n nicknames TEXT,\n cohort_size INTEGER\n)" + ], + [ + "table", + "institution_grads", + "institution_grads", + "CREATE TABLE institution_grads\n(\n unitid INTEGER,\n year INTEGER,\n gender TEXT,\n race TEXT,\n cohort TEXT,\n grad_cohort TEXT,\n grad_100 TEXT,\n grad_150 TEXT,\n grad_100_rate TEXT,\n grad_150_rate TEXT,\n foreign key (unitid) references institution_details(unitid)\n)" + ], + [ + "table", + "state_sector_details", + "state_sector_details", + "CREATE TABLE \"state_sector_details\"\n(\n stateid INTEGER,\n state TEXT\n references institution_details (state),\n state_post TEXT,\n level TEXT,\n control TEXT,\n schools_count INTEGER,\n counted_pct TEXT,\n awards_per_state_value TEXT,\n awards_per_natl_value REAL,\n exp_award_state_value TEXT,\n exp_award_natl_value INTEGER,\n state_appr_value TEXT,\n state_appr_rank TEXT,\n grad_rate_rank TEXT,\n awards_per_rank TEXT,\n primary key (stateid, level, control)\n)" + ], + [ + "table", + "state_sector_grads", + "state_sector_grads", + "CREATE TABLE state_sector_grads\n(\n stateid INTEGER,\n state TEXT,\n state_abbr TEXT,\n control TEXT,\n level TEXT,\n year INTEGER,\n gender TEXT,\n race TEXT,\n cohort TEXT,\n grad_cohort TEXT,\n grad_100 TEXT,\n grad_150 TEXT,\n grad_100_rate TEXT,\n grad_150_rate TEXT,\n grad_cohort_ct INTEGER,\n foreign key (state) references institution_details(state),\n foreign key (stateid) references state_sector_details(stateid)\n)" + ] + ], + "solver_schema": { + "institution_details": { + "unitid": "INT", + "chronname": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "level": "VARCHAR", + "control": "VARCHAR", + "basic": "VARCHAR", + "hbcu": "VARCHAR", + "flagship": "VARCHAR", + "long_x": "REAL", + "lat_y": "REAL", + "site": "VARCHAR", + "student_count": "INT", + "awards_per_value": "REAL", + "awards_per_state_value": "REAL", + "awards_per_natl_value": "REAL", + "exp_award_value": "INT", + "exp_award_state_value": "INT", + "exp_award_natl_value": "INT", + "exp_award_percentile": "INT", + "ft_pct": "REAL", + "fte_value": "INT", + "fte_percentile": "INT", + "med_sat_value": "VARCHAR", + "med_sat_percentile": "VARCHAR", + "aid_value": "INT", + "aid_percentile": "INT", + "endow_value": "VARCHAR", + "endow_percentile": "VARCHAR", + "grad_100_value": "REAL", + "grad_100_percentile": "INT", + "grad_150_value": "REAL", + "grad_150_percentile": "INT", + "pell_value": "REAL", + "pell_percentile": "INT", + "retain_value": "REAL", + "retain_percentile": "INT", + "ft_fac_value": "REAL", + "ft_fac_percentile": "INT", + "vsa_year": "VARCHAR", + "vsa_grad_after4_first": "VARCHAR", + "vsa_grad_elsewhere_after4_first": "VARCHAR", + "vsa_enroll_after4_first": "VARCHAR", + "vsa_enroll_elsewhere_after4_first": "VARCHAR", + "vsa_grad_after6_first": "VARCHAR", + "vsa_grad_elsewhere_after6_first": "VARCHAR", + "vsa_enroll_after6_first": "VARCHAR", + "vsa_enroll_elsewhere_after6_first": "VARCHAR", + "vsa_grad_after4_transfer": "VARCHAR", + "vsa_grad_elsewhere_after4_transfer": "VARCHAR", + "vsa_enroll_after4_transfer": "VARCHAR", + "vsa_enroll_elsewhere_after4_transfer": "VARCHAR", + "vsa_grad_after6_transfer": "VARCHAR", + "vsa_grad_elsewhere_after6_transfer": "VARCHAR", + "vsa_enroll_after6_transfer": "VARCHAR", + "vsa_enroll_elsewhere_after6_transfer": "VARCHAR", + "similar": "VARCHAR", + "state_sector_ct": "INT", + "carnegie_ct": "INT", + "counted_pct": "VARCHAR", + "nicknames": "VARCHAR", + "cohort_size": "INT" + }, + "institution_grads": { + "unitid": "INT", + "year": "INT", + "gender": "VARCHAR", + "race": "VARCHAR", + "cohort": "VARCHAR", + "grad_cohort": "VARCHAR", + "grad_100": "VARCHAR", + "grad_150": "VARCHAR", + "grad_100_rate": "VARCHAR", + "grad_150_rate": "VARCHAR" + }, + "state_sector_details": { + "stateid": "INT", + "state": "VARCHAR", + "state_post": "VARCHAR", + "level": "VARCHAR", + "control": "VARCHAR", + "schools_count": "INT", + "counted_pct": "VARCHAR", + "awards_per_state_value": "VARCHAR", + "awards_per_natl_value": "REAL", + "exp_award_state_value": "VARCHAR", + "exp_award_natl_value": "INT", + "state_appr_value": "VARCHAR", + "state_appr_rank": "VARCHAR", + "grad_rate_rank": "VARCHAR", + "awards_per_rank": "VARCHAR" + }, + "state_sector_grads": { + "stateid": "INT", + "state": "VARCHAR", + "state_abbr": "VARCHAR", + "control": "VARCHAR", + "level": "VARCHAR", + "year": "INT", + "gender": "VARCHAR", + "race": "VARCHAR", + "cohort": "VARCHAR", + "grad_cohort": "VARCHAR", + "grad_100": "VARCHAR", + "grad_150": "VARCHAR", + "grad_100_rate": "VARCHAR", + "grad_150_rate": "VARCHAR", + "grad_cohort_ct": "INT" + } + }, + "policies": [ + { + "table": "institution_grads", + "id": 0, + "declaration": [ + [ + 0, + 0, + "institution_details", + "unitid", + "unitid", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 42606, + "query": "SELECT COUNT(*) FROM \"institution_grads\" c WHERE c.\"unitid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"institution_details\" p WHERE p.\"unitid\" = c.\"unitid\")" + }, + { + "table": "state_sector_details", + "id": 0, + "declaration": [ + [ + 0, + 0, + "institution_details", + "state", + "state", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"institution_details\"" + }, + { + "table": "state_sector_grads", + "id": 0, + "declaration": [ + [ + 0, + 0, + "state_sector_details", + "stateid", + "stateid", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"state_sector_details\"" + }, + { + "table": "state_sector_grads", + "id": 1, + "declaration": [ + [ + 1, + 0, + "institution_details", + "state", + "state", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"institution_details\"" + } + ], + "sha256": "f60afb45836644ef4d6311882afd985e3d2320ee26a097fe5a706f880df6507e" + }, + "computer_student": { + "schema": [ + [ + "table", + "advisedBy", + "advisedBy", + "CREATE TABLE \"advisedBy\"\n(\n p_id INTEGER,\n p_id_dummy INTEGER,\n constraint advisedBy_pk\n primary key (p_id, p_id_dummy),\n constraint advisedBy_person_p_id_p_id_fk\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n)" + ], + [ + "table", + "course", + "course", + "CREATE TABLE course\n(\n course_id INTEGER\n constraint course_pk\n primary key,\n courseLevel TEXT\n)" + ], + [ + "table", + "person", + "person", + "CREATE TABLE person\n(\n p_id INTEGER\n constraint person_pk\n primary key,\n professor INTEGER,\n student INTEGER,\n hasPosition TEXT,\n inPhase TEXT,\n yearsInProgram TEXT\n)" + ], + [ + "table", + "taughtBy", + "taughtBy", + "CREATE TABLE taughtBy\n(\n course_id INTEGER,\n p_id INTEGER,\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n)" + ] + ], + "solver_schema": { + "advisedBy": { + "p_id": "INT", + "p_id_dummy": "INT" + }, + "course": { + "course_id": "INT", + "courseLevel": "VARCHAR" + }, + "person": { + "p_id": "INT", + "professor": "INT", + "student": "INT", + "hasPosition": "VARCHAR", + "inPhase": "VARCHAR", + "yearsInProgram": "VARCHAR" + }, + "taughtBy": { + "course_id": "INT", + "p_id": "INT" + } + }, + "policies": [ + { + "table": "advisedBy", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "p_id", + "p_id", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "person", + "p_id_dummy", + "p_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"person\"" + }, + { + "table": "taughtBy", + "id": 0, + "declaration": [ + [ + 0, + 0, + "course", + "course_id", + "course_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"taughtBy\" c WHERE c.\"course_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"course\" p WHERE p.\"course_id\" = c.\"course_id\")" + }, + { + "table": "taughtBy", + "id": 1, + "declaration": [ + [ + 1, + 0, + "person", + "p_id", + "p_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"taughtBy\" c WHERE c.\"p_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"p_id\" = c.\"p_id\")" + } + ], + "sha256": "617669575dff24ed08efacf95e05bb53347f2d895f053faa2dcbcd047b27a513" + }, + "cookbook": { + "schema": [ + [ + "table", + "Ingredient", + "Ingredient", + "CREATE TABLE Ingredient\n(\n ingredient_id INTEGER\n primary key,\n category TEXT,\n name TEXT,\n plural TEXT\n)" + ], + [ + "table", + "Nutrition", + "Nutrition", + "CREATE TABLE Nutrition\n(\n recipe_id INTEGER\n primary key,\n protein REAL,\n carbo REAL,\n alcohol REAL,\n total_fat REAL,\n sat_fat REAL,\n cholestrl REAL,\n sodium REAL,\n iron REAL,\n vitamin_c REAL,\n vitamin_a REAL,\n fiber REAL,\n pcnt_cal_carb REAL,\n pcnt_cal_fat REAL,\n pcnt_cal_prot REAL,\n calories REAL,\n foreign key (recipe_id) references Recipe(recipe_id)\n)" + ], + [ + "table", + "Quantity", + "Quantity", + "CREATE TABLE Quantity\n(\n quantity_id INTEGER\n primary key,\n recipe_id INTEGER,\n ingredient_id INTEGER,\n max_qty REAL,\n min_qty REAL,\n unit TEXT,\n preparation TEXT,\n optional TEXT,\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n)" + ], + [ + "table", + "Recipe", + "Recipe", + "CREATE TABLE Recipe\n(\n recipe_id INTEGER\n primary key,\n title TEXT,\n subtitle TEXT,\n servings INTEGER,\n yield_unit TEXT,\n prep_min INTEGER,\n cook_min INTEGER,\n stnd_min INTEGER,\n source TEXT,\n intro TEXT,\n directions TEXT\n)" + ] + ], + "solver_schema": { + "Ingredient": { + "ingredient_id": "INT", + "category": "VARCHAR", + "name": "VARCHAR", + "plural": "VARCHAR" + }, + "Nutrition": { + "recipe_id": "INT", + "protein": "REAL", + "carbo": "REAL", + "alcohol": "REAL", + "total_fat": "REAL", + "sat_fat": "REAL", + "cholestrl": "REAL", + "sodium": "REAL", + "iron": "REAL", + "vitamin_c": "REAL", + "vitamin_a": "REAL", + "fiber": "REAL", + "pcnt_cal_carb": "REAL", + "pcnt_cal_fat": "REAL", + "pcnt_cal_prot": "REAL", + "calories": "REAL" + }, + "Quantity": { + "quantity_id": "INT", + "recipe_id": "INT", + "ingredient_id": "INT", + "max_qty": "REAL", + "min_qty": "REAL", + "unit": "VARCHAR", + "preparation": "VARCHAR", + "optional": "VARCHAR" + }, + "Recipe": { + "recipe_id": "INT", + "title": "VARCHAR", + "subtitle": "VARCHAR", + "servings": "INT", + "yield_unit": "VARCHAR", + "prep_min": "INT", + "cook_min": "INT", + "stnd_min": "INT", + "source": "VARCHAR", + "intro": "VARCHAR", + "directions": "VARCHAR" + } + }, + "policies": [ + { + "table": "Nutrition", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Recipe", + "recipe_id", + "recipe_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Nutrition\" c WHERE c.\"recipe_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Recipe\" p WHERE p.\"recipe_id\" = c.\"recipe_id\")" + }, + { + "table": "Quantity", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Nutrition", + "recipe_id", + "recipe_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Quantity\" c WHERE c.\"recipe_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Nutrition\" p WHERE p.\"recipe_id\" = c.\"recipe_id\")" + }, + { + "table": "Quantity", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Ingredient", + "ingredient_id", + "ingredient_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Quantity\" c WHERE c.\"ingredient_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Ingredient\" p WHERE p.\"ingredient_id\" = c.\"ingredient_id\")" + }, + { + "table": "Quantity", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Recipe", + "recipe_id", + "recipe_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Quantity\" c WHERE c.\"recipe_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Recipe\" p WHERE p.\"recipe_id\" = c.\"recipe_id\")" + } + ], + "sha256": "bff5b9b84f633be89f7954eb4067e246f4ba7441ad4ffb33374ca8a8efe206da" + }, + "craftbeer": { + "schema": [ + [ + "index", + "brewery_id", + "beers", + "CREATE INDEX brewery_id\n on beers (brewery_id)" + ], + [ + "table", + "beers", + "beers", + "CREATE TABLE \"beers\"\n(\n id INTEGER not null\n primary key,\n brewery_id INTEGER not null\n constraint beers_ibfk_1\n references breweries,\n abv REAL,\n ibu REAL,\n name TEXT not null,\n style TEXT,\n ounces REAL not null\n)" + ], + [ + "table", + "breweries", + "breweries", + "CREATE TABLE breweries\n(\n id INTEGER not null\n primary key,\n name TEXT null,\n city TEXT null,\n state TEXT null\n)" + ] + ], + "policies": [ + { + "table": "beers", + "id": 0, + "declaration": [ + [ + 0, + 0, + "breweries", + "brewery_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"beers\" c WHERE c.\"brewery_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"breweries\" p WHERE p.\"id\" = c.\"brewery_id\")" + } + ], + "sha256": "127bad8fbd45772d66f81aa3935e5b957eaeccce104ec3e933ff156efea168ea" + }, + "cs_semester": { + "schema": [ + [ + "table", + "RA", + "RA", + "CREATE TABLE RA\n(\n student_id INTEGER,\n capability INTEGER,\n prof_id INTEGER,\n salary TEXT,\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n)" + ], + [ + "table", + "course", + "course", + "CREATE TABLE \"course\"\n(\n course_id INTEGER\n constraint course_pk\n primary key,\n name TEXT,\n credit INTEGER,\n diff INTEGER\n)" + ], + [ + "table", + "prof", + "prof", + "CREATE TABLE prof\n(\n prof_id INTEGER\n constraint prof_pk\n primary key,\n gender TEXT,\n first_name TEXT,\n last_name TEXT,\n email TEXT,\n popularity INTEGER,\n teachingability INTEGER,\n graduate_from TEXT\n)" + ], + [ + "table", + "registration", + "registration", + "CREATE TABLE registration\n(\n course_id INTEGER,\n student_id INTEGER,\n grade TEXT,\n sat INTEGER,\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n)" + ], + [ + "table", + "student", + "student", + "CREATE TABLE student\n(\n student_id INTEGER\n primary key,\n f_name TEXT,\n l_name TEXT,\n phone_number TEXT,\n email TEXT,\n intelligence INTEGER,\n gpa REAL,\n type TEXT\n)" + ] + ], + "solver_schema": { + "RA": { + "student_id": "INT", + "capability": "INT", + "prof_id": "INT", + "salary": "VARCHAR" + }, + "course": { + "course_id": "INT", + "name": "VARCHAR", + "credit": "INT", + "diff": "INT" + }, + "prof": { + "prof_id": "INT", + "gender": "VARCHAR", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "email": "VARCHAR", + "popularity": "INT", + "teachingability": "INT", + "graduate_from": "VARCHAR" + }, + "registration": { + "course_id": "INT", + "student_id": "INT", + "grade": "VARCHAR", + "sat": "INT" + }, + "student": { + "student_id": "INT", + "f_name": "VARCHAR", + "l_name": "VARCHAR", + "phone_number": "VARCHAR", + "email": "VARCHAR", + "intelligence": "INT", + "gpa": "REAL", + "type": "VARCHAR" + } + }, + "policies": [ + { + "table": "RA", + "id": 0, + "declaration": [ + [ + 0, + 0, + "student", + "student_id", + "student_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"RA\" c WHERE c.\"student_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"student\" p WHERE p.\"student_id\" = c.\"student_id\")" + }, + { + "table": "RA", + "id": 1, + "declaration": [ + [ + 1, + 0, + "prof", + "prof_id", + "prof_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 8, + "query": "SELECT COUNT(*) FROM \"RA\" c WHERE c.\"prof_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"prof\" p WHERE p.\"prof_id\" = c.\"prof_id\")" + }, + { + "table": "registration", + "id": 0, + "declaration": [ + [ + 0, + 0, + "student", + "student_id", + "student_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"registration\" c WHERE c.\"student_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"student\" p WHERE p.\"student_id\" = c.\"student_id\")" + }, + { + "table": "registration", + "id": 1, + "declaration": [ + [ + 1, + 0, + "course", + "course_id", + "course_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"registration\" c WHERE c.\"course_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"course\" p WHERE p.\"course_id\" = c.\"course_id\")" + } + ], + "sha256": "c6b199692b7169678682ad9e327762d0a0cafff1ac8f3d61505c7b2fed28b5eb" + }, + "disney": { + "schema": [ + [ + "table", + "characters", + "characters", + "CREATE TABLE characters\n(\n movie_title TEXT\n primary key,\n release_date TEXT,\n hero TEXT,\n villian TEXT,\n song TEXT,\n foreign key (hero) references \"voice-actors\"(character)\n)" + ], + [ + "table", + "director", + "director", + "CREATE TABLE director\n(\n name TEXT\n primary key,\n director TEXT,\n foreign key (name) references characters(movie_title)\n)" + ], + [ + "table", + "movies_total_gross", + "movies_total_gross", + "CREATE TABLE movies_total_gross\n(\n movie_title TEXT,\n release_date TEXT,\n genre TEXT,\n MPAA_rating TEXT,\n total_gross TEXT,\n inflation_adjusted_gross TEXT,\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n)" + ], + [ + "table", + "revenue", + "revenue", + "CREATE TABLE revenue\n(\n Year INTEGER\n primary key,\n \"Studio Entertainment[NI 1]\" REAL,\n \"Disney Consumer Products[NI 2]\" REAL,\n \"Disney Interactive[NI 3][Rev 1]\" INTEGER,\n \"Walt Disney Parks and Resorts\" REAL,\n \"Disney Media Networks\" TEXT,\n Total INTEGER\n)" + ], + [ + "table", + "voice-actors", + "voice-actors", + "CREATE TABLE \"voice-actors\"\n(\n character TEXT\n primary key,\n \"voice-actor\" TEXT,\n movie TEXT,\n foreign key (movie) references characters(movie_title)\n)" + ] + ], + "solver_schema": { + "characters": { + "movie_title": "VARCHAR", + "release_date": "VARCHAR", + "hero": "VARCHAR", + "villian": "VARCHAR", + "song": "VARCHAR" + }, + "director": { + "name": "VARCHAR", + "director": "VARCHAR" + }, + "movies_total_gross": { + "movie_title": "VARCHAR", + "release_date": "VARCHAR", + "genre": "VARCHAR", + "MPAA_rating": "VARCHAR", + "total_gross": "VARCHAR", + "inflation_adjusted_gross": "VARCHAR" + }, + "revenue": { + "Year": "INT", + "Studio Entertainment[NI 1]": "REAL", + "Disney Consumer Products[NI 2]": "REAL", + "Disney Interactive[NI 3][Rev 1]": "INT", + "Walt Disney Parks and Resorts": "REAL", + "Disney Media Networks": "VARCHAR", + "Total": "INT" + }, + "voice-actors": { + "character": "VARCHAR", + "voice-actor": "VARCHAR", + "movie": "VARCHAR" + } + }, + "policies": [ + { + "table": "characters", + "id": 0, + "declaration": [ + [ + 0, + 0, + "voice-actors", + "hero", + "character", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 12, + "query": "SELECT COUNT(*) FROM \"characters\" c WHERE c.\"hero\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"voice-actors\" p WHERE p.\"character\" = c.\"hero\")" + }, + { + "table": "director", + "id": 0, + "declaration": [ + [ + 0, + 0, + "characters", + "name", + "movie_title", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"director\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"characters\" p WHERE p.\"movie_title\" = c.\"name\")" + }, + { + "table": "movies_total_gross", + "id": 0, + "declaration": [ + [ + 0, + 0, + "characters", + "movie_title", + "movie_title", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 532, + "query": "SELECT COUNT(*) FROM \"movies_total_gross\" c WHERE c.\"movie_title\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"characters\" p WHERE p.\"movie_title\" = c.\"movie_title\")" + }, + { + "table": "voice-actors", + "id": 0, + "declaration": [ + [ + 0, + 0, + "characters", + "movie", + "movie_title", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 290, + "query": "SELECT COUNT(*) FROM \"voice-actors\" c WHERE c.\"movie\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"characters\" p WHERE p.\"movie_title\" = c.\"movie\")" + } + ], + "sha256": "0356fc508607fa20da3c94dc785705f05a4b8a9455bb4ac02fb1271fe3bd5c25" + }, + "donor": { + "schema": [ + [ + "table", + "donations", + "donations", + "CREATE TABLE donations\n(\n donationid TEXT not null\n primary key,\n projectid TEXT,\n donor_acctid TEXT,\n donor_city TEXT,\n donor_state TEXT,\n donor_zip TEXT,\n is_teacher_acct TEXT,\n donation_timestamp DATETIME,\n donation_to_project REAL,\n donation_optional_support REAL,\n donation_total REAL,\n dollar_amount TEXT,\n donation_included_optional_support TEXT,\n payment_method TEXT,\n payment_included_acct_credit TEXT,\n payment_included_campaign_gift_card TEXT,\n payment_included_web_purchased_gift_card TEXT,\n payment_was_promo_matched TEXT,\n via_giving_page TEXT,\n for_honoree TEXT,\n donation_message TEXT,\n foreign key (projectid) references projects(projectid)\n)" + ], + [ + "table", + "essays", + "essays", + "CREATE TABLE \"essays\"\n(\n projectid TEXT,\n teacher_acctid TEXT,\n title TEXT,\n short_description TEXT,\n need_statement TEXT,\n essay TEXT\n)" + ], + [ + "table", + "projects", + "projects", + "CREATE TABLE \"projects\"\n(\n projectid TEXT not null\n primary key,\n teacher_acctid TEXT,\n schoolid TEXT,\n school_ncesid TEXT,\n school_latitude REAL,\n school_longitude REAL,\n school_city TEXT,\n school_state TEXT,\n school_zip INTEGER,\n school_metro TEXT,\n school_district TEXT,\n school_county TEXT,\n school_charter TEXT,\n school_magnet TEXT,\n school_year_round TEXT,\n school_nlns TEXT,\n school_kipp TEXT,\n school_charter_ready_promise TEXT,\n teacher_prefix TEXT,\n teacher_teach_for_america TEXT,\n teacher_ny_teaching_fellow TEXT,\n primary_focus_subject TEXT,\n primary_focus_area TEXT,\n secondary_focus_subject TEXT,\n secondary_focus_area TEXT,\n resource_type TEXT,\n poverty_level TEXT,\n grade_level TEXT,\n fulfillment_labor_materials REAL,\n total_price_excluding_optional_support REAL,\n total_price_including_optional_support REAL,\n students_reached INTEGER,\n eligible_double_your_impact_match TEXT,\n eligible_almost_home_match TEXT,\n date_posted DATE\n)" + ], + [ + "table", + "resources", + "resources", + "CREATE TABLE resources\n(\n resourceid TEXT not null\n primary key,\n projectid TEXT,\n vendorid INTEGER,\n vendor_name TEXT,\n project_resource_type TEXT,\n item_name TEXT,\n item_number TEXT,\n item_unit_price REAL,\n item_quantity INTEGER,\n foreign key (projectid) references projects(projectid)\n)" + ] + ], + "solver_schema": { + "donations": { + "donationid": "VARCHAR", + "projectid": "VARCHAR", + "donor_acctid": "VARCHAR", + "donor_city": "VARCHAR", + "donor_state": "VARCHAR", + "donor_zip": "VARCHAR", + "is_teacher_acct": "VARCHAR", + "donation_timestamp": "REAL", + "donation_to_project": "REAL", + "donation_optional_support": "REAL", + "donation_total": "REAL", + "dollar_amount": "VARCHAR", + "donation_included_optional_support": "VARCHAR", + "payment_method": "VARCHAR", + "payment_included_acct_credit": "VARCHAR", + "payment_included_campaign_gift_card": "VARCHAR", + "payment_included_web_purchased_gift_card": "VARCHAR", + "payment_was_promo_matched": "VARCHAR", + "via_giving_page": "VARCHAR", + "for_honoree": "VARCHAR", + "donation_message": "VARCHAR" + }, + "essays": { + "projectid": "VARCHAR", + "teacher_acctid": "VARCHAR", + "title": "VARCHAR", + "short_description": "VARCHAR", + "need_statement": "VARCHAR", + "essay": "VARCHAR" + }, + "projects": { + "projectid": "VARCHAR", + "teacher_acctid": "VARCHAR", + "schoolid": "VARCHAR", + "school_ncesid": "VARCHAR", + "school_latitude": "REAL", + "school_longitude": "REAL", + "school_city": "VARCHAR", + "school_state": "VARCHAR", + "school_zip": "INT", + "school_metro": "VARCHAR", + "school_district": "VARCHAR", + "school_county": "VARCHAR", + "school_charter": "VARCHAR", + "school_magnet": "VARCHAR", + "school_year_round": "VARCHAR", + "school_nlns": "VARCHAR", + "school_kipp": "VARCHAR", + "school_charter_ready_promise": "VARCHAR", + "teacher_prefix": "VARCHAR", + "teacher_teach_for_america": "VARCHAR", + "teacher_ny_teaching_fellow": "VARCHAR", + "primary_focus_subject": "VARCHAR", + "primary_focus_area": "VARCHAR", + "secondary_focus_subject": "VARCHAR", + "secondary_focus_area": "VARCHAR", + "resource_type": "VARCHAR", + "poverty_level": "VARCHAR", + "grade_level": "VARCHAR", + "fulfillment_labor_materials": "REAL", + "total_price_excluding_optional_support": "REAL", + "total_price_including_optional_support": "REAL", + "students_reached": "INT", + "eligible_double_your_impact_match": "VARCHAR", + "eligible_almost_home_match": "VARCHAR", + "date_posted": "REAL" + }, + "resources": { + "resourceid": "VARCHAR", + "projectid": "VARCHAR", + "vendorid": "INT", + "vendor_name": "VARCHAR", + "project_resource_type": "VARCHAR", + "item_name": "VARCHAR", + "item_number": "VARCHAR", + "item_unit_price": "REAL", + "item_quantity": "INT" + } + }, + "policies": [ + { + "table": "donations", + "id": 0, + "declaration": [ + [ + 0, + 0, + "projects", + "projectid", + "projectid", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "resources", + "id": 0, + "declaration": [ + [ + 0, + 0, + "projects", + "projectid", + "projectid", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + } + ], + "sha256": "b7012d018662e149011e4e010563ecfe7d2a7472ab2d29524fea886f81a97e35" + }, + "european_football_1": { + "schema": [ + [ + "table", + "divisions", + "divisions", + "CREATE TABLE divisions\n(\n division TEXT not null\n primary key,\n name TEXT,\n country TEXT\n)" + ], + [ + "table", + "matchs", + "matchs", + "CREATE TABLE matchs\n(\n Div TEXT,\n Date DATE,\n HomeTeam TEXT,\n AwayTeam TEXT,\n FTHG INTEGER,\n FTAG INTEGER,\n FTR TEXT,\n season INTEGER,\n foreign key (Div) references divisions(division)\n)" + ] + ], + "solver_schema": { + "divisions": { + "division": "VARCHAR", + "name": "VARCHAR", + "country": "VARCHAR" + }, + "matchs": { + "Div": "VARCHAR", + "Date": "REAL", + "HomeTeam": "VARCHAR", + "AwayTeam": "VARCHAR", + "FTHG": "INT", + "FTAG": "INT", + "FTR": "VARCHAR", + "season": "INT" + } + }, + "policies": [ + { + "table": "matchs", + "id": 0, + "declaration": [ + [ + 0, + 0, + "divisions", + "Div", + "division", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 2767, + "query": "SELECT COUNT(*) FROM \"matchs\" c WHERE c.\"Div\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"divisions\" p WHERE p.\"division\" = c.\"Div\")" + } + ], + "sha256": "1a7c2e8e0868a3c61f0cf6dc936483b31e05d86226400273280a5975c5fc99d5" + }, + "food_inspection": { + "schema": [ + [ + "table", + "businesses", + "businesses", + "CREATE TABLE `businesses` (\n `business_id` INTEGER NOT NULL,\n `name` TEXT NOT NULL,\n `address` TEXT DEFAULT NULL,\n `city` TEXT DEFAULT NULL,\n `postal_code` TEXT DEFAULT NULL,\n `latitude` REAL DEFAULT NULL,\n `longitude` REAL DEFAULT NULL,\n `phone_number` INTEGER DEFAULT NULL,\n `tax_code` TEXT DEFAULT NULL,\n `business_certificate` INTEGER NOT NULL,\n `application_date` DATE DEFAULT NULL,\n `owner_name` TEXT NOT NULL,\n `owner_address` TEXT DEFAULT NULL,\n `owner_city` TEXT DEFAULT NULL,\n `owner_state` TEXT DEFAULT NULL,\n `owner_zip` TEXT DEFAULT NULL,\n PRIMARY KEY (`business_id`)\n)" + ], + [ + "table", + "inspections", + "inspections", + "CREATE TABLE `inspections` (\n `business_id` INTEGER NOT NULL,\n `score` INTEGER DEFAULT NULL,\n `date` DATE NOT NULL,\n `type` TEXT NOT NULL,\n FOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`)\n)" + ], + [ + "table", + "violations", + "violations", + "CREATE TABLE `violations` (\n `business_id` INTEGER NOT NULL,\n `date` DATE NOT NULL,\n `violation_type_id` TEXT NOT NULL,\n `risk_category` TEXT NOT NULL,\n `description` TEXT NOT NULL,\n FOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`)\n)" + ] + ], + "solver_schema": { + "businesses": { + "business_id": "INT", + "name": "VARCHAR", + "address": "VARCHAR", + "city": "VARCHAR", + "postal_code": "VARCHAR", + "latitude": "REAL", + "longitude": "REAL", + "phone_number": "INT", + "tax_code": "VARCHAR", + "business_certificate": "INT", + "application_date": "REAL", + "owner_name": "VARCHAR", + "owner_address": "VARCHAR", + "owner_city": "VARCHAR", + "owner_state": "VARCHAR", + "owner_zip": "VARCHAR" + }, + "inspections": { + "business_id": "INT", + "score": "INT", + "date": "REAL", + "type": "VARCHAR" + }, + "violations": { + "business_id": "INT", + "date": "REAL", + "violation_type_id": "VARCHAR", + "risk_category": "VARCHAR", + "description": "VARCHAR" + } + }, + "policies": [ + { + "table": "inspections", + "id": 0, + "declaration": [ + [ + 0, + 0, + "businesses", + "business_id", + "business_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"inspections\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"businesses\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "violations", + "id": 0, + "declaration": [ + [ + 0, + 0, + "businesses", + "business_id", + "business_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"violations\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"businesses\" p WHERE p.\"business_id\" = c.\"business_id\")" + } + ], + "sha256": "c76a6576ba7fe150e12b64a9eefa0ad418b10449f771f91830a87319e34f64c1" + }, + "food_inspection_2": { + "schema": [ + [ + "table", + "employee", + "employee", + "CREATE TABLE employee\n(\n employee_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip INTEGER,\n phone TEXT,\n title TEXT,\n salary INTEGER,\n supervisor INTEGER,\n foreign key (supervisor) references employee(employee_id)\n)" + ], + [ + "table", + "establishment", + "establishment", + "CREATE TABLE establishment\n(\n license_no INTEGER\n primary key,\n dba_name TEXT,\n aka_name TEXT,\n facility_type TEXT,\n risk_level INTEGER,\n address TEXT,\n city TEXT,\n state TEXT,\n zip INTEGER,\n latitude REAL,\n longitude REAL,\n ward INTEGER\n)" + ], + [ + "table", + "inspection", + "inspection", + "CREATE TABLE inspection\n(\n inspection_id INTEGER\n primary key,\n inspection_date DATE,\n inspection_type TEXT,\n results TEXT,\n employee_id INTEGER,\n license_no INTEGER,\n followup_to INTEGER,\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n)" + ], + [ + "table", + "inspection_point", + "inspection_point", + "CREATE TABLE inspection_point\n(\n point_id INTEGER\n primary key,\n Description TEXT,\n category TEXT,\n code TEXT,\n fine INTEGER,\n point_level TEXT\n)" + ], + [ + "table", + "violation", + "violation", + "CREATE TABLE violation\n(\n inspection_id INTEGER,\n point_id INTEGER,\n fine INTEGER,\n inspector_comment TEXT,\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n)" + ] + ], + "solver_schema": { + "employee": { + "employee_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip": "INT", + "phone": "VARCHAR", + "title": "VARCHAR", + "salary": "INT", + "supervisor": "INT" + }, + "establishment": { + "license_no": "INT", + "dba_name": "VARCHAR", + "aka_name": "VARCHAR", + "facility_type": "VARCHAR", + "risk_level": "INT", + "address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip": "INT", + "latitude": "REAL", + "longitude": "REAL", + "ward": "INT" + }, + "inspection": { + "inspection_id": "INT", + "inspection_date": "REAL", + "inspection_type": "VARCHAR", + "results": "VARCHAR", + "employee_id": "INT", + "license_no": "INT", + "followup_to": "INT" + }, + "inspection_point": { + "point_id": "INT", + "Description": "VARCHAR", + "category": "VARCHAR", + "code": "VARCHAR", + "fine": "INT", + "point_level": "VARCHAR" + }, + "violation": { + "inspection_id": "INT", + "point_id": "INT", + "fine": "INT", + "inspector_comment": "VARCHAR" + } + }, + "policies": [ + { + "table": "employee", + "id": 0, + "declaration": [ + [ + 0, + 0, + "employee", + "supervisor", + "employee_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"employee\" c WHERE c.\"supervisor\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"employee\" p WHERE p.\"employee_id\" = c.\"supervisor\")" + }, + { + "table": "inspection", + "id": 0, + "declaration": [ + [ + 0, + 0, + "inspection", + "followup_to", + "inspection_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"inspection\" c WHERE c.\"followup_to\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"inspection\" p WHERE p.\"inspection_id\" = c.\"followup_to\")" + }, + { + "table": "inspection", + "id": 1, + "declaration": [ + [ + 1, + 0, + "establishment", + "license_no", + "license_no", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 178, + "query": "SELECT COUNT(*) FROM \"inspection\" c WHERE c.\"license_no\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"establishment\" p WHERE p.\"license_no\" = c.\"license_no\")" + }, + { + "table": "inspection", + "id": 2, + "declaration": [ + [ + 2, + 0, + "employee", + "employee_id", + "employee_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 117, + "query": "SELECT COUNT(*) FROM \"inspection\" c WHERE c.\"employee_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"employee\" p WHERE p.\"employee_id\" = c.\"employee_id\")" + }, + { + "table": "violation", + "id": 0, + "declaration": [ + [ + 0, + 0, + "inspection_point", + "point_id", + "point_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"violation\" c WHERE c.\"point_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"inspection_point\" p WHERE p.\"point_id\" = c.\"point_id\")" + }, + { + "table": "violation", + "id": 1, + "declaration": [ + [ + 1, + 0, + "inspection", + "inspection_id", + "inspection_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"violation\" c WHERE c.\"inspection_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"inspection\" p WHERE p.\"inspection_id\" = c.\"inspection_id\")" + } + ], + "sha256": "f07515ff7c40c1944b35858fee8a5b6c19a6df2a46699fff853b1ce29299df65" + }, + "genes": { + "schema": [ + [ + "table", + "Classification", + "Classification", + "CREATE TABLE Classification\n(\n GeneID TEXT not null\n primary key,\n Localization TEXT not null\n)" + ], + [ + "table", + "Genes", + "Genes", + "CREATE TABLE Genes\n(\n GeneID TEXT not null,\n Essential TEXT not null,\n Class TEXT not null,\n Complex TEXT null,\n Phenotype TEXT not null,\n Motif TEXT not null,\n Chromosome INTEGER not null,\n Function TEXT not null,\n Localization TEXT not null,\n foreign key (GeneID) references Classification (GeneID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "Interactions", + "Interactions", + "CREATE TABLE Interactions\n(\n GeneID1 TEXT not null,\n GeneID2 TEXT not null,\n Type TEXT not null,\n Expression_Corr REAL not null,\n primary key (GeneID1, GeneID2),\n foreign key (GeneID1) references Classification (GeneID)\n on update cascade on delete cascade,\n foreign key (GeneID2) references Classification (GeneID)\n on update cascade on delete cascade\n)" + ] + ], + "policies": [ + { + "table": "Genes", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Classification", + "GeneID", + "GeneID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Genes\" c WHERE c.\"GeneID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Classification\" p WHERE p.\"GeneID\" = c.\"GeneID\")" + }, + { + "table": "Interactions", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Classification", + "GeneID2", + "GeneID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Interactions\" c WHERE c.\"GeneID2\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Classification\" p WHERE p.\"GeneID\" = c.\"GeneID2\")" + }, + { + "table": "Interactions", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Classification", + "GeneID1", + "GeneID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Interactions\" c WHERE c.\"GeneID1\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Classification\" p WHERE p.\"GeneID\" = c.\"GeneID1\")" + } + ], + "sha256": "726f142a9281a90cb36a6969b08be51d03a7ba2a58d30dfa02bdb766993fe6b5" + }, + "hockey": { + "schema": [ + [ + "table", + "AwardsCoaches", + "AwardsCoaches", + "CREATE TABLE AwardsCoaches\n(\n coachID TEXT,\n award TEXT,\n year INTEGER,\n lgID TEXT,\n note TEXT,\n foreign key (coachID) references Coaches (coachID)\n)" + ], + [ + "table", + "AwardsMisc", + "AwardsMisc", + "CREATE TABLE AwardsMisc\n(\n name TEXT not null\n primary key,\n ID TEXT,\n award TEXT,\n year INTEGER,\n lgID TEXT,\n note TEXT\n)" + ], + [ + "table", + "AwardsPlayers", + "AwardsPlayers", + "CREATE TABLE AwardsPlayers\n(\n playerID TEXT not null,\n award TEXT not null,\n year INTEGER not null,\n lgID TEXT,\n note TEXT,\n pos TEXT,\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "Coaches", + "Coaches", + "CREATE TABLE Coaches\n(\n coachID TEXT not null,\n year INTEGER not null,\n tmID TEXT not null,\n lgID TEXT,\n stint INTEGER not null,\n notes TEXT,\n g INTEGER,\n w INTEGER,\n l INTEGER,\n t INTEGER,\n postg TEXT,\n postw TEXT,\n postl TEXT,\n postt TEXT,\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "CombinedShutouts", + "CombinedShutouts", + "CREATE TABLE CombinedShutouts\n(\n year INTEGER,\n month INTEGER,\n date INTEGER,\n tmID TEXT,\n oppID TEXT,\n \"R/P\" TEXT,\n IDgoalie1 TEXT,\n IDgoalie2 TEXT,\n foreign key (IDgoalie1) references Master (playerID)\n on update cascade on delete cascade,\n foreign key (IDgoalie2) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "Goalies", + "Goalies", + "CREATE TABLE Goalies\n(\n playerID TEXT not null,\n year INTEGER not null,\n stint INTEGER not null,\n tmID TEXT,\n lgID TEXT,\n GP TEXT,\n Min TEXT,\n W TEXT,\n L TEXT,\n \"T/OL\" TEXT,\n ENG TEXT,\n SHO TEXT,\n GA TEXT,\n SA TEXT,\n PostGP TEXT,\n PostMin TEXT,\n PostW TEXT,\n PostL TEXT,\n PostT TEXT,\n PostENG TEXT,\n PostSHO TEXT,\n PostGA TEXT,\n PostSA TEXT,\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "GoaliesSC", + "GoaliesSC", + "CREATE TABLE GoaliesSC\n(\n playerID TEXT not null,\n year INTEGER not null,\n tmID TEXT,\n lgID TEXT,\n GP INTEGER,\n Min INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n SHO INTEGER,\n GA INTEGER,\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "GoaliesShootout", + "GoaliesShootout", + "CREATE TABLE GoaliesShootout\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n W INTEGER,\n L INTEGER,\n SA INTEGER,\n GA INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "HOF", + "HOF", + "CREATE TABLE HOF\n(\n year INTEGER,\n hofID TEXT not null\n primary key,\n name TEXT,\n category TEXT\n)" + ], + [ + "table", + "Master", + "Master", + "CREATE TABLE Master\n(\n playerID TEXT,\n coachID TEXT,\n hofID TEXT,\n firstName TEXT,\n lastName TEXT not null,\n nameNote TEXT,\n nameGiven TEXT,\n nameNick TEXT,\n height TEXT,\n weight TEXT,\n shootCatch TEXT,\n legendsID TEXT,\n ihdbID TEXT,\n hrefID TEXT,\n firstNHL TEXT,\n lastNHL TEXT,\n firstWHA TEXT,\n lastWHA TEXT,\n pos TEXT,\n birthYear TEXT,\n birthMon TEXT,\n birthDay TEXT,\n birthCountry TEXT,\n birthState TEXT,\n birthCity TEXT,\n deathYear TEXT,\n deathMon TEXT,\n deathDay TEXT,\n deathCountry TEXT,\n deathState TEXT,\n deathCity TEXT,\n foreign key (coachID) references Coaches (coachID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "Scoring", + "Scoring", + "CREATE TABLE Scoring\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n lgID TEXT,\n pos TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n Pts INTEGER,\n PIM INTEGER,\n \"+/-\" TEXT,\n PPG TEXT,\n PPA TEXT,\n SHG TEXT,\n SHA TEXT,\n GWG TEXT,\n GTG TEXT,\n SOG TEXT,\n PostGP TEXT,\n PostG TEXT,\n PostA TEXT,\n PostPts TEXT,\n PostPIM TEXT,\n \"Post+/-\" TEXT,\n PostPPG TEXT,\n PostPPA TEXT,\n PostSHG TEXT,\n PostSHA TEXT,\n PostGWG TEXT,\n PostSOG TEXT,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "ScoringSC", + "ScoringSC", + "CREATE TABLE ScoringSC\n(\n playerID TEXT,\n year INTEGER,\n tmID TEXT,\n lgID TEXT,\n pos TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n Pts INTEGER,\n PIM INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "ScoringShootout", + "ScoringShootout", + "CREATE TABLE ScoringShootout\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n S INTEGER,\n G INTEGER,\n GDG INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "ScoringSup", + "ScoringSup", + "CREATE TABLE ScoringSup\n(\n playerID TEXT,\n year INTEGER,\n PPA TEXT,\n SHA TEXT,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "SeriesPost", + "SeriesPost", + "CREATE TABLE SeriesPost\n(\n year INTEGER,\n round TEXT,\n series TEXT,\n tmIDWinner TEXT,\n lgIDWinner TEXT,\n tmIDLoser TEXT,\n lgIDLoser TEXT,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GoalsWinner INTEGER,\n GoalsLoser INTEGER,\n note TEXT,\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "TeamSplits", + "TeamSplits", + "CREATE TABLE TeamSplits\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n hW INTEGER,\n hL INTEGER,\n hT INTEGER,\n hOTL TEXT,\n rW INTEGER,\n rL INTEGER,\n rT INTEGER,\n rOTL TEXT,\n SepW TEXT,\n SepL TEXT,\n SepT TEXT,\n SepOL TEXT,\n OctW TEXT,\n OctL TEXT,\n OctT TEXT,\n OctOL TEXT,\n NovW TEXT,\n NovL TEXT,\n NovT TEXT,\n NovOL TEXT,\n DecW TEXT,\n DecL TEXT,\n DecT TEXT,\n DecOL TEXT,\n JanW INTEGER,\n JanL INTEGER,\n JanT INTEGER,\n JanOL TEXT,\n FebW INTEGER,\n FebL INTEGER,\n FebT INTEGER,\n FebOL TEXT,\n MarW TEXT,\n MarL TEXT,\n MarT TEXT,\n MarOL TEXT,\n AprW TEXT,\n AprL TEXT,\n AprT TEXT,\n AprOL TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "TeamVsTeam", + "TeamVsTeam", + "CREATE TABLE TeamVsTeam\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n oppID TEXT not null,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n OTL TEXT,\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (oppID, year) references Teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "Teams", + "Teams", + "CREATE TABLE Teams\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n franchID TEXT,\n confID TEXT,\n divID TEXT,\n rank INTEGER,\n playoff TEXT,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n OTL TEXT,\n Pts INTEGER,\n SoW TEXT,\n SoL TEXT,\n GF INTEGER,\n GA INTEGER,\n name TEXT,\n PIM TEXT,\n BenchMinor TEXT,\n PPG TEXT,\n PPC TEXT,\n SHA TEXT,\n PKG TEXT,\n PKC TEXT,\n SHF TEXT,\n primary key (year, tmID)\n)" + ], + [ + "table", + "TeamsHalf", + "TeamsHalf", + "CREATE TABLE TeamsHalf\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n half INTEGER not null,\n rank INTEGER,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "TeamsPost", + "TeamsPost", + "CREATE TABLE TeamsPost\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n PIM TEXT,\n BenchMinor TEXT,\n PPG TEXT,\n PPC TEXT,\n SHA TEXT,\n PKG TEXT,\n PKC TEXT,\n SHF TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "TeamsSC", + "TeamsSC", + "CREATE TABLE TeamsSC\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n PIM TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "abbrev", + "abbrev", + "CREATE TABLE abbrev\n(\n Type TEXT not null,\n Code TEXT not null,\n Fullname TEXT,\n primary key (Type, Code)\n)" + ] + ], + "solver_schema": { + "AwardsCoaches": { + "coachID": "VARCHAR", + "award": "VARCHAR", + "year": "INT", + "lgID": "VARCHAR", + "note": "VARCHAR" + }, + "AwardsMisc": { + "name": "VARCHAR", + "ID": "VARCHAR", + "award": "VARCHAR", + "year": "INT", + "lgID": "VARCHAR", + "note": "VARCHAR" + }, + "AwardsPlayers": { + "playerID": "VARCHAR", + "award": "VARCHAR", + "year": "INT", + "lgID": "VARCHAR", + "note": "VARCHAR", + "pos": "VARCHAR" + }, + "Coaches": { + "coachID": "VARCHAR", + "year": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "stint": "INT", + "notes": "VARCHAR", + "g": "INT", + "w": "INT", + "l": "INT", + "t": "INT", + "postg": "VARCHAR", + "postw": "VARCHAR", + "postl": "VARCHAR", + "postt": "VARCHAR" + }, + "CombinedShutouts": { + "year": "INT", + "month": "INT", + "date": "INT", + "tmID": "VARCHAR", + "oppID": "VARCHAR", + "R/P": "VARCHAR", + "IDgoalie1": "VARCHAR", + "IDgoalie2": "VARCHAR" + }, + "Goalies": { + "playerID": "VARCHAR", + "year": "INT", + "stint": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "GP": "VARCHAR", + "Min": "VARCHAR", + "W": "VARCHAR", + "L": "VARCHAR", + "T/OL": "VARCHAR", + "ENG": "VARCHAR", + "SHO": "VARCHAR", + "GA": "VARCHAR", + "SA": "VARCHAR", + "PostGP": "VARCHAR", + "PostMin": "VARCHAR", + "PostW": "VARCHAR", + "PostL": "VARCHAR", + "PostT": "VARCHAR", + "PostENG": "VARCHAR", + "PostSHO": "VARCHAR", + "PostGA": "VARCHAR", + "PostSA": "VARCHAR" + }, + "GoaliesSC": { + "playerID": "VARCHAR", + "year": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "GP": "INT", + "Min": "INT", + "W": "INT", + "L": "INT", + "T": "INT", + "SHO": "INT", + "GA": "INT" + }, + "GoaliesShootout": { + "playerID": "VARCHAR", + "year": "INT", + "stint": "INT", + "tmID": "VARCHAR", + "W": "INT", + "L": "INT", + "SA": "INT", + "GA": "INT" + }, + "HOF": { + "year": "INT", + "hofID": "VARCHAR", + "name": "VARCHAR", + "category": "VARCHAR" + }, + "Master": { + "playerID": "VARCHAR", + "coachID": "VARCHAR", + "hofID": "VARCHAR", + "firstName": "VARCHAR", + "lastName": "VARCHAR", + "nameNote": "VARCHAR", + "nameGiven": "VARCHAR", + "nameNick": "VARCHAR", + "height": "VARCHAR", + "weight": "VARCHAR", + "shootCatch": "VARCHAR", + "legendsID": "VARCHAR", + "ihdbID": "VARCHAR", + "hrefID": "VARCHAR", + "firstNHL": "VARCHAR", + "lastNHL": "VARCHAR", + "firstWHA": "VARCHAR", + "lastWHA": "VARCHAR", + "pos": "VARCHAR", + "birthYear": "VARCHAR", + "birthMon": "VARCHAR", + "birthDay": "VARCHAR", + "birthCountry": "VARCHAR", + "birthState": "VARCHAR", + "birthCity": "VARCHAR", + "deathYear": "VARCHAR", + "deathMon": "VARCHAR", + "deathDay": "VARCHAR", + "deathCountry": "VARCHAR", + "deathState": "VARCHAR", + "deathCity": "VARCHAR" + }, + "Scoring": { + "playerID": "VARCHAR", + "year": "INT", + "stint": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "pos": "VARCHAR", + "GP": "INT", + "G": "INT", + "A": "INT", + "Pts": "INT", + "PIM": "INT", + "+/-": "VARCHAR", + "PPG": "VARCHAR", + "PPA": "VARCHAR", + "SHG": "VARCHAR", + "SHA": "VARCHAR", + "GWG": "VARCHAR", + "GTG": "VARCHAR", + "SOG": "VARCHAR", + "PostGP": "VARCHAR", + "PostG": "VARCHAR", + "PostA": "VARCHAR", + "PostPts": "VARCHAR", + "PostPIM": "VARCHAR", + "Post+/-": "VARCHAR", + "PostPPG": "VARCHAR", + "PostPPA": "VARCHAR", + "PostSHG": "VARCHAR", + "PostSHA": "VARCHAR", + "PostGWG": "VARCHAR", + "PostSOG": "VARCHAR" + }, + "ScoringSC": { + "playerID": "VARCHAR", + "year": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "pos": "VARCHAR", + "GP": "INT", + "G": "INT", + "A": "INT", + "Pts": "INT", + "PIM": "INT" + }, + "ScoringShootout": { + "playerID": "VARCHAR", + "year": "INT", + "stint": "INT", + "tmID": "VARCHAR", + "S": "INT", + "G": "INT", + "GDG": "INT" + }, + "ScoringSup": { + "playerID": "VARCHAR", + "year": "INT", + "PPA": "VARCHAR", + "SHA": "VARCHAR" + }, + "SeriesPost": { + "year": "INT", + "round": "VARCHAR", + "series": "VARCHAR", + "tmIDWinner": "VARCHAR", + "lgIDWinner": "VARCHAR", + "tmIDLoser": "VARCHAR", + "lgIDLoser": "VARCHAR", + "W": "INT", + "L": "INT", + "T": "INT", + "GoalsWinner": "INT", + "GoalsLoser": "INT", + "note": "VARCHAR" + }, + "TeamSplits": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "hW": "INT", + "hL": "INT", + "hT": "INT", + "hOTL": "VARCHAR", + "rW": "INT", + "rL": "INT", + "rT": "INT", + "rOTL": "VARCHAR", + "SepW": "VARCHAR", + "SepL": "VARCHAR", + "SepT": "VARCHAR", + "SepOL": "VARCHAR", + "OctW": "VARCHAR", + "OctL": "VARCHAR", + "OctT": "VARCHAR", + "OctOL": "VARCHAR", + "NovW": "VARCHAR", + "NovL": "VARCHAR", + "NovT": "VARCHAR", + "NovOL": "VARCHAR", + "DecW": "VARCHAR", + "DecL": "VARCHAR", + "DecT": "VARCHAR", + "DecOL": "VARCHAR", + "JanW": "INT", + "JanL": "INT", + "JanT": "INT", + "JanOL": "VARCHAR", + "FebW": "INT", + "FebL": "INT", + "FebT": "INT", + "FebOL": "VARCHAR", + "MarW": "VARCHAR", + "MarL": "VARCHAR", + "MarT": "VARCHAR", + "MarOL": "VARCHAR", + "AprW": "VARCHAR", + "AprL": "VARCHAR", + "AprT": "VARCHAR", + "AprOL": "VARCHAR" + }, + "TeamVsTeam": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "oppID": "VARCHAR", + "W": "INT", + "L": "INT", + "T": "INT", + "OTL": "VARCHAR" + }, + "Teams": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "franchID": "VARCHAR", + "confID": "VARCHAR", + "divID": "VARCHAR", + "rank": "INT", + "playoff": "VARCHAR", + "G": "INT", + "W": "INT", + "L": "INT", + "T": "INT", + "OTL": "VARCHAR", + "Pts": "INT", + "SoW": "VARCHAR", + "SoL": "VARCHAR", + "GF": "INT", + "GA": "INT", + "name": "VARCHAR", + "PIM": "VARCHAR", + "BenchMinor": "VARCHAR", + "PPG": "VARCHAR", + "PPC": "VARCHAR", + "SHA": "VARCHAR", + "PKG": "VARCHAR", + "PKC": "VARCHAR", + "SHF": "VARCHAR" + }, + "TeamsHalf": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "half": "INT", + "rank": "INT", + "G": "INT", + "W": "INT", + "L": "INT", + "T": "INT", + "GF": "INT", + "GA": "INT" + }, + "TeamsPost": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "G": "INT", + "W": "INT", + "L": "INT", + "T": "INT", + "GF": "INT", + "GA": "INT", + "PIM": "VARCHAR", + "BenchMinor": "VARCHAR", + "PPG": "VARCHAR", + "PPC": "VARCHAR", + "SHA": "VARCHAR", + "PKG": "VARCHAR", + "PKC": "VARCHAR", + "SHF": "VARCHAR" + }, + "TeamsSC": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "G": "INT", + "W": "INT", + "L": "INT", + "T": "INT", + "GF": "INT", + "GA": "INT", + "PIM": "VARCHAR" + }, + "abbrev": { + "Type": "VARCHAR", + "Code": "VARCHAR", + "Fullname": "VARCHAR" + } + }, + "policies": [ + { + "table": "AwardsCoaches", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Coaches", + "coachID", + "coachID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Coaches\"" + }, + { + "table": "AwardsPlayers", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "Coaches", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Coaches\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "CombinedShutouts", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "IDgoalie2", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "CombinedShutouts", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Master", + "IDgoalie1", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "Goalies", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "Goalies", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Goalies\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "GoaliesSC", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "GoaliesSC", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"GoaliesSC\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "GoaliesShootout", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "GoaliesShootout", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"GoaliesShootout\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "Master", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Coaches", + "coachID", + "coachID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Coaches\"" + }, + { + "table": "Scoring", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "Scoring", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Scoring\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "ScoringSC", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "ScoringSC", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ScoringSC\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "ScoringShootout", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "ScoringShootout", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ScoringShootout\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "ScoringSup", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Master", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"Master\"" + }, + { + "table": "SeriesPost", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "tmIDLoser", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SeriesPost\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmIDLoser\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmIDLoser\")" + }, + { + "table": "SeriesPost", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmIDWinner", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SeriesPost\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmIDWinner\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmIDWinner\")" + }, + { + "table": "TeamSplits", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamSplits\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "TeamVsTeam", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "oppID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamVsTeam\" c WHERE c.\"oppID\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"tmID\" = c.\"oppID\" AND p.\"year\" = c.\"year\")" + }, + { + "table": "TeamVsTeam", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamVsTeam\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "TeamsHalf", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamsHalf\" c WHERE c.\"tmID\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"tmID\" = c.\"tmID\" AND p.\"year\" = c.\"year\")" + }, + { + "table": "TeamsPost", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamsPost\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + }, + { + "table": "TeamsSC", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "Teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TeamsSC\" c WHERE c.\"year\" IS NOT NULL AND c.\"tmID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Teams\" p WHERE p.\"year\" = c.\"year\" AND p.\"tmID\" = c.\"tmID\")" + } + ], + "sha256": "2987cba3921e2544fcd4603eccf5ff97b17f63103d8feb6fb908d55eb5bd9ba2" + }, + "human_resources": { + "schema": [ + [ + "table", + "employee", + "employee", + "CREATE TABLE employee\n(\n ssn TEXT\n primary key,\n lastname TEXT,\n firstname TEXT,\n hiredate TEXT,\n salary TEXT,\n gender TEXT,\n performance TEXT,\n positionID INTEGER,\n locationID INTEGER,\n foreign key (locationID) references location(locationID),\n foreign key (positionID) references position(positionID)\n)" + ], + [ + "table", + "location", + "location", + "CREATE TABLE location\n(\n locationID INTEGER\n constraint location_pk\n primary key,\n locationcity TEXT,\n address TEXT,\n state TEXT,\n zipcode INTEGER,\n officephone TEXT\n)" + ], + [ + "table", + "position", + "position", + "CREATE TABLE position\n(\n positionID INTEGER\n constraint position_pk\n primary key,\n positiontitle TEXT,\n educationrequired TEXT,\n minsalary TEXT,\n maxsalary TEXT\n)" + ] + ], + "solver_schema": { + "employee": { + "ssn": "VARCHAR", + "lastname": "VARCHAR", + "firstname": "VARCHAR", + "hiredate": "VARCHAR", + "salary": "VARCHAR", + "gender": "VARCHAR", + "performance": "VARCHAR", + "positionID": "INT", + "locationID": "INT" + }, + "location": { + "locationID": "INT", + "locationcity": "VARCHAR", + "address": "VARCHAR", + "state": "VARCHAR", + "zipcode": "INT", + "officephone": "VARCHAR" + }, + "position": { + "positionID": "INT", + "positiontitle": "VARCHAR", + "educationrequired": "VARCHAR", + "minsalary": "VARCHAR", + "maxsalary": "VARCHAR" + } + }, + "policies": [ + { + "table": "employee", + "id": 0, + "declaration": [ + [ + 0, + 0, + "position", + "positionID", + "positionID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employee\" c WHERE c.\"positionID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"position\" p WHERE p.\"positionID\" = c.\"positionID\")" + }, + { + "table": "employee", + "id": 1, + "declaration": [ + [ + 1, + 0, + "location", + "locationID", + "locationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"employee\" c WHERE c.\"locationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"location\" p WHERE p.\"locationID\" = c.\"locationID\")" + } + ], + "sha256": "9cc6021a63b07908765954f922f86c4f335706a54b956e7c401f8f0c23aaa6f2" + }, + "ice_hockey_draft": { + "schema": [ + [ + "table", + "PlayerInfo", + "PlayerInfo", + "CREATE TABLE PlayerInfo\n(\n ELITEID INTEGER\n primary key,\n PlayerName TEXT,\n birthdate TEXT,\n birthyear DATE,\n birthmonth INTEGER,\n birthday INTEGER,\n birthplace TEXT,\n nation TEXT,\n height INTEGER,\n weight INTEGER,\n position_info TEXT,\n shoots TEXT,\n draftyear INTEGER,\n draftround INTEGER,\n overall INTEGER,\n overallby TEXT,\n CSS_rank INTEGER,\n sum_7yr_GP INTEGER,\n sum_7yr_TOI INTEGER,\n GP_greater_than_0 TEXT,\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n)" + ], + [ + "table", + "SeasonStatus", + "SeasonStatus", + "CREATE TABLE SeasonStatus\n(\n ELITEID INTEGER,\n SEASON TEXT,\n TEAM TEXT,\n LEAGUE TEXT,\n GAMETYPE TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n P INTEGER,\n PIM INTEGER,\n PLUSMINUS INTEGER,\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n)" + ], + [ + "table", + "height_info", + "height_info", + "CREATE TABLE height_info\n(\n height_id INTEGER\n primary key,\n height_in_cm INTEGER,\n height_in_inch TEXT\n)" + ], + [ + "table", + "weight_info", + "weight_info", + "CREATE TABLE weight_info\n(\n weight_id INTEGER\n primary key,\n weight_in_kg INTEGER,\n weight_in_lbs INTEGER\n)" + ] + ], + "solver_schema": { + "PlayerInfo": { + "ELITEID": "INT", + "PlayerName": "VARCHAR", + "birthdate": "VARCHAR", + "birthyear": "REAL", + "birthmonth": "INT", + "birthday": "INT", + "birthplace": "VARCHAR", + "nation": "VARCHAR", + "height": "INT", + "weight": "INT", + "position_info": "VARCHAR", + "shoots": "VARCHAR", + "draftyear": "INT", + "draftround": "INT", + "overall": "INT", + "overallby": "VARCHAR", + "CSS_rank": "INT", + "sum_7yr_GP": "INT", + "sum_7yr_TOI": "INT", + "GP_greater_than_0": "VARCHAR" + }, + "SeasonStatus": { + "ELITEID": "INT", + "SEASON": "VARCHAR", + "TEAM": "VARCHAR", + "LEAGUE": "VARCHAR", + "GAMETYPE": "VARCHAR", + "GP": "INT", + "G": "INT", + "A": "INT", + "P": "INT", + "PIM": "INT", + "PLUSMINUS": "INT" + }, + "height_info": { + "height_id": "INT", + "height_in_cm": "INT", + "height_in_inch": "VARCHAR" + }, + "weight_info": { + "weight_id": "INT", + "weight_in_kg": "INT", + "weight_in_lbs": "INT" + } + }, + "policies": [ + { + "table": "PlayerInfo", + "id": 0, + "declaration": [ + [ + 0, + 0, + "weight_info", + "weight", + "weight_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PlayerInfo\" c WHERE c.\"weight\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"weight_info\" p WHERE p.\"weight_id\" = c.\"weight\")" + }, + { + "table": "PlayerInfo", + "id": 1, + "declaration": [ + [ + 1, + 0, + "height_info", + "height", + "height_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PlayerInfo\" c WHERE c.\"height\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"height_info\" p WHERE p.\"height_id\" = c.\"height\")" + }, + { + "table": "SeasonStatus", + "id": 0, + "declaration": [ + [ + 0, + 0, + "PlayerInfo", + "ELITEID", + "ELITEID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SeasonStatus\" c WHERE c.\"ELITEID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"PlayerInfo\" p WHERE p.\"ELITEID\" = c.\"ELITEID\")" + } + ], + "sha256": "4b297d4b7f8c0ff3b751a4017c4d2355aa8eeb11159cf258600995a56f53bf18" + }, + "image_and_language": { + "schema": [ + [ + "table", + "ATT_CLASSES", + "ATT_CLASSES", + "CREATE TABLE ATT_CLASSES\n(\n ATT_CLASS_ID INTEGER default 0 not null\n primary key,\n ATT_CLASS TEXT not null\n)" + ], + [ + "table", + "IMG_OBJ", + "IMG_OBJ", + "CREATE TABLE IMG_OBJ\n(\n IMG_ID INTEGER default 0 not null,\n OBJ_SAMPLE_ID INTEGER default 0 not null,\n OBJ_CLASS_ID INTEGER null,\n X INTEGER null,\n Y INTEGER null,\n W INTEGER null,\n H INTEGER null,\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n)" + ], + [ + "table", + "IMG_OBJ_ATT", + "IMG_OBJ_ATT", + "CREATE TABLE IMG_OBJ_ATT\n(\n IMG_ID INTEGER default 0 not null,\n ATT_CLASS_ID INTEGER default 0 not null,\n OBJ_SAMPLE_ID INTEGER default 0 not null,\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n)" + ], + [ + "table", + "IMG_REL", + "IMG_REL", + "CREATE TABLE IMG_REL\n(\n IMG_ID INTEGER default 0 not null,\n PRED_CLASS_ID INTEGER default 0 not null,\n OBJ1_SAMPLE_ID INTEGER default 0 not null,\n OBJ2_SAMPLE_ID INTEGER default 0 not null,\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n)" + ], + [ + "table", + "OBJ_CLASSES", + "OBJ_CLASSES", + "CREATE TABLE OBJ_CLASSES\n(\n OBJ_CLASS_ID INTEGER default 0 not null\n primary key,\n OBJ_CLASS TEXT not null\n)" + ], + [ + "table", + "PRED_CLASSES", + "PRED_CLASSES", + "CREATE TABLE PRED_CLASSES\n(\n PRED_CLASS_ID INTEGER default 0 not null\n primary key,\n PRED_CLASS TEXT not null\n)" + ] + ], + "solver_schema": { + "ATT_CLASSES": { + "ATT_CLASS_ID": "INT", + "ATT_CLASS": "VARCHAR" + }, + "IMG_OBJ": { + "IMG_ID": "INT", + "OBJ_SAMPLE_ID": "INT", + "OBJ_CLASS_ID": "INT", + "X": "INT", + "Y": "INT", + "W": "INT", + "H": "INT" + }, + "IMG_OBJ_ATT": { + "IMG_ID": "INT", + "ATT_CLASS_ID": "INT", + "OBJ_SAMPLE_ID": "INT" + }, + "IMG_REL": { + "IMG_ID": "INT", + "PRED_CLASS_ID": "INT", + "OBJ1_SAMPLE_ID": "INT", + "OBJ2_SAMPLE_ID": "INT" + }, + "OBJ_CLASSES": { + "OBJ_CLASS_ID": "INT", + "OBJ_CLASS": "VARCHAR" + }, + "PRED_CLASSES": { + "PRED_CLASS_ID": "INT", + "PRED_CLASS": "VARCHAR" + } + }, + "policies": [ + { + "table": "IMG_OBJ", + "id": 0, + "declaration": [ + [ + 0, + 0, + "OBJ_CLASSES", + "OBJ_CLASS_ID", + "OBJ_CLASS_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_OBJ\" c WHERE c.\"OBJ_CLASS_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"OBJ_CLASSES\" p WHERE p.\"OBJ_CLASS_ID\" = c.\"OBJ_CLASS_ID\")" + }, + { + "table": "IMG_OBJ_ATT", + "id": 0, + "declaration": [ + [ + 0, + 0, + "IMG_OBJ", + "IMG_ID", + "IMG_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "IMG_OBJ", + "OBJ_SAMPLE_ID", + "OBJ_SAMPLE_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_OBJ_ATT\" c WHERE c.\"IMG_ID\" IS NOT NULL AND c.\"OBJ_SAMPLE_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"IMG_OBJ\" p WHERE p.\"IMG_ID\" = c.\"IMG_ID\" AND p.\"OBJ_SAMPLE_ID\" = c.\"OBJ_SAMPLE_ID\")" + }, + { + "table": "IMG_OBJ_ATT", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ATT_CLASSES", + "ATT_CLASS_ID", + "ATT_CLASS_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_OBJ_ATT\" c WHERE c.\"ATT_CLASS_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ATT_CLASSES\" p WHERE p.\"ATT_CLASS_ID\" = c.\"ATT_CLASS_ID\")" + }, + { + "table": "IMG_REL", + "id": 0, + "declaration": [ + [ + 0, + 0, + "IMG_OBJ", + "IMG_ID", + "IMG_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "IMG_OBJ", + "OBJ2_SAMPLE_ID", + "OBJ_SAMPLE_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_REL\" c WHERE c.\"IMG_ID\" IS NOT NULL AND c.\"OBJ2_SAMPLE_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"IMG_OBJ\" p WHERE p.\"IMG_ID\" = c.\"IMG_ID\" AND p.\"OBJ_SAMPLE_ID\" = c.\"OBJ2_SAMPLE_ID\")" + }, + { + "table": "IMG_REL", + "id": 1, + "declaration": [ + [ + 1, + 0, + "IMG_OBJ", + "IMG_ID", + "IMG_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 1, + 1, + "IMG_OBJ", + "OBJ1_SAMPLE_ID", + "OBJ_SAMPLE_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_REL\" c WHERE c.\"IMG_ID\" IS NOT NULL AND c.\"OBJ1_SAMPLE_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"IMG_OBJ\" p WHERE p.\"IMG_ID\" = c.\"IMG_ID\" AND p.\"OBJ_SAMPLE_ID\" = c.\"OBJ1_SAMPLE_ID\")" + }, + { + "table": "IMG_REL", + "id": 2, + "declaration": [ + [ + 2, + 0, + "PRED_CLASSES", + "PRED_CLASS_ID", + "PRED_CLASS_ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"IMG_REL\" c WHERE c.\"PRED_CLASS_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"PRED_CLASSES\" p WHERE p.\"PRED_CLASS_ID\" = c.\"PRED_CLASS_ID\")" + } + ], + "sha256": "e2fde5486e977b4fde2097bbfbb789be5950753872a3707956b946c92080d0f1" + }, + "language_corpus": { + "schema": [ + [ + "table", + "biwords", + "biwords", + "CREATE TABLE biwords(lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n w1st INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n w2nd INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER DEFAULT 0, -- times this pair appears in this language/page\n PRIMARY KEY(lid,w1st,w2nd))\n WITHOUT ROWID" + ], + [ + "table", + "langs", + "langs", + "CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,\n lang TEXT UNIQUE,\n locale TEXT UNIQUE,\n pages INTEGER DEFAULT 0, -- total pages in this language\n words INTEGER DEFAULT 0)" + ], + [ + "table", + "langs_words", + "langs_words", + "CREATE TABLE langs_words(lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n wid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER, -- repetitions of this word in this language\n PRIMARY KEY(lid,wid))\n WITHOUT ROWID" + ], + [ + "table", + "pages", + "pages", + "CREATE TABLE pages(pid INTEGER PRIMARY KEY AUTOINCREMENT,\n lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n page INTEGER DEFAULT NULL, -- wikipedia page id\n revision INTEGER DEFAULT NULL, -- wikipedia revision page id\n title TEXT,\n words INTEGER DEFAULT 0, -- number of different words in this page\n UNIQUE(lid,page,title))" + ], + [ + "table", + "pages_words", + "pages_words", + "CREATE TABLE pages_words(pid INTEGER REFERENCES pages(pid) ON UPDATE CASCADE ON DELETE CASCADE,\n wid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER DEFAULT 0, -- times this word appears into this page\n PRIMARY KEY(pid,wid))\n WITHOUT ROWID" + ], + [ + "table", + "words", + "words", + "CREATE TABLE words(wid INTEGER PRIMARY KEY AUTOINCREMENT,\n word TEXT UNIQUE,\n occurrences INTEGER DEFAULT 0)" + ], + [ + "trigger", + "del_lang_word", + "langs_words", + "CREATE TRIGGER del_lang_word AFTER DELETE ON langs_words FOR EACH ROW\n BEGIN\n UPDATE langs SET words=words-1 WHERE lid=OLD.lid;\n END" + ], + [ + "trigger", + "del_page", + "pages", + "CREATE TRIGGER del_page AFTER DELETE ON pages FOR EACH ROW\n BEGIN\n UPDATE langs SET pages=pages-1 WHERE lid=OLD.lid;\n END" + ], + [ + "trigger", + "del_page_word", + "pages_words", + "CREATE TRIGGER del_page_word AFTER DELETE ON pages_words FOR EACH ROW\n BEGIN\n UPDATE pages SET words=words-1 WHERE pid=OLD.pid;\n END" + ], + [ + "trigger", + "ins_lang_word", + "langs_words", + "CREATE TRIGGER ins_lang_word AFTER INSERT ON langs_words FOR EACH ROW\n BEGIN\n UPDATE langs SET words=words+1 WHERE lid=NEW.lid;\n END" + ], + [ + "trigger", + "ins_page", + "pages", + "CREATE TRIGGER ins_page AFTER INSERT ON pages FOR EACH ROW\n BEGIN\n UPDATE langs SET pages=pages+1 WHERE lid=NEW.lid;\n END" + ], + [ + "trigger", + "ins_page_word", + "pages_words", + "CREATE TRIGGER ins_page_word AFTER INSERT ON pages_words FOR EACH ROW\n BEGIN\n UPDATE pages SET words=words+1 WHERE pid=NEW.pid;\n END" + ] + ], + "solver_schema": { + "biwords": { + "lid": "INT", + "w1st": "INT", + "w2nd": "INT", + "occurrences": "INT" + }, + "langs": { + "lid": "INT", + "lang": "VARCHAR", + "locale": "VARCHAR", + "pages": "INT", + "words": "INT" + }, + "langs_words": { + "lid": "INT", + "wid": "INT", + "occurrences": "INT" + }, + "pages": { + "pid": "INT", + "lid": "INT", + "page": "INT", + "revision": "INT", + "title": "VARCHAR", + "words": "INT" + }, + "pages_words": { + "pid": "INT", + "wid": "INT", + "occurrences": "INT" + }, + "words": { + "wid": "INT", + "word": "VARCHAR", + "occurrences": "INT" + } + }, + "policies": [ + { + "table": "biwords", + "id": 0, + "declaration": [ + [ + 0, + 0, + "words", + "w2nd", + "wid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "biwords", + "id": 1, + "declaration": [ + [ + 1, + 0, + "words", + "w1st", + "wid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "biwords", + "id": 2, + "declaration": [ + [ + 2, + 0, + "langs", + "lid", + "lid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "langs_words", + "id": 0, + "declaration": [ + [ + 0, + 0, + "words", + "wid", + "wid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"langs_words\" c WHERE c.\"wid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"words\" p WHERE p.\"wid\" = c.\"wid\")" + }, + { + "table": "langs_words", + "id": 1, + "declaration": [ + [ + 1, + 0, + "langs", + "lid", + "lid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"langs_words\" c WHERE c.\"lid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"langs\" p WHERE p.\"lid\" = c.\"lid\")" + }, + { + "table": "pages", + "id": 0, + "declaration": [ + [ + 0, + 0, + "langs", + "lid", + "lid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"pages\" c WHERE c.\"lid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"langs\" p WHERE p.\"lid\" = c.\"lid\")" + }, + { + "table": "pages_words", + "id": 0, + "declaration": [ + [ + 0, + 0, + "words", + "wid", + "wid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "pages_words", + "id": 1, + "declaration": [ + [ + 1, + 0, + "pages", + "pid", + "pid", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"pages_words\" c WHERE c.\"pid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"pages\" p WHERE p.\"pid\" = c.\"pid\")" + } + ], + "sha256": "826e913eb22387a8b4a59da8ba6e7e539ea0d288565b2da5b0ec708baffb7d15" + }, + "law_episode": { + "schema": [ + [ + "table", + "Award", + "Award", + "CREATE TABLE Award\n(\n award_id INTEGER\n primary key,\n organization TEXT,\n year INTEGER,\n award_category TEXT,\n award TEXT,\n series TEXT,\n episode_id TEXT,\n person_id TEXT,\n role TEXT,\n result TEXT,\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n)" + ], + [ + "table", + "Credit", + "Credit", + "CREATE TABLE Credit\n(\n episode_id TEXT,\n person_id TEXT,\n category TEXT,\n role TEXT,\n credited TEXT,\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n)" + ], + [ + "table", + "Episode", + "Episode", + "CREATE TABLE Episode\n(\n episode_id TEXT\n primary key,\n series TEXT,\n season INTEGER,\n episode INTEGER,\n number_in_series INTEGER,\n title TEXT,\n summary TEXT,\n air_date DATE,\n episode_image TEXT,\n rating REAL,\n votes INTEGER\n)" + ], + [ + "table", + "Keyword", + "Keyword", + "CREATE TABLE Keyword\n(\n episode_id TEXT,\n keyword TEXT,\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n)" + ], + [ + "table", + "Person", + "Person", + "CREATE TABLE Person\n(\n person_id TEXT\n primary key,\n name TEXT,\n birthdate DATE,\n birth_name TEXT,\n birth_place TEXT,\n birth_region TEXT,\n birth_country TEXT,\n height_meters REAL,\n nickname TEXT\n)" + ], + [ + "table", + "Vote", + "Vote", + "CREATE TABLE Vote\n(\n episode_id TEXT,\n stars INTEGER,\n votes INTEGER,\n percent REAL,\n foreign key (episode_id) references Episode(episode_id)\n)" + ] + ], + "solver_schema": { + "Award": { + "award_id": "INT", + "organization": "VARCHAR", + "year": "INT", + "award_category": "VARCHAR", + "award": "VARCHAR", + "series": "VARCHAR", + "episode_id": "VARCHAR", + "person_id": "VARCHAR", + "role": "VARCHAR", + "result": "VARCHAR" + }, + "Credit": { + "episode_id": "VARCHAR", + "person_id": "VARCHAR", + "category": "VARCHAR", + "role": "VARCHAR", + "credited": "VARCHAR" + }, + "Episode": { + "episode_id": "VARCHAR", + "series": "VARCHAR", + "season": "INT", + "episode": "INT", + "number_in_series": "INT", + "title": "VARCHAR", + "summary": "VARCHAR", + "air_date": "REAL", + "episode_image": "VARCHAR", + "rating": "REAL", + "votes": "INT" + }, + "Keyword": { + "episode_id": "VARCHAR", + "keyword": "VARCHAR" + }, + "Person": { + "person_id": "VARCHAR", + "name": "VARCHAR", + "birthdate": "REAL", + "birth_name": "VARCHAR", + "birth_place": "VARCHAR", + "birth_region": "VARCHAR", + "birth_country": "VARCHAR", + "height_meters": "REAL", + "nickname": "VARCHAR" + }, + "Vote": { + "episode_id": "VARCHAR", + "stars": "INT", + "votes": "INT", + "percent": "REAL" + } + }, + "policies": [ + { + "table": "Award", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "person_id", + "person_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"Award\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"person_id\" = c.\"person_id\")" + }, + { + "table": "Award", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Award\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Credit", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "person_id", + "person_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Credit\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"person_id\" = c.\"person_id\")" + }, + { + "table": "Credit", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Credit\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Keyword", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Keyword\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Vote", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Vote\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + } + ], + "sha256": "164ae73150ba2f081931fcca583aafc51f319c239eab3e0005ac1a08e6f95fc7" + }, + "legislator": { + "schema": [ + [ + "table", + "current", + "current", + "CREATE TABLE current\n(\n ballotpedia_id TEXT,\n bioguide_id TEXT,\n birthday_bio DATE,\n cspan_id REAL,\n fec_id TEXT,\n first_name TEXT,\n gender_bio TEXT,\n google_entity_id_id TEXT,\n govtrack_id INTEGER,\n house_history_id REAL,\n icpsr_id REAL,\n last_name TEXT,\n lis_id TEXT,\n maplight_id REAL,\n middle_name TEXT,\n nickname_name TEXT,\n official_full_name TEXT,\n opensecrets_id TEXT,\n religion_bio TEXT,\n suffix_name TEXT,\n thomas_id INTEGER,\n votesmart_id REAL,\n wikidata_id TEXT,\n wikipedia_id TEXT,\n primary key (bioguide_id, cspan_id)\n)" + ], + [ + "table", + "current-terms", + "current-terms", + "CREATE TABLE \"current-terms\"\n(\n address TEXT,\n bioguide TEXT,\n caucus TEXT,\n chamber TEXT,\n class REAL,\n contact_form TEXT,\n district REAL,\n end TEXT,\n fax TEXT,\n last TEXT,\n name TEXT,\n office TEXT,\n party TEXT,\n party_affiliations TEXT,\n phone TEXT,\n relation TEXT,\n rss_url TEXT,\n start TEXT,\n state TEXT,\n state_rank TEXT,\n title TEXT,\n type TEXT,\n url TEXT,\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n)" + ], + [ + "table", + "historical", + "historical", + "CREATE TABLE historical\n(\n ballotpedia_id TEXT,\n bioguide_id TEXT\n primary key,\n bioguide_previous_id TEXT,\n birthday_bio TEXT,\n cspan_id TEXT,\n fec_id TEXT,\n first_name TEXT,\n gender_bio TEXT,\n google_entity_id_id TEXT,\n govtrack_id INTEGER,\n house_history_alternate_id TEXT,\n house_history_id REAL,\n icpsr_id REAL,\n last_name TEXT,\n lis_id TEXT,\n maplight_id TEXT,\n middle_name TEXT,\n nickname_name TEXT,\n official_full_name TEXT,\n opensecrets_id TEXT,\n religion_bio TEXT,\n suffix_name TEXT,\n thomas_id TEXT,\n votesmart_id TEXT,\n wikidata_id TEXT,\n wikipedia_id TEXT\n)" + ], + [ + "table", + "historical-terms", + "historical-terms", + "CREATE TABLE \"historical-terms\"\n(\n address TEXT,\n bioguide TEXT\n primary key,\n chamber TEXT,\n class REAL,\n contact_form TEXT,\n district REAL,\n end TEXT,\n fax TEXT,\n last TEXT,\n middle TEXT,\n name TEXT,\n office TEXT,\n party TEXT,\n party_affiliations TEXT,\n phone TEXT,\n relation TEXT,\n rss_url TEXT,\n start TEXT,\n state TEXT,\n state_rank TEXT,\n title TEXT,\n type TEXT,\n url TEXT,\n foreign key (bioguide) references historical(bioguide_id)\n)" + ], + [ + "table", + "social-media", + "social-media", + "CREATE TABLE \"social-media\"\n(\n bioguide TEXT\n primary key,\n facebook TEXT,\n facebook_id REAL,\n govtrack REAL,\n instagram TEXT,\n instagram_id REAL,\n thomas INTEGER,\n twitter TEXT,\n twitter_id REAL,\n youtube TEXT,\n youtube_id TEXT,\n foreign key (bioguide) references current(bioguide_id)\n)" + ] + ], + "solver_schema": { + "current": { + "ballotpedia_id": "VARCHAR", + "bioguide_id": "VARCHAR", + "birthday_bio": "REAL", + "cspan_id": "REAL", + "fec_id": "VARCHAR", + "first_name": "VARCHAR", + "gender_bio": "VARCHAR", + "google_entity_id_id": "VARCHAR", + "govtrack_id": "INT", + "house_history_id": "REAL", + "icpsr_id": "REAL", + "last_name": "VARCHAR", + "lis_id": "VARCHAR", + "maplight_id": "REAL", + "middle_name": "VARCHAR", + "nickname_name": "VARCHAR", + "official_full_name": "VARCHAR", + "opensecrets_id": "VARCHAR", + "religion_bio": "VARCHAR", + "suffix_name": "VARCHAR", + "thomas_id": "INT", + "votesmart_id": "REAL", + "wikidata_id": "VARCHAR", + "wikipedia_id": "VARCHAR" + }, + "current-terms": { + "address": "VARCHAR", + "bioguide": "VARCHAR", + "caucus": "VARCHAR", + "chamber": "VARCHAR", + "class": "REAL", + "contact_form": "VARCHAR", + "district": "REAL", + "end": "VARCHAR", + "fax": "VARCHAR", + "last": "VARCHAR", + "name": "VARCHAR", + "office": "VARCHAR", + "party": "VARCHAR", + "party_affiliations": "VARCHAR", + "phone": "VARCHAR", + "relation": "VARCHAR", + "rss_url": "VARCHAR", + "start": "VARCHAR", + "state": "VARCHAR", + "state_rank": "VARCHAR", + "title": "VARCHAR", + "type": "VARCHAR", + "url": "VARCHAR" + }, + "historical": { + "ballotpedia_id": "VARCHAR", + "bioguide_id": "VARCHAR", + "bioguide_previous_id": "VARCHAR", + "birthday_bio": "VARCHAR", + "cspan_id": "VARCHAR", + "fec_id": "VARCHAR", + "first_name": "VARCHAR", + "gender_bio": "VARCHAR", + "google_entity_id_id": "VARCHAR", + "govtrack_id": "INT", + "house_history_alternate_id": "VARCHAR", + "house_history_id": "REAL", + "icpsr_id": "REAL", + "last_name": "VARCHAR", + "lis_id": "VARCHAR", + "maplight_id": "VARCHAR", + "middle_name": "VARCHAR", + "nickname_name": "VARCHAR", + "official_full_name": "VARCHAR", + "opensecrets_id": "VARCHAR", + "religion_bio": "VARCHAR", + "suffix_name": "VARCHAR", + "thomas_id": "VARCHAR", + "votesmart_id": "VARCHAR", + "wikidata_id": "VARCHAR", + "wikipedia_id": "VARCHAR" + }, + "historical-terms": { + "address": "VARCHAR", + "bioguide": "VARCHAR", + "chamber": "VARCHAR", + "class": "REAL", + "contact_form": "VARCHAR", + "district": "REAL", + "end": "VARCHAR", + "fax": "VARCHAR", + "last": "VARCHAR", + "middle": "VARCHAR", + "name": "VARCHAR", + "office": "VARCHAR", + "party": "VARCHAR", + "party_affiliations": "VARCHAR", + "phone": "VARCHAR", + "relation": "VARCHAR", + "rss_url": "VARCHAR", + "start": "VARCHAR", + "state": "VARCHAR", + "state_rank": "VARCHAR", + "title": "VARCHAR", + "type": "VARCHAR", + "url": "VARCHAR" + }, + "social-media": { + "bioguide": "VARCHAR", + "facebook": "VARCHAR", + "facebook_id": "REAL", + "govtrack": "REAL", + "instagram": "VARCHAR", + "instagram_id": "REAL", + "thomas": "INT", + "twitter": "VARCHAR", + "twitter_id": "REAL", + "youtube": "VARCHAR", + "youtube_id": "VARCHAR" + } + }, + "policies": [ + { + "table": "current-terms", + "id": 0, + "declaration": [ + [ + 0, + 0, + "current", + "bioguide", + "bioguide_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"current\"" + }, + { + "table": "historical-terms", + "id": 0, + "declaration": [ + [ + 0, + 0, + "historical", + "bioguide", + "bioguide_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"historical-terms\" c WHERE c.\"bioguide\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"historical\" p WHERE p.\"bioguide_id\" = c.\"bioguide\")" + }, + { + "table": "social-media", + "id": 0, + "declaration": [ + [ + 0, + 0, + "current", + "bioguide", + "bioguide_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"current\"" + } + ], + "sha256": "7fb0b945de2e21967c6f857325a42c727ef486e9f283520e2337c2ff08efdf4c" + }, + "mental_health_survey": { + "schema": [ + [ + "table", + "Answer", + "Answer", + "CREATE TABLE \"Answer\"\n(\n AnswerText TEXT,\n SurveyID INTEGER\n constraint Answer_Survey_SurveyID_fk\n references Survey,\n UserID INTEGER,\n QuestionID INTEGER\n constraint Answer_Question_questionid_fk\n references Question,\n constraint Answer_pk\n primary key (UserID, QuestionID)\n)" + ], + [ + "table", + "Question", + "Question", + "CREATE TABLE Question\n(\n questiontext TEXT,\n questionid INTEGER\n constraint Question_pk\n primary key\n)" + ], + [ + "table", + "Survey", + "Survey", + "CREATE TABLE Survey\n(\n SurveyID INTEGER\n constraint Survey_pk\n primary key,\n Description TEXT\n)" + ] + ], + "solver_schema": { + "Answer": { + "AnswerText": "VARCHAR", + "SurveyID": "INT", + "UserID": "INT", + "QuestionID": "INT" + }, + "Question": { + "questiontext": "VARCHAR", + "questionid": "INT" + }, + "Survey": { + "SurveyID": "INT", + "Description": "VARCHAR" + } + }, + "policies": [ + { + "table": "Answer", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Question", + "QuestionID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Answer\" c WHERE c.\"QuestionID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Question\" p WHERE p.\"questionid\" = c.\"QuestionID\")" + }, + { + "table": "Answer", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Survey", + "SurveyID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Answer\" c WHERE c.\"SurveyID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Survey\" p WHERE p.\"SurveyID\" = c.\"SurveyID\")" + } + ], + "sha256": "677194717340a10ed4ec490297d695b6bb7614e928bedc81d4753bb13d47433c" + }, + "menu": { + "schema": [ + [ + "table", + "Dish", + "Dish", + "CREATE TABLE Dish\n(\n id INTEGER\n primary key,\n name TEXT,\n description TEXT,\n menus_appeared INTEGER,\n times_appeared INTEGER,\n first_appeared INTEGER,\n last_appeared INTEGER,\n lowest_price REAL,\n highest_price REAL\n)" + ], + [ + "table", + "Menu", + "Menu", + "CREATE TABLE Menu\n(\n id INTEGER\n primary key,\n name TEXT,\n sponsor TEXT,\n event TEXT,\n venue TEXT,\n place TEXT,\n physical_description TEXT,\n occasion TEXT,\n notes TEXT,\n call_number TEXT,\n keywords TEXT,\n language TEXT,\n date DATE,\n location TEXT,\n location_type TEXT,\n currency TEXT,\n currency_symbol TEXT,\n status TEXT,\n page_count INTEGER,\n dish_count INTEGER\n)" + ], + [ + "table", + "MenuItem", + "MenuItem", + "CREATE TABLE MenuItem\n(\n id INTEGER\n primary key,\n menu_page_id INTEGER,\n price REAL,\n high_price REAL,\n dish_id INTEGER,\n created_at TEXT,\n updated_at TEXT,\n xpos REAL,\n ypos REAL,\n foreign key (dish_id) references Dish(id),\n foreign key (menu_page_id) references MenuPage(id)\n)" + ], + [ + "table", + "MenuPage", + "MenuPage", + "CREATE TABLE MenuPage\n(\n id INTEGER\n primary key,\n menu_id INTEGER,\n page_number INTEGER,\n image_id REAL,\n full_height INTEGER,\n full_width INTEGER,\n uuid TEXT,\n foreign key (menu_id) references Menu(id)\n)" + ] + ], + "solver_schema": { + "Dish": { + "id": "INT", + "name": "VARCHAR", + "description": "VARCHAR", + "menus_appeared": "INT", + "times_appeared": "INT", + "first_appeared": "INT", + "last_appeared": "INT", + "lowest_price": "REAL", + "highest_price": "REAL" + }, + "Menu": { + "id": "INT", + "name": "VARCHAR", + "sponsor": "VARCHAR", + "event": "VARCHAR", + "venue": "VARCHAR", + "place": "VARCHAR", + "physical_description": "VARCHAR", + "occasion": "VARCHAR", + "notes": "VARCHAR", + "call_number": "VARCHAR", + "keywords": "VARCHAR", + "language": "VARCHAR", + "date": "REAL", + "location": "VARCHAR", + "location_type": "VARCHAR", + "currency": "VARCHAR", + "currency_symbol": "VARCHAR", + "status": "VARCHAR", + "page_count": "INT", + "dish_count": "INT" + }, + "MenuItem": { + "id": "INT", + "menu_page_id": "INT", + "price": "REAL", + "high_price": "REAL", + "dish_id": "INT", + "created_at": "VARCHAR", + "updated_at": "VARCHAR", + "xpos": "REAL", + "ypos": "REAL" + }, + "MenuPage": { + "id": "INT", + "menu_id": "INT", + "page_number": "INT", + "image_id": "REAL", + "full_height": "INT", + "full_width": "INT", + "uuid": "VARCHAR" + } + }, + "policies": [ + { + "table": "MenuItem", + "id": 0, + "declaration": [ + [ + 0, + 0, + "MenuPage", + "menu_page_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"MenuItem\" c WHERE c.\"menu_page_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"MenuPage\" p WHERE p.\"id\" = c.\"menu_page_id\")" + }, + { + "table": "MenuItem", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Dish", + "dish_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 35, + "query": "SELECT COUNT(*) FROM \"MenuItem\" c WHERE c.\"dish_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Dish\" p WHERE p.\"id\" = c.\"dish_id\")" + }, + { + "table": "MenuPage", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Menu", + "menu_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 5907, + "query": "SELECT COUNT(*) FROM \"MenuPage\" c WHERE c.\"menu_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Menu\" p WHERE p.\"id\" = c.\"menu_id\")" + } + ], + "sha256": "d38ef4f6982d34a536bb169e4af9b31f6b97d3959048f4fc1bdd5f9e15462d08" + }, + "mondial_geo": { + "schema": [ + [ + "table", + "borders", + "borders", + "CREATE TABLE \"borders\"\n(\n Country1 TEXT default '' not null\n constraint borders_ibfk_1\n references country,\n Country2 TEXT default '' not null\n constraint borders_ibfk_2\n references country,\n Length REAL,\n primary key (Country1, Country2)\n)" + ], + [ + "table", + "city", + "city", + "CREATE TABLE \"city\"\n(\n Name TEXT default '' not null,\n Country TEXT default '' not null\n constraint city_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n Population INTEGER,\n Longitude REAL,\n Latitude REAL,\n primary key (Name, Province),\n constraint city_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "continent", + "continent", + "CREATE TABLE \"continent\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL\n)" + ], + [ + "table", + "country", + "country", + "CREATE TABLE \"country\"\n(\n Name TEXT not null\n constraint ix_county_Name\n unique,\n Code TEXT default '' not null\n primary key,\n Capital TEXT,\n Province TEXT,\n Area REAL,\n Population INTEGER\n)" + ], + [ + "table", + "desert", + "desert", + "CREATE TABLE \"desert\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL,\n Longitude REAL,\n Latitude REAL\n)" + ], + [ + "table", + "economy", + "economy", + "CREATE TABLE \"economy\"\n(\n Country TEXT default '' not null\n primary key\n constraint economy_ibfk_1\n references country\n on update cascade on delete cascade,\n GDP REAL,\n Agriculture REAL,\n Service REAL,\n Industry REAL,\n Inflation REAL\n)" + ], + [ + "table", + "encompasses", + "encompasses", + "CREATE TABLE \"encompasses\"\n(\n Country TEXT not null\n constraint encompasses_ibfk_1\n references country\n on update cascade on delete cascade,\n Continent TEXT not null\n constraint encompasses_ibfk_2\n references continent\n on update cascade on delete cascade,\n Percentage REAL,\n primary key (Country, Continent)\n)" + ], + [ + "table", + "ethnicGroup", + "ethnicGroup", + "CREATE TABLE \"ethnicGroup\"\n(\n Country TEXT default '' not null\n constraint ethnicGroup_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n)" + ], + [ + "table", + "geo_desert", + "geo_desert", + "CREATE TABLE \"geo_desert\"\n(\n Desert TEXT default '' not null\n constraint geo_desert_ibfk_3\n references desert\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_desert_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Desert),\n constraint geo_desert_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_estuary", + "geo_estuary", + "CREATE TABLE \"geo_estuary\"\n(\n River TEXT default '' not null\n constraint geo_estuary_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_estuary_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_estuary_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_island", + "geo_island", + "CREATE TABLE \"geo_island\"\n(\n Island TEXT default '' not null\n constraint geo_island_ibfk_3\n references island\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_island_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Island),\n constraint geo_island_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_lake", + "geo_lake", + "CREATE TABLE \"geo_lake\"\n(\n Lake TEXT default '' not null\n constraint geo_lake_ibfk_3\n references lake\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_lake_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Lake),\n constraint geo_lake_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_mountain", + "geo_mountain", + "CREATE TABLE \"geo_mountain\"\n(\n Mountain TEXT default '' not null\n constraint geo_mountain_ibfk_3\n references mountain\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_mountain_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Mountain),\n constraint geo_mountain_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_river", + "geo_river", + "CREATE TABLE \"geo_river\"\n(\n River TEXT default '' not null\n constraint geo_river_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_river_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_river_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_sea", + "geo_sea", + "CREATE TABLE \"geo_sea\"\n(\n Sea TEXT default '' not null\n constraint geo_sea_ibfk_3\n references sea\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_sea_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Sea),\n constraint geo_sea_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geo_source", + "geo_source", + "CREATE TABLE \"geo_source\"\n(\n River TEXT default '' not null\n constraint geo_source_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_source_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_source_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "isMember", + "isMember", + "CREATE TABLE \"isMember\"\n(\n Country TEXT default '' not null\n constraint isMember_ibfk_1\n references country\n on update cascade on delete cascade,\n Organization TEXT default '' not null\n constraint isMember_ibfk_2\n references organization\n on update cascade on delete cascade,\n Type TEXT default 'member',\n primary key (Country, Organization)\n)" + ], + [ + "table", + "island", + "island", + "CREATE TABLE \"island\"\n(\n Name TEXT default '' not null\n primary key,\n Islands TEXT,\n Area REAL,\n Height REAL,\n Type TEXT,\n Longitude REAL,\n Latitude REAL\n)" + ], + [ + "table", + "islandIn", + "islandIn", + "CREATE TABLE \"islandIn\"\n(\n Island TEXT\n constraint islandIn_ibfk_4\n references island\n on update cascade on delete cascade,\n Sea TEXT\n constraint islandIn_ibfk_3\n references sea\n on update cascade on delete cascade,\n Lake TEXT\n constraint islandIn_ibfk_1\n references lake\n on update cascade on delete cascade,\n River TEXT\n constraint islandIn_ibfk_2\n references river\n on update cascade on delete cascade\n)" + ], + [ + "table", + "lake", + "lake", + "CREATE TABLE \"lake\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL,\n Depth REAL,\n Altitude REAL,\n Type TEXT,\n River TEXT,\n Longitude REAL,\n Latitude REAL\n)" + ], + [ + "table", + "language", + "language", + "CREATE TABLE \"language\"\n(\n Country TEXT default '' not null\n constraint language_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n)" + ], + [ + "table", + "located", + "located", + "CREATE TABLE \"located\"\n(\n City TEXT,\n Province TEXT,\n Country TEXT\n constraint located_ibfk_1\n references country\n on update cascade on delete cascade,\n River TEXT\n constraint located_ibfk_3\n references river\n on update cascade on delete cascade,\n Lake TEXT\n constraint located_ibfk_4\n references lake\n on update cascade on delete cascade,\n Sea TEXT\n constraint located_ibfk_5\n references sea\n on update cascade on delete cascade,\n constraint located_ibfk_2\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint located_ibfk_6\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "locatedOn", + "locatedOn", + "CREATE TABLE \"locatedOn\"\n(\n City TEXT default '' not null,\n Province TEXT default '' not null,\n Country TEXT default '' not null\n constraint locatedOn_ibfk_1\n references country\n on update cascade on delete cascade,\n Island TEXT default '' not null\n constraint locatedOn_ibfk_2\n references island\n on update cascade on delete cascade,\n primary key (City, Province, Country, Island),\n constraint locatedOn_ibfk_3\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint locatedOn_ibfk_4\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "mergesWith", + "mergesWith", + "CREATE TABLE \"mergesWith\"\n(\n Sea1 TEXT default '' not null\n constraint mergesWith_ibfk_1\n references sea\n on update cascade on delete cascade,\n Sea2 TEXT default '' not null\n constraint mergesWith_ibfk_2\n references sea\n on update cascade on delete cascade,\n primary key (Sea1, Sea2)\n)" + ], + [ + "table", + "mountain", + "mountain", + "CREATE TABLE \"mountain\"\n(\n Name TEXT default '' not null\n primary key,\n Mountains TEXT,\n Height REAL,\n Type TEXT,\n Longitude REAL,\n Latitude REAL\n)" + ], + [ + "table", + "mountainOnIsland", + "mountainOnIsland", + "CREATE TABLE \"mountainOnIsland\"\n(\n Mountain TEXT default '' not null\n constraint mountainOnIsland_ibfk_2\n references mountain\n on update cascade on delete cascade,\n Island TEXT default '' not null\n constraint mountainOnIsland_ibfk_1\n references island\n on update cascade on delete cascade,\n primary key (Mountain, Island)\n)" + ], + [ + "table", + "organization", + "organization", + "CREATE TABLE \"organization\"\n(\n Abbreviation TEXT not null\n primary key,\n Name TEXT not null\n constraint ix_organization_OrgNameUnique\n unique,\n City TEXT,\n Country TEXT\n constraint organization_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT,\n Established DATE,\n constraint organization_ibfk_2\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint organization_ibfk_3\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n)" + ], + [ + "table", + "politics", + "politics", + "CREATE TABLE \"politics\"\n(\n Country TEXT default '' not null\n primary key\n constraint politics_ibfk_1\n references country\n on update cascade on delete cascade,\n Independence DATE,\n Dependent TEXT\n constraint politics_ibfk_2\n references country\n on update cascade on delete cascade,\n Government TEXT\n)" + ], + [ + "table", + "population", + "population", + "CREATE TABLE \"population\"\n(\n Country TEXT default '' not null\n primary key\n constraint population_ibfk_1\n references country\n on update cascade on delete cascade,\n Population_Growth REAL,\n Infant_Mortality REAL\n)" + ], + [ + "table", + "province", + "province", + "CREATE TABLE \"province\"\n(\n Name TEXT not null,\n Country TEXT not null\n constraint province_ibfk_1\n references country\n on update cascade on delete cascade,\n Population INTEGER,\n Area REAL,\n Capital TEXT,\n CapProv TEXT,\n primary key (Name, Country)\n)" + ], + [ + "table", + "religion", + "religion", + "CREATE TABLE \"religion\"\n(\n Country TEXT default '' not null\n constraint religion_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n)" + ], + [ + "table", + "river", + "river", + "CREATE TABLE \"river\"\n(\n Name TEXT default '' not null\n primary key,\n River TEXT,\n Lake TEXT\n constraint river_ibfk_1\n references lake\n on update cascade on delete cascade,\n Sea TEXT,\n Length REAL,\n SourceLongitude REAL,\n SourceLatitude REAL,\n Mountains TEXT,\n SourceAltitude REAL,\n EstuaryLongitude REAL,\n EstuaryLatitude REAL\n)" + ], + [ + "table", + "sea", + "sea", + "CREATE TABLE \"sea\"\n(\n Name TEXT default '' not null\n primary key,\n Depth REAL\n)" + ], + [ + "table", + "target", + "target", + "CREATE TABLE \"target\"\n(\n Country TEXT not null\n primary key\n constraint target_Country_fkey\n references country\n on update cascade on delete cascade,\n Target TEXT\n)" + ] + ], + "solver_schema": { + "borders": { + "Country1": "VARCHAR", + "Country2": "VARCHAR", + "Length": "REAL" + }, + "city": { + "Name": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR", + "Population": "INT", + "Longitude": "REAL", + "Latitude": "REAL" + }, + "continent": { + "Name": "VARCHAR", + "Area": "REAL" + }, + "country": { + "Name": "VARCHAR", + "Code": "VARCHAR", + "Capital": "VARCHAR", + "Province": "VARCHAR", + "Area": "REAL", + "Population": "INT" + }, + "desert": { + "Name": "VARCHAR", + "Area": "REAL", + "Longitude": "REAL", + "Latitude": "REAL" + }, + "economy": { + "Country": "VARCHAR", + "GDP": "REAL", + "Agriculture": "REAL", + "Service": "REAL", + "Industry": "REAL", + "Inflation": "REAL" + }, + "encompasses": { + "Country": "VARCHAR", + "Continent": "VARCHAR", + "Percentage": "REAL" + }, + "ethnicGroup": { + "Country": "VARCHAR", + "Name": "VARCHAR", + "Percentage": "REAL" + }, + "geo_desert": { + "Desert": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_estuary": { + "River": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_island": { + "Island": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_lake": { + "Lake": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_mountain": { + "Mountain": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_river": { + "River": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_sea": { + "Sea": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "geo_source": { + "River": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR" + }, + "isMember": { + "Country": "VARCHAR", + "Organization": "VARCHAR", + "Type": "VARCHAR" + }, + "island": { + "Name": "VARCHAR", + "Islands": "VARCHAR", + "Area": "REAL", + "Height": "REAL", + "Type": "VARCHAR", + "Longitude": "REAL", + "Latitude": "REAL" + }, + "islandIn": { + "Island": "VARCHAR", + "Sea": "VARCHAR", + "Lake": "VARCHAR", + "River": "VARCHAR" + }, + "lake": { + "Name": "VARCHAR", + "Area": "REAL", + "Depth": "REAL", + "Altitude": "REAL", + "Type": "VARCHAR", + "River": "VARCHAR", + "Longitude": "REAL", + "Latitude": "REAL" + }, + "language": { + "Country": "VARCHAR", + "Name": "VARCHAR", + "Percentage": "REAL" + }, + "located": { + "City": "VARCHAR", + "Province": "VARCHAR", + "Country": "VARCHAR", + "River": "VARCHAR", + "Lake": "VARCHAR", + "Sea": "VARCHAR" + }, + "locatedOn": { + "City": "VARCHAR", + "Province": "VARCHAR", + "Country": "VARCHAR", + "Island": "VARCHAR" + }, + "mergesWith": { + "Sea1": "VARCHAR", + "Sea2": "VARCHAR" + }, + "mountain": { + "Name": "VARCHAR", + "Mountains": "VARCHAR", + "Height": "REAL", + "Type": "VARCHAR", + "Longitude": "REAL", + "Latitude": "REAL" + }, + "mountainOnIsland": { + "Mountain": "VARCHAR", + "Island": "VARCHAR" + }, + "organization": { + "Abbreviation": "VARCHAR", + "Name": "VARCHAR", + "City": "VARCHAR", + "Country": "VARCHAR", + "Province": "VARCHAR", + "Established": "REAL" + }, + "politics": { + "Country": "VARCHAR", + "Independence": "REAL", + "Dependent": "VARCHAR", + "Government": "VARCHAR" + }, + "population": { + "Country": "VARCHAR", + "Population_Growth": "REAL", + "Infant_Mortality": "REAL" + }, + "province": { + "Name": "VARCHAR", + "Country": "VARCHAR", + "Population": "INT", + "Area": "REAL", + "Capital": "VARCHAR", + "CapProv": "VARCHAR" + }, + "religion": { + "Country": "VARCHAR", + "Name": "VARCHAR", + "Percentage": "REAL" + }, + "river": { + "Name": "VARCHAR", + "River": "VARCHAR", + "Lake": "VARCHAR", + "Sea": "VARCHAR", + "Length": "REAL", + "SourceLongitude": "REAL", + "SourceLatitude": "REAL", + "Mountains": "VARCHAR", + "SourceAltitude": "REAL", + "EstuaryLongitude": "REAL", + "EstuaryLatitude": "REAL" + }, + "sea": { + "Name": "VARCHAR", + "Depth": "REAL" + }, + "target": { + "Country": "VARCHAR", + "Target": "VARCHAR" + } + }, + "policies": [ + { + "table": "borders", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country2", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"borders\" c WHERE c.\"Country2\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country2\")" + }, + { + "table": "borders", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country1", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"borders\" c WHERE c.\"Country1\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country1\")" + }, + { + "table": "city", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"city\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "city", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"city\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "economy", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"economy\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "encompasses", + "id": 0, + "declaration": [ + [ + 0, + 0, + "continent", + "Continent", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"encompasses\" c WHERE c.\"Continent\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"continent\" p WHERE p.\"Name\" = c.\"Continent\")" + }, + { + "table": "encompasses", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"encompasses\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "ethnicGroup", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ethnicGroup\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_desert", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_desert\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_desert", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_desert\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_desert", + "id": 2, + "declaration": [ + [ + 2, + 0, + "desert", + "Desert", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_desert\" c WHERE c.\"Desert\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"desert\" p WHERE p.\"Name\" = c.\"Desert\")" + }, + { + "table": "geo_estuary", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_estuary\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_estuary", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_estuary\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_estuary", + "id": 2, + "declaration": [ + [ + 2, + 0, + "river", + "River", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_estuary\" c WHERE c.\"River\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"river\" p WHERE p.\"Name\" = c.\"River\")" + }, + { + "table": "geo_island", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 202, + "query": "SELECT COUNT(*) FROM \"geo_island\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_island", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 202, + "query": "SELECT COUNT(*) FROM \"geo_island\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_island", + "id": 2, + "declaration": [ + [ + 2, + 0, + "island", + "Island", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"geo_island\" c WHERE c.\"Island\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"island\" p WHERE p.\"Name\" = c.\"Island\")" + }, + { + "table": "geo_lake", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_lake\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_lake", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_lake\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_lake", + "id": 2, + "declaration": [ + [ + 2, + 0, + "lake", + "Lake", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_lake\" c WHERE c.\"Lake\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"lake\" p WHERE p.\"Name\" = c.\"Lake\")" + }, + { + "table": "geo_mountain", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_mountain\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_mountain", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_mountain\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_mountain", + "id": 2, + "declaration": [ + [ + 2, + 0, + "mountain", + "Mountain", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 296, + "query": "SELECT COUNT(*) FROM \"geo_mountain\" c WHERE c.\"Mountain\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"mountain\" p WHERE p.\"Name\" = c.\"Mountain\")" + }, + { + "table": "geo_river", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_river\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_river", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_river\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_river", + "id": 2, + "declaration": [ + [ + 2, + 0, + "river", + "River", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_river\" c WHERE c.\"River\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"river\" p WHERE p.\"Name\" = c.\"River\")" + }, + { + "table": "geo_sea", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_sea\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_sea", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_sea\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_sea", + "id": 2, + "declaration": [ + [ + 2, + 0, + "sea", + "Sea", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_sea\" c WHERE c.\"Sea\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sea\" p WHERE p.\"Name\" = c.\"Sea\")" + }, + { + "table": "geo_source", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_source\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "geo_source", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_source\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "geo_source", + "id": 2, + "declaration": [ + [ + 2, + 0, + "river", + "River", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"geo_source\" c WHERE c.\"River\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"river\" p WHERE p.\"Name\" = c.\"River\")" + }, + { + "table": "isMember", + "id": 0, + "declaration": [ + [ + 0, + 0, + "organization", + "Organization", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"isMember\" c WHERE c.\"Organization\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"organization\" p WHERE p.\"Abbreviation\" = c.\"Organization\")" + }, + { + "table": "isMember", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"isMember\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "islandIn", + "id": 0, + "declaration": [ + [ + 0, + 0, + "river", + "River", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"islandIn\" c WHERE c.\"River\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"river\" p WHERE p.\"Name\" = c.\"River\")" + }, + { + "table": "islandIn", + "id": 1, + "declaration": [ + [ + 1, + 0, + "lake", + "Lake", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"islandIn\" c WHERE c.\"Lake\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"lake\" p WHERE p.\"Name\" = c.\"Lake\")" + }, + { + "table": "islandIn", + "id": 2, + "declaration": [ + [ + 2, + 0, + "sea", + "Sea", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"islandIn\" c WHERE c.\"Sea\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sea\" p WHERE p.\"Name\" = c.\"Sea\")" + }, + { + "table": "islandIn", + "id": 3, + "declaration": [ + [ + 3, + 0, + "island", + "Island", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"islandIn\" c WHERE c.\"Island\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"island\" p WHERE p.\"Name\" = c.\"Island\")" + }, + { + "table": "language", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"language\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "located", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "located", + "id": 1, + "declaration": [ + [ + 1, + 0, + "city", + "City", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "city", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"City\" IS NOT NULL AND c.\"Province\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"Name\" = c.\"City\" AND p.\"Province\" = c.\"Province\")" + }, + { + "table": "located", + "id": 2, + "declaration": [ + [ + 2, + 0, + "sea", + "Sea", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"Sea\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sea\" p WHERE p.\"Name\" = c.\"Sea\")" + }, + { + "table": "located", + "id": 3, + "declaration": [ + [ + 3, + 0, + "lake", + "Lake", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"Lake\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"lake\" p WHERE p.\"Name\" = c.\"Lake\")" + }, + { + "table": "located", + "id": 4, + "declaration": [ + [ + 4, + 0, + "river", + "River", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"River\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"river\" p WHERE p.\"Name\" = c.\"River\")" + }, + { + "table": "located", + "id": 5, + "declaration": [ + [ + 5, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"located\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "locatedOn", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"locatedOn\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "locatedOn", + "id": 1, + "declaration": [ + [ + 1, + 0, + "city", + "City", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "city", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"locatedOn\" c WHERE c.\"City\" IS NOT NULL AND c.\"Province\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"Name\" = c.\"City\" AND p.\"Province\" = c.\"Province\")" + }, + { + "table": "locatedOn", + "id": 2, + "declaration": [ + [ + 2, + 0, + "island", + "Island", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"locatedOn\" c WHERE c.\"Island\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"island\" p WHERE p.\"Name\" = c.\"Island\")" + }, + { + "table": "locatedOn", + "id": 3, + "declaration": [ + [ + 3, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"locatedOn\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "mergesWith", + "id": 0, + "declaration": [ + [ + 0, + 0, + "sea", + "Sea2", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"mergesWith\" c WHERE c.\"Sea2\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sea\" p WHERE p.\"Name\" = c.\"Sea2\")" + }, + { + "table": "mergesWith", + "id": 1, + "declaration": [ + [ + 1, + 0, + "sea", + "Sea1", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"mergesWith\" c WHERE c.\"Sea1\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sea\" p WHERE p.\"Name\" = c.\"Sea1\")" + }, + { + "table": "mountainOnIsland", + "id": 0, + "declaration": [ + [ + 0, + 0, + "island", + "Island", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"mountainOnIsland\" c WHERE c.\"Island\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"island\" p WHERE p.\"Name\" = c.\"Island\")" + }, + { + "table": "mountainOnIsland", + "id": 1, + "declaration": [ + [ + 1, + 0, + "mountain", + "Mountain", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 68, + "query": "SELECT COUNT(*) FROM \"mountainOnIsland\" c WHERE c.\"Mountain\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"mountain\" p WHERE p.\"Name\" = c.\"Mountain\")" + }, + { + "table": "organization", + "id": 0, + "declaration": [ + [ + 0, + 0, + "province", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "province", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"organization\" c WHERE c.\"Province\" IS NOT NULL AND c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"province\" p WHERE p.\"Name\" = c.\"Province\" AND p.\"Country\" = c.\"Country\")" + }, + { + "table": "organization", + "id": 1, + "declaration": [ + [ + 1, + 0, + "city", + "City", + null, + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "city", + "Province", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"organization\" c WHERE c.\"City\" IS NOT NULL AND c.\"Province\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"Name\" = c.\"City\" AND p.\"Province\" = c.\"Province\")" + }, + { + "table": "organization", + "id": 2, + "declaration": [ + [ + 2, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"organization\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "politics", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Dependent", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"politics\" c WHERE c.\"Dependent\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Dependent\")" + }, + { + "table": "politics", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"politics\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "population", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"population\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "province", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"province\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "religion", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"religion\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + }, + { + "table": "river", + "id": 0, + "declaration": [ + [ + 0, + 0, + "lake", + "Lake", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"river\" c WHERE c.\"Lake\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"lake\" p WHERE p.\"Name\" = c.\"Lake\")" + }, + { + "table": "target", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "Country", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"target\" c WHERE c.\"Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"Code\" = c.\"Country\")" + } + ], + "sha256": "02e71c23c27973be373e0c110600b4f12c77904c7594f3e345310511fe8b8d63" + }, + "movie": { + "schema": [ + [ + "table", + "actor", + "actor", + "CREATE TABLE actor\n(\n ActorID INTEGER\n constraint actor_pk\n primary key,\n Name TEXT,\n \"Date of Birth\" DATE,\n \"Birth City\" TEXT,\n \"Birth Country\" TEXT,\n \"Height (Inches)\" INTEGER,\n Biography TEXT,\n Gender TEXT,\n Ethnicity TEXT,\n NetWorth TEXT\n)" + ], + [ + "table", + "characters", + "characters", + "CREATE TABLE characters\n(\n MovieID INTEGER,\n ActorID INTEGER,\n \"Character Name\" TEXT,\n creditOrder INTEGER,\n pay TEXT,\n screentime TEXT,\n primary key (MovieID, ActorID),\n foreign key (ActorID) references actor(ActorID),\n foreign key (MovieID) references movie(MovieID)\n)" + ], + [ + "table", + "movie", + "movie", + "CREATE TABLE movie\n(\n MovieID INTEGER\n constraint movie_pk\n primary key,\n Title TEXT,\n \"MPAA Rating\" TEXT,\n Budget INTEGER,\n Gross INTEGER,\n \"Release Date\" TEXT,\n Genre TEXT,\n Runtime INTEGER,\n Rating REAL,\n \"Rating Count\" INTEGER,\n Summary TEXT\n)" + ] + ], + "solver_schema": { + "actor": { + "ActorID": "INT", + "Name": "VARCHAR", + "Date of Birth": "REAL", + "Birth City": "VARCHAR", + "Birth Country": "VARCHAR", + "Height (Inches)": "INT", + "Biography": "VARCHAR", + "Gender": "VARCHAR", + "Ethnicity": "VARCHAR", + "NetWorth": "VARCHAR" + }, + "characters": { + "MovieID": "INT", + "ActorID": "INT", + "Character Name": "VARCHAR", + "creditOrder": "INT", + "pay": "VARCHAR", + "screentime": "VARCHAR" + }, + "movie": { + "MovieID": "INT", + "Title": "VARCHAR", + "MPAA Rating": "VARCHAR", + "Budget": "INT", + "Gross": "INT", + "Release Date": "VARCHAR", + "Genre": "VARCHAR", + "Runtime": "INT", + "Rating": "REAL", + "Rating Count": "INT", + "Summary": "VARCHAR" + } + }, + "policies": [ + { + "table": "characters", + "id": 0, + "declaration": [ + [ + 0, + 0, + "movie", + "MovieID", + "MovieID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"characters\" c WHERE c.\"MovieID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"MovieID\" = c.\"MovieID\")" + }, + { + "table": "characters", + "id": 1, + "declaration": [ + [ + 1, + 0, + "actor", + "ActorID", + "ActorID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"characters\" c WHERE c.\"ActorID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"actor\" p WHERE p.\"ActorID\" = c.\"ActorID\")" + } + ], + "sha256": "4d87ad371470f07af926e4bbca2784aed9a643935dd6e6a00d8009aad1816547" + }, + "movie_3": { + "schema": [ + [ + "table", + "actor", + "actor", + "CREATE TABLE \"actor\"\n(\n actor_id INTEGER\n primary key autoincrement,\n first_name TEXT not null,\n last_name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "address", + "address", + "CREATE TABLE \"address\"\n(\n address_id INTEGER\n primary key autoincrement,\n address TEXT not null,\n address2 TEXT,\n district TEXT not null,\n city_id INTEGER not null\n references city\n on update cascade,\n postal_code TEXT,\n phone TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "category", + "category", + "CREATE TABLE \"category\"\n(\n category_id INTEGER\n primary key autoincrement,\n name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "city", + "city", + "CREATE TABLE \"city\"\n(\n city_id INTEGER\n primary key autoincrement,\n city TEXT not null,\n country_id INTEGER not null\n references country\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "country", + "country", + "CREATE TABLE \"country\"\n(\n country_id INTEGER\n primary key autoincrement,\n country TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "customer", + "customer", + "CREATE TABLE \"customer\"\n(\n customer_id INTEGER\n primary key autoincrement,\n store_id INTEGER not null\n references store\n on update cascade,\n first_name TEXT not null,\n last_name TEXT not null,\n email TEXT,\n address_id INTEGER not null\n references address\n on update cascade,\n active INTEGER default 1 not null,\n create_date DATETIME not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "film", + "film", + "CREATE TABLE \"film\"\n(\n film_id INTEGER\n primary key autoincrement,\n title TEXT not null,\n description TEXT,\n release_year TEXT,\n language_id INTEGER not null\n references language\n on update cascade,\n original_language_id INTEGER\n references language\n on update cascade,\n rental_duration INTEGER default 3 not null,\n rental_rate REAL default 4.99 not null,\n length INTEGER,\n replacement_cost REAL default 19.99 not null,\n rating TEXT default 'G',\n special_features TEXT,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "film_actor", + "film_actor", + "CREATE TABLE \"film_actor\"\n(\n actor_id INTEGER not null\n references actor\n on update cascade,\n film_id INTEGER not null\n references film\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n primary key (actor_id, film_id)\n)" + ], + [ + "table", + "film_category", + "film_category", + "CREATE TABLE \"film_category\"\n(\n film_id INTEGER not null\n references film\n on update cascade,\n category_id INTEGER not null\n references category\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n primary key (film_id, category_id)\n)" + ], + [ + "table", + "film_text", + "film_text", + "CREATE TABLE film_text\n(\n film_id INTEGER not null\n primary key,\n title TEXT not null,\n description TEXT null\n)" + ], + [ + "table", + "inventory", + "inventory", + "CREATE TABLE \"inventory\"\n(\n inventory_id INTEGER\n primary key autoincrement,\n film_id INTEGER not null\n references film\n on update cascade,\n store_id INTEGER not null\n references store\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "language", + "language", + "CREATE TABLE \"language\"\n(\n language_id INTEGER\n primary key autoincrement,\n name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "payment", + "payment", + "CREATE TABLE \"payment\"\n(\n payment_id INTEGER\n primary key autoincrement,\n customer_id INTEGER not null\n references customer\n on update cascade,\n staff_id INTEGER not null\n references staff\n on update cascade,\n rental_id INTEGER\n references rental\n on update cascade on delete set null,\n amount REAL not null,\n payment_date DATETIME not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "rental", + "rental", + "CREATE TABLE \"rental\"\n(\n rental_id INTEGER\n primary key autoincrement,\n rental_date DATETIME not null,\n inventory_id INTEGER not null\n references inventory\n on update cascade,\n customer_id INTEGER not null\n references customer\n on update cascade,\n return_date DATETIME,\n staff_id INTEGER not null\n references staff\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n unique (rental_date, inventory_id, customer_id)\n)" + ], + [ + "table", + "staff", + "staff", + "CREATE TABLE \"staff\"\n(\n staff_id INTEGER\n primary key autoincrement,\n first_name TEXT not null,\n last_name TEXT not null,\n address_id INTEGER not null\n references address\n on update cascade,\n picture BLOB,\n email TEXT,\n store_id INTEGER not null\n references store\n on update cascade,\n active INTEGER default 1 not null,\n username TEXT not null,\n password TEXT,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "store", + "store", + "CREATE TABLE \"store\"\n(\n store_id INTEGER\n primary key autoincrement,\n manager_staff_id INTEGER not null\n unique\n references staff\n on update cascade,\n address_id INTEGER not null\n references address\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n)" + ] + ], + "solver_schema": { + "actor": { + "actor_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "last_update": "REAL" + }, + "address": { + "address_id": "INT", + "address": "VARCHAR", + "address2": "VARCHAR", + "district": "VARCHAR", + "city_id": "INT", + "postal_code": "VARCHAR", + "phone": "VARCHAR", + "last_update": "REAL" + }, + "category": { + "category_id": "INT", + "name": "VARCHAR", + "last_update": "REAL" + }, + "city": { + "city_id": "INT", + "city": "VARCHAR", + "country_id": "INT", + "last_update": "REAL" + }, + "country": { + "country_id": "INT", + "country": "VARCHAR", + "last_update": "REAL" + }, + "customer": { + "customer_id": "INT", + "store_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "email": "VARCHAR", + "address_id": "INT", + "active": "INT", + "create_date": "REAL", + "last_update": "REAL" + }, + "film": { + "film_id": "INT", + "title": "VARCHAR", + "description": "VARCHAR", + "release_year": "VARCHAR", + "language_id": "INT", + "original_language_id": "INT", + "rental_duration": "INT", + "rental_rate": "REAL", + "length": "INT", + "replacement_cost": "REAL", + "rating": "VARCHAR", + "special_features": "VARCHAR", + "last_update": "REAL" + }, + "film_actor": { + "actor_id": "INT", + "film_id": "INT", + "last_update": "REAL" + }, + "film_category": { + "film_id": "INT", + "category_id": "INT", + "last_update": "REAL" + }, + "film_text": { + "film_id": "INT", + "title": "VARCHAR", + "description": "VARCHAR" + }, + "inventory": { + "inventory_id": "INT", + "film_id": "INT", + "store_id": "INT", + "last_update": "REAL" + }, + "language": { + "language_id": "INT", + "name": "VARCHAR", + "last_update": "REAL" + }, + "payment": { + "payment_id": "INT", + "customer_id": "INT", + "staff_id": "INT", + "rental_id": "INT", + "amount": "REAL", + "payment_date": "REAL", + "last_update": "REAL" + }, + "rental": { + "rental_id": "INT", + "rental_date": "REAL", + "inventory_id": "INT", + "customer_id": "INT", + "return_date": "REAL", + "staff_id": "INT", + "last_update": "REAL" + }, + "staff": { + "staff_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "address_id": "INT", + "picture": "REAL", + "email": "VARCHAR", + "store_id": "INT", + "active": "INT", + "username": "VARCHAR", + "password": "VARCHAR", + "last_update": "REAL" + }, + "store": { + "store_id": "INT", + "manager_staff_id": "INT", + "address_id": "INT", + "last_update": "REAL" + } + }, + "policies": [ + { + "table": "address", + "id": 0, + "declaration": [ + [ + 0, + 0, + "city", + "city_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"address\" c WHERE c.\"city_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"city_id\" = c.\"city_id\")" + }, + { + "table": "city", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "country_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"city\" c WHERE c.\"country_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"country_id\" = c.\"country_id\")" + }, + { + "table": "customer", + "id": 0, + "declaration": [ + [ + 0, + 0, + "address", + "address_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customer\" c WHERE c.\"address_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"address\" p WHERE p.\"address_id\" = c.\"address_id\")" + }, + { + "table": "customer", + "id": 1, + "declaration": [ + [ + 1, + 0, + "store", + "store_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customer\" c WHERE c.\"store_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"store\" p WHERE p.\"store_id\" = c.\"store_id\")" + }, + { + "table": "film", + "id": 0, + "declaration": [ + [ + 0, + 0, + "language", + "original_language_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film\" c WHERE c.\"original_language_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"language\" p WHERE p.\"language_id\" = c.\"original_language_id\")" + }, + { + "table": "film", + "id": 1, + "declaration": [ + [ + 1, + 0, + "language", + "language_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film\" c WHERE c.\"language_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"language\" p WHERE p.\"language_id\" = c.\"language_id\")" + }, + { + "table": "film_actor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "film", + "film_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film_actor\" c WHERE c.\"film_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"film\" p WHERE p.\"film_id\" = c.\"film_id\")" + }, + { + "table": "film_actor", + "id": 1, + "declaration": [ + [ + 1, + 0, + "actor", + "actor_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film_actor\" c WHERE c.\"actor_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"actor\" p WHERE p.\"actor_id\" = c.\"actor_id\")" + }, + { + "table": "film_category", + "id": 0, + "declaration": [ + [ + 0, + 0, + "category", + "category_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film_category\" c WHERE c.\"category_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"category\" p WHERE p.\"category_id\" = c.\"category_id\")" + }, + { + "table": "film_category", + "id": 1, + "declaration": [ + [ + 1, + 0, + "film", + "film_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"film_category\" c WHERE c.\"film_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"film\" p WHERE p.\"film_id\" = c.\"film_id\")" + }, + { + "table": "inventory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "store", + "store_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"inventory\" c WHERE c.\"store_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"store\" p WHERE p.\"store_id\" = c.\"store_id\")" + }, + { + "table": "inventory", + "id": 1, + "declaration": [ + [ + 1, + 0, + "film", + "film_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"inventory\" c WHERE c.\"film_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"film\" p WHERE p.\"film_id\" = c.\"film_id\")" + }, + { + "table": "payment", + "id": 0, + "declaration": [ + [ + 0, + 0, + "rental", + "rental_id", + null, + "CASCADE", + "SET NULL", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"payment\" c WHERE c.\"rental_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"rental\" p WHERE p.\"rental_id\" = c.\"rental_id\")" + }, + { + "table": "payment", + "id": 1, + "declaration": [ + [ + 1, + 0, + "staff", + "staff_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"payment\" c WHERE c.\"staff_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"staff\" p WHERE p.\"staff_id\" = c.\"staff_id\")" + }, + { + "table": "payment", + "id": 2, + "declaration": [ + [ + 2, + 0, + "customer", + "customer_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"payment\" c WHERE c.\"customer_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"customer_id\" = c.\"customer_id\")" + }, + { + "table": "rental", + "id": 0, + "declaration": [ + [ + 0, + 0, + "staff", + "staff_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rental\" c WHERE c.\"staff_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"staff\" p WHERE p.\"staff_id\" = c.\"staff_id\")" + }, + { + "table": "rental", + "id": 1, + "declaration": [ + [ + 1, + 0, + "customer", + "customer_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rental\" c WHERE c.\"customer_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"customer_id\" = c.\"customer_id\")" + }, + { + "table": "rental", + "id": 2, + "declaration": [ + [ + 2, + 0, + "inventory", + "inventory_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"rental\" c WHERE c.\"inventory_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"inventory\" p WHERE p.\"inventory_id\" = c.\"inventory_id\")" + }, + { + "table": "staff", + "id": 0, + "declaration": [ + [ + 0, + 0, + "store", + "store_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"staff\" c WHERE c.\"store_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"store\" p WHERE p.\"store_id\" = c.\"store_id\")" + }, + { + "table": "staff", + "id": 1, + "declaration": [ + [ + 1, + 0, + "address", + "address_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"staff\" c WHERE c.\"address_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"address\" p WHERE p.\"address_id\" = c.\"address_id\")" + }, + { + "table": "store", + "id": 0, + "declaration": [ + [ + 0, + 0, + "address", + "address_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"store\" c WHERE c.\"address_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"address\" p WHERE p.\"address_id\" = c.\"address_id\")" + }, + { + "table": "store", + "id": 1, + "declaration": [ + [ + 1, + 0, + "staff", + "manager_staff_id", + null, + "CASCADE", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"store\" c WHERE c.\"manager_staff_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"staff\" p WHERE p.\"staff_id\" = c.\"manager_staff_id\")" + } + ], + "sha256": "af79f59f94e64e43fb0bb6a8fdc6e6d3a2017aec9dfcb5519bc840d16e01871f" + }, + "movie_platform": { + "schema": [ + [ + "table", + "lists", + "lists", + "CREATE TABLE \"lists\"\n(\n user_id INTEGER\n references lists_users (user_id),\n list_id INTEGER not null\n primary key,\n list_title TEXT,\n list_movie_number INTEGER,\n list_update_timestamp_utc TEXT,\n list_creation_timestamp_utc TEXT,\n list_followers INTEGER,\n list_url TEXT,\n list_comments INTEGER,\n list_description TEXT,\n list_cover_image_url TEXT,\n list_first_image_url TEXT,\n list_second_image_url TEXT,\n list_third_image_url TEXT\n)" + ], + [ + "table", + "lists_users", + "lists_users", + "CREATE TABLE lists_users\n(\n user_id INTEGER not null ,\n list_id INTEGER not null ,\n list_update_date_utc TEXT,\n list_creation_date_utc TEXT,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_avatar_image_url TEXT,\n user_cover_image_url TEXT,\n user_eligible_for_trial TEXT,\n user_has_payment_method TEXT,\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n)" + ], + [ + "table", + "movies", + "movies", + "CREATE TABLE \"movies\"\n(\n movie_id INTEGER not null\n primary key,\n movie_title TEXT,\n movie_release_year INTEGER,\n movie_url TEXT,\n movie_title_language TEXT,\n movie_popularity INTEGER,\n movie_image_url TEXT,\n director_id TEXT,\n director_name TEXT,\n director_url TEXT\n)" + ], + [ + "table", + "ratings", + "ratings", + "CREATE TABLE ratings\n(\n movie_id INTEGER,\n rating_id INTEGER,\n rating_url TEXT,\n rating_score INTEGER,\n rating_timestamp_utc TEXT,\n critic TEXT,\n critic_likes INTEGER,\n critic_comments INTEGER,\n user_id INTEGER,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_eligible_for_trial INTEGER,\n user_has_payment_method INTEGER,\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n)" + ], + [ + "table", + "ratings_users", + "ratings_users", + "CREATE TABLE \"ratings_users\"\n(\n user_id INTEGER\n references lists_users (user_id),\n rating_date_utc TEXT,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_avatar_image_url TEXT,\n user_cover_image_url TEXT,\n user_eligible_for_trial INTEGER,\n user_has_payment_method INTEGER\n)" + ] + ], + "solver_schema": { + "lists": { + "user_id": "INT", + "list_id": "INT", + "list_title": "VARCHAR", + "list_movie_number": "INT", + "list_update_timestamp_utc": "VARCHAR", + "list_creation_timestamp_utc": "VARCHAR", + "list_followers": "INT", + "list_url": "VARCHAR", + "list_comments": "INT", + "list_description": "VARCHAR", + "list_cover_image_url": "VARCHAR", + "list_first_image_url": "VARCHAR", + "list_second_image_url": "VARCHAR", + "list_third_image_url": "VARCHAR" + }, + "lists_users": { + "user_id": "INT", + "list_id": "INT", + "list_update_date_utc": "VARCHAR", + "list_creation_date_utc": "VARCHAR", + "user_trialist": "INT", + "user_subscriber": "INT", + "user_avatar_image_url": "VARCHAR", + "user_cover_image_url": "VARCHAR", + "user_eligible_for_trial": "VARCHAR", + "user_has_payment_method": "VARCHAR" + }, + "movies": { + "movie_id": "INT", + "movie_title": "VARCHAR", + "movie_release_year": "INT", + "movie_url": "VARCHAR", + "movie_title_language": "VARCHAR", + "movie_popularity": "INT", + "movie_image_url": "VARCHAR", + "director_id": "VARCHAR", + "director_name": "VARCHAR", + "director_url": "VARCHAR" + }, + "ratings": { + "movie_id": "INT", + "rating_id": "INT", + "rating_url": "VARCHAR", + "rating_score": "INT", + "rating_timestamp_utc": "VARCHAR", + "critic": "VARCHAR", + "critic_likes": "INT", + "critic_comments": "INT", + "user_id": "INT", + "user_trialist": "INT", + "user_subscriber": "INT", + "user_eligible_for_trial": "INT", + "user_has_payment_method": "INT" + }, + "ratings_users": { + "user_id": "INT", + "rating_date_utc": "VARCHAR", + "user_trialist": "INT", + "user_subscriber": "INT", + "user_avatar_image_url": "VARCHAR", + "user_cover_image_url": "VARCHAR", + "user_eligible_for_trial": "INT", + "user_has_payment_method": "INT" + } + }, + "policies": [ + { + "table": "lists", + "id": 0, + "declaration": [ + [ + 0, + 0, + "lists_users", + "user_id", + "user_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"lists_users\"" + }, + { + "table": "lists_users", + "id": 0, + "declaration": [ + [ + 0, + 0, + "lists", + "user_id", + "user_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"lists\"" + }, + { + "table": "lists_users", + "id": 1, + "declaration": [ + [ + 1, + 0, + "lists", + "list_id", + "list_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 746, + "query": "SELECT COUNT(*) FROM \"lists_users\" c WHERE c.\"list_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"lists\" p WHERE p.\"list_id\" = c.\"list_id\")" + }, + { + "table": "ratings", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ratings_users", + "user_id", + "user_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"ratings_users\"" + }, + { + "table": "ratings", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ratings", + "rating_id", + "rating_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"ratings\"" + }, + { + "table": "ratings", + "id": 2, + "declaration": [ + [ + 2, + 0, + "lists_users", + "user_id", + "user_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"lists_users\"" + }, + { + "table": "ratings", + "id": 3, + "declaration": [ + [ + 3, + 0, + "movies", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "ratings_users", + "id": 0, + "declaration": [ + [ + 0, + 0, + "lists_users", + "user_id", + "user_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"lists_users\"" + } + ], + "sha256": "cd03bfa8c12445c40f46dcd69811d02fa3df917fbe54f4d886ac0f149c4004a9" + }, + "movielens": { + "schema": [ + [ + "index", + "avg_revenue", + "directors", + "CREATE INDEX avg_revenue\n on directors (avg_revenue)" + ], + [ + "index", + "d_quality", + "directors", + "CREATE INDEX d_quality\n on directors (d_quality)" + ], + [ + "table", + "actors", + "actors", + "CREATE TABLE \"actors\"\n(\n actorid INTEGER not null\n primary key,\n a_gender TEXT not null,\n a_quality INTEGER not null\n)" + ], + [ + "table", + "directors", + "directors", + "CREATE TABLE \"directors\"\n(\n directorid INTEGER not null\n primary key,\n d_quality INTEGER not null,\n avg_revenue INTEGER not null\n)" + ], + [ + "table", + "movies", + "movies", + "CREATE TABLE \"movies\"\n(\n movieid INTEGER default 0 not null\n primary key,\n year INTEGER not null,\n isEnglish TEXT not null,\n country TEXT not null,\n runningtime INTEGER not null\n)" + ], + [ + "table", + "movies2actors", + "movies2actors", + "CREATE TABLE \"movies2actors\"\n(\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n actorid INTEGER not null\n references actors\n on update cascade on delete cascade,\n cast_num INTEGER not null,\n primary key (movieid, actorid)\n)" + ], + [ + "table", + "movies2directors", + "movies2directors", + "CREATE TABLE \"movies2directors\"\n(\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n directorid INTEGER not null\n references directors\n on update cascade on delete cascade,\n genre TEXT not null,\n primary key (movieid, directorid)\n)" + ], + [ + "table", + "u2base", + "u2base", + "CREATE TABLE \"u2base\"\n(\n userid INTEGER default 0 not null\n references users\n on update cascade on delete cascade,\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n rating TEXT not null,\n primary key (userid, movieid)\n)" + ], + [ + "table", + "users", + "users", + "CREATE TABLE users\n(\n userid INTEGER default 0 not null\n primary key,\n age TEXT not null,\n u_gender TEXT not null,\n occupation TEXT not null\n)" + ] + ], + "solver_schema": { + "actors": { + "actorid": "INT", + "a_gender": "VARCHAR", + "a_quality": "INT" + }, + "directors": { + "directorid": "INT", + "d_quality": "INT", + "avg_revenue": "INT" + }, + "movies": { + "movieid": "INT", + "year": "INT", + "isEnglish": "VARCHAR", + "country": "VARCHAR", + "runningtime": "INT" + }, + "movies2actors": { + "movieid": "INT", + "actorid": "INT", + "cast_num": "INT" + }, + "movies2directors": { + "movieid": "INT", + "directorid": "INT", + "genre": "VARCHAR" + }, + "u2base": { + "userid": "INT", + "movieid": "INT", + "rating": "VARCHAR" + }, + "users": { + "userid": "INT", + "age": "VARCHAR", + "u_gender": "VARCHAR", + "occupation": "VARCHAR" + } + }, + "policies": [ + { + "table": "movies2actors", + "id": 0, + "declaration": [ + [ + 0, + 0, + "actors", + "actorid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movies2actors\" c WHERE c.\"actorid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"actors\" p WHERE p.\"actorid\" = c.\"actorid\")" + }, + { + "table": "movies2actors", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movies", + "movieid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movies2actors\" c WHERE c.\"movieid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movies\" p WHERE p.\"movieid\" = c.\"movieid\")" + }, + { + "table": "movies2directors", + "id": 0, + "declaration": [ + [ + 0, + 0, + "directors", + "directorid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movies2directors\" c WHERE c.\"directorid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"directors\" p WHERE p.\"directorid\" = c.\"directorid\")" + }, + { + "table": "movies2directors", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movies", + "movieid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movies2directors\" c WHERE c.\"movieid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movies\" p WHERE p.\"movieid\" = c.\"movieid\")" + }, + { + "table": "u2base", + "id": 0, + "declaration": [ + [ + 0, + 0, + "movies", + "movieid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"u2base\" c WHERE c.\"movieid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movies\" p WHERE p.\"movieid\" = c.\"movieid\")" + }, + { + "table": "u2base", + "id": 1, + "declaration": [ + [ + 1, + 0, + "users", + "userid", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"u2base\" c WHERE c.\"userid\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"users\" p WHERE p.\"userid\" = c.\"userid\")" + } + ], + "sha256": "7c0f4f556f28e787eef6ed52ad2745f05124302c9405a977643ceb5f190ee431" + }, + "movies_4": { + "schema": [ + [ + "table", + "country", + "country", + "CREATE TABLE country\n(\n country_id INTEGER not null\n primary key,\n country_iso_code TEXT default NULL,\n country_name TEXT default NULL\n)" + ], + [ + "table", + "department", + "department", + "CREATE TABLE department\n(\n department_id INTEGER not null\n primary key,\n department_name TEXT default NULL\n)" + ], + [ + "table", + "gender", + "gender", + "CREATE TABLE gender\n(\n gender_id INTEGER not null\n primary key,\n gender TEXT default NULL\n)" + ], + [ + "table", + "genre", + "genre", + "CREATE TABLE genre\n(\n genre_id INTEGER not null\n primary key,\n genre_name TEXT default NULL\n)" + ], + [ + "table", + "keyword", + "keyword", + "CREATE TABLE keyword\n(\n keyword_id INTEGER not null\n primary key,\n keyword_name TEXT default NULL\n)" + ], + [ + "table", + "language", + "language", + "CREATE TABLE language\n(\n language_id INTEGER not null\n primary key,\n language_code TEXT default NULL,\n language_name TEXT default NULL\n)" + ], + [ + "table", + "language_role", + "language_role", + "CREATE TABLE language_role\n(\n role_id INTEGER not null\n primary key,\n language_role TEXT default NULL\n)" + ], + [ + "table", + "movie", + "movie", + "CREATE TABLE movie\n(\n movie_id INTEGER not null\n primary key,\n title TEXT default NULL,\n budget INTEGER default NULL,\n homepage TEXT default NULL,\n overview TEXT default NULL,\n popularity REAL default NULL,\n release_date DATE default NULL,\n revenue INTEGER default NULL,\n runtime INTEGER default NULL,\n movie_status TEXT default NULL,\n tagline TEXT default NULL,\n vote_average REAL default NULL,\n vote_count INTEGER default NULL\n)" + ], + [ + "table", + "movie_cast", + "movie_cast", + "CREATE TABLE movie_cast\n(\n movie_id INTEGER default NULL,\n person_id INTEGER default NULL,\n character_name TEXT default NULL,\n gender_id INTEGER default NULL,\n cast_order INTEGER default NULL,\n foreign key (gender_id) references gender(gender_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n)" + ], + [ + "table", + "movie_company", + "movie_company", + "CREATE TABLE \"movie_company\"\n(\n movie_id INTEGER default NULL\n references movie,\n company_id INTEGER default NULL\n references production_company\n)" + ], + [ + "table", + "movie_crew", + "movie_crew", + "CREATE TABLE movie_crew\n(\n movie_id INTEGER default NULL,\n person_id INTEGER default NULL,\n department_id INTEGER default NULL,\n job TEXT default NULL,\n foreign key (department_id) references department(department_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n)" + ], + [ + "table", + "movie_genres", + "movie_genres", + "CREATE TABLE movie_genres\n(\n movie_id INTEGER default NULL,\n genre_id INTEGER default NULL,\n foreign key (genre_id) references genre(genre_id),\n foreign key (movie_id) references movie(movie_id)\n)" + ], + [ + "table", + "movie_keywords", + "movie_keywords", + "CREATE TABLE \"movie_keywords\"\n(\n movie_id INTEGER default NULL\n references movie,\n keyword_id INTEGER default NULL\n references keyword\n)" + ], + [ + "table", + "movie_languages", + "movie_languages", + "CREATE TABLE movie_languages\n(\n movie_id INTEGER default NULL,\n language_id INTEGER default NULL,\n language_role_id INTEGER default NULL,\n foreign key (language_id) references language(language_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (language_role_id) references language_role(role_id)\n)" + ], + [ + "table", + "person", + "person", + "CREATE TABLE person\n(\n person_id INTEGER not null\n primary key,\n person_name TEXT default NULL\n)" + ], + [ + "table", + "production_company", + "production_company", + "CREATE TABLE production_company\n(\n company_id INTEGER not null\n primary key,\n company_name TEXT default NULL\n)" + ], + [ + "table", + "production_country", + "production_country", + "CREATE TABLE production_country\n(\n movie_id INTEGER default NULL,\n country_id INTEGER default NULL,\n foreign key (country_id) references country(country_id),\n foreign key (movie_id) references movie(movie_id)\n)" + ] + ], + "solver_schema": { + "country": { + "country_id": "INT", + "country_iso_code": "VARCHAR", + "country_name": "VARCHAR" + }, + "department": { + "department_id": "INT", + "department_name": "VARCHAR" + }, + "gender": { + "gender_id": "INT", + "gender": "VARCHAR" + }, + "genre": { + "genre_id": "INT", + "genre_name": "VARCHAR" + }, + "keyword": { + "keyword_id": "INT", + "keyword_name": "VARCHAR" + }, + "language": { + "language_id": "INT", + "language_code": "VARCHAR", + "language_name": "VARCHAR" + }, + "language_role": { + "role_id": "INT", + "language_role": "VARCHAR" + }, + "movie": { + "movie_id": "INT", + "title": "VARCHAR", + "budget": "INT", + "homepage": "VARCHAR", + "overview": "VARCHAR", + "popularity": "REAL", + "release_date": "REAL", + "revenue": "INT", + "runtime": "INT", + "movie_status": "VARCHAR", + "tagline": "VARCHAR", + "vote_average": "REAL", + "vote_count": "INT" + }, + "movie_cast": { + "movie_id": "INT", + "person_id": "INT", + "character_name": "VARCHAR", + "gender_id": "INT", + "cast_order": "INT" + }, + "movie_company": { + "movie_id": "INT", + "company_id": "INT" + }, + "movie_crew": { + "movie_id": "INT", + "person_id": "INT", + "department_id": "INT", + "job": "VARCHAR" + }, + "movie_genres": { + "movie_id": "INT", + "genre_id": "INT" + }, + "movie_keywords": { + "movie_id": "INT", + "keyword_id": "INT" + }, + "movie_languages": { + "movie_id": "INT", + "language_id": "INT", + "language_role_id": "INT" + }, + "person": { + "person_id": "INT", + "person_name": "VARCHAR" + }, + "production_company": { + "company_id": "INT", + "company_name": "VARCHAR" + }, + "production_country": { + "movie_id": "INT", + "country_id": "INT" + } + }, + "policies": [ + { + "table": "movie_cast", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "person_id", + "person_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 3, + "query": "SELECT COUNT(*) FROM \"movie_cast\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"person_id\" = c.\"person_id\")" + }, + { + "table": "movie_cast", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movie", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 43, + "query": "SELECT COUNT(*) FROM \"movie_cast\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_cast", + "id": 2, + "declaration": [ + [ + 2, + 0, + "gender", + "gender_id", + "gender_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_cast\" c WHERE c.\"gender_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"gender\" p WHERE p.\"gender_id\" = c.\"gender_id\")" + }, + { + "table": "movie_company", + "id": 0, + "declaration": [ + [ + 0, + 0, + "production_company", + "company_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_company\" c WHERE c.\"company_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"production_company\" p WHERE p.\"company_id\" = c.\"company_id\")" + }, + { + "table": "movie_company", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movie", + "movie_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 363, + "query": "SELECT COUNT(*) FROM \"movie_company\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_crew", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "person_id", + "person_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 3, + "query": "SELECT COUNT(*) FROM \"movie_crew\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"person_id\" = c.\"person_id\")" + }, + { + "table": "movie_crew", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movie", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 3223, + "query": "SELECT COUNT(*) FROM \"movie_crew\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_crew", + "id": 2, + "declaration": [ + [ + 2, + 0, + "department", + "department_id", + "department_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_crew\" c WHERE c.\"department_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"department\" p WHERE p.\"department_id\" = c.\"department_id\")" + }, + { + "table": "movie_genres", + "id": 0, + "declaration": [ + [ + 0, + 0, + "movie", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 360, + "query": "SELECT COUNT(*) FROM \"movie_genres\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_genres", + "id": 1, + "declaration": [ + [ + 1, + 0, + "genre", + "genre_id", + "genre_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_genres\" c WHERE c.\"genre_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"genre\" p WHERE p.\"genre_id\" = c.\"genre_id\")" + }, + { + "table": "movie_keywords", + "id": 0, + "declaration": [ + [ + 0, + 0, + "keyword", + "keyword_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_keywords\" c WHERE c.\"keyword_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"keyword\" p WHERE p.\"keyword_id\" = c.\"keyword_id\")" + }, + { + "table": "movie_keywords", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movie", + "movie_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 677, + "query": "SELECT COUNT(*) FROM \"movie_keywords\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_languages", + "id": 0, + "declaration": [ + [ + 0, + 0, + "language_role", + "language_role_id", + "role_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_languages\" c WHERE c.\"language_role_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"language_role\" p WHERE p.\"role_id\" = c.\"language_role_id\")" + }, + { + "table": "movie_languages", + "id": 1, + "declaration": [ + [ + 1, + 0, + "movie", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 369, + "query": "SELECT COUNT(*) FROM \"movie_languages\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "movie_languages", + "id": 2, + "declaration": [ + [ + 2, + 0, + "language", + "language_id", + "language_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"movie_languages\" c WHERE c.\"language_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"language\" p WHERE p.\"language_id\" = c.\"language_id\")" + }, + { + "table": "production_country", + "id": 0, + "declaration": [ + [ + 0, + 0, + "movie", + "movie_id", + "movie_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 188, + "query": "SELECT COUNT(*) FROM \"production_country\" c WHERE c.\"movie_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"movie\" p WHERE p.\"movie_id\" = c.\"movie_id\")" + }, + { + "table": "production_country", + "id": 1, + "declaration": [ + [ + 1, + 0, + "country", + "country_id", + "country_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"production_country\" c WHERE c.\"country_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"country_id\" = c.\"country_id\")" + } + ], + "sha256": "65bdaa5265e5d84fc97cc22eb977bff86755c7d07f2f607d7bb3d9e36046afcd" + }, + "music_platform_2": { + "schema": [ + [ + "index", + "category_podcast_id_idx", + "categories", + "CREATE INDEX category_podcast_id_idx\n on categories (podcast_id)" + ], + [ + "table", + "categories", + "categories", + "CREATE TABLE \"categories\"\n(\n podcast_id TEXT not null\n constraint categories_podcasts_podcast_id_fk\n references podcasts,\n category TEXT not null,\n constraint \"PRIMARY\"\n primary key (podcast_id, category)\n)" + ], + [ + "table", + "podcasts", + "podcasts", + "CREATE TABLE podcasts (\n podcast_id text primary key,\n itunes_id integer not null,\n slug text not null,\n itunes_url text not null,\n title text not null\n )" + ], + [ + "table", + "reviews", + "reviews", + "CREATE TABLE \"reviews\"\n(\n podcast_id TEXT not null\n constraint reviews_podcasts_podcast_id_fk\n references podcasts,\n title TEXT not null,\n content TEXT not null,\n rating INTEGER not null,\n author_id TEXT not null,\n created_at TEXT not null\n)" + ], + [ + "table", + "runs", + "runs", + "CREATE TABLE runs (\n run_at text not null,\n max_rowid integer not null,\n reviews_added integer not null\n )" + ] + ], + "solver_schema": { + "categories": { + "podcast_id": "VARCHAR", + "category": "VARCHAR" + }, + "podcasts": { + "podcast_id": "VARCHAR", + "itunes_id": "INT", + "slug": "VARCHAR", + "itunes_url": "VARCHAR", + "title": "VARCHAR" + }, + "reviews": { + "podcast_id": "VARCHAR", + "title": "VARCHAR", + "content": "VARCHAR", + "rating": "INT", + "author_id": "VARCHAR", + "created_at": "VARCHAR" + }, + "runs": { + "run_at": "VARCHAR", + "max_rowid": "INT", + "reviews_added": "INT" + } + }, + "policies": [ + { + "table": "categories", + "id": 0, + "declaration": [ + [ + 0, + 0, + "podcasts", + "podcast_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"categories\" c WHERE c.\"podcast_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"podcasts\" p WHERE p.\"podcast_id\" = c.\"podcast_id\")" + }, + { + "table": "reviews", + "id": 0, + "declaration": [ + [ + 0, + 0, + "podcasts", + "podcast_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 24647, + "query": "SELECT COUNT(*) FROM \"reviews\" c WHERE c.\"podcast_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"podcasts\" p WHERE p.\"podcast_id\" = c.\"podcast_id\")" + } + ], + "sha256": "5267beadeb3928665704da6b5f265400b4821988404666ce337b35203a8f9a09" + }, + "music_tracker": { + "schema": [ + [ + "index", + "ix_tags_index", + "tags", + "CREATE INDEX ix_tags_index\n on tags (\"index\")" + ], + [ + "table", + "tags", + "tags", + "CREATE TABLE \"tags\"\n(\n \"index\" INTEGER\n constraint tags_pk\n primary key,\n id INTEGER\n constraint tags_torrents_id_fk\n references torrents,\n tag TEXT\n)" + ], + [ + "table", + "torrents", + "torrents", + "CREATE TABLE \"torrents\"\n(\n groupName TEXT,\n totalSnatched INTEGER,\n artist TEXT,\n groupYear INTEGER,\n releaseType TEXT,\n groupId INTEGER,\n id INTEGER\n constraint torrents_pk\n primary key\n)" + ] + ], + "solver_schema": { + "tags": { + "index": "INT", + "id": "INT", + "tag": "VARCHAR" + }, + "torrents": { + "groupName": "VARCHAR", + "totalSnatched": "INT", + "artist": "VARCHAR", + "groupYear": "INT", + "releaseType": "VARCHAR", + "groupId": "INT", + "id": "INT" + } + }, + "policies": [ + { + "table": "tags", + "id": 0, + "declaration": [ + [ + 0, + 0, + "torrents", + "id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"tags\" c WHERE c.\"id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"torrents\" p WHERE p.\"id\" = c.\"id\")" + } + ], + "sha256": "7c2444428e987218e2ce0655e489448dac95cec1225ba965183f09961034038f" + }, + "olympics": { + "schema": [ + [ + "table", + "city", + "city", + "CREATE TABLE city\n(\n id INTEGER not null\n primary key,\n city_name TEXT default NULL\n)" + ], + [ + "table", + "competitor_event", + "competitor_event", + "CREATE TABLE competitor_event\n(\n event_id INTEGER default NULL,\n competitor_id INTEGER default NULL,\n medal_id INTEGER default NULL,\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n)" + ], + [ + "table", + "event", + "event", + "CREATE TABLE event\n(\n id INTEGER not null\n primary key,\n sport_id INTEGER default NULL,\n event_name TEXT default NULL,\n foreign key (sport_id) references sport(id)\n)" + ], + [ + "table", + "games", + "games", + "CREATE TABLE games\n(\n id INTEGER not null\n primary key,\n games_year INTEGER default NULL,\n games_name TEXT default NULL,\n season TEXT default NULL\n)" + ], + [ + "table", + "games_city", + "games_city", + "CREATE TABLE games_city\n(\n games_id INTEGER default NULL,\n city_id INTEGER default NULL,\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n)" + ], + [ + "table", + "games_competitor", + "games_competitor", + "CREATE TABLE games_competitor\n(\n id INTEGER not null\n primary key,\n games_id INTEGER default NULL,\n person_id INTEGER default NULL,\n age INTEGER default NULL,\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n)" + ], + [ + "table", + "medal", + "medal", + "CREATE TABLE medal\n(\n id INTEGER not null\n primary key,\n medal_name TEXT default NULL\n)" + ], + [ + "table", + "noc_region", + "noc_region", + "CREATE TABLE noc_region\n(\n id INTEGER not null\n primary key,\n noc TEXT default NULL,\n region_name TEXT default NULL\n)" + ], + [ + "table", + "person", + "person", + "CREATE TABLE person\n(\n id INTEGER not null\n primary key,\n full_name TEXT default NULL,\n gender TEXT default NULL,\n height INTEGER default NULL,\n weight INTEGER default NULL\n)" + ], + [ + "table", + "person_region", + "person_region", + "CREATE TABLE person_region\n(\n person_id INTEGER default NULL,\n region_id INTEGER default NULL,\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n)" + ], + [ + "table", + "sport", + "sport", + "CREATE TABLE sport\n(\n id INTEGER not null\n primary key,\n sport_name TEXT default NULL\n)" + ] + ], + "solver_schema": { + "city": { + "id": "INT", + "city_name": "VARCHAR" + }, + "competitor_event": { + "event_id": "INT", + "competitor_id": "INT", + "medal_id": "INT" + }, + "event": { + "id": "INT", + "sport_id": "INT", + "event_name": "VARCHAR" + }, + "games": { + "id": "INT", + "games_year": "INT", + "games_name": "VARCHAR", + "season": "VARCHAR" + }, + "games_city": { + "games_id": "INT", + "city_id": "INT" + }, + "games_competitor": { + "id": "INT", + "games_id": "INT", + "person_id": "INT", + "age": "INT" + }, + "medal": { + "id": "INT", + "medal_name": "VARCHAR" + }, + "noc_region": { + "id": "INT", + "noc": "VARCHAR", + "region_name": "VARCHAR" + }, + "person": { + "id": "INT", + "full_name": "VARCHAR", + "gender": "VARCHAR", + "height": "INT", + "weight": "INT" + }, + "person_region": { + "person_id": "INT", + "region_id": "INT" + }, + "sport": { + "id": "INT", + "sport_name": "VARCHAR" + } + }, + "policies": [ + { + "table": "competitor_event", + "id": 0, + "declaration": [ + [ + 0, + 0, + "medal", + "medal_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"competitor_event\" c WHERE c.\"medal_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"medal\" p WHERE p.\"id\" = c.\"medal_id\")" + }, + { + "table": "competitor_event", + "id": 1, + "declaration": [ + [ + 1, + 0, + "event", + "event_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"competitor_event\" c WHERE c.\"event_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"event\" p WHERE p.\"id\" = c.\"event_id\")" + }, + { + "table": "competitor_event", + "id": 2, + "declaration": [ + [ + 2, + 0, + "games_competitor", + "competitor_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"competitor_event\" c WHERE c.\"competitor_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"games_competitor\" p WHERE p.\"id\" = c.\"competitor_id\")" + }, + { + "table": "event", + "id": 0, + "declaration": [ + [ + 0, + 0, + "sport", + "sport_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"event\" c WHERE c.\"sport_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"sport\" p WHERE p.\"id\" = c.\"sport_id\")" + }, + { + "table": "games_city", + "id": 0, + "declaration": [ + [ + 0, + 0, + "games", + "games_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"games_city\" c WHERE c.\"games_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"games\" p WHERE p.\"id\" = c.\"games_id\")" + }, + { + "table": "games_city", + "id": 1, + "declaration": [ + [ + 1, + 0, + "city", + "city_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"games_city\" c WHERE c.\"city_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"id\" = c.\"city_id\")" + }, + { + "table": "games_competitor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "person_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"games_competitor\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"id\" = c.\"person_id\")" + }, + { + "table": "games_competitor", + "id": 1, + "declaration": [ + [ + 1, + 0, + "games", + "games_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"games_competitor\" c WHERE c.\"games_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"games\" p WHERE p.\"id\" = c.\"games_id\")" + }, + { + "table": "person_region", + "id": 0, + "declaration": [ + [ + 0, + 0, + "noc_region", + "region_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"person_region\" c WHERE c.\"region_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"noc_region\" p WHERE p.\"id\" = c.\"region_id\")" + }, + { + "table": "person_region", + "id": 1, + "declaration": [ + [ + 1, + 0, + "person", + "person_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"person_region\" c WHERE c.\"person_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"id\" = c.\"person_id\")" + } + ], + "sha256": "c34a94838914a78f62c2989b729907aa9f58cd45b93567ab211a8a840957e074" + }, + "professional_basketball": { + "schema": [ + [ + "table", + "awards_coaches", + "awards_coaches", + "CREATE TABLE \"awards_coaches\"\n(\n id INTEGER\n primary key autoincrement,\n year INTEGER,\n coachID TEXT,\n award TEXT,\n lgID TEXT,\n note TEXT,\n foreign key (coachID, year) references coaches (coachID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "awards_players", + "awards_players", + "CREATE TABLE awards_players\n(\n playerID TEXT not null,\n award TEXT not null,\n year INTEGER not null,\n lgID TEXT null,\n note TEXT null,\n pos TEXT null,\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "coaches", + "coaches", + "CREATE TABLE coaches\n(\n coachID TEXT not null,\n year INTEGER not null,\n tmID TEXT not null,\n lgID TEXT null,\n stint INTEGER not null,\n won INTEGER null,\n lost INTEGER null,\n post_wins INTEGER null,\n post_losses INTEGER null,\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "draft", + "draft", + "CREATE TABLE draft\n(\n id INTEGER default 0 not null\n primary key,\n draftYear INTEGER null,\n draftRound INTEGER null,\n draftSelection INTEGER null,\n draftOverall INTEGER null,\n tmID TEXT null,\n firstName TEXT null,\n lastName TEXT null,\n suffixName TEXT null,\n playerID TEXT null,\n draftFrom TEXT null,\n lgID TEXT null,\n foreign key (tmID, draftYear) references teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "player_allstar", + "player_allstar", + "CREATE TABLE player_allstar\n(\n playerID TEXT not null,\n last_name TEXT null,\n first_name TEXT null,\n season_id INTEGER not null,\n conference TEXT null,\n league_id TEXT null,\n games_played INTEGER null,\n minutes INTEGER null,\n points INTEGER null,\n o_rebounds INTEGER null,\n d_rebounds INTEGER null,\n rebounds INTEGER null,\n assists INTEGER null,\n steals INTEGER null,\n blocks INTEGER null,\n turnovers INTEGER null,\n personal_fouls INTEGER null,\n fg_attempted INTEGER null,\n fg_made INTEGER null,\n ft_attempted INTEGER null,\n ft_made INTEGER null,\n three_attempted INTEGER null,\n three_made INTEGER null,\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "players", + "players", + "CREATE TABLE players\n(\n playerID TEXT not null\n primary key,\n useFirst TEXT null,\n firstName TEXT null,\n middleName TEXT null,\n lastName TEXT null,\n nameGiven TEXT null,\n fullGivenName TEXT null,\n nameSuffix TEXT null,\n nameNick TEXT null,\n pos TEXT null,\n firstseason INTEGER null,\n lastseason INTEGER null,\n height REAL null,\n weight INTEGER null,\n college TEXT null,\n collegeOther TEXT null,\n birthDate DATE null,\n birthCity TEXT null,\n birthState TEXT null,\n birthCountry TEXT null,\n highSchool TEXT null,\n hsCity TEXT null,\n hsState TEXT null,\n hsCountry TEXT null,\n deathDate DATE null,\n race TEXT null\n)" + ], + [ + "table", + "players_teams", + "players_teams", + "CREATE TABLE \"players_teams\"\n(\n id INTEGER\n primary key autoincrement,\n playerID TEXT not null\n references players\n on update cascade on delete cascade,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n lgID TEXT,\n GP INTEGER,\n GS INTEGER,\n minutes INTEGER,\n points INTEGER,\n oRebounds INTEGER,\n dRebounds INTEGER,\n rebounds INTEGER,\n assists INTEGER,\n steals INTEGER,\n blocks INTEGER,\n turnovers INTEGER,\n PF INTEGER,\n fgAttempted INTEGER,\n fgMade INTEGER,\n ftAttempted INTEGER,\n ftMade INTEGER,\n threeAttempted INTEGER,\n threeMade INTEGER,\n PostGP INTEGER,\n PostGS INTEGER,\n PostMinutes INTEGER,\n PostPoints INTEGER,\n PostoRebounds INTEGER,\n PostdRebounds INTEGER,\n PostRebounds INTEGER,\n PostAssists INTEGER,\n PostSteals INTEGER,\n PostBlocks INTEGER,\n PostTurnovers INTEGER,\n PostPF INTEGER,\n PostfgAttempted INTEGER,\n PostfgMade INTEGER,\n PostftAttempted INTEGER,\n PostftMade INTEGER,\n PostthreeAttempted INTEGER,\n PostthreeMade INTEGER,\n note TEXT,\n foreign key (tmID, year) references teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "series_post", + "series_post", + "CREATE TABLE \"series_post\"\n(\n id INTEGER\n primary key autoincrement,\n year INTEGER,\n round TEXT,\n series TEXT,\n tmIDWinner TEXT,\n lgIDWinner TEXT,\n tmIDLoser TEXT,\n lgIDLoser TEXT,\n W INTEGER,\n L INTEGER,\n foreign key (tmIDWinner, year) references teams (tmID, year)\n on update cascade on delete cascade,\n foreign key (tmIDLoser, year) references teams (tmID, year)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "teams", + "teams", + "CREATE TABLE teams\n(\n year INTEGER not null,\n lgID TEXT null,\n tmID TEXT not null,\n franchID TEXT null,\n confID TEXT null,\n divID TEXT null,\n `rank` INTEGER null,\n confRank INTEGER null,\n playoff TEXT null,\n name TEXT null,\n o_fgm INTEGER null,\n-- o_fga int null,\n o_ftm INTEGER null,\n-- o_fta int null,\n-- o_3pm int null,\n-- o_3pa int null,\n-- o_oreb int null,\n-- o_dreb int null,\n-- o_reb int null,\n-- o_asts int null,\n-- o_pf int null,\n-- o_stl int null,\n-- o_to int null,\n-- o_blk int null,\n o_pts INTEGER null,\n-- d_fgm int null,\n-- d_fga int null,\n-- d_ftm int null,\n-- d_fta int null,\n-- d_3pm int null,\n-- d_3pa int null,\n-- d_oreb int null,\n-- d_dreb int null,\n-- d_reb int null,\n-- d_asts int null,\n-- d_pf int null,\n-- d_stl int null,\n-- d_to int null,\n-- d_blk int null,\n d_pts INTEGER null,\n-- o_tmRebound int null,\n-- d_tmRebound int null,\n homeWon INTEGER null,\n homeLost INTEGER null,\n awayWon INTEGER null,\n awayLost INTEGER null,\n-- neutWon int null,\n-- neutLoss int null,\n-- confWon int null,\n-- confLoss int null,\n-- divWon int null,\n-- divLoss int null,\n-- pace int null,\n won INTEGER null,\n lost INTEGER null,\n games INTEGER null,\n-- min int null,\n arena TEXT null,\n-- attendance int null,\n-- bbtmID varchar(255) null,\n primary key (year, tmID)\n)" + ] + ], + "solver_schema": { + "awards_coaches": { + "id": "INT", + "year": "INT", + "coachID": "VARCHAR", + "award": "VARCHAR", + "lgID": "VARCHAR", + "note": "VARCHAR" + }, + "awards_players": { + "playerID": "VARCHAR", + "award": "VARCHAR", + "year": "INT", + "lgID": "VARCHAR", + "note": "VARCHAR", + "pos": "VARCHAR" + }, + "coaches": { + "coachID": "VARCHAR", + "year": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "stint": "INT", + "won": "INT", + "lost": "INT", + "post_wins": "INT", + "post_losses": "INT" + }, + "draft": { + "id": "INT", + "draftYear": "INT", + "draftRound": "INT", + "draftSelection": "INT", + "draftOverall": "INT", + "tmID": "VARCHAR", + "firstName": "VARCHAR", + "lastName": "VARCHAR", + "suffixName": "VARCHAR", + "playerID": "VARCHAR", + "draftFrom": "VARCHAR", + "lgID": "VARCHAR" + }, + "player_allstar": { + "playerID": "VARCHAR", + "last_name": "VARCHAR", + "first_name": "VARCHAR", + "season_id": "INT", + "conference": "VARCHAR", + "league_id": "VARCHAR", + "games_played": "INT", + "minutes": "INT", + "points": "INT", + "o_rebounds": "INT", + "d_rebounds": "INT", + "rebounds": "INT", + "assists": "INT", + "steals": "INT", + "blocks": "INT", + "turnovers": "INT", + "personal_fouls": "INT", + "fg_attempted": "INT", + "fg_made": "INT", + "ft_attempted": "INT", + "ft_made": "INT", + "three_attempted": "INT", + "three_made": "INT" + }, + "players": { + "playerID": "VARCHAR", + "useFirst": "VARCHAR", + "firstName": "VARCHAR", + "middleName": "VARCHAR", + "lastName": "VARCHAR", + "nameGiven": "VARCHAR", + "fullGivenName": "VARCHAR", + "nameSuffix": "VARCHAR", + "nameNick": "VARCHAR", + "pos": "VARCHAR", + "firstseason": "INT", + "lastseason": "INT", + "height": "REAL", + "weight": "INT", + "college": "VARCHAR", + "collegeOther": "VARCHAR", + "birthDate": "REAL", + "birthCity": "VARCHAR", + "birthState": "VARCHAR", + "birthCountry": "VARCHAR", + "highSchool": "VARCHAR", + "hsCity": "VARCHAR", + "hsState": "VARCHAR", + "hsCountry": "VARCHAR", + "deathDate": "REAL", + "race": "VARCHAR" + }, + "players_teams": { + "id": "INT", + "playerID": "VARCHAR", + "year": "INT", + "stint": "INT", + "tmID": "VARCHAR", + "lgID": "VARCHAR", + "GP": "INT", + "GS": "INT", + "minutes": "INT", + "points": "INT", + "oRebounds": "INT", + "dRebounds": "INT", + "rebounds": "INT", + "assists": "INT", + "steals": "INT", + "blocks": "INT", + "turnovers": "INT", + "PF": "INT", + "fgAttempted": "INT", + "fgMade": "INT", + "ftAttempted": "INT", + "ftMade": "INT", + "threeAttempted": "INT", + "threeMade": "INT", + "PostGP": "INT", + "PostGS": "INT", + "PostMinutes": "INT", + "PostPoints": "INT", + "PostoRebounds": "INT", + "PostdRebounds": "INT", + "PostRebounds": "INT", + "PostAssists": "INT", + "PostSteals": "INT", + "PostBlocks": "INT", + "PostTurnovers": "INT", + "PostPF": "INT", + "PostfgAttempted": "INT", + "PostfgMade": "INT", + "PostftAttempted": "INT", + "PostftMade": "INT", + "PostthreeAttempted": "INT", + "PostthreeMade": "INT", + "note": "VARCHAR" + }, + "series_post": { + "id": "INT", + "year": "INT", + "round": "VARCHAR", + "series": "VARCHAR", + "tmIDWinner": "VARCHAR", + "lgIDWinner": "VARCHAR", + "tmIDLoser": "VARCHAR", + "lgIDLoser": "VARCHAR", + "W": "INT", + "L": "INT" + }, + "teams": { + "year": "INT", + "lgID": "VARCHAR", + "tmID": "VARCHAR", + "franchID": "VARCHAR", + "confID": "VARCHAR", + "divID": "VARCHAR", + "rank": "INT", + "confRank": "INT", + "playoff": "VARCHAR", + "name": "VARCHAR", + "o_fgm": "INT", + "o_ftm": "INT", + "o_pts": "INT", + "d_pts": "INT", + "homeWon": "INT", + "homeLost": "INT", + "awayWon": "INT", + "awayLost": "INT", + "won": "INT", + "lost": "INT", + "games": "INT", + "arena": "VARCHAR" + } + }, + "policies": [ + { + "table": "awards_coaches", + "id": 0, + "declaration": [ + [ + 0, + 0, + "coaches", + "coachID", + "coachID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "coaches", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"coaches\"" + }, + { + "table": "awards_players", + "id": 0, + "declaration": [ + [ + 0, + 0, + "players", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"awards_players\" c WHERE c.\"playerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"players\" p WHERE p.\"playerID\" = c.\"playerID\")" + }, + { + "table": "coaches", + "id": 0, + "declaration": [ + [ + 0, + 0, + "teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"coaches\" c WHERE c.\"tmID\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"teams\" p WHERE p.\"tmID\" = c.\"tmID\" AND p.\"year\" = c.\"year\")" + }, + { + "table": "draft", + "id": 0, + "declaration": [ + [ + 0, + 0, + "teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "teams", + "draftYear", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"draft\" c WHERE c.\"tmID\" IS NOT NULL AND c.\"draftYear\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"teams\" p WHERE p.\"tmID\" = c.\"tmID\" AND p.\"year\" = c.\"draftYear\")" + }, + { + "table": "player_allstar", + "id": 0, + "declaration": [ + [ + 0, + 0, + "players", + "playerID", + "playerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"player_allstar\" c WHERE c.\"playerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"players\" p WHERE p.\"playerID\" = c.\"playerID\")" + }, + { + "table": "players_teams", + "id": 0, + "declaration": [ + [ + 0, + 0, + "teams", + "tmID", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"players_teams\" c WHERE c.\"tmID\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"teams\" p WHERE p.\"tmID\" = c.\"tmID\" AND p.\"year\" = c.\"year\")" + }, + { + "table": "players_teams", + "id": 1, + "declaration": [ + [ + 1, + 0, + "players", + "playerID", + null, + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"players_teams\" c WHERE c.\"playerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"players\" p WHERE p.\"playerID\" = c.\"playerID\")" + }, + { + "table": "series_post", + "id": 0, + "declaration": [ + [ + 0, + 0, + "teams", + "tmIDLoser", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"series_post\" c WHERE c.\"tmIDLoser\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"teams\" p WHERE p.\"tmID\" = c.\"tmIDLoser\" AND p.\"year\" = c.\"year\")" + }, + { + "table": "series_post", + "id": 1, + "declaration": [ + [ + 1, + 0, + "teams", + "tmIDWinner", + "tmID", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 1, + 1, + "teams", + "year", + "year", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"series_post\" c WHERE c.\"tmIDWinner\" IS NOT NULL AND c.\"year\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"teams\" p WHERE p.\"tmID\" = c.\"tmIDWinner\" AND p.\"year\" = c.\"year\")" + } + ], + "sha256": "11bc18807f9209e4fae852695907c77961a208639e25b59def05802c9f0b8839" + }, + "public_review_platform": { + "schema": [ + [ + "table", + "Attributes", + "Attributes", + "CREATE TABLE Attributes\n(\n attribute_id INTEGER\n constraint Attributes_pk\n primary key,\n attribute_name TEXT\n)" + ], + [ + "table", + "Business", + "Business", + "CREATE TABLE \"Business\"\n(\n business_id INTEGER\n constraint Business_pk\n primary key,\n active TEXT,\n city TEXT,\n state TEXT,\n stars REAL,\n review_count TEXT\n)" + ], + [ + "table", + "Business_Attributes", + "Business_Attributes", + "CREATE TABLE \"Business_Attributes\"\n(\n attribute_id INTEGER\n constraint Business_Attributes_Attributes_attribute_id_fk\n references Attributes,\n business_id INTEGER\n constraint Business_Attributes_Business_business_id_fk\n references Business,\n attribute_value TEXT,\n constraint Business_Attributes_pk\n primary key (attribute_id, business_id)\n)" + ], + [ + "table", + "Business_Categories", + "Business_Categories", + "CREATE TABLE \"Business_Categories\"\n(\n business_id INTEGER\n constraint Business_Categories_Business_business_id_fk\n references Business,\n category_id INTEGER\n constraint Business_Categories_Categories_category_id_fk\n references Categories,\n constraint Business_Categories_pk\n primary key (business_id, category_id)\n)" + ], + [ + "table", + "Business_Hours", + "Business_Hours", + "CREATE TABLE \"Business_Hours\"\n(\n business_id INTEGER\n constraint Business_Hours_Business_business_id_fk\n references Business,\n day_id INTEGER\n constraint Business_Hours_Days_day_id_fk\n references Days,\n opening_time TEXT,\n closing_time TEXT,\n constraint Business_Hours_pk\n primary key (business_id, day_id)\n)" + ], + [ + "table", + "Categories", + "Categories", + "CREATE TABLE Categories\n(\n category_id INTEGER\n constraint Categories_pk\n primary key,\n category_name TEXT\n)" + ], + [ + "table", + "Checkins", + "Checkins", + "CREATE TABLE \"Checkins\"\n(\n business_id INTEGER\n constraint Checkins_Business_business_id_fk\n references Business,\n day_id INTEGER\n constraint Checkins_Days_day_id_fk\n references Days,\n label_time_0 TEXT,\n label_time_1 TEXT,\n label_time_2 TEXT,\n label_time_3 TEXT,\n label_time_4 TEXT,\n label_time_5 TEXT,\n label_time_6 TEXT,\n label_time_7 TEXT,\n label_time_8 TEXT,\n label_time_9 TEXT,\n label_time_10 TEXT,\n label_time_11 TEXT,\n label_time_12 TEXT,\n label_time_13 TEXT,\n label_time_14 TEXT,\n label_time_15 TEXT,\n label_time_16 TEXT,\n label_time_17 TEXT,\n label_time_18 TEXT,\n label_time_19 TEXT,\n label_time_20 TEXT,\n label_time_21 TEXT,\n label_time_22 TEXT,\n label_time_23 TEXT,\n constraint Checkins_pk\n primary key (business_id, day_id)\n)" + ], + [ + "table", + "Compliments", + "Compliments", + "CREATE TABLE Compliments\n(\n compliment_id INTEGER\n constraint Compliments_pk\n primary key,\n compliment_type TEXT\n)" + ], + [ + "table", + "Days", + "Days", + "CREATE TABLE Days\n(\n day_id INTEGER\n constraint Days_pk\n primary key,\n day_of_week TEXT\n)" + ], + [ + "table", + "Elite", + "Elite", + "CREATE TABLE \"Elite\"\n(\n user_id INTEGER\n constraint Elite_Users_user_id_fk\n references Users,\n year_id INTEGER\n constraint Elite_Years_year_id_fk\n references Years,\n constraint Elite_pk\n primary key (user_id, year_id)\n)" + ], + [ + "table", + "Reviews", + "Reviews", + "CREATE TABLE \"Reviews\"\n(\n business_id INTEGER\n constraint Reviews_Business_business_id_fk\n references Business,\n user_id INTEGER\n constraint Reviews_Users_user_id_fk\n references Users,\n review_stars INTEGER,\n review_votes_funny TEXT,\n review_votes_useful TEXT,\n review_votes_cool TEXT,\n review_length TEXT,\n constraint Reviews_pk\n primary key (business_id, user_id)\n)" + ], + [ + "table", + "Tips", + "Tips", + "CREATE TABLE \"Tips\"\n(\n business_id INTEGER\n constraint Tips_Business_business_id_fk\n references Business,\n user_id INTEGER\n constraint Tips_Users_user_id_fk\n references Users,\n likes INTEGER,\n tip_length TEXT,\n constraint Tips_pk\n primary key (business_id, user_id)\n)" + ], + [ + "table", + "Users", + "Users", + "CREATE TABLE \"Users\"\n(\n user_id INTEGER\n constraint Users_pk\n primary key,\n user_yelping_since_year INTEGER,\n user_average_stars TEXT,\n user_votes_funny TEXT,\n user_votes_useful TEXT,\n user_votes_cool TEXT,\n user_review_count TEXT,\n user_fans TEXT\n)" + ], + [ + "table", + "Users_Compliments", + "Users_Compliments", + "CREATE TABLE \"Users_Compliments\"\n(\n compliment_id INTEGER\n constraint Users_Compliments_Compliments_compliment_id_fk\n references Compliments,\n user_id INTEGER\n constraint Users_Compliments_Users_user_id_fk\n references Users,\n number_of_compliments TEXT,\n constraint Users_Compliments_pk\n primary key (compliment_id, user_id)\n)" + ], + [ + "table", + "Years", + "Years", + "CREATE TABLE Years\n(\n year_id INTEGER\n constraint Years_pk\n primary key,\n actual_year INTEGER\n)" + ] + ], + "solver_schema": { + "Attributes": { + "attribute_id": "INT", + "attribute_name": "VARCHAR" + }, + "Business": { + "business_id": "INT", + "active": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "stars": "REAL", + "review_count": "VARCHAR" + }, + "Business_Attributes": { + "attribute_id": "INT", + "business_id": "INT", + "attribute_value": "VARCHAR" + }, + "Business_Categories": { + "business_id": "INT", + "category_id": "INT" + }, + "Business_Hours": { + "business_id": "INT", + "day_id": "INT", + "opening_time": "VARCHAR", + "closing_time": "VARCHAR" + }, + "Categories": { + "category_id": "INT", + "category_name": "VARCHAR" + }, + "Checkins": { + "business_id": "INT", + "day_id": "INT", + "label_time_0": "VARCHAR", + "label_time_1": "VARCHAR", + "label_time_2": "VARCHAR", + "label_time_3": "VARCHAR", + "label_time_4": "VARCHAR", + "label_time_5": "VARCHAR", + "label_time_6": "VARCHAR", + "label_time_7": "VARCHAR", + "label_time_8": "VARCHAR", + "label_time_9": "VARCHAR", + "label_time_10": "VARCHAR", + "label_time_11": "VARCHAR", + "label_time_12": "VARCHAR", + "label_time_13": "VARCHAR", + "label_time_14": "VARCHAR", + "label_time_15": "VARCHAR", + "label_time_16": "VARCHAR", + "label_time_17": "VARCHAR", + "label_time_18": "VARCHAR", + "label_time_19": "VARCHAR", + "label_time_20": "VARCHAR", + "label_time_21": "VARCHAR", + "label_time_22": "VARCHAR", + "label_time_23": "VARCHAR" + }, + "Compliments": { + "compliment_id": "INT", + "compliment_type": "VARCHAR" + }, + "Days": { + "day_id": "INT", + "day_of_week": "VARCHAR" + }, + "Elite": { + "user_id": "INT", + "year_id": "INT" + }, + "Reviews": { + "business_id": "INT", + "user_id": "INT", + "review_stars": "INT", + "review_votes_funny": "VARCHAR", + "review_votes_useful": "VARCHAR", + "review_votes_cool": "VARCHAR", + "review_length": "VARCHAR" + }, + "Tips": { + "business_id": "INT", + "user_id": "INT", + "likes": "INT", + "tip_length": "VARCHAR" + }, + "Users": { + "user_id": "INT", + "user_yelping_since_year": "INT", + "user_average_stars": "VARCHAR", + "user_votes_funny": "VARCHAR", + "user_votes_useful": "VARCHAR", + "user_votes_cool": "VARCHAR", + "user_review_count": "VARCHAR", + "user_fans": "VARCHAR" + }, + "Users_Compliments": { + "compliment_id": "INT", + "user_id": "INT", + "number_of_compliments": "VARCHAR" + }, + "Years": { + "year_id": "INT", + "actual_year": "INT" + } + }, + "policies": [ + { + "table": "Business_Attributes", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Attributes\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Business_Attributes", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Attributes", + "attribute_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Attributes\" c WHERE c.\"attribute_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Attributes\" p WHERE p.\"attribute_id\" = c.\"attribute_id\")" + }, + { + "table": "Business_Categories", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Categories", + "category_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Categories\" c WHERE c.\"category_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Categories\" p WHERE p.\"category_id\" = c.\"category_id\")" + }, + { + "table": "Business_Categories", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Categories\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Business_Hours", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Days", + "day_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Hours\" c WHERE c.\"day_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Days\" p WHERE p.\"day_id\" = c.\"day_id\")" + }, + { + "table": "Business_Hours", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Business_Hours\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Checkins", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Days", + "day_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Checkins\" c WHERE c.\"day_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Days\" p WHERE p.\"day_id\" = c.\"day_id\")" + }, + { + "table": "Checkins", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Checkins\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Elite", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Years", + "year_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Elite\" c WHERE c.\"year_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Years\" p WHERE p.\"year_id\" = c.\"year_id\")" + }, + { + "table": "Elite", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Users", + "user_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Elite\" c WHERE c.\"user_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Users\" p WHERE p.\"user_id\" = c.\"user_id\")" + }, + { + "table": "Reviews", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Users", + "user_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Reviews\" c WHERE c.\"user_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Users\" p WHERE p.\"user_id\" = c.\"user_id\")" + }, + { + "table": "Reviews", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Reviews\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Tips", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Users", + "user_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Tips\" c WHERE c.\"user_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Users\" p WHERE p.\"user_id\" = c.\"user_id\")" + }, + { + "table": "Tips", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Business", + "business_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Tips\" c WHERE c.\"business_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Business\" p WHERE p.\"business_id\" = c.\"business_id\")" + }, + { + "table": "Users_Compliments", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Users", + "user_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Users_Compliments\" c WHERE c.\"user_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Users\" p WHERE p.\"user_id\" = c.\"user_id\")" + }, + { + "table": "Users_Compliments", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Compliments", + "compliment_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Users_Compliments\" c WHERE c.\"compliment_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Compliments\" p WHERE p.\"compliment_id\" = c.\"compliment_id\")" + } + ], + "sha256": "d87fa4bbcb2d5daec149330d5c47378b2c669222e616bfe2c04cc3624e7ad4ba" + }, + "regional_sales": { + "schema": [ + [ + "table", + "Customers", + "Customers", + "CREATE TABLE Customers\n(\n CustomerID INTEGER\n constraint Customers_pk\n primary key,\n \"Customer Names\" TEXT\n)" + ], + [ + "table", + "Products", + "Products", + "CREATE TABLE Products\n(\n ProductID INTEGER\n constraint Products_pk\n primary key,\n \"Product Name\" TEXT\n)" + ], + [ + "table", + "Regions", + "Regions", + "CREATE TABLE Regions\n(\n StateCode TEXT\n constraint Regions_pk\n primary key,\n State TEXT,\n Region TEXT\n)" + ], + [ + "table", + "Sales Orders", + "Sales Orders", + "CREATE TABLE \"Sales Orders\"\n(\n OrderNumber TEXT\n constraint \"Sales Orders_pk\"\n primary key,\n \"Sales Channel\" TEXT,\n WarehouseCode TEXT,\n ProcuredDate TEXT,\n OrderDate TEXT,\n ShipDate TEXT,\n DeliveryDate TEXT,\n CurrencyCode TEXT,\n _SalesTeamID INTEGER\n constraint \"Sales Orders_Sales Team_SalesTeamID_fk\"\n references \"Sales Team\"(SalesTeamID),\n _CustomerID INTEGER\n constraint \"Sales Orders_Customers_CustomerID_fk\"\n references Customers(CustomerID),\n _StoreID INTEGER\n constraint \"Sales Orders_Store Locations_StoreID_fk\"\n references \"Store Locations\"(StoreID),\n _ProductID INTEGER\n constraint \"Sales Orders_Products_ProductID_fk\"\n references Products(ProductID),\n \"Order Quantity\" INTEGER,\n \"Discount Applied\" REAL,\n \"Unit Price\" TEXT,\n \"Unit Cost\" TEXT\n)" + ], + [ + "table", + "Sales Team", + "Sales Team", + "CREATE TABLE \"Sales Team\"\n(\n SalesTeamID INTEGER\n constraint \"Sales Team_pk\"\n primary key,\n \"Sales Team\" TEXT,\n Region TEXT\n)" + ], + [ + "table", + "Store Locations", + "Store Locations", + "CREATE TABLE \"Store Locations\"\n(\n StoreID INTEGER\n constraint \"Store Locations_pk\"\n primary key,\n \"City Name\" TEXT,\n County TEXT,\n StateCode TEXT\n constraint \"Store Locations_Regions_StateCode_fk\"\n references Regions(StateCode),\n State TEXT,\n Type TEXT,\n Latitude REAL,\n Longitude REAL,\n AreaCode INTEGER,\n Population INTEGER,\n \"Household Income\" INTEGER,\n \"Median Income\" INTEGER,\n \"Land Area\" INTEGER,\n \"Water Area\" INTEGER,\n \"Time Zone\" TEXT\n)" + ] + ], + "solver_schema": { + "Customers": { + "CustomerID": "INT", + "Customer Names": "VARCHAR" + }, + "Products": { + "ProductID": "INT", + "Product Name": "VARCHAR" + }, + "Regions": { + "StateCode": "VARCHAR", + "State": "VARCHAR", + "Region": "VARCHAR" + }, + "Sales Orders": { + "OrderNumber": "VARCHAR", + "Sales Channel": "VARCHAR", + "WarehouseCode": "VARCHAR", + "ProcuredDate": "VARCHAR", + "OrderDate": "VARCHAR", + "ShipDate": "VARCHAR", + "DeliveryDate": "VARCHAR", + "CurrencyCode": "VARCHAR", + "_SalesTeamID": "INT", + "_CustomerID": "INT", + "_StoreID": "INT", + "_ProductID": "INT", + "Order Quantity": "INT", + "Discount Applied": "REAL", + "Unit Price": "VARCHAR", + "Unit Cost": "VARCHAR" + }, + "Sales Team": { + "SalesTeamID": "INT", + "Sales Team": "VARCHAR", + "Region": "VARCHAR" + }, + "Store Locations": { + "StoreID": "INT", + "City Name": "VARCHAR", + "County": "VARCHAR", + "StateCode": "VARCHAR", + "State": "VARCHAR", + "Type": "VARCHAR", + "Latitude": "REAL", + "Longitude": "REAL", + "AreaCode": "INT", + "Population": "INT", + "Household Income": "INT", + "Median Income": "INT", + "Land Area": "INT", + "Water Area": "INT", + "Time Zone": "VARCHAR" + } + }, + "policies": [ + { + "table": "Sales Orders", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Products", + "_ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales Orders\" c WHERE c.\"_ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Products\" p WHERE p.\"ProductID\" = c.\"_ProductID\")" + }, + { + "table": "Sales Orders", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Store Locations", + "_StoreID", + "StoreID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales Orders\" c WHERE c.\"_StoreID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Store Locations\" p WHERE p.\"StoreID\" = c.\"_StoreID\")" + }, + { + "table": "Sales Orders", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Customers", + "_CustomerID", + "CustomerID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales Orders\" c WHERE c.\"_CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customers\" p WHERE p.\"CustomerID\" = c.\"_CustomerID\")" + }, + { + "table": "Sales Orders", + "id": 3, + "declaration": [ + [ + 3, + 0, + "Sales Team", + "_SalesTeamID", + "SalesTeamID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales Orders\" c WHERE c.\"_SalesTeamID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Sales Team\" p WHERE p.\"SalesTeamID\" = c.\"_SalesTeamID\")" + }, + { + "table": "Store Locations", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Regions", + "StateCode", + "StateCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Store Locations\" c WHERE c.\"StateCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Regions\" p WHERE p.\"StateCode\" = c.\"StateCode\")" + } + ], + "sha256": "9820888505c30dfd913738265ddb9150bf1c33a93e1b236313964ada98423a0c" + }, + "restaurant": { + "schema": [ + [ + "table", + "generalinfo", + "generalinfo", + "CREATE TABLE generalinfo\n(\n id_restaurant INTEGER not null\n primary key,\n label TEXT null,\n food_type TEXT null,\n city TEXT null,\n review REAL null,\n foreign key (city) references geographic(city)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "geographic", + "geographic", + "CREATE TABLE geographic\n(\n city TEXT not null\n primary key,\n county TEXT null,\n region TEXT null\n)" + ], + [ + "table", + "location", + "location", + "CREATE TABLE location\n(\n id_restaurant INTEGER not null\n primary key,\n street_num INTEGER null,\n street_name TEXT null,\n city TEXT null,\n foreign key (city) references geographic (city)\n on update cascade on delete cascade,\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n on update cascade on delete cascade\n)" + ] + ], + "solver_schema": { + "generalinfo": { + "id_restaurant": "INT", + "label": "VARCHAR", + "food_type": "VARCHAR", + "city": "VARCHAR", + "review": "REAL" + }, + "geographic": { + "city": "VARCHAR", + "county": "VARCHAR", + "region": "VARCHAR" + }, + "location": { + "id_restaurant": "INT", + "street_num": "INT", + "street_name": "VARCHAR", + "city": "VARCHAR" + } + }, + "policies": [ + { + "table": "generalinfo", + "id": 0, + "declaration": [ + [ + 0, + 0, + "geographic", + "city", + "city", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"generalinfo\" c WHERE c.\"city\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"geographic\" p WHERE p.\"city\" = c.\"city\")" + }, + { + "table": "location", + "id": 0, + "declaration": [ + [ + 0, + 0, + "generalinfo", + "id_restaurant", + "id_restaurant", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"location\" c WHERE c.\"id_restaurant\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"generalinfo\" p WHERE p.\"id_restaurant\" = c.\"id_restaurant\")" + }, + { + "table": "location", + "id": 1, + "declaration": [ + [ + 1, + 0, + "geographic", + "city", + "city", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"location\" c WHERE c.\"city\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"geographic\" p WHERE p.\"city\" = c.\"city\")" + } + ], + "sha256": "39dbaf39bf244e1062e50d3be9dfd952320bd12e8471a58ae93db6ff83d57504" + }, + "retail_complains": { + "schema": [ + [ + "table", + "callcenterlogs", + "callcenterlogs", + "CREATE TABLE callcenterlogs\n(\n \"Date received\" DATE,\n \"Complaint ID\" TEXT,\n \"rand client\" TEXT,\n phonefinal TEXT,\n \"vru+line\" TEXT,\n call_id INTEGER,\n priority INTEGER,\n type TEXT,\n outcome TEXT,\n server TEXT,\n ser_start TEXT,\n ser_exit TEXT,\n ser_time TEXT,\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n)" + ], + [ + "table", + "client", + "client", + "CREATE TABLE client\n(\n client_id TEXT\n primary key,\n sex TEXT,\n day INTEGER,\n month INTEGER,\n year INTEGER,\n age INTEGER,\n social TEXT,\n first TEXT,\n middle TEXT,\n last TEXT,\n phone TEXT,\n email TEXT,\n address_1 TEXT,\n address_2 TEXT,\n city TEXT,\n state TEXT,\n zipcode INTEGER,\n district_id INTEGER,\n foreign key (district_id) references district(district_id)\n)" + ], + [ + "table", + "district", + "district", + "CREATE TABLE district\n(\n district_id INTEGER\n primary key,\n city TEXT,\n state_abbrev TEXT,\n division TEXT,\n foreign key (state_abbrev) references state(StateCode)\n)" + ], + [ + "table", + "events", + "events", + "CREATE TABLE events\n(\n \"Date received\" DATE,\n Product TEXT,\n \"Sub-product\" TEXT,\n Issue TEXT,\n \"Sub-issue\" TEXT,\n \"Consumer complaint narrative\" TEXT,\n Tags TEXT,\n \"Consumer consent provided?\" TEXT,\n \"Submitted via\" TEXT,\n \"Date sent to company\" TEXT,\n \"Company response to consumer\" TEXT,\n \"Timely response?\" TEXT,\n \"Consumer disputed?\" TEXT,\n \"Complaint ID\" TEXT,\n Client_ID TEXT,\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n)" + ], + [ + "table", + "reviews", + "reviews", + "CREATE TABLE reviews\n(\n \"Date\" DATE\n primary key,\n Stars INTEGER,\n Reviews TEXT,\n Product TEXT,\n district_id INTEGER,\n foreign key (district_id) references district(district_id)\n)" + ], + [ + "table", + "state", + "state", + "CREATE TABLE state\n(\n StateCode TEXT\n constraint state_pk\n primary key,\n State TEXT,\n Region TEXT\n)" + ] + ], + "solver_schema": { + "callcenterlogs": { + "Date received": "REAL", + "Complaint ID": "VARCHAR", + "rand client": "VARCHAR", + "phonefinal": "VARCHAR", + "vru+line": "VARCHAR", + "call_id": "INT", + "priority": "INT", + "type": "VARCHAR", + "outcome": "VARCHAR", + "server": "VARCHAR", + "ser_start": "VARCHAR", + "ser_exit": "VARCHAR", + "ser_time": "VARCHAR" + }, + "client": { + "client_id": "VARCHAR", + "sex": "VARCHAR", + "day": "INT", + "month": "INT", + "year": "INT", + "age": "INT", + "social": "VARCHAR", + "first": "VARCHAR", + "middle": "VARCHAR", + "last": "VARCHAR", + "phone": "VARCHAR", + "email": "VARCHAR", + "address_1": "VARCHAR", + "address_2": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zipcode": "INT", + "district_id": "INT" + }, + "district": { + "district_id": "INT", + "city": "VARCHAR", + "state_abbrev": "VARCHAR", + "division": "VARCHAR" + }, + "events": { + "Date received": "REAL", + "Product": "VARCHAR", + "Sub-product": "VARCHAR", + "Issue": "VARCHAR", + "Sub-issue": "VARCHAR", + "Consumer complaint narrative": "VARCHAR", + "Tags": "VARCHAR", + "Consumer consent provided?": "VARCHAR", + "Submitted via": "VARCHAR", + "Date sent to company": "VARCHAR", + "Company response to consumer": "VARCHAR", + "Timely response?": "VARCHAR", + "Consumer disputed?": "VARCHAR", + "Complaint ID": "VARCHAR", + "Client_ID": "VARCHAR" + }, + "reviews": { + "Date": "REAL", + "Stars": "INT", + "Reviews": "VARCHAR", + "Product": "VARCHAR", + "district_id": "INT" + }, + "state": { + "StateCode": "VARCHAR", + "State": "VARCHAR", + "Region": "VARCHAR" + } + }, + "policies": [ + { + "table": "callcenterlogs", + "id": 0, + "declaration": [ + [ + 0, + 0, + "client", + "rand client", + "client_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"callcenterlogs\" c WHERE c.\"rand client\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"client\" p WHERE p.\"client_id\" = c.\"rand client\")" + }, + { + "table": "client", + "id": 0, + "declaration": [ + [ + 0, + 0, + "district", + "district_id", + "district_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"client\" c WHERE c.\"district_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"district\" p WHERE p.\"district_id\" = c.\"district_id\")" + }, + { + "table": "district", + "id": 0, + "declaration": [ + [ + 0, + 0, + "state", + "state_abbrev", + "StateCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 3, + "query": "SELECT COUNT(*) FROM \"district\" c WHERE c.\"state_abbrev\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"state\" p WHERE p.\"StateCode\" = c.\"state_abbrev\")" + }, + { + "table": "events", + "id": 0, + "declaration": [ + [ + 0, + 0, + "client", + "Client_ID", + "client_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"events\" c WHERE c.\"Client_ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"client\" p WHERE p.\"client_id\" = c.\"Client_ID\")" + }, + { + "table": "events", + "id": 1, + "declaration": [ + [ + 1, + 0, + "callcenterlogs", + "Complaint ID", + "Complaint ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 20915, + "query": "SELECT COUNT(*) FROM \"events\" c WHERE c.\"Complaint ID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"callcenterlogs\" p WHERE p.\"Complaint ID\" = c.\"Complaint ID\")" + }, + { + "table": "reviews", + "id": 0, + "declaration": [ + [ + 0, + 0, + "district", + "district_id", + "district_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"reviews\" c WHERE c.\"district_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"district\" p WHERE p.\"district_id\" = c.\"district_id\")" + } + ], + "sha256": "03dce545a321d5564f5ac1ccd123bd5948c90ef7b56253fea534e11235cbe8bc" + }, + "retail_world": { + "schema": [ + [ + "table", + "Categories", + "Categories", + "CREATE TABLE Categories\n(\n CategoryID INTEGER PRIMARY KEY AUTOINCREMENT,\n CategoryName TEXT,\n Description TEXT\n)" + ], + [ + "table", + "Customers", + "Customers", + "CREATE TABLE Customers\n(\n CustomerID INTEGER PRIMARY KEY AUTOINCREMENT,\n CustomerName TEXT,\n ContactName TEXT,\n Address TEXT,\n City TEXT,\n PostalCode TEXT,\n Country TEXT\n)" + ], + [ + "table", + "Employees", + "Employees", + "CREATE TABLE Employees\n(\n EmployeeID INTEGER PRIMARY KEY AUTOINCREMENT,\n LastName TEXT,\n FirstName TEXT,\n BirthDate DATE,\n Photo TEXT,\n Notes TEXT\n)" + ], + [ + "table", + "OrderDetails", + "OrderDetails", + "CREATE TABLE OrderDetails(\n OrderDetailID INTEGER PRIMARY KEY AUTOINCREMENT,\n OrderID INTEGER,\n ProductID INTEGER,\n Quantity INTEGER,\n\tFOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n\tFOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n)" + ], + [ + "table", + "Orders", + "Orders", + "CREATE TABLE Orders(\n OrderID INTEGER PRIMARY KEY AUTOINCREMENT,\n CustomerID INTEGER,\n EmployeeID INTEGER,\n OrderDate DATETIME,\n ShipperID INTEGER,\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n)" + ], + [ + "table", + "Products", + "Products", + "CREATE TABLE Products(\n ProductID INTEGER PRIMARY KEY AUTOINCREMENT,\n ProductName TEXT,\n SupplierID INTEGER,\n CategoryID INTEGER,\n Unit TEXT,\n Price REAL DEFAULT 0,\n\tFOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n\tFOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n)" + ], + [ + "table", + "Shippers", + "Shippers", + "CREATE TABLE Shippers(\n ShipperID INTEGER PRIMARY KEY AUTOINCREMENT,\n ShipperName TEXT,\n Phone TEXT\n)" + ], + [ + "table", + "Suppliers", + "Suppliers", + "CREATE TABLE Suppliers(\n SupplierID INTEGER PRIMARY KEY AUTOINCREMENT,\n SupplierName TEXT,\n ContactName TEXT,\n Address TEXT,\n City TEXT,\n PostalCode TEXT,\n Country TEXT,\n Phone TEXT\n)" + ] + ], + "solver_schema": { + "Categories": { + "CategoryID": "INT", + "CategoryName": "VARCHAR", + "Description": "VARCHAR" + }, + "Customers": { + "CustomerID": "INT", + "CustomerName": "VARCHAR", + "ContactName": "VARCHAR", + "Address": "VARCHAR", + "City": "VARCHAR", + "PostalCode": "VARCHAR", + "Country": "VARCHAR" + }, + "Employees": { + "EmployeeID": "INT", + "LastName": "VARCHAR", + "FirstName": "VARCHAR", + "BirthDate": "REAL", + "Photo": "VARCHAR", + "Notes": "VARCHAR" + }, + "OrderDetails": { + "OrderDetailID": "INT", + "OrderID": "INT", + "ProductID": "INT", + "Quantity": "INT" + }, + "Orders": { + "OrderID": "INT", + "CustomerID": "INT", + "EmployeeID": "INT", + "OrderDate": "REAL", + "ShipperID": "INT" + }, + "Products": { + "ProductID": "INT", + "ProductName": "VARCHAR", + "SupplierID": "INT", + "CategoryID": "INT", + "Unit": "VARCHAR", + "Price": "REAL" + }, + "Shippers": { + "ShipperID": "INT", + "ShipperName": "VARCHAR", + "Phone": "VARCHAR" + }, + "Suppliers": { + "SupplierID": "INT", + "SupplierName": "VARCHAR", + "ContactName": "VARCHAR", + "Address": "VARCHAR", + "City": "VARCHAR", + "PostalCode": "VARCHAR", + "Country": "VARCHAR", + "Phone": "VARCHAR" + } + }, + "policies": [ + { + "table": "OrderDetails", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Products", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"OrderDetails\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Products\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "OrderDetails", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Orders", + "OrderID", + "OrderID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"OrderDetails\" c WHERE c.\"OrderID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Orders\" p WHERE p.\"OrderID\" = c.\"OrderID\")" + }, + { + "table": "Orders", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Shippers", + "ShipperID", + "ShipperID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Orders\" c WHERE c.\"ShipperID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Shippers\" p WHERE p.\"ShipperID\" = c.\"ShipperID\")" + }, + { + "table": "Orders", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Customers", + "CustomerID", + "CustomerID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Orders\" c WHERE c.\"CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customers\" p WHERE p.\"CustomerID\" = c.\"CustomerID\")" + }, + { + "table": "Orders", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Employees", + "EmployeeID", + "EmployeeID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Orders\" c WHERE c.\"EmployeeID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employees\" p WHERE p.\"EmployeeID\" = c.\"EmployeeID\")" + }, + { + "table": "Products", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Suppliers", + "SupplierID", + "SupplierID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Products\" c WHERE c.\"SupplierID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Suppliers\" p WHERE p.\"SupplierID\" = c.\"SupplierID\")" + }, + { + "table": "Products", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Categories", + "CategoryID", + "CategoryID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Products\" c WHERE c.\"CategoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Categories\" p WHERE p.\"CategoryID\" = c.\"CategoryID\")" + } + ], + "sha256": "90ac33a038f95e9f2fae7ed4782b3bbe5e65ee94b7df5422915a745419f77d33" + }, + "retails": { + "schema": [ + [ + "table", + "customer", + "customer", + "CREATE TABLE `customer` (\n `c_custkey` INTEGER NOT NULL,\n `c_mktsegment` TEXT DEFAULT NULL,\n `c_nationkey` INTEGER DEFAULT NULL,\n `c_name` TEXT DEFAULT NULL,\n `c_address` TEXT DEFAULT NULL,\n `c_phone` TEXT DEFAULT NULL,\n `c_acctbal` REAL DEFAULT NULL,\n `c_comment` TEXT DEFAULT NULL,\n PRIMARY KEY (`c_custkey`),\n FOREIGN KEY (`c_nationkey`) REFERENCES `nation` (`n_nationkey`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "lineitem", + "lineitem", + "CREATE TABLE lineitem\n(\n l_shipdate DATE null,\n l_orderkey INTEGER not null,\n l_discount REAL not null,\n l_extendedprice REAL not null,\n l_suppkey INTEGER not null,\n l_quantity INTEGER not null,\n l_returnflag TEXT null,\n l_partkey INTEGER not null,\n l_linestatus TEXT null,\n l_tax REAL not null,\n l_commitdate DATE null,\n l_receiptdate DATE null,\n l_shipmode TEXT null,\n l_linenumber INTEGER not null,\n l_shipinstruct TEXT null,\n l_comment TEXT null,\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n on update cascade on delete cascade,\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "nation", + "nation", + "CREATE TABLE nation\n(\n n_nationkey INTEGER not null\n primary key,\n n_name TEXT null,\n n_regionkey INTEGER null,\n n_comment TEXT null,\n foreign key (n_regionkey) references region (r_regionkey)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "orders", + "orders", + "CREATE TABLE orders\n(\n o_orderdate DATE null,\n o_orderkey INTEGER not null\n primary key,\n o_custkey INTEGER not null,\n o_orderpriority TEXT null,\n o_shippriority INTEGER null,\n o_clerk TEXT null,\n o_orderstatus TEXT null,\n o_totalprice REAL null,\n o_comment TEXT null,\n foreign key (o_custkey) references customer (c_custkey)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "part", + "part", + "CREATE TABLE part\n(\n p_partkey INTEGER not null\n primary key,\n p_type TEXT null,\n p_size INTEGER null,\n p_brand TEXT null,\n p_name TEXT null,\n p_container TEXT null,\n p_mfgr TEXT null,\n p_retailprice REAL null,\n p_comment TEXT null\n)" + ], + [ + "table", + "partsupp", + "partsupp", + "CREATE TABLE partsupp\n(\n ps_partkey INTEGER not null,\n ps_suppkey INTEGER not null,\n ps_supplycost REAL not null,\n ps_availqty INTEGER null,\n ps_comment TEXT null,\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n on update cascade on delete cascade,\n foreign key (ps_suppkey) references supplier (s_suppkey)\n on update cascade on delete cascade\n)" + ], + [ + "table", + "region", + "region", + "CREATE TABLE region\n(\n r_regionkey INTEGER not null\n primary key,\n r_name TEXT null,\n r_comment TEXT null\n)" + ], + [ + "table", + "supplier", + "supplier", + "CREATE TABLE supplier\n(\n s_suppkey INTEGER not null\n primary key,\n s_nationkey INTEGER null,\n s_comment TEXT null,\n s_name TEXT null,\n s_address TEXT null,\n s_phone TEXT null,\n s_acctbal REAL null,\n foreign key (s_nationkey) references nation (n_nationkey)\n)" + ] + ], + "solver_schema": { + "customer": { + "c_custkey": "INT", + "c_mktsegment": "VARCHAR", + "c_nationkey": "INT", + "c_name": "VARCHAR", + "c_address": "VARCHAR", + "c_phone": "VARCHAR", + "c_acctbal": "REAL", + "c_comment": "VARCHAR" + }, + "lineitem": { + "l_shipdate": "REAL", + "l_orderkey": "INT", + "l_discount": "REAL", + "l_extendedprice": "REAL", + "l_suppkey": "INT", + "l_quantity": "INT", + "l_returnflag": "VARCHAR", + "l_partkey": "INT", + "l_linestatus": "VARCHAR", + "l_tax": "REAL", + "l_commitdate": "REAL", + "l_receiptdate": "REAL", + "l_shipmode": "VARCHAR", + "l_linenumber": "INT", + "l_shipinstruct": "VARCHAR", + "l_comment": "VARCHAR" + }, + "nation": { + "n_nationkey": "INT", + "n_name": "VARCHAR", + "n_regionkey": "INT", + "n_comment": "VARCHAR" + }, + "orders": { + "o_orderdate": "REAL", + "o_orderkey": "INT", + "o_custkey": "INT", + "o_orderpriority": "VARCHAR", + "o_shippriority": "INT", + "o_clerk": "VARCHAR", + "o_orderstatus": "VARCHAR", + "o_totalprice": "REAL", + "o_comment": "VARCHAR" + }, + "part": { + "p_partkey": "INT", + "p_type": "VARCHAR", + "p_size": "INT", + "p_brand": "VARCHAR", + "p_name": "VARCHAR", + "p_container": "VARCHAR", + "p_mfgr": "VARCHAR", + "p_retailprice": "REAL", + "p_comment": "VARCHAR" + }, + "partsupp": { + "ps_partkey": "INT", + "ps_suppkey": "INT", + "ps_supplycost": "REAL", + "ps_availqty": "INT", + "ps_comment": "VARCHAR" + }, + "region": { + "r_regionkey": "INT", + "r_name": "VARCHAR", + "r_comment": "VARCHAR" + }, + "supplier": { + "s_suppkey": "INT", + "s_nationkey": "INT", + "s_comment": "VARCHAR", + "s_name": "VARCHAR", + "s_address": "VARCHAR", + "s_phone": "VARCHAR", + "s_acctbal": "REAL" + } + }, + "policies": [ + { + "table": "customer", + "id": 0, + "declaration": [ + [ + 0, + 0, + "nation", + "c_nationkey", + "n_nationkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"customer\" c WHERE c.\"c_nationkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"nation\" p WHERE p.\"n_nationkey\" = c.\"c_nationkey\")" + }, + { + "table": "lineitem", + "id": 0, + "declaration": [ + [ + 0, + 0, + "partsupp", + "l_partkey", + "ps_partkey", + "CASCADE", + "CASCADE", + "NONE" + ], + [ + 0, + 1, + "partsupp", + "l_suppkey", + "ps_suppkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"lineitem\" c WHERE c.\"l_partkey\" IS NOT NULL AND c.\"l_suppkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"partsupp\" p WHERE p.\"ps_partkey\" = c.\"l_partkey\" AND p.\"ps_suppkey\" = c.\"l_suppkey\")" + }, + { + "table": "lineitem", + "id": 1, + "declaration": [ + [ + 1, + 0, + "orders", + "l_orderkey", + "o_orderkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"lineitem\" c WHERE c.\"l_orderkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"orders\" p WHERE p.\"o_orderkey\" = c.\"l_orderkey\")" + }, + { + "table": "nation", + "id": 0, + "declaration": [ + [ + 0, + 0, + "region", + "n_regionkey", + "r_regionkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"nation\" c WHERE c.\"n_regionkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"region\" p WHERE p.\"r_regionkey\" = c.\"n_regionkey\")" + }, + { + "table": "orders", + "id": 0, + "declaration": [ + [ + 0, + 0, + "customer", + "o_custkey", + "c_custkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"orders\" c WHERE c.\"o_custkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"c_custkey\" = c.\"o_custkey\")" + }, + { + "table": "partsupp", + "id": 0, + "declaration": [ + [ + 0, + 0, + "supplier", + "ps_suppkey", + "s_suppkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"partsupp\" c WHERE c.\"ps_suppkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"supplier\" p WHERE p.\"s_suppkey\" = c.\"ps_suppkey\")" + }, + { + "table": "partsupp", + "id": 1, + "declaration": [ + [ + 1, + 0, + "part", + "ps_partkey", + "p_partkey", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"partsupp\" c WHERE c.\"ps_partkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"part\" p WHERE p.\"p_partkey\" = c.\"ps_partkey\")" + }, + { + "table": "supplier", + "id": 0, + "declaration": [ + [ + 0, + 0, + "nation", + "s_nationkey", + "n_nationkey", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"supplier\" c WHERE c.\"s_nationkey\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"nation\" p WHERE p.\"n_nationkey\" = c.\"s_nationkey\")" + } + ], + "sha256": "2021fa97598a34216fbdbe604817c7d5bfdb15819da55aabdbd68ab04e4e3d78" + }, + "sales": { + "schema": [ + [ + "table", + "Customers", + "Customers", + "CREATE TABLE Customers\n(\n CustomerID INTEGER not null\n primary key,\n FirstName TEXT not null,\n MiddleInitial TEXT null,\n LastName TEXT not null\n)" + ], + [ + "table", + "Employees", + "Employees", + "CREATE TABLE Employees\n(\n EmployeeID INTEGER not null\n primary key,\n FirstName TEXT not null,\n MiddleInitial TEXT null,\n LastName TEXT not null\n)" + ], + [ + "table", + "Products", + "Products", + "CREATE TABLE Products\n(\n ProductID INTEGER not null\n primary key,\n Name TEXT not null,\n Price REAL null\n)" + ], + [ + "table", + "Sales", + "Sales", + "CREATE TABLE Sales\n(\n SalesID INTEGER not null\n primary key,\n SalesPersonID INTEGER not null,\n CustomerID INTEGER not null,\n ProductID INTEGER not null,\n Quantity INTEGER not null,\n foreign key (SalesPersonID) references Employees (EmployeeID)\n on update cascade on delete cascade,\n foreign key (CustomerID) references Customers (CustomerID)\n on update cascade on delete cascade,\n foreign key (ProductID) references Products (ProductID)\n on update cascade on delete cascade\n)" + ] + ], + "solver_schema": { + "Customers": { + "CustomerID": "INT", + "FirstName": "VARCHAR", + "MiddleInitial": "VARCHAR", + "LastName": "VARCHAR" + }, + "Employees": { + "EmployeeID": "INT", + "FirstName": "VARCHAR", + "MiddleInitial": "VARCHAR", + "LastName": "VARCHAR" + }, + "Products": { + "ProductID": "INT", + "Name": "VARCHAR", + "Price": "REAL" + }, + "Sales": { + "SalesID": "INT", + "SalesPersonID": "INT", + "CustomerID": "INT", + "ProductID": "INT", + "Quantity": "INT" + } + }, + "policies": [ + { + "table": "Sales", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Products", + "ProductID", + "ProductID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Products\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "Sales", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Customers", + "CustomerID", + "CustomerID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales\" c WHERE c.\"CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customers\" p WHERE p.\"CustomerID\" = c.\"CustomerID\")" + }, + { + "table": "Sales", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Employees", + "SalesPersonID", + "EmployeeID", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 295041, + "query": "SELECT COUNT(*) FROM \"Sales\" c WHERE c.\"SalesPersonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employees\" p WHERE p.\"EmployeeID\" = c.\"SalesPersonID\")" + } + ], + "sha256": "632673acfed3a90241f8992324755fdd5304d282fe26a97db551bab7dfafce8a" + }, + "sales_in_weather": { + "schema": [ + [ + "table", + "relation", + "relation", + "CREATE TABLE relation\n(\n store_nbr INTEGER\n primary key,\n station_nbr INTEGER,\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n)" + ], + [ + "table", + "sales_in_weather", + "sales_in_weather", + "CREATE TABLE sales_in_weather\n(\n date DATE,\n store_nbr INTEGER,\n item_nbr INTEGER,\n units INTEGER,\n primary key (store_nbr, date, item_nbr)\n)" + ], + [ + "table", + "weather", + "weather", + "CREATE TABLE weather\n(\n station_nbr INTEGER,\n date DATE,\n tmax INTEGER,\n tmin INTEGER,\n tavg INTEGER,\n depart INTEGER,\n dewpoint INTEGER,\n wetbulb INTEGER,\n heat INTEGER,\n cool INTEGER,\n sunrise TEXT,\n sunset TEXT,\n codesum TEXT,\n snowfall REAL,\n preciptotal REAL,\n stnpressure REAL,\n sealevel REAL,\n resultspeed REAL,\n resultdir INTEGER,\n avgspeed REAL,\n primary key (station_nbr, date)\n)" + ] + ], + "solver_schema": { + "relation": { + "store_nbr": "INT", + "station_nbr": "INT" + }, + "sales_in_weather": { + "date": "REAL", + "store_nbr": "INT", + "item_nbr": "INT", + "units": "INT" + }, + "weather": { + "station_nbr": "INT", + "date": "REAL", + "tmax": "INT", + "tmin": "INT", + "tavg": "INT", + "depart": "INT", + "dewpoint": "INT", + "wetbulb": "INT", + "heat": "INT", + "cool": "INT", + "sunrise": "VARCHAR", + "sunset": "VARCHAR", + "codesum": "VARCHAR", + "snowfall": "REAL", + "preciptotal": "REAL", + "stnpressure": "REAL", + "sealevel": "REAL", + "resultspeed": "REAL", + "resultdir": "INT", + "avgspeed": "REAL" + } + }, + "policies": [ + { + "table": "relation", + "id": 0, + "declaration": [ + [ + 0, + 0, + "weather", + "station_nbr", + "station_nbr", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"weather\"" + }, + { + "table": "relation", + "id": 1, + "declaration": [ + [ + 1, + 0, + "sales_in_weather", + "store_nbr", + "store_nbr", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"sales_in_weather\"" + } + ], + "sha256": "470eb5d25cd281042ef3ced349c2a2fbd7a6c16122a037f5ca391d4bac8a8f89" + }, + "shakespeare": { + "schema": [ + [ + "table", + "chapters", + "chapters", + "CREATE TABLE \"chapters\"\n(\n id INTEGER\n primary key autoincrement,\n Act INTEGER not null,\n Scene INTEGER not null,\n Description TEXT not null,\n work_id INTEGER not null\n references works\n)" + ], + [ + "table", + "characters", + "characters", + "CREATE TABLE \"characters\"\n(\n id INTEGER\n primary key autoincrement,\n CharName TEXT not null,\n Abbrev TEXT not null,\n Description TEXT not null\n)" + ], + [ + "table", + "paragraphs", + "paragraphs", + "CREATE TABLE \"paragraphs\"\n(\n id INTEGER\n primary key autoincrement,\n ParagraphNum INTEGER not null,\n PlainText TEXT not null,\n character_id INTEGER not null\n references characters,\n chapter_id INTEGER default 0 not null\n references chapters\n)" + ], + [ + "table", + "works", + "works", + "CREATE TABLE \"works\"\n(\n id INTEGER\n primary key autoincrement,\n Title TEXT not null,\n LongTitle TEXT not null,\n Date INTEGER not null,\n GenreType TEXT not null\n)" + ] + ], + "solver_schema": { + "chapters": { + "id": "INT", + "Act": "INT", + "Scene": "INT", + "Description": "VARCHAR", + "work_id": "INT" + }, + "characters": { + "id": "INT", + "CharName": "VARCHAR", + "Abbrev": "VARCHAR", + "Description": "VARCHAR" + }, + "paragraphs": { + "id": "INT", + "ParagraphNum": "INT", + "PlainText": "VARCHAR", + "character_id": "INT", + "chapter_id": "INT" + }, + "works": { + "id": "INT", + "Title": "VARCHAR", + "LongTitle": "VARCHAR", + "Date": "INT", + "GenreType": "VARCHAR" + } + }, + "policies": [ + { + "table": "chapters", + "id": 0, + "declaration": [ + [ + 0, + 0, + "works", + "work_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"chapters\" c WHERE c.\"work_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"works\" p WHERE p.\"id\" = c.\"work_id\")" + }, + { + "table": "paragraphs", + "id": 0, + "declaration": [ + [ + 0, + 0, + "chapters", + "chapter_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"paragraphs\" c WHERE c.\"chapter_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"chapters\" p WHERE p.\"id\" = c.\"chapter_id\")" + }, + { + "table": "paragraphs", + "id": 1, + "declaration": [ + [ + 1, + 0, + "characters", + "character_id", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"paragraphs\" c WHERE c.\"character_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"characters\" p WHERE p.\"id\" = c.\"character_id\")" + } + ], + "sha256": "c9557c1bafa039c420d8b87d5407f90d0a8c99f24f9129f9ea6b39024f0c788d" + }, + "shipping": { + "schema": [ + [ + "table", + "city", + "city", + "CREATE TABLE city\n(\n city_id INTEGER\n primary key,\n city_name TEXT,\n state TEXT,\n population INTEGER,\n area REAL\n)" + ], + [ + "table", + "customer", + "customer", + "CREATE TABLE customer\n(\n cust_id INTEGER\n primary key,\n cust_name TEXT,\n annual_revenue INTEGER,\n cust_type TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip REAL,\n phone TEXT\n)" + ], + [ + "table", + "driver", + "driver", + "CREATE TABLE driver\n(\n driver_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip_code INTEGER,\n phone TEXT\n)" + ], + [ + "table", + "shipment", + "shipment", + "CREATE TABLE shipment\n(\n ship_id INTEGER\n primary key,\n cust_id INTEGER,\n weight REAL,\n truck_id INTEGER,\n driver_id INTEGER,\n city_id INTEGER,\n ship_date TEXT,\n foreign key (cust_id) references customer(cust_id),\n foreign key (city_id) references city(city_id),\n foreign key (driver_id) references driver(driver_id),\n foreign key (truck_id) references truck(truck_id)\n)" + ], + [ + "table", + "truck", + "truck", + "CREATE TABLE truck\n(\n truck_id INTEGER\n primary key,\n make TEXT,\n model_year INTEGER\n)" + ] + ], + "solver_schema": { + "city": { + "city_id": "INT", + "city_name": "VARCHAR", + "state": "VARCHAR", + "population": "INT", + "area": "REAL" + }, + "customer": { + "cust_id": "INT", + "cust_name": "VARCHAR", + "annual_revenue": "INT", + "cust_type": "VARCHAR", + "address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip": "REAL", + "phone": "VARCHAR" + }, + "driver": { + "driver_id": "INT", + "first_name": "VARCHAR", + "last_name": "VARCHAR", + "address": "VARCHAR", + "city": "VARCHAR", + "state": "VARCHAR", + "zip_code": "INT", + "phone": "VARCHAR" + }, + "shipment": { + "ship_id": "INT", + "cust_id": "INT", + "weight": "REAL", + "truck_id": "INT", + "driver_id": "INT", + "city_id": "INT", + "ship_date": "VARCHAR" + }, + "truck": { + "truck_id": "INT", + "make": "VARCHAR", + "model_year": "INT" + } + }, + "policies": [ + { + "table": "shipment", + "id": 0, + "declaration": [ + [ + 0, + 0, + "truck", + "truck_id", + "truck_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"shipment\" c WHERE c.\"truck_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"truck\" p WHERE p.\"truck_id\" = c.\"truck_id\")" + }, + { + "table": "shipment", + "id": 1, + "declaration": [ + [ + 1, + 0, + "driver", + "driver_id", + "driver_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"shipment\" c WHERE c.\"driver_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"driver\" p WHERE p.\"driver_id\" = c.\"driver_id\")" + }, + { + "table": "shipment", + "id": 2, + "declaration": [ + [ + 2, + 0, + "city", + "city_id", + "city_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"shipment\" c WHERE c.\"city_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"city\" p WHERE p.\"city_id\" = c.\"city_id\")" + }, + { + "table": "shipment", + "id": 3, + "declaration": [ + [ + 3, + 0, + "customer", + "cust_id", + "cust_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"shipment\" c WHERE c.\"cust_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"customer\" p WHERE p.\"cust_id\" = c.\"cust_id\")" + } + ], + "sha256": "a6b4af6401c43aeb7f678ba18e3ebc5ba8708d4a98674be6095e3d9863f4f259" + }, + "shooting": { + "schema": [ + [ + "table", + "incidents", + "incidents", + "CREATE TABLE incidents\n(\n case_number TEXT not null\n primary key,\n date DATE not null,\n location TEXT not null,\n subject_statuses TEXT not null,\n subject_weapon TEXT not null,\n subjects TEXT not null,\n subject_count INTEGER not null,\n officers TEXT not null\n\n)" + ], + [ + "table", + "officers", + "officers", + "CREATE TABLE officers\n(\n case_number TEXT not null,\n race TEXT null,\n gender TEXT not null,\n last_name TEXT not null,\n first_name TEXT null,\n full_name TEXT not null,\n foreign key (case_number) references incidents (case_number)\n)" + ], + [ + "table", + "subjects", + "subjects", + "CREATE TABLE subjects\n(\n case_number TEXT not null,\n race TEXT not null,\n gender TEXT not null,\n last_name TEXT not null,\n first_name TEXT null,\n full_name TEXT not null,\n foreign key (case_number) references incidents (case_number)\n)" + ] + ], + "policies": [ + { + "table": "officers", + "id": 0, + "declaration": [ + [ + 0, + 0, + "incidents", + "case_number", + "case_number", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"officers\" c WHERE c.\"case_number\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"incidents\" p WHERE p.\"case_number\" = c.\"case_number\")" + }, + { + "table": "subjects", + "id": 0, + "declaration": [ + [ + 0, + 0, + "incidents", + "case_number", + "case_number", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"subjects\" c WHERE c.\"case_number\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"incidents\" p WHERE p.\"case_number\" = c.\"case_number\")" + } + ], + "sha256": "9d96c60a9ef532f6c02b942ac5691eda753937324ddedd2dae7a131185cae82b" + }, + "simpson_episodes": { + "schema": [ + [ + "table", + "Award", + "Award", + "CREATE TABLE Award\n(\n award_id INTEGER\n primary key,\n organization TEXT,\n year INTEGER,\n award_category TEXT,\n award TEXT,\n person TEXT,\n role TEXT,\n episode_id TEXT,\n season TEXT,\n song TEXT,\n result TEXT,\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n)" + ], + [ + "table", + "Character_Award", + "Character_Award", + "CREATE TABLE Character_Award\n(\n award_id INTEGER,\n character TEXT,\n foreign key (award_id) references Award(award_id)\n)" + ], + [ + "table", + "Credit", + "Credit", + "CREATE TABLE Credit\n(\n episode_id TEXT,\n category TEXT,\n person TEXT,\n role TEXT,\n credited TEXT,\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n)" + ], + [ + "table", + "Episode", + "Episode", + "CREATE TABLE \"Episode\"\n(\n episode_id TEXT\n constraint Episode_pk\n primary key,\n season INTEGER,\n episode INTEGER,\n number_in_series INTEGER,\n title TEXT,\n summary TEXT,\n air_date TEXT,\n episode_image TEXT,\n rating REAL,\n votes INTEGER\n)" + ], + [ + "table", + "Keyword", + "Keyword", + "CREATE TABLE Keyword\n(\n episode_id TEXT,\n keyword TEXT,\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n)" + ], + [ + "table", + "Person", + "Person", + "CREATE TABLE Person\n(\n name TEXT\n constraint Person_pk\n primary key,\n birthdate TEXT,\n birth_name TEXT,\n birth_place TEXT,\n birth_region TEXT,\n birth_country TEXT,\n height_meters REAL,\n nickname TEXT\n)" + ], + [ + "table", + "Vote", + "Vote", + "CREATE TABLE Vote\n(\n episode_id TEXT,\n stars INTEGER,\n votes INTEGER,\n percent REAL,\n foreign key (episode_id) references Episode(episode_id)\n)" + ] + ], + "solver_schema": { + "Award": { + "award_id": "INT", + "organization": "VARCHAR", + "year": "INT", + "award_category": "VARCHAR", + "award": "VARCHAR", + "person": "VARCHAR", + "role": "VARCHAR", + "episode_id": "VARCHAR", + "season": "VARCHAR", + "song": "VARCHAR", + "result": "VARCHAR" + }, + "Character_Award": { + "award_id": "INT", + "character": "VARCHAR" + }, + "Credit": { + "episode_id": "VARCHAR", + "category": "VARCHAR", + "person": "VARCHAR", + "role": "VARCHAR", + "credited": "VARCHAR" + }, + "Episode": { + "episode_id": "VARCHAR", + "season": "INT", + "episode": "INT", + "number_in_series": "INT", + "title": "VARCHAR", + "summary": "VARCHAR", + "air_date": "VARCHAR", + "episode_image": "VARCHAR", + "rating": "REAL", + "votes": "INT" + }, + "Keyword": { + "episode_id": "VARCHAR", + "keyword": "VARCHAR" + }, + "Person": { + "name": "VARCHAR", + "birthdate": "VARCHAR", + "birth_name": "VARCHAR", + "birth_place": "VARCHAR", + "birth_region": "VARCHAR", + "birth_country": "VARCHAR", + "height_meters": "REAL", + "nickname": "VARCHAR" + }, + "Vote": { + "episode_id": "VARCHAR", + "stars": "INT", + "votes": "INT", + "percent": "REAL" + } + }, + "policies": [ + { + "table": "Award", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Award\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Award", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Person", + "person", + "name", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 2, + "query": "SELECT COUNT(*) FROM \"Award\" c WHERE c.\"person\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"name\" = c.\"person\")" + }, + { + "table": "Character_Award", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Award", + "award_id", + "award_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Character_Award\" c WHERE c.\"award_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Award\" p WHERE p.\"award_id\" = c.\"award_id\")" + }, + { + "table": "Credit", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "person", + "name", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Credit\" c WHERE c.\"person\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"name\" = c.\"person\")" + }, + { + "table": "Credit", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Credit\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Keyword", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Keyword\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + }, + { + "table": "Vote", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Episode", + "episode_id", + "episode_id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Vote\" c WHERE c.\"episode_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Episode\" p WHERE p.\"episode_id\" = c.\"episode_id\")" + } + ], + "sha256": "777172b55c622b0106dc4e0a03a1c1af61a0413d0a358f40e6210b8f0ca64f4d" + }, + "soccer_2016": { + "schema": [ + [ + "table", + "Ball_by_Ball", + "Ball_by_Ball", + "CREATE TABLE Ball_by_Ball\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Innings_No INTEGER,\n Team_Batting INTEGER,\n Team_Bowling INTEGER,\n Striker_Batting_Position INTEGER,\n Striker INTEGER,\n Non_Striker INTEGER,\n Bowler INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n)" + ], + [ + "table", + "Batsman_Scored", + "Batsman_Scored", + "CREATE TABLE Batsman_Scored\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Runs_Scored INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n)" + ], + [ + "table", + "Batting_Style", + "Batting_Style", + "CREATE TABLE Batting_Style\n(\n Batting_Id INTEGER\n primary key,\n Batting_hand TEXT\n)" + ], + [ + "table", + "Bowling_Style", + "Bowling_Style", + "CREATE TABLE Bowling_Style\n(\n Bowling_Id INTEGER\n primary key,\n Bowling_skill TEXT\n)" + ], + [ + "table", + "City", + "City", + "CREATE TABLE City\n(\n City_Id INTEGER\n primary key,\n City_Name TEXT,\n Country_id INTEGER\n)" + ], + [ + "table", + "Country", + "Country", + "CREATE TABLE Country\n(\n Country_Id INTEGER\n primary key,\n Country_Name TEXT,\n foreign key (Country_Id) references Country(Country_Id)\n)" + ], + [ + "table", + "Extra_Runs", + "Extra_Runs", + "CREATE TABLE Extra_Runs\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Extra_Type_Id INTEGER,\n Extra_Runs INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n)" + ], + [ + "table", + "Extra_Type", + "Extra_Type", + "CREATE TABLE Extra_Type\n(\n Extra_Id INTEGER\n primary key,\n Extra_Name TEXT\n)" + ], + [ + "table", + "Match", + "Match", + "CREATE TABLE Match\n(\n Match_Id INTEGER\n primary key,\n Team_1 INTEGER,\n Team_2 INTEGER,\n Match_Date DATE,\n Season_Id INTEGER,\n Venue_Id INTEGER,\n Toss_Winner INTEGER,\n Toss_Decide INTEGER,\n Win_Type INTEGER,\n Win_Margin INTEGER,\n Outcome_type INTEGER,\n Match_Winner INTEGER,\n Man_of_the_Match INTEGER,\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n)" + ], + [ + "table", + "Out_Type", + "Out_Type", + "CREATE TABLE Out_Type\n(\n Out_Id INTEGER\n primary key,\n Out_Name TEXT\n)" + ], + [ + "table", + "Outcome", + "Outcome", + "CREATE TABLE Outcome\n(\n Outcome_Id INTEGER\n primary key,\n Outcome_Type TEXT\n)" + ], + [ + "table", + "Player", + "Player", + "CREATE TABLE Player\n(\n Player_Id INTEGER\n primary key,\n Player_Name TEXT,\n DOB DATE,\n Batting_hand INTEGER,\n Bowling_skill INTEGER,\n Country_Name INTEGER,\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n)" + ], + [ + "table", + "Player_Match", + "Player_Match", + "CREATE TABLE Player_Match\n(\n Match_Id INTEGER,\n Player_Id INTEGER,\n Role_Id INTEGER,\n Team_Id INTEGER,\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n)" + ], + [ + "table", + "Rolee", + "Rolee", + "CREATE TABLE Rolee\n(\n Role_Id INTEGER\n primary key,\n Role_Desc TEXT\n)" + ], + [ + "table", + "Season", + "Season", + "CREATE TABLE Season\n(\n Season_Id INTEGER\n primary key,\n Man_of_the_Series INTEGER,\n Orange_Cap INTEGER,\n Purple_Cap INTEGER,\n Season_Year INTEGER\n)" + ], + [ + "table", + "Team", + "Team", + "CREATE TABLE Team\n(\n Team_Id INTEGER\n primary key,\n Team_Name TEXT\n)" + ], + [ + "table", + "Toss_Decision", + "Toss_Decision", + "CREATE TABLE Toss_Decision\n(\n Toss_Id INTEGER\n primary key,\n Toss_Name TEXT\n)" + ], + [ + "table", + "Umpire", + "Umpire", + "CREATE TABLE Umpire\n(\n Umpire_Id INTEGER\n primary key,\n Umpire_Name TEXT,\n Umpire_Country INTEGER,\n foreign key (Umpire_Country) references Country(Country_Id)\n)" + ], + [ + "table", + "Venue", + "Venue", + "CREATE TABLE Venue\n(\n Venue_Id INTEGER\n primary key,\n Venue_Name TEXT,\n City_Id INTEGER,\n foreign key (City_Id) references City(City_Id)\n)" + ], + [ + "table", + "Wicket_Taken", + "Wicket_Taken", + "CREATE TABLE Wicket_Taken\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Player_Out INTEGER,\n Kind_Out INTEGER,\n Fielders INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n)" + ], + [ + "table", + "Win_By", + "Win_By", + "CREATE TABLE Win_By\n(\n Win_Id INTEGER\n primary key,\n Win_Type TEXT\n)" + ] + ], + "solver_schema": { + "Ball_by_Ball": { + "Match_Id": "INT", + "Over_Id": "INT", + "Ball_Id": "INT", + "Innings_No": "INT", + "Team_Batting": "INT", + "Team_Bowling": "INT", + "Striker_Batting_Position": "INT", + "Striker": "INT", + "Non_Striker": "INT", + "Bowler": "INT" + }, + "Batsman_Scored": { + "Match_Id": "INT", + "Over_Id": "INT", + "Ball_Id": "INT", + "Runs_Scored": "INT", + "Innings_No": "INT" + }, + "Batting_Style": { + "Batting_Id": "INT", + "Batting_hand": "VARCHAR" + }, + "Bowling_Style": { + "Bowling_Id": "INT", + "Bowling_skill": "VARCHAR" + }, + "City": { + "City_Id": "INT", + "City_Name": "VARCHAR", + "Country_id": "INT" + }, + "Country": { + "Country_Id": "INT", + "Country_Name": "VARCHAR" + }, + "Extra_Runs": { + "Match_Id": "INT", + "Over_Id": "INT", + "Ball_Id": "INT", + "Extra_Type_Id": "INT", + "Extra_Runs": "INT", + "Innings_No": "INT" + }, + "Extra_Type": { + "Extra_Id": "INT", + "Extra_Name": "VARCHAR" + }, + "Match": { + "Match_Id": "INT", + "Team_1": "INT", + "Team_2": "INT", + "Match_Date": "REAL", + "Season_Id": "INT", + "Venue_Id": "INT", + "Toss_Winner": "INT", + "Toss_Decide": "INT", + "Win_Type": "INT", + "Win_Margin": "INT", + "Outcome_type": "INT", + "Match_Winner": "INT", + "Man_of_the_Match": "INT" + }, + "Out_Type": { + "Out_Id": "INT", + "Out_Name": "VARCHAR" + }, + "Outcome": { + "Outcome_Id": "INT", + "Outcome_Type": "VARCHAR" + }, + "Player": { + "Player_Id": "INT", + "Player_Name": "VARCHAR", + "DOB": "REAL", + "Batting_hand": "INT", + "Bowling_skill": "INT", + "Country_Name": "INT" + }, + "Player_Match": { + "Match_Id": "INT", + "Player_Id": "INT", + "Role_Id": "INT", + "Team_Id": "INT" + }, + "Rolee": { + "Role_Id": "INT", + "Role_Desc": "VARCHAR" + }, + "Season": { + "Season_Id": "INT", + "Man_of_the_Series": "INT", + "Orange_Cap": "INT", + "Purple_Cap": "INT", + "Season_Year": "INT" + }, + "Team": { + "Team_Id": "INT", + "Team_Name": "VARCHAR" + }, + "Toss_Decision": { + "Toss_Id": "INT", + "Toss_Name": "VARCHAR" + }, + "Umpire": { + "Umpire_Id": "INT", + "Umpire_Name": "VARCHAR", + "Umpire_Country": "INT" + }, + "Venue": { + "Venue_Id": "INT", + "Venue_Name": "VARCHAR", + "City_Id": "INT" + }, + "Wicket_Taken": { + "Match_Id": "INT", + "Over_Id": "INT", + "Ball_Id": "INT", + "Player_Out": "INT", + "Kind_Out": "INT", + "Fielders": "INT", + "Innings_No": "INT" + }, + "Win_By": { + "Win_Id": "INT", + "Win_Type": "VARCHAR" + } + }, + "policies": [ + { + "table": "Ball_by_Ball", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Match", + "Match_Id", + "Match_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Ball_by_Ball\" c WHERE c.\"Match_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Match\" p WHERE p.\"Match_Id\" = c.\"Match_Id\")" + }, + { + "table": "Batsman_Scored", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Match", + "Match_Id", + "Match_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Batsman_Scored\" c WHERE c.\"Match_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Match\" p WHERE p.\"Match_Id\" = c.\"Match_Id\")" + }, + { + "table": "Country", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "Country_Id", + "Country_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Country\" c WHERE c.\"Country_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"Country_Id\" = c.\"Country_Id\")" + }, + { + "table": "Extra_Runs", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Extra_Type", + "Extra_Type_Id", + "Extra_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Extra_Runs\" c WHERE c.\"Extra_Type_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Extra_Type\" p WHERE p.\"Extra_Id\" = c.\"Extra_Type_Id\")" + }, + { + "table": "Match", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Player", + "Man_of_the_Match", + "Player_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Man_of_the_Match\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Player\" p WHERE p.\"Player_Id\" = c.\"Man_of_the_Match\")" + }, + { + "table": "Match", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Team", + "Match_Winner", + "Team_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Match_Winner\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Team\" p WHERE p.\"Team_Id\" = c.\"Match_Winner\")" + }, + { + "table": "Match", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Out_Type", + "Outcome_type", + "Out_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Outcome_type\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Out_Type\" p WHERE p.\"Out_Id\" = c.\"Outcome_type\")" + }, + { + "table": "Match", + "id": 3, + "declaration": [ + [ + 3, + 0, + "Win_By", + "Win_Type", + "Win_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Win_Type\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Win_By\" p WHERE p.\"Win_Id\" = c.\"Win_Type\")" + }, + { + "table": "Match", + "id": 4, + "declaration": [ + [ + 4, + 0, + "Toss_Decision", + "Toss_Decide", + "Toss_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Toss_Decide\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Toss_Decision\" p WHERE p.\"Toss_Id\" = c.\"Toss_Decide\")" + }, + { + "table": "Match", + "id": 5, + "declaration": [ + [ + 5, + 0, + "Team", + "Toss_Winner", + "Team_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Toss_Winner\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Team\" p WHERE p.\"Team_Id\" = c.\"Toss_Winner\")" + }, + { + "table": "Match", + "id": 6, + "declaration": [ + [ + 6, + 0, + "Venue", + "Venue_Id", + "Venue_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Venue_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Venue\" p WHERE p.\"Venue_Id\" = c.\"Venue_Id\")" + }, + { + "table": "Match", + "id": 7, + "declaration": [ + [ + 7, + 0, + "Season", + "Season_Id", + "Season_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Season_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Season\" p WHERE p.\"Season_Id\" = c.\"Season_Id\")" + }, + { + "table": "Match", + "id": 8, + "declaration": [ + [ + 8, + 0, + "Team", + "Team_2", + "Team_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Team_2\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Team\" p WHERE p.\"Team_Id\" = c.\"Team_2\")" + }, + { + "table": "Match", + "id": 9, + "declaration": [ + [ + 9, + 0, + "Team", + "Team_1", + "Team_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Match\" c WHERE c.\"Team_1\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Team\" p WHERE p.\"Team_Id\" = c.\"Team_1\")" + }, + { + "table": "Player", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "Country_Name", + "Country_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player\" c WHERE c.\"Country_Name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"Country_Id\" = c.\"Country_Name\")" + }, + { + "table": "Player", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Bowling_Style", + "Bowling_skill", + "Bowling_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player\" c WHERE c.\"Bowling_skill\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Bowling_Style\" p WHERE p.\"Bowling_Id\" = c.\"Bowling_skill\")" + }, + { + "table": "Player", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Batting_Style", + "Batting_hand", + "Batting_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player\" c WHERE c.\"Batting_hand\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Batting_Style\" p WHERE p.\"Batting_Id\" = c.\"Batting_hand\")" + }, + { + "table": "Player_Match", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Rolee", + "Role_Id", + "Role_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player_Match\" c WHERE c.\"Role_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Rolee\" p WHERE p.\"Role_Id\" = c.\"Role_Id\")" + }, + { + "table": "Player_Match", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Team", + "Team_Id", + "Team_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player_Match\" c WHERE c.\"Team_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Team\" p WHERE p.\"Team_Id\" = c.\"Team_Id\")" + }, + { + "table": "Player_Match", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Player", + "Player_Id", + "Player_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player_Match\" c WHERE c.\"Player_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Player\" p WHERE p.\"Player_Id\" = c.\"Player_Id\")" + }, + { + "table": "Player_Match", + "id": 3, + "declaration": [ + [ + 3, + 0, + "Match", + "Match_Id", + "Match_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Player_Match\" c WHERE c.\"Match_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Match\" p WHERE p.\"Match_Id\" = c.\"Match_Id\")" + }, + { + "table": "Umpire", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "Umpire_Country", + "Country_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Umpire\" c WHERE c.\"Umpire_Country\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"Country_Id\" = c.\"Umpire_Country\")" + }, + { + "table": "Venue", + "id": 0, + "declaration": [ + [ + 0, + 0, + "City", + "City_Id", + "City_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Venue\" c WHERE c.\"City_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"City\" p WHERE p.\"City_Id\" = c.\"City_Id\")" + }, + { + "table": "Wicket_Taken", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Player", + "Fielders", + "Player_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Wicket_Taken\" c WHERE c.\"Fielders\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Player\" p WHERE p.\"Player_Id\" = c.\"Fielders\")" + }, + { + "table": "Wicket_Taken", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Out_Type", + "Kind_Out", + "Out_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Wicket_Taken\" c WHERE c.\"Kind_Out\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Out_Type\" p WHERE p.\"Out_Id\" = c.\"Kind_Out\")" + }, + { + "table": "Wicket_Taken", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Player", + "Player_Out", + "Player_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Wicket_Taken\" c WHERE c.\"Player_Out\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Player\" p WHERE p.\"Player_Id\" = c.\"Player_Out\")" + }, + { + "table": "Wicket_Taken", + "id": 3, + "declaration": [ + [ + 3, + 0, + "Match", + "Match_Id", + "Match_Id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Wicket_Taken\" c WHERE c.\"Match_Id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Match\" p WHERE p.\"Match_Id\" = c.\"Match_Id\")" + } + ], + "sha256": "84651eed21dbfae9f36a15697a5df81f3cb6ad78740f7301096e99dd7c4c06d5" + }, + "social_media": { + "schema": [ + [ + "table", + "location", + "location", + "CREATE TABLE location\n(\n LocationID INTEGER\n constraint location_pk\n primary key,\n Country TEXT,\n State TEXT,\n StateCode TEXT,\n City TEXT\n)" + ], + [ + "table", + "twitter", + "twitter", + "CREATE TABLE twitter\n(\n TweetID TEXT\n primary key,\n Weekday TEXT,\n Hour INTEGER,\n Day INTEGER,\n Lang TEXT,\n IsReshare TEXT,\n Reach INTEGER,\n RetweetCount INTEGER,\n Likes INTEGER,\n Klout INTEGER,\n Sentiment REAL,\n \"text\" TEXT,\n LocationID INTEGER,\n UserID TEXT,\n foreign key (LocationID) references location(LocationID),\n foreign key (UserID) references user(UserID)\n)" + ], + [ + "table", + "user", + "user", + "CREATE TABLE user\n(\n UserID TEXT\n constraint user_pk\n primary key,\n Gender TEXT\n)" + ] + ], + "solver_schema": { + "location": { + "LocationID": "INT", + "Country": "VARCHAR", + "State": "VARCHAR", + "StateCode": "VARCHAR", + "City": "VARCHAR" + }, + "twitter": { + "TweetID": "VARCHAR", + "Weekday": "VARCHAR", + "Hour": "INT", + "Day": "INT", + "Lang": "VARCHAR", + "IsReshare": "VARCHAR", + "Reach": "INT", + "RetweetCount": "INT", + "Likes": "INT", + "Klout": "INT", + "Sentiment": "REAL", + "text": "VARCHAR", + "LocationID": "INT", + "UserID": "VARCHAR" + }, + "user": { + "UserID": "VARCHAR", + "Gender": "VARCHAR" + } + }, + "policies": [ + { + "table": "twitter", + "id": 0, + "declaration": [ + [ + 0, + 0, + "user", + "UserID", + "UserID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"twitter\" c WHERE c.\"UserID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"user\" p WHERE p.\"UserID\" = c.\"UserID\")" + }, + { + "table": "twitter", + "id": 1, + "declaration": [ + [ + 1, + 0, + "location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 449, + "query": "SELECT COUNT(*) FROM \"twitter\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + } + ], + "sha256": "5b085c690554b800656b847cd170411bf0a0e26840c106c3f0813b1107d4f78f" + }, + "software_company": { + "schema": [ + [ + "table", + "Customers", + "Customers", + "CREATE TABLE \"Customers\"\n(\n ID INTEGER\n constraint Customers_pk\n primary key,\n SEX TEXT,\n MARITAL_STATUS TEXT,\n GEOID INTEGER\n constraint Customers_Demog_GEOID_fk\n references Demog,\n EDUCATIONNUM INTEGER,\n OCCUPATION TEXT,\n age INTEGER\n)" + ], + [ + "table", + "Demog", + "Demog", + "CREATE TABLE Demog\n(\n GEOID INTEGER\n constraint Demog_pk\n primary key,\n INHABITANTS_K REAL,\n INCOME_K REAL,\n A_VAR1 REAL,\n A_VAR2 REAL,\n A_VAR3 REAL,\n A_VAR4 REAL,\n A_VAR5 REAL,\n A_VAR6 REAL,\n A_VAR7 REAL,\n A_VAR8 REAL,\n A_VAR9 REAL,\n A_VAR10 REAL,\n A_VAR11 REAL,\n A_VAR12 REAL,\n A_VAR13 REAL,\n A_VAR14 REAL,\n A_VAR15 REAL,\n A_VAR16 REAL,\n A_VAR17 REAL,\n A_VAR18 REAL\n)" + ], + [ + "table", + "Mailings1_2", + "Mailings1_2", + "CREATE TABLE \"Mailings1_2\"\n(\n REFID INTEGER\n constraint Mailings1_2_pk\n primary key\n constraint Mailings1_2_Customers_ID_fk\n references Customers,\n REF_DATE DATETIME,\n RESPONSE TEXT\n)" + ], + [ + "table", + "Sales", + "Sales", + "CREATE TABLE \"Sales\"\n(\n EVENTID INTEGER\n constraint Sales_pk\n primary key,\n REFID INTEGER\n references Customers,\n EVENT_DATE DATETIME,\n AMOUNT REAL\n)" + ], + [ + "table", + "mailings3", + "mailings3", + "CREATE TABLE mailings3\n(\n REFID INTEGER\n constraint mailings3_pk\n primary key,\n REF_DATE DATETIME,\n RESPONSE TEXT\n)" + ] + ], + "policies": [ + { + "table": "Customers", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Demog", + "GEOID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Customers\" c WHERE c.\"GEOID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Demog\" p WHERE p.\"GEOID\" = c.\"GEOID\")" + }, + { + "table": "Mailings1_2", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Customers", + "REFID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Mailings1_2\" c WHERE c.\"REFID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customers\" p WHERE p.\"ID\" = c.\"REFID\")" + }, + { + "table": "Sales", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Customers", + "REFID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Sales\" c WHERE c.\"REFID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customers\" p WHERE p.\"ID\" = c.\"REFID\")" + } + ], + "sha256": "21b00d9d2b3bf20af55597c5e844223340ae35efb034797b34100681827e2ca2" + }, + "student_loan": { + "schema": [ + [ + "table", + "bool", + "bool", + "CREATE TABLE bool\n(\n \"name\" TEXT default '' not null\n primary key\n)" + ], + [ + "table", + "disabled", + "disabled", + "CREATE TABLE disabled\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "enlist", + "enlist", + "CREATE TABLE enlist\n(\n \"name\" TEXT not null,\n organ TEXT not null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "enrolled", + "enrolled", + "CREATE TABLE `enrolled` (\n `name` TEXT NOT NULL,\n `school` TEXT NOT NULL,\n `month` INTEGER NOT NULL DEFAULT 0,\n PRIMARY KEY (`name`,`school`),\n FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "filed_for_bankrupcy", + "filed_for_bankrupcy", + "CREATE TABLE filed_for_bankrupcy\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "longest_absense_from_school", + "longest_absense_from_school", + "CREATE TABLE longest_absense_from_school\n(\n \"name\" TEXT default '' not null\n primary key,\n \"month\" INTEGER default 0 null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "male", + "male", + "CREATE TABLE male\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "no_payment_due", + "no_payment_due", + "CREATE TABLE no_payment_due\n(\n \"name\" TEXT default '' not null\n primary key,\n bool TEXT null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade,\n foreign key (bool) references bool (\"name\")\n on update cascade on delete cascade\n)" + ], + [ + "table", + "person", + "person", + "CREATE TABLE person\n(\n \"name\" TEXT default '' not null\n primary key\n)" + ], + [ + "table", + "unemployed", + "unemployed", + "CREATE TABLE unemployed\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n)" + ] + ], + "solver_schema": { + "bool": { + "name": "VARCHAR" + }, + "disabled": { + "name": "VARCHAR" + }, + "enlist": { + "name": "VARCHAR", + "organ": "VARCHAR" + }, + "enrolled": { + "name": "VARCHAR", + "school": "VARCHAR", + "month": "INT" + }, + "filed_for_bankrupcy": { + "name": "VARCHAR" + }, + "longest_absense_from_school": { + "name": "VARCHAR", + "month": "INT" + }, + "male": { + "name": "VARCHAR" + }, + "no_payment_due": { + "name": "VARCHAR", + "bool": "VARCHAR" + }, + "person": { + "name": "VARCHAR" + }, + "unemployed": { + "name": "VARCHAR" + } + }, + "policies": [ + { + "table": "disabled", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"disabled\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "enlist", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"enlist\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "enrolled", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"enrolled\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "filed_for_bankrupcy", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"filed_for_bankrupcy\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "longest_absense_from_school", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"longest_absense_from_school\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "male", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"male\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "no_payment_due", + "id": 0, + "declaration": [ + [ + 0, + 0, + "bool", + "bool", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"no_payment_due\" c WHERE c.\"bool\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"bool\" p WHERE p.\"name\" = c.\"bool\")" + }, + { + "table": "no_payment_due", + "id": 1, + "declaration": [ + [ + 1, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"no_payment_due\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + }, + { + "table": "unemployed", + "id": 0, + "declaration": [ + [ + 0, + 0, + "person", + "name", + "name", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"unemployed\" c WHERE c.\"name\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"person\" p WHERE p.\"name\" = c.\"name\")" + } + ], + "sha256": "8dac8a8757e66599716907071ebdfb20bfd1d06b90d9cecc945dd5a040a0f3b6" + }, + "superstore": { + "schema": [ + [ + "table", + "central_superstore", + "central_superstore", + "CREATE TABLE central_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n)" + ], + [ + "table", + "east_superstore", + "east_superstore", + "CREATE TABLE east_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n)" + ], + [ + "table", + "people", + "people", + "CREATE TABLE people\n(\n \"Customer ID\" TEXT,\n \"Customer Name\" TEXT,\n Segment TEXT,\n Country TEXT,\n City TEXT,\n State TEXT,\n \"Postal Code\" INTEGER,\n Region TEXT,\n primary key (\"Customer ID\", Region)\n)" + ], + [ + "table", + "product", + "product", + "CREATE TABLE product\n(\n \"Product ID\" TEXT,\n \"Product Name\" TEXT,\n Category TEXT,\n \"Sub-Category\" TEXT,\n Region TEXT,\n primary key (\"Product ID\", Region)\n)" + ], + [ + "table", + "south_superstore", + "south_superstore", + "CREATE TABLE south_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n)" + ], + [ + "table", + "west_superstore", + "west_superstore", + "CREATE TABLE west_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n)" + ] + ], + "solver_schema": { + "central_superstore": { + "Row ID": "INT", + "Order ID": "VARCHAR", + "Order Date": "REAL", + "Ship Date": "REAL", + "Ship Mode": "VARCHAR", + "Customer ID": "VARCHAR", + "Region": "VARCHAR", + "Product ID": "VARCHAR", + "Sales": "REAL", + "Quantity": "INT", + "Discount": "REAL", + "Profit": "REAL" + }, + "east_superstore": { + "Row ID": "INT", + "Order ID": "VARCHAR", + "Order Date": "REAL", + "Ship Date": "REAL", + "Ship Mode": "VARCHAR", + "Customer ID": "VARCHAR", + "Region": "VARCHAR", + "Product ID": "VARCHAR", + "Sales": "REAL", + "Quantity": "INT", + "Discount": "REAL", + "Profit": "REAL" + }, + "people": { + "Customer ID": "VARCHAR", + "Customer Name": "VARCHAR", + "Segment": "VARCHAR", + "Country": "VARCHAR", + "City": "VARCHAR", + "State": "VARCHAR", + "Postal Code": "INT", + "Region": "VARCHAR" + }, + "product": { + "Product ID": "VARCHAR", + "Product Name": "VARCHAR", + "Category": "VARCHAR", + "Sub-Category": "VARCHAR", + "Region": "VARCHAR" + }, + "south_superstore": { + "Row ID": "INT", + "Order ID": "VARCHAR", + "Order Date": "REAL", + "Ship Date": "REAL", + "Ship Mode": "VARCHAR", + "Customer ID": "VARCHAR", + "Region": "VARCHAR", + "Product ID": "VARCHAR", + "Sales": "REAL", + "Quantity": "INT", + "Discount": "REAL", + "Profit": "REAL" + }, + "west_superstore": { + "Row ID": "INT", + "Order ID": "VARCHAR", + "Order Date": "REAL", + "Ship Date": "REAL", + "Ship Mode": "VARCHAR", + "Customer ID": "VARCHAR", + "Region": "VARCHAR", + "Product ID": "VARCHAR", + "Sales": "REAL", + "Quantity": "INT", + "Discount": "REAL", + "Profit": "REAL" + } + }, + "policies": [ + { + "table": "central_superstore", + "id": 0, + "declaration": [ + [ + 0, + 0, + "product", + "Product ID", + "Product ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "product", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"central_superstore\" c WHERE c.\"Product ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"product\" p WHERE p.\"Product ID\" = c.\"Product ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "central_superstore", + "id": 1, + "declaration": [ + [ + 1, + 0, + "people", + "Customer ID", + "Customer ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 1, + 1, + "people", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"central_superstore\" c WHERE c.\"Customer ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"people\" p WHERE p.\"Customer ID\" = c.\"Customer ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "east_superstore", + "id": 0, + "declaration": [ + [ + 0, + 0, + "product", + "Product ID", + "Product ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "product", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"east_superstore\" c WHERE c.\"Product ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"product\" p WHERE p.\"Product ID\" = c.\"Product ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "east_superstore", + "id": 1, + "declaration": [ + [ + 1, + 0, + "people", + "Customer ID", + "Customer ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 1, + 1, + "people", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"east_superstore\" c WHERE c.\"Customer ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"people\" p WHERE p.\"Customer ID\" = c.\"Customer ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "south_superstore", + "id": 0, + "declaration": [ + [ + 0, + 0, + "product", + "Product ID", + "Product ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "product", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"south_superstore\" c WHERE c.\"Product ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"product\" p WHERE p.\"Product ID\" = c.\"Product ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "south_superstore", + "id": 1, + "declaration": [ + [ + 1, + 0, + "people", + "Customer ID", + "Customer ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 1, + 1, + "people", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"south_superstore\" c WHERE c.\"Customer ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"people\" p WHERE p.\"Customer ID\" = c.\"Customer ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "west_superstore", + "id": 0, + "declaration": [ + [ + 0, + 0, + "product", + "Product ID", + "Product ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "product", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"west_superstore\" c WHERE c.\"Product ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"product\" p WHERE p.\"Product ID\" = c.\"Product ID\" AND p.\"Region\" = c.\"Region\")" + }, + { + "table": "west_superstore", + "id": 1, + "declaration": [ + [ + 1, + 0, + "people", + "Customer ID", + "Customer ID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 1, + 1, + "people", + "Region", + "Region", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"west_superstore\" c WHERE c.\"Customer ID\" IS NOT NULL AND c.\"Region\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"people\" p WHERE p.\"Customer ID\" = c.\"Customer ID\" AND p.\"Region\" = c.\"Region\")" + } + ], + "sha256": "6090a5d5214c49b4eb41ab793e87c370bf54973febe6a017d569c6d0c245ab77" + }, + "synthea": { + "schema": [ + [ + "table", + "all_prevalences", + "all_prevalences", + "CREATE TABLE all_prevalences\n(\n ITEM TEXT\n primary key,\n \"POPULATION TYPE\" TEXT,\n OCCURRENCES INTEGER,\n \"POPULATION COUNT\" INTEGER,\n \"PREVALENCE RATE\" REAL,\n \"PREVALENCE PERCENTAGE\" REAL\n)" + ], + [ + "table", + "allergies", + "allergies", + "CREATE TABLE allergies\n(\n START TEXT,\n STOP TEXT,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "careplans", + "careplans", + "CREATE TABLE careplans\n(\n ID TEXT,\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE REAL,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "claims", + "claims", + "CREATE TABLE \"claims\"\n(\n ID TEXT\n primary key,\n PATIENT TEXT\n references patients,\n BILLABLEPERIOD DATE,\n ORGANIZATION TEXT,\n ENCOUNTER TEXT\n references encounters,\n DIAGNOSIS TEXT,\n TOTAL INTEGER\n)" + ], + [ + "table", + "conditions", + "conditions", + "CREATE TABLE conditions\n(\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n)" + ], + [ + "table", + "encounters", + "encounters", + "CREATE TABLE encounters\n(\n ID TEXT\n primary key,\n DATE DATE,\n PATIENT TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "immunizations", + "immunizations", + "CREATE TABLE immunizations\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "medications", + "medications", + "CREATE TABLE medications\n(\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "observations", + "observations", + "CREATE TABLE observations\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE TEXT,\n DESCRIPTION TEXT,\n VALUE REAL,\n UNITS TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ], + [ + "table", + "patients", + "patients", + "CREATE TABLE patients\n(\n patient TEXT\n primary key,\n birthdate DATE,\n deathdate DATE,\n ssn TEXT,\n drivers TEXT,\n passport TEXT,\n prefix TEXT,\n first TEXT,\n last TEXT,\n suffix TEXT,\n maiden TEXT,\n marital TEXT,\n race TEXT,\n ethnicity TEXT,\n gender TEXT,\n birthplace TEXT,\n address TEXT\n)" + ], + [ + "table", + "procedures", + "procedures", + "CREATE TABLE procedures\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n)" + ] + ], + "solver_schema": { + "all_prevalences": { + "ITEM": "VARCHAR", + "POPULATION TYPE": "VARCHAR", + "OCCURRENCES": "INT", + "POPULATION COUNT": "INT", + "PREVALENCE RATE": "REAL", + "PREVALENCE PERCENTAGE": "REAL" + }, + "allergies": { + "START": "VARCHAR", + "STOP": "VARCHAR", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR" + }, + "careplans": { + "ID": "VARCHAR", + "START": "REAL", + "STOP": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "REAL", + "DESCRIPTION": "VARCHAR", + "REASONCODE": "INT", + "REASONDESCRIPTION": "VARCHAR" + }, + "claims": { + "ID": "VARCHAR", + "PATIENT": "VARCHAR", + "BILLABLEPERIOD": "REAL", + "ORGANIZATION": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "DIAGNOSIS": "VARCHAR", + "TOTAL": "INT" + }, + "conditions": { + "START": "REAL", + "STOP": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR" + }, + "encounters": { + "ID": "VARCHAR", + "DATE": "REAL", + "PATIENT": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR", + "REASONCODE": "INT", + "REASONDESCRIPTION": "VARCHAR" + }, + "immunizations": { + "DATE": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR" + }, + "medications": { + "START": "REAL", + "STOP": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR", + "REASONCODE": "INT", + "REASONDESCRIPTION": "VARCHAR" + }, + "observations": { + "DATE": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "VARCHAR", + "DESCRIPTION": "VARCHAR", + "VALUE": "REAL", + "UNITS": "VARCHAR" + }, + "patients": { + "patient": "VARCHAR", + "birthdate": "REAL", + "deathdate": "REAL", + "ssn": "VARCHAR", + "drivers": "VARCHAR", + "passport": "VARCHAR", + "prefix": "VARCHAR", + "first": "VARCHAR", + "last": "VARCHAR", + "suffix": "VARCHAR", + "maiden": "VARCHAR", + "marital": "VARCHAR", + "race": "VARCHAR", + "ethnicity": "VARCHAR", + "gender": "VARCHAR", + "birthplace": "VARCHAR", + "address": "VARCHAR" + }, + "procedures": { + "DATE": "REAL", + "PATIENT": "VARCHAR", + "ENCOUNTER": "VARCHAR", + "CODE": "INT", + "DESCRIPTION": "VARCHAR", + "REASONCODE": "INT", + "REASONDESCRIPTION": "VARCHAR" + } + }, + "policies": [ + { + "table": "allergies", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"allergies\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "allergies", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"allergies\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "careplans", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"careplans\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "careplans", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"careplans\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "claims", + "id": 0, + "declaration": [ + [ + 0, + 0, + "encounters", + "ENCOUNTER", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 20523, + "query": "SELECT COUNT(*) FROM \"claims\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "claims", + "id": 1, + "declaration": [ + [ + 1, + 0, + "patients", + "PATIENT", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"claims\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "conditions", + "id": 0, + "declaration": [ + [ + 0, + 0, + "all_prevalences", + "DESCRIPTION", + "ITEM", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 5620, + "query": "SELECT COUNT(*) FROM \"conditions\" c WHERE c.\"DESCRIPTION\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"all_prevalences\" p WHERE p.\"ITEM\" = c.\"DESCRIPTION\")" + }, + { + "table": "conditions", + "id": 1, + "declaration": [ + [ + 1, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"conditions\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "conditions", + "id": 2, + "declaration": [ + [ + 2, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"conditions\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "encounters", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"encounters\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "immunizations", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"immunizations\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "immunizations", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"immunizations\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "medications", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"medications\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "medications", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"medications\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "observations", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"observations\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "observations", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"observations\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + }, + { + "table": "procedures", + "id": 0, + "declaration": [ + [ + 0, + 0, + "patients", + "PATIENT", + "patient", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"procedures\" c WHERE c.\"PATIENT\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"patients\" p WHERE p.\"patient\" = c.\"PATIENT\")" + }, + { + "table": "procedures", + "id": 1, + "declaration": [ + [ + 1, + 0, + "encounters", + "ENCOUNTER", + "ID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"procedures\" c WHERE c.\"ENCOUNTER\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"encounters\" p WHERE p.\"ID\" = c.\"ENCOUNTER\")" + } + ], + "sha256": "7803821b0e4f7e88dfb89461d85d3c6e0e4cfe31a9c6fd979d07fa5b735bffd4" + }, + "talkingdata": { + "schema": [ + [ + "table", + "app_all", + "app_all", + "CREATE TABLE `app_all`\n(\n `app_id` INTEGER NOT NULL,\n PRIMARY KEY (`app_id`)\n)" + ], + [ + "table", + "app_events", + "app_events", + "CREATE TABLE `app_events` (\n `event_id` INTEGER NOT NULL,\n `app_id` INTEGER NOT NULL,\n `is_installed` INTEGER NOT NULL,\n `is_active` INTEGER NOT NULL,\n PRIMARY KEY (`event_id`,`app_id`),\n FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "app_events_relevant", + "app_events_relevant", + "CREATE TABLE `app_events_relevant` (\n `event_id` INTEGER NOT NULL,\n `app_id` INTEGER NOT NULL,\n `is_installed` INTEGER DEFAULT NULL,\n `is_active` INTEGER DEFAULT NULL,\n PRIMARY KEY (`event_id`,`app_id`),\n FOREIGN KEY (`event_id`) REFERENCES `events_relevant` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "app_labels", + "app_labels", + "CREATE TABLE `app_labels` (\n `app_id` INTEGER NOT NULL,\n `label_id` INTEGER NOT NULL,\n FOREIGN KEY (`label_id`) REFERENCES `label_categories` (`label_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "events", + "events", + "CREATE TABLE `events` (\n `event_id` INTEGER NOT NULL,\n `device_id` INTEGER DEFAULT NULL,\n `timestamp` DATETIME DEFAULT NULL,\n `longitude` REAL DEFAULT NULL,\n `latitude` REAL DEFAULT NULL,\n PRIMARY KEY (`event_id`)\n)" + ], + [ + "table", + "events_relevant", + "events_relevant", + "CREATE TABLE `events_relevant` (\n `event_id` INTEGER NOT NULL,\n `device_id` INTEGER DEFAULT NULL,\n `timestamp` DATETIME NOT NULL,\n `longitude` REAL NOT NULL,\n `latitude` REAL NOT NULL,\n PRIMARY KEY (`event_id`),\n FOREIGN KEY (`device_id`) REFERENCES `gender_age` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "gender_age", + "gender_age", + "CREATE TABLE `gender_age` (\n `device_id` INTEGER NOT NULL,\n `gender` TEXT DEFAULT NULL,\n `age` INTEGER DEFAULT NULL,\n `group` TEXT DEFAULT NULL,\n PRIMARY KEY (`device_id`),\n FOREIGN KEY (`device_id`) REFERENCES `phone_brand_device_model2` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "gender_age_test", + "gender_age_test", + "CREATE TABLE `gender_age_test` (\n `device_id` INTEGER NOT NULL,\n PRIMARY KEY (`device_id`)\n)" + ], + [ + "table", + "gender_age_train", + "gender_age_train", + "CREATE TABLE `gender_age_train` (\n `device_id` INTEGER NOT NULL,\n `gender` TEXT DEFAULT NULL,\n `age` INTEGER DEFAULT NULL,\n `group` TEXT DEFAULT NULL,\n PRIMARY KEY (`device_id`)\n)" + ], + [ + "table", + "label_categories", + "label_categories", + "CREATE TABLE `label_categories` (\n `label_id` INTEGER NOT NULL,\n `category` TEXT DEFAULT NULL,\n PRIMARY KEY (`label_id`)\n)" + ], + [ + "table", + "phone_brand_device_model2", + "phone_brand_device_model2", + "CREATE TABLE `phone_brand_device_model2` (\n `device_id` INTEGER NOT NULL,\n `phone_brand` TEXT NOT NULL,\n `device_model` TEXT NOT NULL,\n PRIMARY KEY (`device_id`,`phone_brand`,`device_model`)\n)" + ], + [ + "table", + "sample_submission", + "sample_submission", + "CREATE TABLE `sample_submission` (\n `device_id` INTEGER NOT NULL,\n `F23-` REAL DEFAULT NULL,\n `F24-26` REAL DEFAULT NULL,\n `F27-28` REAL DEFAULT NULL,\n `F29-32` REAL DEFAULT NULL,\n `F33-42` REAL DEFAULT NULL,\n `F43+` REAL DEFAULT NULL,\n `M22-` REAL DEFAULT NULL,\n `M23-26` REAL DEFAULT NULL,\n `M27-28` REAL DEFAULT NULL,\n `M29-31` REAL DEFAULT NULL,\n `M32-38` REAL DEFAULT NULL,\n `M39+` REAL DEFAULT NULL,\n PRIMARY KEY (`device_id`)\n)" + ] + ], + "solver_schema": { + "app_all": { + "app_id": "INT" + }, + "app_events": { + "event_id": "INT", + "app_id": "INT", + "is_installed": "INT", + "is_active": "INT" + }, + "app_events_relevant": { + "event_id": "INT", + "app_id": "INT", + "is_installed": "INT", + "is_active": "INT" + }, + "app_labels": { + "app_id": "INT", + "label_id": "INT" + }, + "events": { + "event_id": "INT", + "device_id": "INT", + "timestamp": "REAL", + "longitude": "REAL", + "latitude": "REAL" + }, + "events_relevant": { + "event_id": "INT", + "device_id": "INT", + "timestamp": "REAL", + "longitude": "REAL", + "latitude": "REAL" + }, + "gender_age": { + "device_id": "INT", + "gender": "VARCHAR", + "age": "INT", + "group": "VARCHAR" + }, + "gender_age_test": { + "device_id": "INT" + }, + "gender_age_train": { + "device_id": "INT", + "gender": "VARCHAR", + "age": "INT", + "group": "VARCHAR" + }, + "label_categories": { + "label_id": "INT", + "category": "VARCHAR" + }, + "phone_brand_device_model2": { + "device_id": "INT", + "phone_brand": "VARCHAR", + "device_model": "VARCHAR" + }, + "sample_submission": { + "device_id": "INT", + "F23-": "REAL", + "F24-26": "REAL", + "F27-28": "REAL", + "F29-32": "REAL", + "F33-42": "REAL", + "F43+": "REAL", + "M22-": "REAL", + "M23-26": "REAL", + "M27-28": "REAL", + "M29-31": "REAL", + "M32-38": "REAL", + "M39+": "REAL" + } + }, + "policies": [ + { + "table": "app_events", + "id": 0, + "declaration": [ + [ + 0, + 0, + "events", + "event_id", + "event_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "app_events_relevant", + "id": 0, + "declaration": [ + [ + 0, + 0, + "app_all", + "app_id", + "app_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"app_events_relevant\" c WHERE c.\"app_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"app_all\" p WHERE p.\"app_id\" = c.\"app_id\")" + }, + { + "table": "app_events_relevant", + "id": 1, + "declaration": [ + [ + 1, + 0, + "events_relevant", + "event_id", + "event_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"app_events_relevant\" c WHERE c.\"event_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"events_relevant\" p WHERE p.\"event_id\" = c.\"event_id\")" + }, + { + "table": "app_labels", + "id": 0, + "declaration": [ + [ + 0, + 0, + "app_all", + "app_id", + "app_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"app_labels\" c WHERE c.\"app_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"app_all\" p WHERE p.\"app_id\" = c.\"app_id\")" + }, + { + "table": "app_labels", + "id": 1, + "declaration": [ + [ + 1, + 0, + "label_categories", + "label_id", + "label_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"app_labels\" c WHERE c.\"label_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"label_categories\" p WHERE p.\"label_id\" = c.\"label_id\")" + }, + { + "table": "events_relevant", + "id": 0, + "declaration": [ + [ + 0, + 0, + "gender_age", + "device_id", + "device_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"events_relevant\" c WHERE c.\"device_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"gender_age\" p WHERE p.\"device_id\" = c.\"device_id\")" + }, + { + "table": "gender_age", + "id": 0, + "declaration": [ + [ + 0, + 0, + "phone_brand_device_model2", + "device_id", + "device_id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "advisory_malformed", + "error": "foreign key mismatch - \"__witness_fk_probe\" referencing \"phone_brand_device_model2\"" + } + ], + "sha256": "a195526a8824c48ebdb1f0e5ddf5019d467a377022d52bda6b886936b09c1a50" + }, + "trains": { + "schema": [ + [ + "table", + "cars", + "cars", + "CREATE TABLE `cars` (\n `id` INTEGER NOT NULL,\n `train_id` INTEGER DEFAULT NULL,\n `position` INTEGER DEFAULT NULL,\n `shape` TEXT DEFAULT NULL,\n `len`TEXT DEFAULT NULL,\n `sides` TEXT DEFAULT NULL,\n `roof` TEXT DEFAULT NULL,\n `wheels` INTEGER DEFAULT NULL,\n `load_shape` TEXT DEFAULT NULL,\n `load_num` INTEGER DEFAULT NULL,\n PRIMARY KEY (`id`),\n FOREIGN KEY (`train_id`) REFERENCES `trains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n)" + ], + [ + "table", + "trains", + "trains", + "CREATE TABLE `trains` (\n `id` INTEGER NOT NULL,\n `direction` TEXT DEFAULT NULL,\n PRIMARY KEY (`id`)\n)" + ] + ], + "solver_schema": { + "cars": { + "id": "INT", + "train_id": "INT", + "position": "INT", + "shape": "VARCHAR", + "len": "VARCHAR", + "sides": "VARCHAR", + "roof": "VARCHAR", + "wheels": "INT", + "load_shape": "VARCHAR", + "load_num": "INT" + }, + "trains": { + "id": "INT", + "direction": "VARCHAR" + } + }, + "policies": [ + { + "table": "cars", + "id": 0, + "declaration": [ + [ + 0, + 0, + "trains", + "train_id", + "id", + "CASCADE", + "CASCADE", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"cars\" c WHERE c.\"train_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"trains\" p WHERE p.\"id\" = c.\"train_id\")" + } + ], + "sha256": "5ff21e3769ac341aec4b58d8c3e2fc5215688958cc2c0a82132223eeb124d724" + }, + "university": { + "schema": [ + [ + "table", + "country", + "country", + "CREATE TABLE country\n(\n id INTEGER not null\n primary key,\n country_name TEXT default NULL\n)" + ], + [ + "table", + "ranking_criteria", + "ranking_criteria", + "CREATE TABLE ranking_criteria\n(\n id INTEGER not null\n primary key,\n ranking_system_id INTEGER default NULL,\n criteria_name TEXT default NULL,\n foreign key (ranking_system_id) references ranking_system(id)\n)" + ], + [ + "table", + "ranking_system", + "ranking_system", + "CREATE TABLE ranking_system\n(\n id INTEGER not null\n primary key,\n system_name TEXT default NULL\n)" + ], + [ + "table", + "university", + "university", + "CREATE TABLE university\n(\n id INTEGER not null\n primary key,\n country_id INTEGER default NULL,\n university_name TEXT default NULL,\n foreign key (country_id) references country(id)\n)" + ], + [ + "table", + "university_ranking_year", + "university_ranking_year", + "CREATE TABLE university_ranking_year\n(\n university_id INTEGER default NULL,\n ranking_criteria_id INTEGER default NULL,\n year INTEGER default NULL,\n score INTEGER default NULL,\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n)" + ], + [ + "table", + "university_year", + "university_year", + "CREATE TABLE university_year\n(\n university_id INTEGER default NULL,\n year INTEGER default NULL,\n num_students INTEGER default NULL,\n student_staff_ratio REAL default NULL,\n pct_international_students INTEGER default NULL,\n pct_female_students INTEGER default NULL,\n foreign key (university_id) references university(id)\n)" + ] + ], + "solver_schema": { + "country": { + "id": "INT", + "country_name": "VARCHAR" + }, + "ranking_criteria": { + "id": "INT", + "ranking_system_id": "INT", + "criteria_name": "VARCHAR" + }, + "ranking_system": { + "id": "INT", + "system_name": "VARCHAR" + }, + "university": { + "id": "INT", + "country_id": "INT", + "university_name": "VARCHAR" + }, + "university_ranking_year": { + "university_id": "INT", + "ranking_criteria_id": "INT", + "year": "INT", + "score": "INT" + }, + "university_year": { + "university_id": "INT", + "year": "INT", + "num_students": "INT", + "student_staff_ratio": "REAL", + "pct_international_students": "INT", + "pct_female_students": "INT" + } + }, + "policies": [ + { + "table": "ranking_criteria", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ranking_system", + "ranking_system_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ranking_criteria\" c WHERE c.\"ranking_system_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ranking_system\" p WHERE p.\"id\" = c.\"ranking_system_id\")" + }, + { + "table": "university", + "id": 0, + "declaration": [ + [ + 0, + 0, + "country", + "country_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"university\" c WHERE c.\"country_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"country\" p WHERE p.\"id\" = c.\"country_id\")" + }, + { + "table": "university_ranking_year", + "id": 0, + "declaration": [ + [ + 0, + 0, + "university", + "university_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"university_ranking_year\" c WHERE c.\"university_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"university\" p WHERE p.\"id\" = c.\"university_id\")" + }, + { + "table": "university_ranking_year", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ranking_criteria", + "ranking_criteria_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"university_ranking_year\" c WHERE c.\"ranking_criteria_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ranking_criteria\" p WHERE p.\"id\" = c.\"ranking_criteria_id\")" + }, + { + "table": "university_year", + "id": 0, + "declaration": [ + [ + 0, + 0, + "university", + "university_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"university_year\" c WHERE c.\"university_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"university\" p WHERE p.\"id\" = c.\"university_id\")" + } + ], + "sha256": "295afab81225bea2df72f5b779e4da0b6c5fb691ff8f7e9f448ed20e54555e18" + }, + "video_games": { + "schema": [ + [ + "table", + "game", + "game", + "CREATE TABLE game\n(\n id INTEGER not null\n primary key,\n genre_id INTEGER default NULL,\n game_name TEXT default NULL,\n foreign key (genre_id) references genre(id)\n)" + ], + [ + "table", + "game_platform", + "game_platform", + "CREATE TABLE game_platform\n(\n id INTEGER not null\n primary key,\n game_publisher_id INTEGER default NULL,\n platform_id INTEGER default NULL,\n release_year INTEGER default NULL,\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n)" + ], + [ + "table", + "game_publisher", + "game_publisher", + "CREATE TABLE game_publisher\n(\n id INTEGER not null\n primary key,\n game_id INTEGER default NULL,\n publisher_id INTEGER default NULL,\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n)" + ], + [ + "table", + "genre", + "genre", + "CREATE TABLE genre\n(\n id INTEGER not null\n primary key,\n genre_name TEXT default NULL\n)" + ], + [ + "table", + "platform", + "platform", + "CREATE TABLE platform\n(\n id INTEGER not null\n primary key,\n platform_name TEXT default NULL\n)" + ], + [ + "table", + "publisher", + "publisher", + "CREATE TABLE publisher\n(\n id INTEGER not null\n primary key,\n publisher_name TEXT default NULL\n)" + ], + [ + "table", + "region", + "region", + "CREATE TABLE region\n(\n id INTEGER not null\n primary key,\n region_name TEXT default NULL\n)" + ], + [ + "table", + "region_sales", + "region_sales", + "CREATE TABLE region_sales\n(\n region_id INTEGER default NULL,\n game_platform_id INTEGER default NULL,\n num_sales REAL default NULL,\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n)" + ] + ], + "solver_schema": { + "game": { + "id": "INT", + "genre_id": "INT", + "game_name": "VARCHAR" + }, + "game_platform": { + "id": "INT", + "game_publisher_id": "INT", + "platform_id": "INT", + "release_year": "INT" + }, + "game_publisher": { + "id": "INT", + "game_id": "INT", + "publisher_id": "INT" + }, + "genre": { + "id": "INT", + "genre_name": "VARCHAR" + }, + "platform": { + "id": "INT", + "platform_name": "VARCHAR" + }, + "publisher": { + "id": "INT", + "publisher_name": "VARCHAR" + }, + "region": { + "id": "INT", + "region_name": "VARCHAR" + }, + "region_sales": { + "region_id": "INT", + "game_platform_id": "INT", + "num_sales": "REAL" + } + }, + "policies": [ + { + "table": "game", + "id": 0, + "declaration": [ + [ + 0, + 0, + "genre", + "genre_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"game\" c WHERE c.\"genre_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"genre\" p WHERE p.\"id\" = c.\"genre_id\")" + }, + { + "table": "game_platform", + "id": 0, + "declaration": [ + [ + 0, + 0, + "platform", + "platform_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"game_platform\" c WHERE c.\"platform_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"platform\" p WHERE p.\"id\" = c.\"platform_id\")" + }, + { + "table": "game_platform", + "id": 1, + "declaration": [ + [ + 1, + 0, + "game_publisher", + "game_publisher_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"game_platform\" c WHERE c.\"game_publisher_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"game_publisher\" p WHERE p.\"id\" = c.\"game_publisher_id\")" + }, + { + "table": "game_publisher", + "id": 0, + "declaration": [ + [ + 0, + 0, + "publisher", + "publisher_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"game_publisher\" c WHERE c.\"publisher_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"publisher\" p WHERE p.\"id\" = c.\"publisher_id\")" + }, + { + "table": "game_publisher", + "id": 1, + "declaration": [ + [ + 1, + 0, + "game", + "game_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 43, + "query": "SELECT COUNT(*) FROM \"game_publisher\" c WHERE c.\"game_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"game\" p WHERE p.\"id\" = c.\"game_id\")" + }, + { + "table": "region_sales", + "id": 0, + "declaration": [ + [ + 0, + 0, + "region", + "region_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"region_sales\" c WHERE c.\"region_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"region\" p WHERE p.\"id\" = c.\"region_id\")" + }, + { + "table": "region_sales", + "id": 1, + "declaration": [ + [ + 1, + 0, + "game_platform", + "game_platform_id", + "id", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"region_sales\" c WHERE c.\"game_platform_id\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"game_platform\" p WHERE p.\"id\" = c.\"game_platform_id\")" + } + ], + "sha256": "d45a2b2e9014c1bac97ab0a94ca71a3d17632f046e48e3766134d01f5e155641" + }, + "works_cycles": { + "schema": [ + [ + "table", + "Address", + "Address", + "CREATE TABLE \"Address\"\n(\n AddressID INTEGER\n primary key autoincrement,\n AddressLine1 TEXT not null,\n AddressLine2 TEXT,\n City TEXT not null,\n StateProvinceID INTEGER not null\n references StateProvince,\n PostalCode TEXT not null,\n SpatialLocation TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (AddressLine1, AddressLine2, City, StateProvinceID, PostalCode)\n)" + ], + [ + "table", + "AddressType", + "AddressType", + "CREATE TABLE \"AddressType\"\n(\n AddressTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "BillOfMaterials", + "BillOfMaterials", + "CREATE TABLE \"BillOfMaterials\"\n(\n BillOfMaterialsID INTEGER\n primary key autoincrement,\n ProductAssemblyID INTEGER\n references Product,\n ComponentID INTEGER not null\n references Product,\n StartDate DATETIME default current_timestamp not null,\n EndDate DATETIME,\n UnitMeasureCode TEXT not null\n references UnitMeasure,\n BOMLevel INTEGER not null,\n PerAssemblyQty REAL default 1.00 not null,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (ProductAssemblyID, ComponentID, StartDate)\n)" + ], + [ + "table", + "BusinessEntity", + "BusinessEntity", + "CREATE TABLE \"BusinessEntity\"\n(\n BusinessEntityID INTEGER\n primary key autoincrement,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "BusinessEntityAddress", + "BusinessEntityAddress", + "CREATE TABLE BusinessEntityAddress\n(\n BusinessEntityID INTEGER not null,\n AddressID INTEGER not null,\n AddressTypeID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n)" + ], + [ + "table", + "BusinessEntityContact", + "BusinessEntityContact", + "CREATE TABLE BusinessEntityContact\n(\n BusinessEntityID INTEGER not null,\n PersonID INTEGER not null,\n ContactTypeID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n)" + ], + [ + "table", + "ContactType", + "ContactType", + "CREATE TABLE \"ContactType\"\n(\n ContactTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "CountryRegion", + "CountryRegion", + "CREATE TABLE CountryRegion\n(\n CountryRegionCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "CountryRegionCurrency", + "CountryRegionCurrency", + "CREATE TABLE CountryRegionCurrency\n(\n CountryRegionCode TEXT not null,\n CurrencyCode TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n)" + ], + [ + "table", + "CreditCard", + "CreditCard", + "CREATE TABLE \"CreditCard\"\n(\n CreditCardID INTEGER\n primary key autoincrement,\n CardType TEXT not null,\n CardNumber TEXT not null\n unique,\n ExpMonth INTEGER not null,\n ExpYear INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Culture", + "Culture", + "CREATE TABLE Culture\n(\n CultureID TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Currency", + "Currency", + "CREATE TABLE Currency\n(\n CurrencyCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "CurrencyRate", + "CurrencyRate", + "CREATE TABLE \"CurrencyRate\"\n(\n CurrencyRateID INTEGER\n primary key autoincrement,\n CurrencyRateDate DATETIME not null,\n FromCurrencyCode TEXT not null\n references Currency,\n ToCurrencyCode TEXT not null\n references Currency,\n AverageRate REAL not null,\n EndOfDayRate REAL not null,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (CurrencyRateDate, FromCurrencyCode, ToCurrencyCode)\n)" + ], + [ + "table", + "Customer", + "Customer", + "CREATE TABLE Customer\n(\n CustomerID INTEGER\n primary key,\n PersonID INTEGER,\n StoreID INTEGER,\n TerritoryID INTEGER,\n AccountNumber TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n)" + ], + [ + "table", + "Department", + "Department", + "CREATE TABLE \"Department\"\n(\n DepartmentID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n GroupName TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Document", + "Document", + "CREATE TABLE \"Document\"\n(\n DocumentNode TEXT not null\n primary key,\n DocumentLevel INTEGER,\n Title TEXT not null,\n Owner INTEGER not null\n references Employee,\n FolderFlag INTEGER default 0 not null,\n FileName TEXT not null,\n FileExtension TEXT not null,\n Revision TEXT not null,\n ChangeNumber INTEGER default 0 not null,\n Status INTEGER not null,\n DocumentSummary TEXT,\n Document BLOB,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (DocumentLevel, DocumentNode)\n)" + ], + [ + "table", + "EmailAddress", + "EmailAddress", + "CREATE TABLE EmailAddress\n(\n BusinessEntityID INTEGER not null,\n EmailAddressID INTEGER,\n EmailAddress TEXT,\n rowguid TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n)" + ], + [ + "table", + "Employee", + "Employee", + "CREATE TABLE Employee\n(\n BusinessEntityID INTEGER not null\n primary key,\n NationalIDNumber TEXT not null\n unique,\n LoginID TEXT not null\n unique,\n OrganizationNode TEXT,\n OrganizationLevel INTEGER,\n JobTitle TEXT not null,\n BirthDate DATE not null,\n MaritalStatus TEXT not null,\n Gender TEXT not null,\n HireDate DATE not null,\n SalariedFlag INTEGER default 1 not null,\n VacationHours INTEGER default 0 not null,\n SickLeaveHours INTEGER default 0 not null,\n CurrentFlag INTEGER default 1 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n)" + ], + [ + "table", + "EmployeeDepartmentHistory", + "EmployeeDepartmentHistory", + "CREATE TABLE \"EmployeeDepartmentHistory\"\n(\n BusinessEntityID INTEGER not null\n references Employee,\n DepartmentID INTEGER not null\n references Department,\n ShiftID INTEGER not null\n references Shift,\n StartDate DATE not null,\n EndDate DATE,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n)" + ], + [ + "table", + "EmployeePayHistory", + "EmployeePayHistory", + "CREATE TABLE \"EmployeePayHistory\"\n(\n BusinessEntityID INTEGER not null\n references Employee,\n RateChangeDate DATETIME not null,\n Rate REAL not null,\n PayFrequency INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, RateChangeDate)\n)" + ], + [ + "table", + "JobCandidate", + "JobCandidate", + "CREATE TABLE \"JobCandidate\"\n(\n JobCandidateID INTEGER\n primary key autoincrement,\n BusinessEntityID INTEGER\n references Employee,\n Resume TEXT,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Location", + "Location", + "CREATE TABLE \"Location\"\n(\n LocationID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CostRate REAL default 0.0000 not null,\n Availability REAL default 0.00 not null,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Password", + "Password", + "CREATE TABLE Password\n(\n BusinessEntityID INTEGER not null\n primary key,\n PasswordHash TEXT not null,\n PasswordSalt TEXT not null,\n rowguid TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n)" + ], + [ + "table", + "Person", + "Person", + "CREATE TABLE Person\n(\n BusinessEntityID INTEGER not null\n primary key,\n PersonType TEXT not null,\n NameStyle INTEGER default 0 not null,\n Title TEXT,\n FirstName TEXT not null,\n MiddleName TEXT,\n LastName TEXT not null,\n Suffix TEXT,\n EmailPromotion INTEGER default 0 not null,\n AdditionalContactInfo TEXT,\n Demographics TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n)" + ], + [ + "table", + "PersonCreditCard", + "PersonCreditCard", + "CREATE TABLE PersonCreditCard\n(\n BusinessEntityID INTEGER not null,\n CreditCardID INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n)" + ], + [ + "table", + "PhoneNumberType", + "PhoneNumberType", + "CREATE TABLE \"PhoneNumberType\"\n(\n PhoneNumberTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "Product", + "Product", + "CREATE TABLE \"Product\"\n(\n ProductID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ProductNumber TEXT not null\n unique,\n MakeFlag INTEGER default 1 not null,\n FinishedGoodsFlag INTEGER default 1 not null,\n Color TEXT,\n SafetyStockLevel INTEGER not null,\n ReorderPoint INTEGER not null,\n StandardCost REAL not null,\n ListPrice REAL not null,\n Size TEXT,\n SizeUnitMeasureCode TEXT\n references UnitMeasure,\n WeightUnitMeasureCode TEXT\n references UnitMeasure,\n Weight REAL,\n DaysToManufacture INTEGER not null,\n ProductLine TEXT,\n Class TEXT,\n Style TEXT,\n ProductSubcategoryID INTEGER\n references ProductSubcategory,\n ProductModelID INTEGER\n references ProductModel,\n SellStartDate DATETIME not null,\n SellEndDate DATETIME,\n DiscontinuedDate DATETIME,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n)" + ], + [ + "table", + "ProductCategory", + "ProductCategory", + "CREATE TABLE ProductCategory\n(\n ProductCategoryID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "ProductCostHistory", + "ProductCostHistory", + "CREATE TABLE ProductCostHistory\n(\n ProductID INTEGER not null,\n StartDate DATE not null,\n EndDate DATE,\n StandardCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "ProductDescription", + "ProductDescription", + "CREATE TABLE ProductDescription\n(\n ProductDescriptionID INTEGER\n primary key autoincrement,\n Description TEXT not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "ProductDocument", + "ProductDocument", + "CREATE TABLE ProductDocument\n(\n ProductID INTEGER not null,\n DocumentNode TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n)" + ], + [ + "table", + "ProductInventory", + "ProductInventory", + "CREATE TABLE ProductInventory\n(\n ProductID INTEGER not null,\n LocationID INTEGER not null,\n Shelf TEXT not null,\n Bin INTEGER not null,\n Quantity INTEGER default 0 not null,\n rowguid TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n)" + ], + [ + "table", + "ProductListPriceHistory", + "ProductListPriceHistory", + "CREATE TABLE ProductListPriceHistory\n(\n ProductID INTEGER not null,\n StartDate DATE not null,\n EndDate DATE,\n ListPrice REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "ProductModel", + "ProductModel", + "CREATE TABLE ProductModel\n(\n ProductModelID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CatalogDescription TEXT,\n Instructions TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "ProductModelProductDescriptionCulture", + "ProductModelProductDescriptionCulture", + "CREATE TABLE ProductModelProductDescriptionCulture\n(\n ProductModelID INTEGER not null,\n ProductDescriptionID INTEGER not null,\n CultureID TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n)" + ], + [ + "table", + "ProductPhoto", + "ProductPhoto", + "CREATE TABLE ProductPhoto\n(\n ProductPhotoID INTEGER\n primary key autoincrement,\n ThumbNailPhoto BLOB,\n ThumbnailPhotoFileName TEXT,\n LargePhoto BLOB,\n LargePhotoFileName TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "ProductProductPhoto", + "ProductProductPhoto", + "CREATE TABLE ProductProductPhoto\n(\n ProductID INTEGER not null,\n ProductPhotoID INTEGER not null,\n \"Primary\" INTEGER default 0 not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n)" + ], + [ + "table", + "ProductReview", + "ProductReview", + "CREATE TABLE ProductReview\n(\n ProductReviewID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n ReviewerName TEXT not null,\n ReviewDate DATETIME default CURRENT_TIMESTAMP not null,\n EmailAddress TEXT not null,\n Rating INTEGER not null,\n Comments TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "ProductSubcategory", + "ProductSubcategory", + "CREATE TABLE ProductSubcategory\n(\n ProductSubcategoryID INTEGER\n primary key autoincrement,\n ProductCategoryID INTEGER not null,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n)" + ], + [ + "table", + "ProductVendor", + "ProductVendor", + "CREATE TABLE ProductVendor\n(\n ProductID INTEGER not null,\n BusinessEntityID INTEGER not null,\n AverageLeadTime INTEGER not null,\n StandardPrice REAL not null,\n LastReceiptCost REAL,\n LastReceiptDate DATETIME,\n MinOrderQty INTEGER not null,\n MaxOrderQty INTEGER not null,\n OnOrderQty INTEGER,\n UnitMeasureCode TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n)" + ], + [ + "table", + "PurchaseOrderDetail", + "PurchaseOrderDetail", + "CREATE TABLE PurchaseOrderDetail\n(\n PurchaseOrderID INTEGER not null,\n PurchaseOrderDetailID INTEGER\n primary key autoincrement,\n DueDate DATETIME not null,\n OrderQty INTEGER not null,\n ProductID INTEGER not null,\n UnitPrice REAL not null,\n LineTotal REAL not null,\n ReceivedQty REAL not null,\n RejectedQty REAL not null,\n StockedQty REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "PurchaseOrderHeader", + "PurchaseOrderHeader", + "CREATE TABLE PurchaseOrderHeader\n(\n PurchaseOrderID INTEGER\n primary key autoincrement,\n RevisionNumber INTEGER default 0 not null,\n Status INTEGER default 1 not null,\n EmployeeID INTEGER not null,\n VendorID INTEGER not null,\n ShipMethodID INTEGER not null,\n OrderDate DATETIME default CURRENT_TIMESTAMP not null,\n ShipDate DATETIME,\n SubTotal REAL default 0.0000 not null,\n TaxAmt REAL default 0.0000 not null,\n Freight REAL default 0.0000 not null,\n TotalDue REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n)" + ], + [ + "table", + "SalesOrderDetail", + "SalesOrderDetail", + "CREATE TABLE SalesOrderDetail\n(\n SalesOrderID INTEGER not null,\n SalesOrderDetailID INTEGER\n primary key autoincrement,\n CarrierTrackingNumber TEXT,\n OrderQty INTEGER not null,\n ProductID INTEGER not null,\n SpecialOfferID INTEGER not null,\n UnitPrice REAL not null,\n UnitPriceDiscount REAL default 0.0000 not null,\n LineTotal REAL not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n)" + ], + [ + "table", + "SalesOrderHeader", + "SalesOrderHeader", + "CREATE TABLE \"SalesOrderHeader\"\n(\n SalesOrderID INTEGER\n primary key autoincrement,\n RevisionNumber INTEGER default 0 not null,\n OrderDate DATETIME default CURRENT_TIMESTAMP not null,\n DueDate DATETIME not null,\n ShipDate DATETIME,\n Status INTEGER default 1 not null,\n OnlineOrderFlag INTEGER default 1 not null,\n SalesOrderNumber TEXT not null\n unique,\n PurchaseOrderNumber TEXT,\n AccountNumber TEXT,\n CustomerID INTEGER not null\n references Customer,\n SalesPersonID INTEGER\n references SalesPerson,\n TerritoryID INTEGER\n references SalesTerritory,\n BillToAddressID INTEGER not null\n references Address,\n ShipToAddressID INTEGER not null\n references Address,\n ShipMethodID INTEGER not null\n references Address,\n CreditCardID INTEGER\n references CreditCard,\n CreditCardApprovalCode TEXT,\n CurrencyRateID INTEGER\n references CurrencyRate,\n SubTotal REAL default 0.0000 not null,\n TaxAmt REAL default 0.0000 not null,\n Freight REAL default 0.0000 not null,\n TotalDue REAL not null,\n Comment TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "SalesOrderHeaderSalesReason", + "SalesOrderHeaderSalesReason", + "CREATE TABLE SalesOrderHeaderSalesReason\n(\n SalesOrderID INTEGER not null,\n SalesReasonID INTEGER not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n)" + ], + [ + "table", + "SalesPerson", + "SalesPerson", + "CREATE TABLE SalesPerson\n(\n BusinessEntityID INTEGER not null\n primary key,\n TerritoryID INTEGER,\n SalesQuota REAL,\n Bonus REAL default 0.0000 not null,\n CommissionPct REAL default 0.0000 not null,\n SalesYTD REAL default 0.0000 not null,\n SalesLastYear REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n)" + ], + [ + "table", + "SalesPersonQuotaHistory", + "SalesPersonQuotaHistory", + "CREATE TABLE SalesPersonQuotaHistory\n(\n BusinessEntityID INTEGER not null,\n QuotaDate DATETIME not null,\n SalesQuota REAL not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n)" + ], + [ + "table", + "SalesReason", + "SalesReason", + "CREATE TABLE SalesReason\n(\n SalesReasonID INTEGER\n primary key autoincrement,\n Name TEXT not null,\n ReasonType TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "SalesTaxRate", + "SalesTaxRate", + "CREATE TABLE SalesTaxRate\n(\n SalesTaxRateID INTEGER\n primary key autoincrement,\n StateProvinceID INTEGER not null,\n TaxType INTEGER not null,\n TaxRate REAL default 0.0000 not null,\n Name TEXT not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StateProvinceID, TaxType),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n)" + ], + [ + "table", + "SalesTerritory", + "SalesTerritory", + "CREATE TABLE SalesTerritory\n(\n TerritoryID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CountryRegionCode TEXT not null,\n \"Group\" TEXT not null,\n SalesYTD REAL default 0.0000 not null,\n SalesLastYear REAL default 0.0000 not null,\n CostYTD REAL default 0.0000 not null,\n CostLastYear REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n)" + ], + [ + "table", + "SalesTerritoryHistory", + "SalesTerritoryHistory", + "CREATE TABLE SalesTerritoryHistory\n(\n BusinessEntityID INTEGER not null,\n TerritoryID INTEGER not null,\n StartDate DATETIME not null,\n EndDate DATETIME,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n)" + ], + [ + "table", + "ScrapReason", + "ScrapReason", + "CREATE TABLE ScrapReason\n(\n ScrapReasonID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "Shift", + "Shift", + "CREATE TABLE Shift\n(\n ShiftID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n StartTime TEXT not null,\n EndTime TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StartTime, EndTime)\n)" + ], + [ + "table", + "ShipMethod", + "ShipMethod", + "CREATE TABLE ShipMethod\n(\n ShipMethodID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ShipBase REAL default 0.0000 not null,\n ShipRate REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "ShoppingCartItem", + "ShoppingCartItem", + "CREATE TABLE ShoppingCartItem\n(\n ShoppingCartItemID INTEGER\n primary key autoincrement,\n ShoppingCartID TEXT not null,\n Quantity INTEGER default 1 not null,\n ProductID INTEGER not null,\n DateCreated DATETIME default CURRENT_TIMESTAMP not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "SpecialOffer", + "SpecialOffer", + "CREATE TABLE SpecialOffer\n(\n SpecialOfferID INTEGER\n primary key autoincrement,\n Description TEXT not null,\n DiscountPct REAL default 0.0000 not null,\n Type TEXT not null,\n Category TEXT not null,\n StartDate DATETIME not null,\n EndDate DATETIME not null,\n MinQty INTEGER default 0 not null,\n MaxQty INTEGER,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "SpecialOfferProduct", + "SpecialOfferProduct", + "CREATE TABLE SpecialOfferProduct\n(\n SpecialOfferID INTEGER not null,\n ProductID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "StateProvince", + "StateProvince", + "CREATE TABLE \"StateProvince\"\n(\n StateProvinceID INTEGER\n primary key autoincrement,\n StateProvinceCode TEXT not null,\n CountryRegionCode TEXT not null\n references CountryRegion,\n IsOnlyStateProvinceFlag INTEGER default 1 not null,\n Name TEXT not null\n unique,\n TerritoryID INTEGER not null\n references SalesTerritory,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StateProvinceCode, CountryRegionCode)\n)" + ], + [ + "table", + "Store", + "Store", + "CREATE TABLE Store\n(\n BusinessEntityID INTEGER not null\n primary key,\n Name TEXT not null,\n SalesPersonID INTEGER,\n Demographics TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n)" + ], + [ + "table", + "TransactionHistory", + "TransactionHistory", + "CREATE TABLE TransactionHistory\n(\n TransactionID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n ReferenceOrderID INTEGER not null,\n ReferenceOrderLineID INTEGER default 0 not null,\n TransactionDate DATETIME default CURRENT_TIMESTAMP not null,\n TransactionType TEXT not null,\n Quantity INTEGER not null,\n ActualCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n)" + ], + [ + "table", + "TransactionHistoryArchive", + "TransactionHistoryArchive", + "CREATE TABLE TransactionHistoryArchive\n(\n TransactionID INTEGER not null\n primary key,\n ProductID INTEGER not null,\n ReferenceOrderID INTEGER not null,\n ReferenceOrderLineID INTEGER default 0 not null,\n TransactionDate DATETIME default CURRENT_TIMESTAMP not null,\n TransactionType TEXT not null,\n Quantity INTEGER not null,\n ActualCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "UnitMeasure", + "UnitMeasure", + "CREATE TABLE UnitMeasure\n(\n UnitMeasureCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n)" + ], + [ + "table", + "Vendor", + "Vendor", + "CREATE TABLE Vendor\n(\n BusinessEntityID INTEGER not null\n primary key,\n AccountNumber TEXT not null\n unique,\n Name TEXT not null,\n CreditRating INTEGER not null,\n PreferredVendorStatus INTEGER default 1 not null,\n ActiveFlag INTEGER default 1 not null,\n PurchasingWebServiceURL TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n)" + ], + [ + "table", + "WorkOrder", + "WorkOrder", + "CREATE TABLE WorkOrder\n(\n WorkOrderID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n OrderQty INTEGER not null,\n StockedQty INTEGER not null,\n ScrappedQty INTEGER not null,\n StartDate DATETIME not null,\n EndDate DATETIME,\n DueDate DATETIME not null,\n ScrapReasonID INTEGER,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n)" + ], + [ + "table", + "WorkOrderRouting", + "WorkOrderRouting", + "CREATE TABLE WorkOrderRouting\n(\n WorkOrderID INTEGER not null,\n ProductID INTEGER not null,\n OperationSequence INTEGER not null,\n LocationID INTEGER not null,\n ScheduledStartDate DATETIME not null,\n ScheduledEndDate DATETIME not null,\n ActualStartDate DATETIME,\n ActualEndDate DATETIME,\n ActualResourceHrs REAL,\n PlannedCost REAL not null,\n ActualCost REAL,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n)" + ] + ], + "solver_schema": { + "Address": { + "AddressID": "INT", + "AddressLine1": "VARCHAR", + "AddressLine2": "VARCHAR", + "City": "VARCHAR", + "StateProvinceID": "INT", + "PostalCode": "VARCHAR", + "SpatialLocation": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "AddressType": { + "AddressTypeID": "INT", + "Name": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "BillOfMaterials": { + "BillOfMaterialsID": "INT", + "ProductAssemblyID": "INT", + "ComponentID": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "UnitMeasureCode": "VARCHAR", + "BOMLevel": "INT", + "PerAssemblyQty": "REAL", + "ModifiedDate": "REAL" + }, + "BusinessEntity": { + "BusinessEntityID": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "BusinessEntityAddress": { + "BusinessEntityID": "INT", + "AddressID": "INT", + "AddressTypeID": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "BusinessEntityContact": { + "BusinessEntityID": "INT", + "PersonID": "INT", + "ContactTypeID": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ContactType": { + "ContactTypeID": "INT", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "CountryRegion": { + "CountryRegionCode": "VARCHAR", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "CountryRegionCurrency": { + "CountryRegionCode": "VARCHAR", + "CurrencyCode": "VARCHAR", + "ModifiedDate": "REAL" + }, + "CreditCard": { + "CreditCardID": "INT", + "CardType": "VARCHAR", + "CardNumber": "VARCHAR", + "ExpMonth": "INT", + "ExpYear": "INT", + "ModifiedDate": "REAL" + }, + "Culture": { + "CultureID": "VARCHAR", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Currency": { + "CurrencyCode": "VARCHAR", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "CurrencyRate": { + "CurrencyRateID": "INT", + "CurrencyRateDate": "REAL", + "FromCurrencyCode": "VARCHAR", + "ToCurrencyCode": "VARCHAR", + "AverageRate": "REAL", + "EndOfDayRate": "REAL", + "ModifiedDate": "REAL" + }, + "Customer": { + "CustomerID": "INT", + "PersonID": "INT", + "StoreID": "INT", + "TerritoryID": "INT", + "AccountNumber": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Department": { + "DepartmentID": "INT", + "Name": "VARCHAR", + "GroupName": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Document": { + "DocumentNode": "VARCHAR", + "DocumentLevel": "INT", + "Title": "VARCHAR", + "Owner": "INT", + "FolderFlag": "INT", + "FileName": "VARCHAR", + "FileExtension": "VARCHAR", + "Revision": "VARCHAR", + "ChangeNumber": "INT", + "Status": "INT", + "DocumentSummary": "VARCHAR", + "Document": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "EmailAddress": { + "BusinessEntityID": "INT", + "EmailAddressID": "INT", + "EmailAddress": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Employee": { + "BusinessEntityID": "INT", + "NationalIDNumber": "VARCHAR", + "LoginID": "VARCHAR", + "OrganizationNode": "VARCHAR", + "OrganizationLevel": "INT", + "JobTitle": "VARCHAR", + "BirthDate": "REAL", + "MaritalStatus": "VARCHAR", + "Gender": "VARCHAR", + "HireDate": "REAL", + "SalariedFlag": "INT", + "VacationHours": "INT", + "SickLeaveHours": "INT", + "CurrentFlag": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "EmployeeDepartmentHistory": { + "BusinessEntityID": "INT", + "DepartmentID": "INT", + "ShiftID": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "ModifiedDate": "REAL" + }, + "EmployeePayHistory": { + "BusinessEntityID": "INT", + "RateChangeDate": "REAL", + "Rate": "REAL", + "PayFrequency": "INT", + "ModifiedDate": "REAL" + }, + "JobCandidate": { + "JobCandidateID": "INT", + "BusinessEntityID": "INT", + "Resume": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Location": { + "LocationID": "INT", + "Name": "VARCHAR", + "CostRate": "REAL", + "Availability": "REAL", + "ModifiedDate": "REAL" + }, + "Password": { + "BusinessEntityID": "INT", + "PasswordHash": "VARCHAR", + "PasswordSalt": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Person": { + "BusinessEntityID": "INT", + "PersonType": "VARCHAR", + "NameStyle": "INT", + "Title": "VARCHAR", + "FirstName": "VARCHAR", + "MiddleName": "VARCHAR", + "LastName": "VARCHAR", + "Suffix": "VARCHAR", + "EmailPromotion": "INT", + "AdditionalContactInfo": "VARCHAR", + "Demographics": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "PersonCreditCard": { + "BusinessEntityID": "INT", + "CreditCardID": "INT", + "ModifiedDate": "REAL" + }, + "PhoneNumberType": { + "PhoneNumberTypeID": "INT", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Product": { + "ProductID": "INT", + "Name": "VARCHAR", + "ProductNumber": "VARCHAR", + "MakeFlag": "INT", + "FinishedGoodsFlag": "INT", + "Color": "VARCHAR", + "SafetyStockLevel": "INT", + "ReorderPoint": "INT", + "StandardCost": "REAL", + "ListPrice": "REAL", + "Size": "VARCHAR", + "SizeUnitMeasureCode": "VARCHAR", + "WeightUnitMeasureCode": "VARCHAR", + "Weight": "REAL", + "DaysToManufacture": "INT", + "ProductLine": "VARCHAR", + "Class": "VARCHAR", + "Style": "VARCHAR", + "ProductSubcategoryID": "INT", + "ProductModelID": "INT", + "SellStartDate": "REAL", + "SellEndDate": "REAL", + "DiscontinuedDate": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductCategory": { + "ProductCategoryID": "INT", + "Name": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductCostHistory": { + "ProductID": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "StandardCost": "REAL", + "ModifiedDate": "REAL" + }, + "ProductDescription": { + "ProductDescriptionID": "INT", + "Description": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductDocument": { + "ProductID": "INT", + "DocumentNode": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductInventory": { + "ProductID": "INT", + "LocationID": "INT", + "Shelf": "VARCHAR", + "Bin": "INT", + "Quantity": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductListPriceHistory": { + "ProductID": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "ListPrice": "REAL", + "ModifiedDate": "REAL" + }, + "ProductModel": { + "ProductModelID": "INT", + "Name": "VARCHAR", + "CatalogDescription": "VARCHAR", + "Instructions": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductModelProductDescriptionCulture": { + "ProductModelID": "INT", + "ProductDescriptionID": "INT", + "CultureID": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductPhoto": { + "ProductPhotoID": "INT", + "ThumbNailPhoto": "REAL", + "ThumbnailPhotoFileName": "VARCHAR", + "LargePhoto": "REAL", + "LargePhotoFileName": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductProductPhoto": { + "ProductID": "INT", + "ProductPhotoID": "INT", + "Primary": "INT", + "ModifiedDate": "REAL" + }, + "ProductReview": { + "ProductReviewID": "INT", + "ProductID": "INT", + "ReviewerName": "VARCHAR", + "ReviewDate": "REAL", + "EmailAddress": "VARCHAR", + "Rating": "INT", + "Comments": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductSubcategory": { + "ProductSubcategoryID": "INT", + "ProductCategoryID": "INT", + "Name": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ProductVendor": { + "ProductID": "INT", + "BusinessEntityID": "INT", + "AverageLeadTime": "INT", + "StandardPrice": "REAL", + "LastReceiptCost": "REAL", + "LastReceiptDate": "REAL", + "MinOrderQty": "INT", + "MaxOrderQty": "INT", + "OnOrderQty": "INT", + "UnitMeasureCode": "VARCHAR", + "ModifiedDate": "REAL" + }, + "PurchaseOrderDetail": { + "PurchaseOrderID": "INT", + "PurchaseOrderDetailID": "INT", + "DueDate": "REAL", + "OrderQty": "INT", + "ProductID": "INT", + "UnitPrice": "REAL", + "LineTotal": "REAL", + "ReceivedQty": "REAL", + "RejectedQty": "REAL", + "StockedQty": "REAL", + "ModifiedDate": "REAL" + }, + "PurchaseOrderHeader": { + "PurchaseOrderID": "INT", + "RevisionNumber": "INT", + "Status": "INT", + "EmployeeID": "INT", + "VendorID": "INT", + "ShipMethodID": "INT", + "OrderDate": "REAL", + "ShipDate": "REAL", + "SubTotal": "REAL", + "TaxAmt": "REAL", + "Freight": "REAL", + "TotalDue": "REAL", + "ModifiedDate": "REAL" + }, + "SalesOrderDetail": { + "SalesOrderID": "INT", + "SalesOrderDetailID": "INT", + "CarrierTrackingNumber": "VARCHAR", + "OrderQty": "INT", + "ProductID": "INT", + "SpecialOfferID": "INT", + "UnitPrice": "REAL", + "UnitPriceDiscount": "REAL", + "LineTotal": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesOrderHeader": { + "SalesOrderID": "INT", + "RevisionNumber": "INT", + "OrderDate": "REAL", + "DueDate": "REAL", + "ShipDate": "REAL", + "Status": "INT", + "OnlineOrderFlag": "INT", + "SalesOrderNumber": "VARCHAR", + "PurchaseOrderNumber": "VARCHAR", + "AccountNumber": "VARCHAR", + "CustomerID": "INT", + "SalesPersonID": "INT", + "TerritoryID": "INT", + "BillToAddressID": "INT", + "ShipToAddressID": "INT", + "ShipMethodID": "INT", + "CreditCardID": "INT", + "CreditCardApprovalCode": "VARCHAR", + "CurrencyRateID": "INT", + "SubTotal": "REAL", + "TaxAmt": "REAL", + "Freight": "REAL", + "TotalDue": "REAL", + "Comment": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesOrderHeaderSalesReason": { + "SalesOrderID": "INT", + "SalesReasonID": "INT", + "ModifiedDate": "REAL" + }, + "SalesPerson": { + "BusinessEntityID": "INT", + "TerritoryID": "INT", + "SalesQuota": "REAL", + "Bonus": "REAL", + "CommissionPct": "REAL", + "SalesYTD": "REAL", + "SalesLastYear": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesPersonQuotaHistory": { + "BusinessEntityID": "INT", + "QuotaDate": "REAL", + "SalesQuota": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesReason": { + "SalesReasonID": "INT", + "Name": "VARCHAR", + "ReasonType": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesTaxRate": { + "SalesTaxRateID": "INT", + "StateProvinceID": "INT", + "TaxType": "INT", + "TaxRate": "REAL", + "Name": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesTerritory": { + "TerritoryID": "INT", + "Name": "VARCHAR", + "CountryRegionCode": "VARCHAR", + "Group": "VARCHAR", + "SalesYTD": "REAL", + "SalesLastYear": "REAL", + "CostYTD": "REAL", + "CostLastYear": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SalesTerritoryHistory": { + "BusinessEntityID": "INT", + "TerritoryID": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ScrapReason": { + "ScrapReasonID": "INT", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Shift": { + "ShiftID": "INT", + "Name": "VARCHAR", + "StartTime": "VARCHAR", + "EndTime": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ShipMethod": { + "ShipMethodID": "INT", + "Name": "VARCHAR", + "ShipBase": "REAL", + "ShipRate": "REAL", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "ShoppingCartItem": { + "ShoppingCartItemID": "INT", + "ShoppingCartID": "VARCHAR", + "Quantity": "INT", + "ProductID": "INT", + "DateCreated": "REAL", + "ModifiedDate": "REAL" + }, + "SpecialOffer": { + "SpecialOfferID": "INT", + "Description": "VARCHAR", + "DiscountPct": "REAL", + "Type": "VARCHAR", + "Category": "VARCHAR", + "StartDate": "REAL", + "EndDate": "REAL", + "MinQty": "INT", + "MaxQty": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "SpecialOfferProduct": { + "SpecialOfferID": "INT", + "ProductID": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "StateProvince": { + "StateProvinceID": "INT", + "StateProvinceCode": "VARCHAR", + "CountryRegionCode": "VARCHAR", + "IsOnlyStateProvinceFlag": "INT", + "Name": "VARCHAR", + "TerritoryID": "INT", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Store": { + "BusinessEntityID": "INT", + "Name": "VARCHAR", + "SalesPersonID": "INT", + "Demographics": "VARCHAR", + "rowguid": "VARCHAR", + "ModifiedDate": "REAL" + }, + "TransactionHistory": { + "TransactionID": "INT", + "ProductID": "INT", + "ReferenceOrderID": "INT", + "ReferenceOrderLineID": "INT", + "TransactionDate": "REAL", + "TransactionType": "VARCHAR", + "Quantity": "INT", + "ActualCost": "REAL", + "ModifiedDate": "REAL" + }, + "TransactionHistoryArchive": { + "TransactionID": "INT", + "ProductID": "INT", + "ReferenceOrderID": "INT", + "ReferenceOrderLineID": "INT", + "TransactionDate": "REAL", + "TransactionType": "VARCHAR", + "Quantity": "INT", + "ActualCost": "REAL", + "ModifiedDate": "REAL" + }, + "UnitMeasure": { + "UnitMeasureCode": "VARCHAR", + "Name": "VARCHAR", + "ModifiedDate": "REAL" + }, + "Vendor": { + "BusinessEntityID": "INT", + "AccountNumber": "VARCHAR", + "Name": "VARCHAR", + "CreditRating": "INT", + "PreferredVendorStatus": "INT", + "ActiveFlag": "INT", + "PurchasingWebServiceURL": "VARCHAR", + "ModifiedDate": "REAL" + }, + "WorkOrder": { + "WorkOrderID": "INT", + "ProductID": "INT", + "OrderQty": "INT", + "StockedQty": "INT", + "ScrappedQty": "INT", + "StartDate": "REAL", + "EndDate": "REAL", + "DueDate": "REAL", + "ScrapReasonID": "INT", + "ModifiedDate": "REAL" + }, + "WorkOrderRouting": { + "WorkOrderID": "INT", + "ProductID": "INT", + "OperationSequence": "INT", + "LocationID": "INT", + "ScheduledStartDate": "REAL", + "ScheduledEndDate": "REAL", + "ActualStartDate": "REAL", + "ActualEndDate": "REAL", + "ActualResourceHrs": "REAL", + "PlannedCost": "REAL", + "ActualCost": "REAL", + "ModifiedDate": "REAL" + } + }, + "policies": [ + { + "table": "Address", + "id": 0, + "declaration": [ + [ + 0, + 0, + "StateProvince", + "StateProvinceID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Address\" c WHERE c.\"StateProvinceID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"StateProvince\" p WHERE p.\"StateProvinceID\" = c.\"StateProvinceID\")" + }, + { + "table": "BillOfMaterials", + "id": 0, + "declaration": [ + [ + 0, + 0, + "UnitMeasure", + "UnitMeasureCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BillOfMaterials\" c WHERE c.\"UnitMeasureCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"UnitMeasure\" p WHERE p.\"UnitMeasureCode\" = c.\"UnitMeasureCode\")" + }, + { + "table": "BillOfMaterials", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Product", + "ComponentID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BillOfMaterials\" c WHERE c.\"ComponentID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ComponentID\")" + }, + { + "table": "BillOfMaterials", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Product", + "ProductAssemblyID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BillOfMaterials\" c WHERE c.\"ProductAssemblyID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductAssemblyID\")" + }, + { + "table": "BusinessEntityAddress", + "id": 0, + "declaration": [ + [ + 0, + 0, + "BusinessEntity", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityAddress\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"BusinessEntity\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "BusinessEntityAddress", + "id": 1, + "declaration": [ + [ + 1, + 0, + "AddressType", + "AddressTypeID", + "AddressTypeID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityAddress\" c WHERE c.\"AddressTypeID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"AddressType\" p WHERE p.\"AddressTypeID\" = c.\"AddressTypeID\")" + }, + { + "table": "BusinessEntityAddress", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Address", + "AddressID", + "AddressID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityAddress\" c WHERE c.\"AddressID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Address\" p WHERE p.\"AddressID\" = c.\"AddressID\")" + }, + { + "table": "BusinessEntityContact", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "PersonID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityContact\" c WHERE c.\"PersonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"PersonID\")" + }, + { + "table": "BusinessEntityContact", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ContactType", + "ContactTypeID", + "ContactTypeID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityContact\" c WHERE c.\"ContactTypeID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ContactType\" p WHERE p.\"ContactTypeID\" = c.\"ContactTypeID\")" + }, + { + "table": "BusinessEntityContact", + "id": 2, + "declaration": [ + [ + 2, + 0, + "BusinessEntity", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"BusinessEntityContact\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"BusinessEntity\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "CountryRegionCurrency", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Currency", + "CurrencyCode", + "CurrencyCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CountryRegionCurrency\" c WHERE c.\"CurrencyCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Currency\" p WHERE p.\"CurrencyCode\" = c.\"CurrencyCode\")" + }, + { + "table": "CountryRegionCurrency", + "id": 1, + "declaration": [ + [ + 1, + 0, + "CountryRegion", + "CountryRegionCode", + "CountryRegionCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CountryRegionCurrency\" c WHERE c.\"CountryRegionCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CountryRegion\" p WHERE p.\"CountryRegionCode\" = c.\"CountryRegionCode\")" + }, + { + "table": "CurrencyRate", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Currency", + "ToCurrencyCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CurrencyRate\" c WHERE c.\"ToCurrencyCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Currency\" p WHERE p.\"CurrencyCode\" = c.\"ToCurrencyCode\")" + }, + { + "table": "CurrencyRate", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Currency", + "FromCurrencyCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CurrencyRate\" c WHERE c.\"FromCurrencyCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Currency\" p WHERE p.\"CurrencyCode\" = c.\"FromCurrencyCode\")" + }, + { + "table": "Customer", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Store", + "StoreID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Customer\" c WHERE c.\"StoreID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Store\" p WHERE p.\"BusinessEntityID\" = c.\"StoreID\")" + }, + { + "table": "Customer", + "id": 1, + "declaration": [ + [ + 1, + 0, + "SalesTerritory", + "TerritoryID", + "TerritoryID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Customer\" c WHERE c.\"TerritoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesTerritory\" p WHERE p.\"TerritoryID\" = c.\"TerritoryID\")" + }, + { + "table": "Customer", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Person", + "PersonID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Customer\" c WHERE c.\"PersonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"PersonID\")" + }, + { + "table": "Document", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Employee", + "Owner", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Document\" c WHERE c.\"Owner\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"Owner\")" + }, + { + "table": "EmailAddress", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"EmailAddress\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "Employee", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Employee\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "EmployeeDepartmentHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Shift", + "ShiftID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"EmployeeDepartmentHistory\" c WHERE c.\"ShiftID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Shift\" p WHERE p.\"ShiftID\" = c.\"ShiftID\")" + }, + { + "table": "EmployeeDepartmentHistory", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Department", + "DepartmentID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"EmployeeDepartmentHistory\" c WHERE c.\"DepartmentID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Department\" p WHERE p.\"DepartmentID\" = c.\"DepartmentID\")" + }, + { + "table": "EmployeeDepartmentHistory", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Employee", + "BusinessEntityID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"EmployeeDepartmentHistory\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "EmployeePayHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Employee", + "BusinessEntityID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"EmployeePayHistory\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "JobCandidate", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Employee", + "BusinessEntityID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"JobCandidate\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "Password", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Password\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "Person", + "id": 0, + "declaration": [ + [ + 0, + 0, + "BusinessEntity", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Person\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"BusinessEntity\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "PersonCreditCard", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Person", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PersonCreditCard\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Person\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "PersonCreditCard", + "id": 1, + "declaration": [ + [ + 1, + 0, + "CreditCard", + "CreditCardID", + "CreditCardID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PersonCreditCard\" c WHERE c.\"CreditCardID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CreditCard\" p WHERE p.\"CreditCardID\" = c.\"CreditCardID\")" + }, + { + "table": "Product", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ProductModel", + "ProductModelID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Product\" c WHERE c.\"ProductModelID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductModel\" p WHERE p.\"ProductModelID\" = c.\"ProductModelID\")" + }, + { + "table": "Product", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ProductSubcategory", + "ProductSubcategoryID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Product\" c WHERE c.\"ProductSubcategoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductSubcategory\" p WHERE p.\"ProductSubcategoryID\" = c.\"ProductSubcategoryID\")" + }, + { + "table": "Product", + "id": 2, + "declaration": [ + [ + 2, + 0, + "UnitMeasure", + "WeightUnitMeasureCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Product\" c WHERE c.\"WeightUnitMeasureCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"UnitMeasure\" p WHERE p.\"UnitMeasureCode\" = c.\"WeightUnitMeasureCode\")" + }, + { + "table": "Product", + "id": 3, + "declaration": [ + [ + 3, + 0, + "UnitMeasure", + "SizeUnitMeasureCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Product\" c WHERE c.\"SizeUnitMeasureCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"UnitMeasure\" p WHERE p.\"UnitMeasureCode\" = c.\"SizeUnitMeasureCode\")" + }, + { + "table": "ProductCostHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductCostHistory\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductDocument", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Document", + "DocumentNode", + "DocumentNode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductDocument\" c WHERE c.\"DocumentNode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Document\" p WHERE p.\"DocumentNode\" = c.\"DocumentNode\")" + }, + { + "table": "ProductDocument", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductDocument\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductInventory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductInventory\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "ProductInventory", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductInventory\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductListPriceHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductListPriceHistory\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductModelProductDescriptionCulture", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Culture", + "CultureID", + "CultureID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductModelProductDescriptionCulture\" c WHERE c.\"CultureID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Culture\" p WHERE p.\"CultureID\" = c.\"CultureID\")" + }, + { + "table": "ProductModelProductDescriptionCulture", + "id": 1, + "declaration": [ + [ + 1, + 0, + "ProductDescription", + "ProductDescriptionID", + "ProductDescriptionID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductModelProductDescriptionCulture\" c WHERE c.\"ProductDescriptionID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductDescription\" p WHERE p.\"ProductDescriptionID\" = c.\"ProductDescriptionID\")" + }, + { + "table": "ProductModelProductDescriptionCulture", + "id": 2, + "declaration": [ + [ + 2, + 0, + "ProductModel", + "ProductModelID", + "ProductModelID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductModelProductDescriptionCulture\" c WHERE c.\"ProductModelID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductModel\" p WHERE p.\"ProductModelID\" = c.\"ProductModelID\")" + }, + { + "table": "ProductProductPhoto", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ProductPhoto", + "ProductPhotoID", + "ProductPhotoID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 346, + "query": "SELECT COUNT(*) FROM \"ProductProductPhoto\" c WHERE c.\"ProductPhotoID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductPhoto\" p WHERE p.\"ProductPhotoID\" = c.\"ProductPhotoID\")" + }, + { + "table": "ProductProductPhoto", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductProductPhoto\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductReview", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductReview\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "ProductSubcategory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ProductCategory", + "ProductCategoryID", + "ProductCategoryID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductSubcategory\" c WHERE c.\"ProductCategoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ProductCategory\" p WHERE p.\"ProductCategoryID\" = c.\"ProductCategoryID\")" + }, + { + "table": "ProductVendor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "UnitMeasure", + "UnitMeasureCode", + "UnitMeasureCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductVendor\" c WHERE c.\"UnitMeasureCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"UnitMeasure\" p WHERE p.\"UnitMeasureCode\" = c.\"UnitMeasureCode\")" + }, + { + "table": "ProductVendor", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Vendor", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductVendor\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Vendor\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "ProductVendor", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ProductVendor\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "PurchaseOrderDetail", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PurchaseOrderDetail\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "PurchaseOrderDetail", + "id": 1, + "declaration": [ + [ + 1, + 0, + "PurchaseOrderHeader", + "PurchaseOrderID", + "PurchaseOrderID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PurchaseOrderDetail\" c WHERE c.\"PurchaseOrderID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"PurchaseOrderHeader\" p WHERE p.\"PurchaseOrderID\" = c.\"PurchaseOrderID\")" + }, + { + "table": "PurchaseOrderHeader", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ShipMethod", + "ShipMethodID", + "ShipMethodID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PurchaseOrderHeader\" c WHERE c.\"ShipMethodID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ShipMethod\" p WHERE p.\"ShipMethodID\" = c.\"ShipMethodID\")" + }, + { + "table": "PurchaseOrderHeader", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Vendor", + "VendorID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PurchaseOrderHeader\" c WHERE c.\"VendorID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Vendor\" p WHERE p.\"BusinessEntityID\" = c.\"VendorID\")" + }, + { + "table": "PurchaseOrderHeader", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Employee", + "EmployeeID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"PurchaseOrderHeader\" c WHERE c.\"EmployeeID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"EmployeeID\")" + }, + { + "table": "SalesOrderDetail", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SpecialOfferProduct", + "SpecialOfferID", + "SpecialOfferID", + "NO ACTION", + "NO ACTION", + "NONE" + ], + [ + 0, + 1, + "SpecialOfferProduct", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderDetail\" c WHERE c.\"SpecialOfferID\" IS NOT NULL AND c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SpecialOfferProduct\" p WHERE p.\"SpecialOfferID\" = c.\"SpecialOfferID\" AND p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "SalesOrderDetail", + "id": 1, + "declaration": [ + [ + 1, + 0, + "SalesOrderHeader", + "SalesOrderID", + "SalesOrderID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderDetail\" c WHERE c.\"SalesOrderID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesOrderHeader\" p WHERE p.\"SalesOrderID\" = c.\"SalesOrderID\")" + }, + { + "table": "SalesOrderHeader", + "id": 0, + "declaration": [ + [ + 0, + 0, + "CurrencyRate", + "CurrencyRateID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"CurrencyRateID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CurrencyRate\" p WHERE p.\"CurrencyRateID\" = c.\"CurrencyRateID\")" + }, + { + "table": "SalesOrderHeader", + "id": 1, + "declaration": [ + [ + 1, + 0, + "CreditCard", + "CreditCardID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"CreditCardID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CreditCard\" p WHERE p.\"CreditCardID\" = c.\"CreditCardID\")" + }, + { + "table": "SalesOrderHeader", + "id": 2, + "declaration": [ + [ + 2, + 0, + "Address", + "ShipMethodID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"ShipMethodID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Address\" p WHERE p.\"AddressID\" = c.\"ShipMethodID\")" + }, + { + "table": "SalesOrderHeader", + "id": 3, + "declaration": [ + [ + 3, + 0, + "Address", + "ShipToAddressID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"ShipToAddressID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Address\" p WHERE p.\"AddressID\" = c.\"ShipToAddressID\")" + }, + { + "table": "SalesOrderHeader", + "id": 4, + "declaration": [ + [ + 4, + 0, + "Address", + "BillToAddressID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"BillToAddressID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Address\" p WHERE p.\"AddressID\" = c.\"BillToAddressID\")" + }, + { + "table": "SalesOrderHeader", + "id": 5, + "declaration": [ + [ + 5, + 0, + "SalesTerritory", + "TerritoryID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"TerritoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesTerritory\" p WHERE p.\"TerritoryID\" = c.\"TerritoryID\")" + }, + { + "table": "SalesOrderHeader", + "id": 6, + "declaration": [ + [ + 6, + 0, + "SalesPerson", + "SalesPersonID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"SalesPersonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesPerson\" p WHERE p.\"BusinessEntityID\" = c.\"SalesPersonID\")" + }, + { + "table": "SalesOrderHeader", + "id": 7, + "declaration": [ + [ + 7, + 0, + "Customer", + "CustomerID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 31465, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeader\" c WHERE c.\"CustomerID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Customer\" p WHERE p.\"CustomerID\" = c.\"CustomerID\")" + }, + { + "table": "SalesOrderHeaderSalesReason", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesReason", + "SalesReasonID", + "SalesReasonID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeaderSalesReason\" c WHERE c.\"SalesReasonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesReason\" p WHERE p.\"SalesReasonID\" = c.\"SalesReasonID\")" + }, + { + "table": "SalesOrderHeaderSalesReason", + "id": 1, + "declaration": [ + [ + 1, + 0, + "SalesOrderHeader", + "SalesOrderID", + "SalesOrderID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesOrderHeaderSalesReason\" c WHERE c.\"SalesOrderID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesOrderHeader\" p WHERE p.\"SalesOrderID\" = c.\"SalesOrderID\")" + }, + { + "table": "SalesPerson", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesTerritory", + "TerritoryID", + "TerritoryID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesPerson\" c WHERE c.\"TerritoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesTerritory\" p WHERE p.\"TerritoryID\" = c.\"TerritoryID\")" + }, + { + "table": "SalesPerson", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Employee", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesPerson\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Employee\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "SalesPersonQuotaHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesPerson", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesPersonQuotaHistory\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesPerson\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "SalesTaxRate", + "id": 0, + "declaration": [ + [ + 0, + 0, + "StateProvince", + "StateProvinceID", + "StateProvinceID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesTaxRate\" c WHERE c.\"StateProvinceID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"StateProvince\" p WHERE p.\"StateProvinceID\" = c.\"StateProvinceID\")" + }, + { + "table": "SalesTerritory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "CountryRegion", + "CountryRegionCode", + "CountryRegionCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesTerritory\" c WHERE c.\"CountryRegionCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CountryRegion\" p WHERE p.\"CountryRegionCode\" = c.\"CountryRegionCode\")" + }, + { + "table": "SalesTerritoryHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesTerritory", + "TerritoryID", + "TerritoryID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesTerritoryHistory\" c WHERE c.\"TerritoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesTerritory\" p WHERE p.\"TerritoryID\" = c.\"TerritoryID\")" + }, + { + "table": "SalesTerritoryHistory", + "id": 1, + "declaration": [ + [ + 1, + 0, + "SalesPerson", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SalesTerritoryHistory\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesPerson\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "ShoppingCartItem", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"ShoppingCartItem\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "SpecialOfferProduct", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SpecialOfferProduct\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "SpecialOfferProduct", + "id": 1, + "declaration": [ + [ + 1, + 0, + "SpecialOffer", + "SpecialOfferID", + "SpecialOfferID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SpecialOfferProduct\" c WHERE c.\"SpecialOfferID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SpecialOffer\" p WHERE p.\"SpecialOfferID\" = c.\"SpecialOfferID\")" + }, + { + "table": "StateProvince", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesTerritory", + "TerritoryID", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"StateProvince\" c WHERE c.\"TerritoryID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesTerritory\" p WHERE p.\"TerritoryID\" = c.\"TerritoryID\")" + }, + { + "table": "StateProvince", + "id": 1, + "declaration": [ + [ + 1, + 0, + "CountryRegion", + "CountryRegionCode", + null, + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"StateProvince\" c WHERE c.\"CountryRegionCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"CountryRegion\" p WHERE p.\"CountryRegionCode\" = c.\"CountryRegionCode\")" + }, + { + "table": "Store", + "id": 0, + "declaration": [ + [ + 0, + 0, + "SalesPerson", + "SalesPersonID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Store\" c WHERE c.\"SalesPersonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"SalesPerson\" p WHERE p.\"BusinessEntityID\" = c.\"SalesPersonID\")" + }, + { + "table": "Store", + "id": 1, + "declaration": [ + [ + 1, + 0, + "BusinessEntity", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Store\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"BusinessEntity\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "TransactionHistory", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"TransactionHistory\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "Vendor", + "id": 0, + "declaration": [ + [ + 0, + 0, + "BusinessEntity", + "BusinessEntityID", + "BusinessEntityID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"Vendor\" c WHERE c.\"BusinessEntityID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"BusinessEntity\" p WHERE p.\"BusinessEntityID\" = c.\"BusinessEntityID\")" + }, + { + "table": "WorkOrder", + "id": 0, + "declaration": [ + [ + 0, + 0, + "ScrapReason", + "ScrapReasonID", + "ScrapReasonID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"WorkOrder\" c WHERE c.\"ScrapReasonID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"ScrapReason\" p WHERE p.\"ScrapReasonID\" = c.\"ScrapReasonID\")" + }, + { + "table": "WorkOrder", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Product", + "ProductID", + "ProductID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"WorkOrder\" c WHERE c.\"ProductID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Product\" p WHERE p.\"ProductID\" = c.\"ProductID\")" + }, + { + "table": "WorkOrderRouting", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Location", + "LocationID", + "LocationID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"WorkOrderRouting\" c WHERE c.\"LocationID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Location\" p WHERE p.\"LocationID\" = c.\"LocationID\")" + }, + { + "table": "WorkOrderRouting", + "id": 1, + "declaration": [ + [ + 1, + 0, + "WorkOrder", + "WorkOrderID", + "WorkOrderID", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"WorkOrderRouting\" c WHERE c.\"WorkOrderID\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"WorkOrder\" p WHERE p.\"WorkOrderID\" = c.\"WorkOrderID\")" + } + ], + "sha256": "5a5968b86a2de3cf521294eca7cdc54887830b765e8ca7ab0b103d0f1d7daf1b" + }, + "world": { + "schema": [ + [ + "table", + "City", + "City", + "CREATE TABLE `City` (\n `ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n `Name` TEXT NOT NULL DEFAULT '',\n `CountryCode` TEXT NOT NULL DEFAULT '',\n `District` TEXT NOT NULL DEFAULT '',\n `Population` INTEGER NOT NULL DEFAULT 0,\n FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`)\n)" + ], + [ + "table", + "Country", + "Country", + "CREATE TABLE `Country` (\n `Code` TEXT NOT NULL DEFAULT '',\n `Name` TEXT NOT NULL DEFAULT '',\n `Continent` TEXT NOT NULL DEFAULT 'Asia',\n `Region` TEXT NOT NULL DEFAULT '',\n `SurfaceArea` REAL NOT NULL DEFAULT 0.00,\n `IndepYear` INTEGER DEFAULT NULL,\n `Population` INTEGER NOT NULL DEFAULT 0,\n `LifeExpectancy` REAL DEFAULT NULL,\n `GNP` REAL DEFAULT NULL,\n `GNPOld` REAL DEFAULT NULL,\n `LocalName` TEXT NOT NULL DEFAULT '',\n `GovernmentForm` TEXT NOT NULL DEFAULT '',\n `HeadOfState` TEXT DEFAULT NULL,\n `Capital` INTEGER DEFAULT NULL,\n `Code2` TEXT NOT NULL DEFAULT '',\n PRIMARY KEY (`Code`)\n)" + ], + [ + "table", + "CountryLanguage", + "CountryLanguage", + "CREATE TABLE `CountryLanguage` (\n `CountryCode` TEXT NOT NULL DEFAULT '',\n `Language` TEXT NOT NULL DEFAULT '',\n `IsOfficial`TEXT NOT NULL DEFAULT 'F',\n `Percentage` REAL NOT NULL DEFAULT 0.0,\n PRIMARY KEY (`CountryCode`,`Language`),\n FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`)\n)" + ] + ], + "solver_schema": { + "City": { + "ID": "INT", + "Name": "VARCHAR", + "CountryCode": "VARCHAR", + "District": "VARCHAR", + "Population": "INT" + }, + "Country": { + "Code": "VARCHAR", + "Name": "VARCHAR", + "Continent": "VARCHAR", + "Region": "VARCHAR", + "SurfaceArea": "REAL", + "IndepYear": "INT", + "Population": "INT", + "LifeExpectancy": "REAL", + "GNP": "REAL", + "GNPOld": "REAL", + "LocalName": "VARCHAR", + "GovernmentForm": "VARCHAR", + "HeadOfState": "VARCHAR", + "Capital": "INT", + "Code2": "VARCHAR" + }, + "CountryLanguage": { + "CountryCode": "VARCHAR", + "Language": "VARCHAR", + "IsOfficial": "VARCHAR", + "Percentage": "REAL" + } + }, + "policies": [ + { + "table": "City", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "CountryCode", + "Code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"City\" c WHERE c.\"CountryCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"Code\" = c.\"CountryCode\")" + }, + { + "table": "CountryLanguage", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "CountryCode", + "Code", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CountryLanguage\" c WHERE c.\"CountryCode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"Code\" = c.\"CountryCode\")" + } + ], + "sha256": "813faade795b875f6d46cf81d9651e2400524b414a407aa9d473aa9a8c142861" + }, + "world_development_indicators": { + "schema": [ + [ + "table", + "Country", + "Country", + "CREATE TABLE \"Country\"\n(\n CountryCode TEXT not null\n primary key,\n ShortName TEXT,\n TableName TEXT,\n LongName TEXT,\n Alpha2Code TEXT,\n CurrencyUnit TEXT,\n SpecialNotes TEXT,\n Region TEXT,\n IncomeGroup TEXT,\n Wb2Code TEXT,\n NationalAccountsBaseYear TEXT,\n NationalAccountsReferenceYear TEXT,\n SnaPriceValuation TEXT,\n LendingCategory TEXT,\n OtherGroups TEXT,\n SystemOfNationalAccounts TEXT,\n AlternativeConversionFactor TEXT,\n PppSurveyYear TEXT,\n BalanceOfPaymentsManualInUse TEXT,\n ExternalDebtReportingStatus TEXT,\n SystemOfTrade TEXT,\n GovernmentAccountingConcept TEXT,\n ImfDataDisseminationStandard TEXT,\n LatestPopulationCensus TEXT,\n LatestHouseholdSurvey TEXT,\n SourceOfMostRecentIncomeAndExpenditureData TEXT,\n VitalRegistrationComplete TEXT,\n LatestAgriculturalCensus TEXT,\n LatestIndustrialData INTEGER,\n LatestTradeData INTEGER,\n LatestWaterWithdrawalData INTEGER\n)" + ], + [ + "table", + "CountryNotes", + "CountryNotes", + "CREATE TABLE CountryNotes\n(\n Countrycode TEXT NOT NULL ,\n Seriescode TEXT NOT NULL ,\n Description TEXT,\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n)" + ], + [ + "table", + "Footnotes", + "Footnotes", + "CREATE TABLE Footnotes\n(\n Countrycode TEXT NOT NULL ,\n Seriescode TEXT NOT NULL ,\n Year TEXT,\n Description TEXT,\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n)" + ], + [ + "table", + "Indicators", + "Indicators", + "CREATE TABLE Indicators\n(\n CountryName TEXT,\n CountryCode TEXT NOT NULL ,\n IndicatorName TEXT,\n IndicatorCode TEXT NOT NULL ,\n Year INTEGER NOT NULL ,\n Value INTEGER,\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n)" + ], + [ + "table", + "Series", + "Series", + "CREATE TABLE \"Series\"\n(\n SeriesCode TEXT not null\n primary key,\n Topic TEXT,\n IndicatorName TEXT,\n ShortDefinition TEXT,\n LongDefinition TEXT,\n UnitOfMeasure TEXT,\n Periodicity TEXT,\n BasePeriod TEXT,\n OtherNotes INTEGER,\n AggregationMethod TEXT,\n LimitationsAndExceptions TEXT,\n NotesFromOriginalSource TEXT,\n GeneralComments TEXT,\n Source TEXT,\n StatisticalConceptAndMethodology TEXT,\n DevelopmentRelevance TEXT,\n RelatedSourceLinks TEXT,\n OtherWebLinks INTEGER,\n RelatedIndicators INTEGER,\n LicenseType TEXT\n)" + ], + [ + "table", + "SeriesNotes", + "SeriesNotes", + "CREATE TABLE SeriesNotes\n(\n Seriescode TEXT not null ,\n Year TEXT not null ,\n Description TEXT,\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n)" + ] + ], + "solver_schema": { + "Country": { + "CountryCode": "VARCHAR", + "ShortName": "VARCHAR", + "TableName": "VARCHAR", + "LongName": "VARCHAR", + "Alpha2Code": "VARCHAR", + "CurrencyUnit": "VARCHAR", + "SpecialNotes": "VARCHAR", + "Region": "VARCHAR", + "IncomeGroup": "VARCHAR", + "Wb2Code": "VARCHAR", + "NationalAccountsBaseYear": "VARCHAR", + "NationalAccountsReferenceYear": "VARCHAR", + "SnaPriceValuation": "VARCHAR", + "LendingCategory": "VARCHAR", + "OtherGroups": "VARCHAR", + "SystemOfNationalAccounts": "VARCHAR", + "AlternativeConversionFactor": "VARCHAR", + "PppSurveyYear": "VARCHAR", + "BalanceOfPaymentsManualInUse": "VARCHAR", + "ExternalDebtReportingStatus": "VARCHAR", + "SystemOfTrade": "VARCHAR", + "GovernmentAccountingConcept": "VARCHAR", + "ImfDataDisseminationStandard": "VARCHAR", + "LatestPopulationCensus": "VARCHAR", + "LatestHouseholdSurvey": "VARCHAR", + "SourceOfMostRecentIncomeAndExpenditureData": "VARCHAR", + "VitalRegistrationComplete": "VARCHAR", + "LatestAgriculturalCensus": "VARCHAR", + "LatestIndustrialData": "INT", + "LatestTradeData": "INT", + "LatestWaterWithdrawalData": "INT" + }, + "CountryNotes": { + "Countrycode": "VARCHAR", + "Seriescode": "VARCHAR", + "Description": "VARCHAR" + }, + "Footnotes": { + "Countrycode": "VARCHAR", + "Seriescode": "VARCHAR", + "Year": "VARCHAR", + "Description": "VARCHAR" + }, + "Indicators": { + "CountryName": "VARCHAR", + "CountryCode": "VARCHAR", + "IndicatorName": "VARCHAR", + "IndicatorCode": "VARCHAR", + "Year": "INT", + "Value": "INT" + }, + "Series": { + "SeriesCode": "VARCHAR", + "Topic": "VARCHAR", + "IndicatorName": "VARCHAR", + "ShortDefinition": "VARCHAR", + "LongDefinition": "VARCHAR", + "UnitOfMeasure": "VARCHAR", + "Periodicity": "VARCHAR", + "BasePeriod": "VARCHAR", + "OtherNotes": "INT", + "AggregationMethod": "VARCHAR", + "LimitationsAndExceptions": "VARCHAR", + "NotesFromOriginalSource": "VARCHAR", + "GeneralComments": "VARCHAR", + "Source": "VARCHAR", + "StatisticalConceptAndMethodology": "VARCHAR", + "DevelopmentRelevance": "VARCHAR", + "RelatedSourceLinks": "VARCHAR", + "OtherWebLinks": "INT", + "RelatedIndicators": "INT", + "LicenseType": "VARCHAR" + }, + "SeriesNotes": { + "Seriescode": "VARCHAR", + "Year": "VARCHAR", + "Description": "VARCHAR" + } + }, + "policies": [ + { + "table": "CountryNotes", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "Countrycode", + "CountryCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 1, + "query": "SELECT COUNT(*) FROM \"CountryNotes\" c WHERE c.\"Countrycode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"CountryCode\" = c.\"Countrycode\")" + }, + { + "table": "CountryNotes", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Series", + "Seriescode", + "SeriesCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"CountryNotes\" c WHERE c.\"Seriescode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Series\" p WHERE p.\"SeriesCode\" = c.\"Seriescode\")" + }, + { + "table": "Footnotes", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "Countrycode", + "CountryCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 315, + "query": "SELECT COUNT(*) FROM \"Footnotes\" c WHERE c.\"Countrycode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Country\" p WHERE p.\"CountryCode\" = c.\"Countrycode\")" + }, + { + "table": "Footnotes", + "id": 1, + "declaration": [ + [ + 1, + 0, + "Series", + "Seriescode", + "SeriesCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "advisory_source_violated", + "source_violations": 111, + "query": "SELECT COUNT(*) FROM \"Footnotes\" c WHERE c.\"Seriescode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Series\" p WHERE p.\"SeriesCode\" = c.\"Seriescode\")" + }, + { + "table": "Indicators", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Country", + "CountryCode", + "CountryCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "unresolved", + "error": "interrupted" + }, + { + "table": "SeriesNotes", + "id": 0, + "declaration": [ + [ + 0, + 0, + "Series", + "Seriescode", + "SeriesCode", + "NO ACTION", + "NO ACTION", + "NONE" + ] + ], + "status": "enforced", + "source_violations": 0, + "query": "SELECT COUNT(*) FROM \"SeriesNotes\" c WHERE c.\"Seriescode\" IS NOT NULL AND NOT EXISTS (SELECT 1 FROM \"Series\" p WHERE p.\"SeriesCode\" = c.\"Seriescode\")" + } + ], + "sha256": "363cacb7b42219c8bad1b4b7a092107f3b2466852bc47d1aab34d34cae040c0c" + } +}